source: vendor/google/apiclient-services/src/Compute/Resource/RegionTargetHttpsProxies.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: 14.4 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\RegionTargetHttpsProxiesSetSslCertificatesRequest;
22use Google\Service\Compute\TargetHttpsProxy;
23use Google\Service\Compute\TargetHttpsProxyList;
24use Google\Service\Compute\UrlMapReference;
25
26/**
27 * The "regionTargetHttpsProxies" collection of methods.
28 * Typical usage is:
29 * <code>
30 * $computeService = new Google\Service\Compute(...);
31 * $regionTargetHttpsProxies = $computeService->regionTargetHttpsProxies;
32 * </code>
33 */
34class RegionTargetHttpsProxies extends \Google\Service\Resource
35{
36 /**
37 * Deletes the specified TargetHttpsProxy resource.
38 * (regionTargetHttpsProxies.delete)
39 *
40 * @param string $project Project ID for this request.
41 * @param string $region Name of the region scoping this request.
42 * @param string $targetHttpsProxy Name of the TargetHttpsProxy resource to
43 * delete.
44 * @param array $optParams Optional parameters.
45 *
46 * @opt_param string requestId An optional request ID to identify requests.
47 * Specify a unique request ID so that if you must retry your request, the
48 * server will know to ignore the request if it has already been completed. For
49 * example, consider a situation where you make an initial request and the
50 * request times out. If you make the request again with the same request ID,
51 * the server can check if original operation with the same request ID was
52 * received, and if so, will ignore the second request. This prevents clients
53 * from accidentally creating duplicate commitments. The request ID must be a
54 * valid UUID with the exception that zero UUID is not supported (
55 * 00000000-0000-0000-0000-000000000000).
56 * @return Operation
57 * @throws \Google\Service\Exception
58 */
59 public function delete($project, $region, $targetHttpsProxy, $optParams = [])
60 {
61 $params = ['project' => $project, 'region' => $region, 'targetHttpsProxy' => $targetHttpsProxy];
62 $params = array_merge($params, $optParams);
63 return $this->call('delete', [$params], Operation::class);
64 }
65 /**
66 * Returns the specified TargetHttpsProxy resource in the specified region.
67 * (regionTargetHttpsProxies.get)
68 *
69 * @param string $project Project ID for this request.
70 * @param string $region Name of the region scoping this request.
71 * @param string $targetHttpsProxy Name of the TargetHttpsProxy resource to
72 * return.
73 * @param array $optParams Optional parameters.
74 * @return TargetHttpsProxy
75 * @throws \Google\Service\Exception
76 */
77 public function get($project, $region, $targetHttpsProxy, $optParams = [])
78 {
79 $params = ['project' => $project, 'region' => $region, 'targetHttpsProxy' => $targetHttpsProxy];
80 $params = array_merge($params, $optParams);
81 return $this->call('get', [$params], TargetHttpsProxy::class);
82 }
83 /**
84 * Creates a TargetHttpsProxy resource in the specified project and region using
85 * the data included in the request. (regionTargetHttpsProxies.insert)
86 *
87 * @param string $project Project ID for this request.
88 * @param string $region Name of the region scoping this request.
89 * @param TargetHttpsProxy $postBody
90 * @param array $optParams Optional parameters.
91 *
92 * @opt_param string requestId An optional request ID to identify requests.
93 * Specify a unique request ID so that if you must retry your request, the
94 * server will know to ignore the request if it has already been completed. For
95 * example, consider a situation where you make an initial request and the
96 * request times out. If you make the request again with the same request ID,
97 * the server can check if original operation with the same request ID was
98 * received, and if so, will ignore the second request. This prevents clients
99 * from accidentally creating duplicate commitments. The request ID must be a
100 * valid UUID with the exception that zero UUID is not supported (
101 * 00000000-0000-0000-0000-000000000000).
102 * @return Operation
103 * @throws \Google\Service\Exception
104 */
105 public function insert($project, $region, TargetHttpsProxy $postBody, $optParams = [])
106 {
107 $params = ['project' => $project, 'region' => $region, 'postBody' => $postBody];
108 $params = array_merge($params, $optParams);
109 return $this->call('insert', [$params], Operation::class);
110 }
111 /**
112 * Retrieves the list of TargetHttpsProxy resources available to the specified
113 * project in the specified region.
114 * (regionTargetHttpsProxies.listRegionTargetHttpsProxies)
115 *
116 * @param string $project Project ID for this request.
117 * @param string $region Name of the region scoping this request.
118 * @param array $optParams Optional parameters.
119 *
120 * @opt_param string filter A filter expression that filters resources listed in
121 * the response. Most Compute resources support two types of filter expressions:
122 * expressions that support regular expressions and expressions that follow API
123 * improvement proposal AIP-160. These two types of filter expressions cannot be
124 * mixed in one request. If you want to use AIP-160, your expression must
125 * specify the field name, an operator, and the value that you want to use for
126 * filtering. The value must be a string, a number, or a boolean. The operator
127 * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you
128 * are filtering Compute Engine instances, you can exclude instances named
129 * `example-instance` by specifying `name != example-instance`. The `:*`
130 * comparison can be used to test whether a key has been defined. For example,
131 * to find all objects with `owner` label use: ``` labels.owner:* ``` You can
132 * also filter nested fields. For example, you could specify
133 * `scheduling.automaticRestart = false` to include instances only if they are
134 * not scheduled for automatic restarts. You can use filtering on nested fields
135 * to filter based on resource labels. To filter on multiple expressions,
136 * provide each separate expression within parentheses. For example: ```
137 * (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By
138 * default, each expression is an `AND` expression. However, you can include
139 * `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel
140 * Skylake") OR (cpuPlatform = "Intel Broadwell") AND
141 * (scheduling.automaticRestart = true) ``` If you want to use a regular
142 * expression, use the `eq` (equal) or `ne` (not equal) operator against a
143 * single un-parenthesized expression with or without quotes or against multiple
144 * parenthesized expressions. Examples: `fieldname eq unquoted literal`
145 * `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"`
146 * `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is
147 * interpreted as a regular expression using Google RE2 library syntax. The
148 * literal value must match the entire field. For example, to filter for
149 * instances that do not end with name "instance", you would use `name ne
150 * .*instance`. You cannot combine constraints on multiple fields using regular
151 * expressions.
152 * @opt_param string maxResults The maximum number of results per page that
153 * should be returned. If the number of available results is larger than
154 * `maxResults`, Compute Engine returns a `nextPageToken` that can be used to
155 * get the next page of results in subsequent list requests. Acceptable values
156 * are `0` to `500`, inclusive. (Default: `500`)
157 * @opt_param string orderBy Sorts list results by a certain order. By default,
158 * results are returned in alphanumerical order based on the resource name. You
159 * can also sort results in descending order based on the creation timestamp
160 * using `orderBy="creationTimestamp desc"`. This sorts results based on the
161 * `creationTimestamp` field in reverse chronological order (newest result
162 * first). Use this to sort resources like operations so that the newest
163 * operation is returned first. Currently, only sorting by `name` or
164 * `creationTimestamp desc` is supported.
165 * @opt_param string pageToken Specifies a page token to use. Set `pageToken` to
166 * the `nextPageToken` returned by a previous list request to get the next page
167 * of results.
168 * @opt_param bool returnPartialSuccess Opt-in for partial success behavior
169 * which provides partial results in case of failure. The default value is
170 * false. For example, when partial success behavior is enabled, aggregatedList
171 * for a single zone scope either returns all resources in the zone or no
172 * resources, with an error code.
173 * @return TargetHttpsProxyList
174 * @throws \Google\Service\Exception
175 */
176 public function listRegionTargetHttpsProxies($project, $region, $optParams = [])
177 {
178 $params = ['project' => $project, 'region' => $region];
179 $params = array_merge($params, $optParams);
180 return $this->call('list', [$params], TargetHttpsProxyList::class);
181 }
182 /**
183 * Patches the specified regional TargetHttpsProxy resource with the data
184 * included in the request. This method supports PATCH semantics and uses JSON
185 * merge patch format and processing rules. (regionTargetHttpsProxies.patch)
186 *
187 * @param string $project Project ID for this request.
188 * @param string $region Name of the region for this request.
189 * @param string $targetHttpsProxy Name of the TargetHttpsProxy resource to
190 * patch.
191 * @param TargetHttpsProxy $postBody
192 * @param array $optParams Optional parameters.
193 *
194 * @opt_param string requestId An optional request ID to identify requests.
195 * Specify a unique request ID so that if you must retry your request, the
196 * server will know to ignore the request if it has already been completed. For
197 * example, consider a situation where you make an initial request and the
198 * request times out. If you make the request again with the same request ID,
199 * the server can check if original operation with the same request ID was
200 * received, and if so, will ignore the second request. This prevents clients
201 * from accidentally creating duplicate commitments. The request ID must be a
202 * valid UUID with the exception that zero UUID is not supported (
203 * 00000000-0000-0000-0000-000000000000).
204 * @return Operation
205 * @throws \Google\Service\Exception
206 */
207 public function patch($project, $region, $targetHttpsProxy, TargetHttpsProxy $postBody, $optParams = [])
208 {
209 $params = ['project' => $project, 'region' => $region, 'targetHttpsProxy' => $targetHttpsProxy, 'postBody' => $postBody];
210 $params = array_merge($params, $optParams);
211 return $this->call('patch', [$params], Operation::class);
212 }
213 /**
214 * Replaces SslCertificates for TargetHttpsProxy.
215 * (regionTargetHttpsProxies.setSslCertificates)
216 *
217 * @param string $project Project ID for this request.
218 * @param string $region Name of the region scoping this request.
219 * @param string $targetHttpsProxy Name of the TargetHttpsProxy resource to set
220 * an SslCertificates resource for.
221 * @param RegionTargetHttpsProxiesSetSslCertificatesRequest $postBody
222 * @param array $optParams Optional parameters.
223 *
224 * @opt_param string requestId An optional request ID to identify requests.
225 * Specify a unique request ID so that if you must retry your request, the
226 * server will know to ignore the request if it has already been completed. For
227 * example, consider a situation where you make an initial request and the
228 * request times out. If you make the request again with the same request ID,
229 * the server can check if original operation with the same request ID was
230 * received, and if so, will ignore the second request. This prevents clients
231 * from accidentally creating duplicate commitments. The request ID must be a
232 * valid UUID with the exception that zero UUID is not supported (
233 * 00000000-0000-0000-0000-000000000000).
234 * @return Operation
235 * @throws \Google\Service\Exception
236 */
237 public function setSslCertificates($project, $region, $targetHttpsProxy, RegionTargetHttpsProxiesSetSslCertificatesRequest $postBody, $optParams = [])
238 {
239 $params = ['project' => $project, 'region' => $region, 'targetHttpsProxy' => $targetHttpsProxy, 'postBody' => $postBody];
240 $params = array_merge($params, $optParams);
241 return $this->call('setSslCertificates', [$params], Operation::class);
242 }
243 /**
244 * Changes the URL map for TargetHttpsProxy.
245 * (regionTargetHttpsProxies.setUrlMap)
246 *
247 * @param string $project Project ID for this request.
248 * @param string $region Name of the region scoping this request.
249 * @param string $targetHttpsProxy Name of the TargetHttpsProxy to set a URL map
250 * for.
251 * @param UrlMapReference $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. For
257 * example, consider a situation where you make an initial request and the
258 * request times out. If you make the request again with the same request ID,
259 * the server can check if original operation with the same request ID was
260 * received, and if so, will ignore the second request. This prevents clients
261 * from accidentally creating duplicate commitments. The request ID must be a
262 * valid UUID with the exception that zero UUID is not supported (
263 * 00000000-0000-0000-0000-000000000000).
264 * @return Operation
265 * @throws \Google\Service\Exception
266 */
267 public function setUrlMap($project, $region, $targetHttpsProxy, UrlMapReference $postBody, $optParams = [])
268 {
269 $params = ['project' => $project, 'region' => $region, 'targetHttpsProxy' => $targetHttpsProxy, 'postBody' => $postBody];
270 $params = array_merge($params, $optParams);
271 return $this->call('setUrlMap', [$params], Operation::class);
272 }
273}
274
275// Adding a class alias for backwards compatibility with the previous class name.
276class_alias(RegionTargetHttpsProxies::class, 'Google_Service_Compute_Resource_RegionTargetHttpsProxies');
Note: See TracBrowser for help on using the repository browser.