source: vendor/google/apiclient-services/src/Compute/Resource/TargetSslProxies.php@ f9c482b

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

Upload new project files

  • Property mode set to 100644
File size: 17.1 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\TargetSslProxiesSetBackendServiceRequest;
23use Google\Service\Compute\TargetSslProxiesSetCertificateMapRequest;
24use Google\Service\Compute\TargetSslProxiesSetProxyHeaderRequest;
25use Google\Service\Compute\TargetSslProxiesSetSslCertificatesRequest;
26use Google\Service\Compute\TargetSslProxy;
27use Google\Service\Compute\TargetSslProxyList;
28
29/**
30 * The "targetSslProxies" collection of methods.
31 * Typical usage is:
32 * <code>
33 * $computeService = new Google\Service\Compute(...);
34 * $targetSslProxies = $computeService->targetSslProxies;
35 * </code>
36 */
37class TargetSslProxies extends \Google\Service\Resource
38{
39 /**
40 * Deletes the specified TargetSslProxy resource. (targetSslProxies.delete)
41 *
42 * @param string $project Project ID for this request.
43 * @param string $targetSslProxy Name of the TargetSslProxy resource to 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, $targetSslProxy, $optParams = [])
60 {
61 $params = ['project' => $project, 'targetSslProxy' => $targetSslProxy];
62 $params = array_merge($params, $optParams);
63 return $this->call('delete', [$params], Operation::class);
64 }
65 /**
66 * Returns the specified TargetSslProxy resource. (targetSslProxies.get)
67 *
68 * @param string $project Project ID for this request.
69 * @param string $targetSslProxy Name of the TargetSslProxy resource to return.
70 * @param array $optParams Optional parameters.
71 * @return TargetSslProxy
72 * @throws \Google\Service\Exception
73 */
74 public function get($project, $targetSslProxy, $optParams = [])
75 {
76 $params = ['project' => $project, 'targetSslProxy' => $targetSslProxy];
77 $params = array_merge($params, $optParams);
78 return $this->call('get', [$params], TargetSslProxy::class);
79 }
80 /**
81 * Creates a TargetSslProxy resource in the specified project using the data
82 * included in the request. (targetSslProxies.insert)
83 *
84 * @param string $project Project ID for this request.
85 * @param TargetSslProxy $postBody
86 * @param array $optParams Optional parameters.
87 *
88 * @opt_param string requestId An optional request ID to identify requests.
89 * Specify a unique request ID so that if you must retry your request, the
90 * server will know to ignore the request if it has already been completed. For
91 * example, consider a situation where you make an initial request and the
92 * request times out. If you make the request again with the same request ID,
93 * the server can check if original operation with the same request ID was
94 * received, and if so, will ignore the second request. This prevents clients
95 * from accidentally creating duplicate commitments. The request ID must be a
96 * valid UUID with the exception that zero UUID is not supported (
97 * 00000000-0000-0000-0000-000000000000).
98 * @return Operation
99 * @throws \Google\Service\Exception
100 */
101 public function insert($project, TargetSslProxy $postBody, $optParams = [])
102 {
103 $params = ['project' => $project, 'postBody' => $postBody];
104 $params = array_merge($params, $optParams);
105 return $this->call('insert', [$params], Operation::class);
106 }
107 /**
108 * Retrieves the list of TargetSslProxy resources available to the specified
109 * project. (targetSslProxies.listTargetSslProxies)
110 *
111 * @param string $project Project ID for this request.
112 * @param array $optParams Optional parameters.
113 *
114 * @opt_param string filter A filter expression that filters resources listed in
115 * the response. Most Compute resources support two types of filter expressions:
116 * expressions that support regular expressions and expressions that follow API
117 * improvement proposal AIP-160. These two types of filter expressions cannot be
118 * mixed in one request. If you want to use AIP-160, your expression must
119 * specify the field name, an operator, and the value that you want to use for
120 * filtering. The value must be a string, a number, or a boolean. The operator
121 * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you
122 * are filtering Compute Engine instances, you can exclude instances named
123 * `example-instance` by specifying `name != example-instance`. The `:*`
124 * comparison can be used to test whether a key has been defined. For example,
125 * to find all objects with `owner` label use: ``` labels.owner:* ``` You can
126 * also filter nested fields. For example, you could specify
127 * `scheduling.automaticRestart = false` to include instances only if they are
128 * not scheduled for automatic restarts. You can use filtering on nested fields
129 * to filter based on resource labels. To filter on multiple expressions,
130 * provide each separate expression within parentheses. For example: ```
131 * (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By
132 * default, each expression is an `AND` expression. However, you can include
133 * `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel
134 * Skylake") OR (cpuPlatform = "Intel Broadwell") AND
135 * (scheduling.automaticRestart = true) ``` If you want to use a regular
136 * expression, use the `eq` (equal) or `ne` (not equal) operator against a
137 * single un-parenthesized expression with or without quotes or against multiple
138 * parenthesized expressions. Examples: `fieldname eq unquoted literal`
139 * `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"`
140 * `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is
141 * interpreted as a regular expression using Google RE2 library syntax. The
142 * literal value must match the entire field. For example, to filter for
143 * instances that do not end with name "instance", you would use `name ne
144 * .*instance`. You cannot combine constraints on multiple fields using regular
145 * expressions.
146 * @opt_param string maxResults The maximum number of results per page that
147 * should be returned. If the number of available results is larger than
148 * `maxResults`, Compute Engine returns a `nextPageToken` that can be used to
149 * get the next page of results in subsequent list requests. Acceptable values
150 * are `0` to `500`, inclusive. (Default: `500`)
151 * @opt_param string orderBy Sorts list results by a certain order. By default,
152 * results are returned in alphanumerical order based on the resource name. You
153 * can also sort results in descending order based on the creation timestamp
154 * using `orderBy="creationTimestamp desc"`. This sorts results based on the
155 * `creationTimestamp` field in reverse chronological order (newest result
156 * first). Use this to sort resources like operations so that the newest
157 * operation is returned first. Currently, only sorting by `name` or
158 * `creationTimestamp desc` is supported.
159 * @opt_param string pageToken Specifies a page token to use. Set `pageToken` to
160 * the `nextPageToken` returned by a previous list request to get the next page
161 * of results.
162 * @opt_param bool returnPartialSuccess Opt-in for partial success behavior
163 * which provides partial results in case of failure. The default value is
164 * false. For example, when partial success behavior is enabled, aggregatedList
165 * for a single zone scope either returns all resources in the zone or no
166 * resources, with an error code.
167 * @return TargetSslProxyList
168 * @throws \Google\Service\Exception
169 */
170 public function listTargetSslProxies($project, $optParams = [])
171 {
172 $params = ['project' => $project];
173 $params = array_merge($params, $optParams);
174 return $this->call('list', [$params], TargetSslProxyList::class);
175 }
176 /**
177 * Changes the BackendService for TargetSslProxy.
178 * (targetSslProxies.setBackendService)
179 *
180 * @param string $project Project ID for this request.
181 * @param string $targetSslProxy Name of the TargetSslProxy resource whose
182 * BackendService resource is to be set.
183 * @param TargetSslProxiesSetBackendServiceRequest $postBody
184 * @param array $optParams Optional parameters.
185 *
186 * @opt_param string requestId An optional request ID to identify requests.
187 * Specify a unique request ID so that if you must retry your request, the
188 * server will know to ignore the request if it has already been completed. For
189 * example, consider a situation where you make an initial request and the
190 * request times out. If you make the request again with the same request ID,
191 * the server can check if original operation with the same request ID was
192 * received, and if so, will ignore the second request. This prevents clients
193 * from accidentally creating duplicate commitments. The request ID must be a
194 * valid UUID with the exception that zero UUID is not supported (
195 * 00000000-0000-0000-0000-000000000000).
196 * @return Operation
197 * @throws \Google\Service\Exception
198 */
199 public function setBackendService($project, $targetSslProxy, TargetSslProxiesSetBackendServiceRequest $postBody, $optParams = [])
200 {
201 $params = ['project' => $project, 'targetSslProxy' => $targetSslProxy, 'postBody' => $postBody];
202 $params = array_merge($params, $optParams);
203 return $this->call('setBackendService', [$params], Operation::class);
204 }
205 /**
206 * Changes the Certificate Map for TargetSslProxy.
207 * (targetSslProxies.setCertificateMap)
208 *
209 * @param string $project Project ID for this request.
210 * @param string $targetSslProxy Name of the TargetSslProxy resource whose
211 * CertificateMap is to be set. The name must be 1-63 characters long, and
212 * comply with RFC1035.
213 * @param TargetSslProxiesSetCertificateMapRequest $postBody
214 * @param array $optParams Optional parameters.
215 *
216 * @opt_param string requestId An optional request ID to identify requests.
217 * Specify a unique request ID so that if you must retry your request, the
218 * server will know to ignore the request if it has already been completed. For
219 * example, consider a situation where you make an initial request and the
220 * request times out. If you make the request again with the same request ID,
221 * the server can check if original operation with the same request ID was
222 * received, and if so, will ignore the second request. This prevents clients
223 * from accidentally creating duplicate commitments. The request ID must be a
224 * valid UUID with the exception that zero UUID is not supported (
225 * 00000000-0000-0000-0000-000000000000).
226 * @return Operation
227 * @throws \Google\Service\Exception
228 */
229 public function setCertificateMap($project, $targetSslProxy, TargetSslProxiesSetCertificateMapRequest $postBody, $optParams = [])
230 {
231 $params = ['project' => $project, 'targetSslProxy' => $targetSslProxy, 'postBody' => $postBody];
232 $params = array_merge($params, $optParams);
233 return $this->call('setCertificateMap', [$params], Operation::class);
234 }
235 /**
236 * Changes the ProxyHeaderType for TargetSslProxy.
237 * (targetSslProxies.setProxyHeader)
238 *
239 * @param string $project Project ID for this request.
240 * @param string $targetSslProxy Name of the TargetSslProxy resource whose
241 * ProxyHeader is to be set.
242 * @param TargetSslProxiesSetProxyHeaderRequest $postBody
243 * @param array $optParams Optional parameters.
244 *
245 * @opt_param string requestId An optional request ID to identify requests.
246 * Specify a unique request ID so that if you must retry your request, the
247 * server will know to ignore the request if it has already been completed. For
248 * example, consider a situation where you make an initial request and the
249 * request times out. If you make the request again with the same request ID,
250 * the server can check if original operation with the same request ID was
251 * received, and if so, will ignore the second request. This prevents clients
252 * from accidentally creating duplicate commitments. The request ID must be a
253 * valid UUID with the exception that zero UUID is not supported (
254 * 00000000-0000-0000-0000-000000000000).
255 * @return Operation
256 * @throws \Google\Service\Exception
257 */
258 public function setProxyHeader($project, $targetSslProxy, TargetSslProxiesSetProxyHeaderRequest $postBody, $optParams = [])
259 {
260 $params = ['project' => $project, 'targetSslProxy' => $targetSslProxy, 'postBody' => $postBody];
261 $params = array_merge($params, $optParams);
262 return $this->call('setProxyHeader', [$params], Operation::class);
263 }
264 /**
265 * Changes SslCertificates for TargetSslProxy.
266 * (targetSslProxies.setSslCertificates)
267 *
268 * @param string $project Project ID for this request.
269 * @param string $targetSslProxy Name of the TargetSslProxy resource whose
270 * SslCertificate resource is to be set.
271 * @param TargetSslProxiesSetSslCertificatesRequest $postBody
272 * @param array $optParams Optional parameters.
273 *
274 * @opt_param string requestId An optional request ID to identify requests.
275 * Specify a unique request ID so that if you must retry your request, the
276 * server will know to ignore the request if it has already been completed. For
277 * example, consider a situation where you make an initial request and the
278 * request times out. If you make the request again with the same request ID,
279 * the server can check if original operation with the same request ID was
280 * received, and if so, will ignore the second request. This prevents clients
281 * from accidentally creating duplicate commitments. The request ID must be a
282 * valid UUID with the exception that zero UUID is not supported (
283 * 00000000-0000-0000-0000-000000000000).
284 * @return Operation
285 * @throws \Google\Service\Exception
286 */
287 public function setSslCertificates($project, $targetSslProxy, TargetSslProxiesSetSslCertificatesRequest $postBody, $optParams = [])
288 {
289 $params = ['project' => $project, 'targetSslProxy' => $targetSslProxy, 'postBody' => $postBody];
290 $params = array_merge($params, $optParams);
291 return $this->call('setSslCertificates', [$params], Operation::class);
292 }
293 /**
294 * Sets the SSL policy for TargetSslProxy. The SSL policy specifies the server-
295 * side support for SSL features. This affects connections between clients and
296 * the load balancer. They do not affect the connection between the load
297 * balancer and the backends. (targetSslProxies.setSslPolicy)
298 *
299 * @param string $project Project ID for this request.
300 * @param string $targetSslProxy Name of the TargetSslProxy resource whose SSL
301 * policy is to be set. The name must be 1-63 characters long, and comply with
302 * RFC1035.
303 * @param SslPolicyReference $postBody
304 * @param array $optParams Optional parameters.
305 *
306 * @opt_param string requestId An optional request ID to identify requests.
307 * Specify a unique request ID so that if you must retry your request, the
308 * server will know to ignore the request if it has already been completed. For
309 * example, consider a situation where you make an initial request and the
310 * request times out. If you make the request again with the same request ID,
311 * the server can check if original operation with the same request ID was
312 * received, and if so, will ignore the second request. This prevents clients
313 * from accidentally creating duplicate commitments. The request ID must be a
314 * valid UUID with the exception that zero UUID is not supported (
315 * 00000000-0000-0000-0000-000000000000).
316 * @return Operation
317 * @throws \Google\Service\Exception
318 */
319 public function setSslPolicy($project, $targetSslProxy, SslPolicyReference $postBody, $optParams = [])
320 {
321 $params = ['project' => $project, 'targetSslProxy' => $targetSslProxy, 'postBody' => $postBody];
322 $params = array_merge($params, $optParams);
323 return $this->call('setSslPolicy', [$params], Operation::class);
324 }
325}
326
327// Adding a class alias for backwards compatibility with the previous class name.
328class_alias(TargetSslProxies::class, 'Google_Service_Compute_Resource_TargetSslProxies');
Note: See TracBrowser for help on using the repository browser.