source: vendor/google/apiclient-services/src/Compute/Resource/TargetHttpsProxies.php

Last change on this file was e3d4e0a, checked in by Vlado 222039 <vlado.popovski@…>, 10 days ago

Upload project files

  • Property mode set to 100644
File size: 24.0 KB
Line 
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
18namespace Google\Service\Compute\Resource;
19
20use Google\Service\Compute\Operation;
21use Google\Service\Compute\SslPolicyReference;
22use Google\Service\Compute\TargetHttpsProxiesSetCertificateMapRequest;
23use Google\Service\Compute\TargetHttpsProxiesSetQuicOverrideRequest;
24use Google\Service\Compute\TargetHttpsProxiesSetSslCertificatesRequest;
25use Google\Service\Compute\TargetHttpsProxy;
26use Google\Service\Compute\TargetHttpsProxyAggregatedList;
27use Google\Service\Compute\TargetHttpsProxyList;
28use Google\Service\Compute\UrlMapReference;
29
30/**
31 * The "targetHttpsProxies" collection of methods.
32 * Typical usage is:
33 * <code>
34 * $computeService = new Google\Service\Compute(...);
35 * $targetHttpsProxies = $computeService->targetHttpsProxies;
36 * </code>
37 */
38class TargetHttpsProxies extends \Google\Service\Resource
39{
40 /**
41 * Retrieves the list of all TargetHttpsProxy resources, regional and global,
42 * available to the specified project. To prevent failure, Google recommends
43 * that you set the `returnPartialSuccess` parameter to `true`.
44 * (targetHttpsProxies.aggregatedList)
45 *
46 * @param string $project Name of the project scoping this request.
47 * @param array $optParams Optional parameters.
48 *
49 * @opt_param string filter A filter expression that filters resources listed in
50 * the response. Most Compute resources support two types of filter expressions:
51 * expressions that support regular expressions and expressions that follow API
52 * improvement proposal AIP-160. These two types of filter expressions cannot be
53 * mixed in one request. If you want to use AIP-160, your expression must
54 * specify the field name, an operator, and the value that you want to use for
55 * filtering. The value must be a string, a number, or a boolean. The operator
56 * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you
57 * are filtering Compute Engine instances, you can exclude instances named
58 * `example-instance` by specifying `name != example-instance`. The `:*`
59 * comparison can be used to test whether a key has been defined. For example,
60 * to find all objects with `owner` label use: ``` labels.owner:* ``` You can
61 * also filter nested fields. For example, you could specify
62 * `scheduling.automaticRestart = false` to include instances only if they are
63 * not scheduled for automatic restarts. You can use filtering on nested fields
64 * to filter based on resource labels. To filter on multiple expressions,
65 * provide each separate expression within parentheses. For example: ```
66 * (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By
67 * default, each expression is an `AND` expression. However, you can include
68 * `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel
69 * Skylake") OR (cpuPlatform = "Intel Broadwell") AND
70 * (scheduling.automaticRestart = true) ``` If you want to use a regular
71 * expression, use the `eq` (equal) or `ne` (not equal) operator against a
72 * single un-parenthesized expression with or without quotes or against multiple
73 * parenthesized expressions. Examples: `fieldname eq unquoted literal`
74 * `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"`
75 * `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is
76 * interpreted as a regular expression using Google RE2 library syntax. The
77 * literal value must match the entire field. For example, to filter for
78 * instances that do not end with name "instance", you would use `name ne
79 * .*instance`. You cannot combine constraints on multiple fields using regular
80 * expressions.
81 * @opt_param bool includeAllScopes Indicates whether every visible scope for
82 * each scope type (zone, region, global) should be included in the response.
83 * For new resource types added after this field, the flag has no effect as new
84 * resource types will always include every visible scope for each scope type in
85 * response. For resource types which predate this field, if this flag is
86 * omitted or false, only scopes of the scope types where the resource type is
87 * expected to be found will be included.
88 * @opt_param string maxResults The maximum number of results per page that
89 * should be returned. If the number of available results is larger than
90 * `maxResults`, Compute Engine returns a `nextPageToken` that can be used to
91 * get the next page of results in subsequent list requests. Acceptable values
92 * are `0` to `500`, inclusive. (Default: `500`)
93 * @opt_param string orderBy Sorts list results by a certain order. By default,
94 * results are returned in alphanumerical order based on the resource name. You
95 * can also sort results in descending order based on the creation timestamp
96 * using `orderBy="creationTimestamp desc"`. This sorts results based on the
97 * `creationTimestamp` field in reverse chronological order (newest result
98 * first). Use this to sort resources like operations so that the newest
99 * operation is returned first. Currently, only sorting by `name` or
100 * `creationTimestamp desc` is supported.
101 * @opt_param string pageToken Specifies a page token to use. Set `pageToken` to
102 * the `nextPageToken` returned by a previous list request to get the next page
103 * of results.
104 * @opt_param bool returnPartialSuccess Opt-in for partial success behavior
105 * which provides partial results in case of failure. The default value is
106 * false. For example, when partial success behavior is enabled, aggregatedList
107 * for a single zone scope either returns all resources in the zone or no
108 * resources, with an error code.
109 * @opt_param string serviceProjectNumber The Shared VPC service project id or
110 * service project number for which aggregated list request is invoked for
111 * subnetworks list-usable api.
112 * @return TargetHttpsProxyAggregatedList
113 * @throws \Google\Service\Exception
114 */
115 public function aggregatedList($project, $optParams = [])
116 {
117 $params = ['project' => $project];
118 $params = array_merge($params, $optParams);
119 return $this->call('aggregatedList', [$params], TargetHttpsProxyAggregatedList::class);
120 }
121 /**
122 * Deletes the specified TargetHttpsProxy resource. (targetHttpsProxies.delete)
123 *
124 * @param string $project Project ID for this request.
125 * @param string $targetHttpsProxy Name of the TargetHttpsProxy resource to
126 * delete.
127 * @param array $optParams Optional parameters.
128 *
129 * @opt_param string requestId An optional request ID to identify requests.
130 * Specify a unique request ID so that if you must retry your request, the
131 * server will know to ignore the request if it has already been completed. For
132 * example, consider a situation where you make an initial request and the
133 * request times out. If you make the request again with the same request ID,
134 * the server can check if original operation with the same request ID was
135 * received, and if so, will ignore the second request. This prevents clients
136 * from accidentally creating duplicate commitments. The request ID must be a
137 * valid UUID with the exception that zero UUID is not supported (
138 * 00000000-0000-0000-0000-000000000000).
139 * @return Operation
140 * @throws \Google\Service\Exception
141 */
142 public function delete($project, $targetHttpsProxy, $optParams = [])
143 {
144 $params = ['project' => $project, 'targetHttpsProxy' => $targetHttpsProxy];
145 $params = array_merge($params, $optParams);
146 return $this->call('delete', [$params], Operation::class);
147 }
148 /**
149 * Returns the specified TargetHttpsProxy resource. (targetHttpsProxies.get)
150 *
151 * @param string $project Project ID for this request.
152 * @param string $targetHttpsProxy Name of the TargetHttpsProxy resource to
153 * return.
154 * @param array $optParams Optional parameters.
155 * @return TargetHttpsProxy
156 * @throws \Google\Service\Exception
157 */
158 public function get($project, $targetHttpsProxy, $optParams = [])
159 {
160 $params = ['project' => $project, 'targetHttpsProxy' => $targetHttpsProxy];
161 $params = array_merge($params, $optParams);
162 return $this->call('get', [$params], TargetHttpsProxy::class);
163 }
164 /**
165 * Creates a TargetHttpsProxy resource in the specified project using the data
166 * included in the request. (targetHttpsProxies.insert)
167 *
168 * @param string $project Project ID for this request.
169 * @param TargetHttpsProxy $postBody
170 * @param array $optParams Optional parameters.
171 *
172 * @opt_param string requestId An optional request ID to identify requests.
173 * Specify a unique request ID so that if you must retry your request, the
174 * server will know to ignore the request if it has already been completed. For
175 * example, consider a situation where you make an initial request and the
176 * request times out. If you make the request again with the same request ID,
177 * the server can check if original operation with the same request ID was
178 * received, and if so, will ignore the second request. This prevents clients
179 * from accidentally creating duplicate commitments. The request ID must be a
180 * valid UUID with the exception that zero UUID is not supported (
181 * 00000000-0000-0000-0000-000000000000).
182 * @return Operation
183 * @throws \Google\Service\Exception
184 */
185 public function insert($project, TargetHttpsProxy $postBody, $optParams = [])
186 {
187 $params = ['project' => $project, 'postBody' => $postBody];
188 $params = array_merge($params, $optParams);
189 return $this->call('insert', [$params], Operation::class);
190 }
191 /**
192 * Retrieves the list of TargetHttpsProxy resources available to the specified
193 * project. (targetHttpsProxies.listTargetHttpsProxies)
194 *
195 * @param string $project Project ID for this request.
196 * @param array $optParams Optional parameters.
197 *
198 * @opt_param string filter A filter expression that filters resources listed in
199 * the response. Most Compute resources support two types of filter expressions:
200 * expressions that support regular expressions and expressions that follow API
201 * improvement proposal AIP-160. These two types of filter expressions cannot be
202 * mixed in one request. If you want to use AIP-160, your expression must
203 * specify the field name, an operator, and the value that you want to use for
204 * filtering. The value must be a string, a number, or a boolean. The operator
205 * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you
206 * are filtering Compute Engine instances, you can exclude instances named
207 * `example-instance` by specifying `name != example-instance`. The `:*`
208 * comparison can be used to test whether a key has been defined. For example,
209 * to find all objects with `owner` label use: ``` labels.owner:* ``` You can
210 * also filter nested fields. For example, you could specify
211 * `scheduling.automaticRestart = false` to include instances only if they are
212 * not scheduled for automatic restarts. You can use filtering on nested fields
213 * to filter based on resource labels. To filter on multiple expressions,
214 * provide each separate expression within parentheses. For example: ```
215 * (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By
216 * default, each expression is an `AND` expression. However, you can include
217 * `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel
218 * Skylake") OR (cpuPlatform = "Intel Broadwell") AND
219 * (scheduling.automaticRestart = true) ``` If you want to use a regular
220 * expression, use the `eq` (equal) or `ne` (not equal) operator against a
221 * single un-parenthesized expression with or without quotes or against multiple
222 * parenthesized expressions. Examples: `fieldname eq unquoted literal`
223 * `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"`
224 * `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is
225 * interpreted as a regular expression using Google RE2 library syntax. The
226 * literal value must match the entire field. For example, to filter for
227 * instances that do not end with name "instance", you would use `name ne
228 * .*instance`. You cannot combine constraints on multiple fields using regular
229 * expressions.
230 * @opt_param string maxResults The maximum number of results per page that
231 * should be returned. If the number of available results is larger than
232 * `maxResults`, Compute Engine returns a `nextPageToken` that can be used to
233 * get the next page of results in subsequent list requests. Acceptable values
234 * are `0` to `500`, inclusive. (Default: `500`)
235 * @opt_param string orderBy Sorts list results by a certain order. By default,
236 * results are returned in alphanumerical order based on the resource name. You
237 * can also sort results in descending order based on the creation timestamp
238 * using `orderBy="creationTimestamp desc"`. This sorts results based on the
239 * `creationTimestamp` field in reverse chronological order (newest result
240 * first). Use this to sort resources like operations so that the newest
241 * operation is returned first. Currently, only sorting by `name` or
242 * `creationTimestamp desc` is supported.
243 * @opt_param string pageToken Specifies a page token to use. Set `pageToken` to
244 * the `nextPageToken` returned by a previous list request to get the next page
245 * of results.
246 * @opt_param bool returnPartialSuccess Opt-in for partial success behavior
247 * which provides partial results in case of failure. The default value is
248 * false. For example, when partial success behavior is enabled, aggregatedList
249 * for a single zone scope either returns all resources in the zone or no
250 * resources, with an error code.
251 * @return TargetHttpsProxyList
252 * @throws \Google\Service\Exception
253 */
254 public function listTargetHttpsProxies($project, $optParams = [])
255 {
256 $params = ['project' => $project];
257 $params = array_merge($params, $optParams);
258 return $this->call('list', [$params], TargetHttpsProxyList::class);
259 }
260 /**
261 * Patches the specified TargetHttpsProxy resource with the data included in the
262 * request. This method supports PATCH semantics and uses JSON merge patch
263 * format and processing rules. (targetHttpsProxies.patch)
264 *
265 * @param string $project Project ID for this request.
266 * @param string $targetHttpsProxy Name of the TargetHttpsProxy resource to
267 * patch.
268 * @param TargetHttpsProxy $postBody
269 * @param array $optParams Optional parameters.
270 *
271 * @opt_param string requestId An optional request ID to identify requests.
272 * Specify a unique request ID so that if you must retry your request, the
273 * server will know to ignore the request if it has already been completed. For
274 * example, consider a situation where you make an initial request and the
275 * request times out. If you make the request again with the same request ID,
276 * the server can check if original operation with the same request ID was
277 * received, and if so, will ignore the second request. This prevents clients
278 * from accidentally creating duplicate commitments. The request ID must be a
279 * valid UUID with the exception that zero UUID is not supported (
280 * 00000000-0000-0000-0000-000000000000).
281 * @return Operation
282 * @throws \Google\Service\Exception
283 */
284 public function patch($project, $targetHttpsProxy, TargetHttpsProxy $postBody, $optParams = [])
285 {
286 $params = ['project' => $project, 'targetHttpsProxy' => $targetHttpsProxy, 'postBody' => $postBody];
287 $params = array_merge($params, $optParams);
288 return $this->call('patch', [$params], Operation::class);
289 }
290 /**
291 * Changes the Certificate Map for TargetHttpsProxy.
292 * (targetHttpsProxies.setCertificateMap)
293 *
294 * @param string $project Project ID for this request.
295 * @param string $targetHttpsProxy Name of the TargetHttpsProxy resource whose
296 * CertificateMap is to be set. The name must be 1-63 characters long, and
297 * comply with RFC1035.
298 * @param TargetHttpsProxiesSetCertificateMapRequest $postBody
299 * @param array $optParams Optional parameters.
300 *
301 * @opt_param string requestId An optional request ID to identify requests.
302 * Specify a unique request ID so that if you must retry your request, the
303 * server will know to ignore the request if it has already been completed. For
304 * example, consider a situation where you make an initial request and the
305 * request times out. If you make the request again with the same request ID,
306 * the server can check if original operation with the same request ID was
307 * received, and if so, will ignore the second request. This prevents clients
308 * from accidentally creating duplicate commitments. The request ID must be a
309 * valid UUID with the exception that zero UUID is not supported (
310 * 00000000-0000-0000-0000-000000000000).
311 * @return Operation
312 * @throws \Google\Service\Exception
313 */
314 public function setCertificateMap($project, $targetHttpsProxy, TargetHttpsProxiesSetCertificateMapRequest $postBody, $optParams = [])
315 {
316 $params = ['project' => $project, 'targetHttpsProxy' => $targetHttpsProxy, 'postBody' => $postBody];
317 $params = array_merge($params, $optParams);
318 return $this->call('setCertificateMap', [$params], Operation::class);
319 }
320 /**
321 * Sets the QUIC override policy for TargetHttpsProxy.
322 * (targetHttpsProxies.setQuicOverride)
323 *
324 * @param string $project Project ID for this request.
325 * @param string $targetHttpsProxy Name of the TargetHttpsProxy resource to set
326 * the QUIC override policy for. The name should conform to RFC1035.
327 * @param TargetHttpsProxiesSetQuicOverrideRequest $postBody
328 * @param array $optParams Optional parameters.
329 *
330 * @opt_param string requestId An optional request ID to identify requests.
331 * Specify a unique request ID so that if you must retry your request, the
332 * server will know to ignore the request if it has already been completed. For
333 * example, consider a situation where you make an initial request and the
334 * request times out. If you make the request again with the same request ID,
335 * the server can check if original operation with the same request ID was
336 * received, and if so, will ignore the second request. This prevents clients
337 * from accidentally creating duplicate commitments. The request ID must be a
338 * valid UUID with the exception that zero UUID is not supported (
339 * 00000000-0000-0000-0000-000000000000).
340 * @return Operation
341 * @throws \Google\Service\Exception
342 */
343 public function setQuicOverride($project, $targetHttpsProxy, TargetHttpsProxiesSetQuicOverrideRequest $postBody, $optParams = [])
344 {
345 $params = ['project' => $project, 'targetHttpsProxy' => $targetHttpsProxy, 'postBody' => $postBody];
346 $params = array_merge($params, $optParams);
347 return $this->call('setQuicOverride', [$params], Operation::class);
348 }
349 /**
350 * Replaces SslCertificates for TargetHttpsProxy.
351 * (targetHttpsProxies.setSslCertificates)
352 *
353 * @param string $project Project ID for this request.
354 * @param string $targetHttpsProxy Name of the TargetHttpsProxy resource to set
355 * an SslCertificates resource for.
356 * @param TargetHttpsProxiesSetSslCertificatesRequest $postBody
357 * @param array $optParams Optional parameters.
358 *
359 * @opt_param string requestId An optional request ID to identify requests.
360 * Specify a unique request ID so that if you must retry your request, the
361 * server will know to ignore the request if it has already been completed. For
362 * example, consider a situation where you make an initial request and the
363 * request times out. If you make the request again with the same request ID,
364 * the server can check if original operation with the same request ID was
365 * received, and if so, will ignore the second request. This prevents clients
366 * from accidentally creating duplicate commitments. The request ID must be a
367 * valid UUID with the exception that zero UUID is not supported (
368 * 00000000-0000-0000-0000-000000000000).
369 * @return Operation
370 * @throws \Google\Service\Exception
371 */
372 public function setSslCertificates($project, $targetHttpsProxy, TargetHttpsProxiesSetSslCertificatesRequest $postBody, $optParams = [])
373 {
374 $params = ['project' => $project, 'targetHttpsProxy' => $targetHttpsProxy, 'postBody' => $postBody];
375 $params = array_merge($params, $optParams);
376 return $this->call('setSslCertificates', [$params], Operation::class);
377 }
378 /**
379 * Sets the SSL policy for TargetHttpsProxy. The SSL policy specifies the
380 * server-side support for SSL features. This affects connections between
381 * clients and the HTTPS proxy load balancer. They do not affect the connection
382 * between the load balancer and the backends. (targetHttpsProxies.setSslPolicy)
383 *
384 * @param string $project Project ID for this request.
385 * @param string $targetHttpsProxy Name of the TargetHttpsProxy resource whose
386 * SSL policy is to be set. The name must be 1-63 characters long, and comply
387 * with RFC1035.
388 * @param SslPolicyReference $postBody
389 * @param array $optParams Optional parameters.
390 *
391 * @opt_param string requestId An optional request ID to identify requests.
392 * Specify a unique request ID so that if you must retry your request, the
393 * server will know to ignore the request if it has already been completed. For
394 * example, consider a situation where you make an initial request and the
395 * request times out. If you make the request again with the same request ID,
396 * the server can check if original operation with the same request ID was
397 * received, and if so, will ignore the second request. This prevents clients
398 * from accidentally creating duplicate commitments. The request ID must be a
399 * valid UUID with the exception that zero UUID is not supported (
400 * 00000000-0000-0000-0000-000000000000).
401 * @return Operation
402 * @throws \Google\Service\Exception
403 */
404 public function setSslPolicy($project, $targetHttpsProxy, SslPolicyReference $postBody, $optParams = [])
405 {
406 $params = ['project' => $project, 'targetHttpsProxy' => $targetHttpsProxy, 'postBody' => $postBody];
407 $params = array_merge($params, $optParams);
408 return $this->call('setSslPolicy', [$params], Operation::class);
409 }
410 /**
411 * Changes the URL map for TargetHttpsProxy. (targetHttpsProxies.setUrlMap)
412 *
413 * @param string $project Project ID for this request.
414 * @param string $targetHttpsProxy Name of the TargetHttpsProxy resource whose
415 * URL map is to be set.
416 * @param UrlMapReference $postBody
417 * @param array $optParams Optional parameters.
418 *
419 * @opt_param string requestId An optional request ID to identify requests.
420 * Specify a unique request ID so that if you must retry your request, the
421 * server will know to ignore the request if it has already been completed. For
422 * example, consider a situation where you make an initial request and the
423 * request times out. If you make the request again with the same request ID,
424 * the server can check if original operation with the same request ID was
425 * received, and if so, will ignore the second request. This prevents clients
426 * from accidentally creating duplicate commitments. The request ID must be a
427 * valid UUID with the exception that zero UUID is not supported (
428 * 00000000-0000-0000-0000-000000000000).
429 * @return Operation
430 * @throws \Google\Service\Exception
431 */
432 public function setUrlMap($project, $targetHttpsProxy, UrlMapReference $postBody, $optParams = [])
433 {
434 $params = ['project' => $project, 'targetHttpsProxy' => $targetHttpsProxy, 'postBody' => $postBody];
435 $params = array_merge($params, $optParams);
436 return $this->call('setUrlMap', [$params], Operation::class);
437 }
438}
439
440// Adding a class alias for backwards compatibility with the previous class name.
441class_alias(TargetHttpsProxies::class, 'Google_Service_Compute_Resource_TargetHttpsProxies');
Note: See TracBrowser for help on using the repository browser.