1<?php 2/* 3 * Copyright 2014 Google Inc. 4 * 5 * Licensed under the Apache License, Version 2.0 (the "License"); you may not 6 * use this file except in compliance with the License. You may obtain a copy of 7 * the License at 8 * 9 * http://www.apache.org/licenses/LICENSE-2.0 10 * 11 * Unless required by applicable law or agreed to in writing, software 12 * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT 13 * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the 14 * License for the specific language governing permissions and limitations under 15 * the License. 16 */ 17 18/** 19 * The "targetSslProxies" collection of methods. 20 * Typical usage is: 21 * <code> 22 * $computeService = new Google_Service_Compute(...); 23 * $targetSslProxies = $computeService->targetSslProxies; 24 * </code> 25 */ 26class Google_Service_Compute_Resource_TargetSslProxies extends Google_Service_Resource 27{ 28 /** 29 * Deletes the specified TargetSslProxy resource. (targetSslProxies.delete) 30 * 31 * @param string $project Project ID for this request. 32 * @param string $targetSslProxy Name of the TargetSslProxy resource to delete. 33 * @param array $optParams Optional parameters. 34 * 35 * @opt_param string requestId An optional request ID to identify requests. 36 * Specify a unique request ID so that if you must retry your request, the 37 * server will know to ignore the request if it has already been completed. 38 * 39 * For example, consider a situation where you make an initial request and the 40 * request times out. If you make the request again with the same request ID, 41 * the server can check if original operation with the same request ID was 42 * received, and if so, will ignore the second request. This prevents clients 43 * from accidentally creating duplicate commitments. 44 * 45 * The request ID must be a valid UUID with the exception that zero UUID is not 46 * supported (00000000-0000-0000-0000-000000000000). 47 * @return Google_Service_Compute_Operation 48 */ 49 public function delete($project, $targetSslProxy, $optParams = array()) 50 { 51 $params = array('project' => $project, 'targetSslProxy' => $targetSslProxy); 52 $params = array_merge($params, $optParams); 53 return $this->call('delete', array($params), "Google_Service_Compute_Operation"); 54 } 55 /** 56 * Returns the specified TargetSslProxy resource. Gets a list of available 57 * target SSL proxies by making a list() request. (targetSslProxies.get) 58 * 59 * @param string $project Project ID for this request. 60 * @param string $targetSslProxy Name of the TargetSslProxy resource to return. 61 * @param array $optParams Optional parameters. 62 * @return Google_Service_Compute_TargetSslProxy 63 */ 64 public function get($project, $targetSslProxy, $optParams = array()) 65 { 66 $params = array('project' => $project, 'targetSslProxy' => $targetSslProxy); 67 $params = array_merge($params, $optParams); 68 return $this->call('get', array($params), "Google_Service_Compute_TargetSslProxy"); 69 } 70 /** 71 * Creates a TargetSslProxy resource in the specified project using the data 72 * included in the request. (targetSslProxies.insert) 73 * 74 * @param string $project Project ID for this request. 75 * @param Google_Service_Compute_TargetSslProxy $postBody 76 * @param array $optParams Optional parameters. 77 * 78 * @opt_param string requestId An optional request ID to identify requests. 79 * Specify a unique request ID so that if you must retry your request, the 80 * server will know to ignore the request if it has already been completed. 81 * 82 * For example, consider a situation where you make an initial request and the 83 * request times out. If you make the request again with the same request ID, 84 * the server can check if original operation with the same request ID was 85 * received, and if so, will ignore the second request. This prevents clients 86 * from accidentally creating duplicate commitments. 87 * 88 * The request ID must be a valid UUID with the exception that zero UUID is not 89 * supported (00000000-0000-0000-0000-000000000000). 90 * @return Google_Service_Compute_Operation 91 */ 92 public function insert($project, Google_Service_Compute_TargetSslProxy $postBody, $optParams = array()) 93 { 94 $params = array('project' => $project, 'postBody' => $postBody); 95 $params = array_merge($params, $optParams); 96 return $this->call('insert', array($params), "Google_Service_Compute_Operation"); 97 } 98 /** 99 * Retrieves the list of TargetSslProxy resources available to the specified 100 * project. (targetSslProxies.listTargetSslProxies) 101 * 102 * @param string $project Project ID for this request. 103 * @param array $optParams Optional parameters. 104 * 105 * @opt_param string filter A filter expression that filters resources listed in 106 * the response. The expression must specify the field name, a comparison 107 * operator, and the value that you want to use for filtering. The value must be 108 * a string, a number, or a boolean. The comparison operator must be either =, 109 * !=, >, or <. 110 * 111 * For example, if you are filtering Compute Engine instances, you can exclude 112 * instances named example-instance by specifying name != example-instance. 113 * 114 * You can also filter nested fields. For example, you could specify 115 * scheduling.automaticRestart = false to include instances only if they are not 116 * scheduled for automatic restarts. You can use filtering on nested fields to 117 * filter based on resource labels. 118 * 119 * To filter on multiple expressions, provide each separate expression within 120 * parentheses. For example, (scheduling.automaticRestart = true) (cpuPlatform = 121 * "Intel Skylake"). By default, each expression is an AND expression. However, 122 * you can include AND and OR expressions explicitly. For example, (cpuPlatform 123 * = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND 124 * (scheduling.automaticRestart = true). 125 * @opt_param string maxResults The maximum number of results per page that 126 * should be returned. If the number of available results is larger than 127 * maxResults, Compute Engine returns a nextPageToken that can be used to get 128 * the next page of results in subsequent list requests. Acceptable values are 0 129 * to 500, inclusive. (Default: 500) 130 * @opt_param string orderBy Sorts list results by a certain order. By default, 131 * results are returned in alphanumerical order based on the resource name. 132 * 133 * You can also sort results in descending order based on the creation timestamp 134 * using orderBy="creationTimestamp desc". This sorts results based on the 135 * creationTimestamp field in reverse chronological order (newest result first). 136 * Use this to sort resources like operations so that the newest operation is 137 * returned first. 138 * 139 * Currently, only sorting by name or creationTimestamp desc is supported. 140 * @opt_param string pageToken Specifies a page token to use. Set pageToken to 141 * the nextPageToken returned by a previous list request to get the next page of 142 * results. 143 * @return Google_Service_Compute_TargetSslProxyList 144 */ 145 public function listTargetSslProxies($project, $optParams = array()) 146 { 147 $params = array('project' => $project); 148 $params = array_merge($params, $optParams); 149 return $this->call('list', array($params), "Google_Service_Compute_TargetSslProxyList"); 150 } 151 /** 152 * Changes the BackendService for TargetSslProxy. 153 * (targetSslProxies.setBackendService) 154 * 155 * @param string $project Project ID for this request. 156 * @param string $targetSslProxy Name of the TargetSslProxy resource whose 157 * BackendService resource is to be set. 158 * @param Google_Service_Compute_TargetSslProxiesSetBackendServiceRequest $postBody 159 * @param array $optParams Optional parameters. 160 * 161 * @opt_param string requestId An optional request ID to identify requests. 162 * Specify a unique request ID so that if you must retry your request, the 163 * server will know to ignore the request if it has already been completed. 164 * 165 * For example, consider a situation where you make an initial request and the 166 * request times out. If you make the request again with the same request ID, 167 * the server can check if original operation with the same request ID was 168 * received, and if so, will ignore the second request. This prevents clients 169 * from accidentally creating duplicate commitments. 170 * 171 * The request ID must be a valid UUID with the exception that zero UUID is not 172 * supported (00000000-0000-0000-0000-000000000000). 173 * @return Google_Service_Compute_Operation 174 */ 175 public function setBackendService($project, $targetSslProxy, Google_Service_Compute_TargetSslProxiesSetBackendServiceRequest $postBody, $optParams = array()) 176 { 177 $params = array('project' => $project, 'targetSslProxy' => $targetSslProxy, 'postBody' => $postBody); 178 $params = array_merge($params, $optParams); 179 return $this->call('setBackendService', array($params), "Google_Service_Compute_Operation"); 180 } 181 /** 182 * Changes the ProxyHeaderType for TargetSslProxy. 183 * (targetSslProxies.setProxyHeader) 184 * 185 * @param string $project Project ID for this request. 186 * @param string $targetSslProxy Name of the TargetSslProxy resource whose 187 * ProxyHeader is to be set. 188 * @param Google_Service_Compute_TargetSslProxiesSetProxyHeaderRequest $postBody 189 * @param array $optParams Optional parameters. 190 * 191 * @opt_param string requestId An optional request ID to identify requests. 192 * Specify a unique request ID so that if you must retry your request, the 193 * server will know to ignore the request if it has already been completed. 194 * 195 * For example, consider a situation where you make an initial request and the 196 * request times out. If you make the request again with the same request ID, 197 * the server can check if original operation with the same request ID was 198 * received, and if so, will ignore the second request. This prevents clients 199 * from accidentally creating duplicate commitments. 200 * 201 * The request ID must be a valid UUID with the exception that zero UUID is not 202 * supported (00000000-0000-0000-0000-000000000000). 203 * @return Google_Service_Compute_Operation 204 */ 205 public function setProxyHeader($project, $targetSslProxy, Google_Service_Compute_TargetSslProxiesSetProxyHeaderRequest $postBody, $optParams = array()) 206 { 207 $params = array('project' => $project, 'targetSslProxy' => $targetSslProxy, 'postBody' => $postBody); 208 $params = array_merge($params, $optParams); 209 return $this->call('setProxyHeader', array($params), "Google_Service_Compute_Operation"); 210 } 211 /** 212 * Changes SslCertificates for TargetSslProxy. 213 * (targetSslProxies.setSslCertificates) 214 * 215 * @param string $project Project ID for this request. 216 * @param string $targetSslProxy Name of the TargetSslProxy resource whose 217 * SslCertificate resource is to be set. 218 * @param Google_Service_Compute_TargetSslProxiesSetSslCertificatesRequest $postBody 219 * @param array $optParams Optional parameters. 220 * 221 * @opt_param string requestId An optional request ID to identify requests. 222 * Specify a unique request ID so that if you must retry your request, the 223 * server will know to ignore the request if it has already been completed. 224 * 225 * For example, consider a situation where you make an initial request and the 226 * request times out. If you make the request again with the same request ID, 227 * the server can check if original operation with the same request ID was 228 * received, and if so, will ignore the second request. This prevents clients 229 * from accidentally creating duplicate commitments. 230 * 231 * The request ID must be a valid UUID with the exception that zero UUID is not 232 * supported (00000000-0000-0000-0000-000000000000). 233 * @return Google_Service_Compute_Operation 234 */ 235 public function setSslCertificates($project, $targetSslProxy, Google_Service_Compute_TargetSslProxiesSetSslCertificatesRequest $postBody, $optParams = array()) 236 { 237 $params = array('project' => $project, 'targetSslProxy' => $targetSslProxy, 'postBody' => $postBody); 238 $params = array_merge($params, $optParams); 239 return $this->call('setSslCertificates', array($params), "Google_Service_Compute_Operation"); 240 } 241 /** 242 * Sets the SSL policy for TargetSslProxy. The SSL policy specifies the server- 243 * side support for SSL features. This affects connections between clients and 244 * the SSL proxy load balancer. They do not affect the connection between the 245 * load balancer and the backends. (targetSslProxies.setSslPolicy) 246 * 247 * @param string $project Project ID for this request. 248 * @param string $targetSslProxy Name of the TargetSslProxy resource whose SSL 249 * policy is to be set. The name must be 1-63 characters long, and comply with 250 * RFC1035. 251 * @param Google_Service_Compute_SslPolicyReference $postBody 252 * @param array $optParams Optional parameters. 253 * 254 * @opt_param string requestId An optional request ID to identify requests. 255 * Specify a unique request ID so that if you must retry your request, the 256 * server will know to ignore the request if it has already been completed. 257 * 258 * For example, consider a situation where you make an initial request and the 259 * request times out. If you make the request again with the same request ID, 260 * the server can check if original operation with the same request ID was 261 * received, and if so, will ignore the second request. This prevents clients 262 * from accidentally creating duplicate commitments. 263 * 264 * The request ID must be a valid UUID with the exception that zero UUID is not 265 * supported (00000000-0000-0000-0000-000000000000). 266 * @return Google_Service_Compute_Operation 267 */ 268 public function setSslPolicy($project, $targetSslProxy, Google_Service_Compute_SslPolicyReference $postBody, $optParams = array()) 269 { 270 $params = array('project' => $project, 'targetSslProxy' => $targetSslProxy, 'postBody' => $postBody); 271 $params = array_merge($params, $optParams); 272 return $this->call('setSslPolicy', array($params), "Google_Service_Compute_Operation"); 273 } 274} 275