source: vendor/google/apiclient-services/src/Compute/Resource/RegionDisks.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: 28.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\BulkInsertDiskResource;
21use Google\Service\Compute\Disk;
22use Google\Service\Compute\DiskList;
23use Google\Service\Compute\DisksStopGroupAsyncReplicationResource;
24use Google\Service\Compute\Operation;
25use Google\Service\Compute\Policy;
26use Google\Service\Compute\RegionDisksAddResourcePoliciesRequest;
27use Google\Service\Compute\RegionDisksRemoveResourcePoliciesRequest;
28use Google\Service\Compute\RegionDisksResizeRequest;
29use Google\Service\Compute\RegionDisksStartAsyncReplicationRequest;
30use Google\Service\Compute\RegionSetLabelsRequest;
31use Google\Service\Compute\RegionSetPolicyRequest;
32use Google\Service\Compute\Snapshot;
33use Google\Service\Compute\TestPermissionsRequest;
34use Google\Service\Compute\TestPermissionsResponse;
35
36/**
37 * The "regionDisks" collection of methods.
38 * Typical usage is:
39 * <code>
40 * $computeService = new Google\Service\Compute(...);
41 * $regionDisks = $computeService->regionDisks;
42 * </code>
43 */
44class RegionDisks extends \Google\Service\Resource
45{
46 /**
47 * Adds existing resource policies to a regional disk. You can only add one
48 * policy which will be applied to this disk for scheduling snapshot creation.
49 * (regionDisks.addResourcePolicies)
50 *
51 * @param string $project Project ID for this request.
52 * @param string $region The name of the region for this request.
53 * @param string $disk The disk name for this request.
54 * @param RegionDisksAddResourcePoliciesRequest $postBody
55 * @param array $optParams Optional parameters.
56 *
57 * @opt_param string requestId An optional request ID to identify requests.
58 * Specify a unique request ID so that if you must retry your request, the
59 * server will know to ignore the request if it has already been completed. For
60 * example, consider a situation where you make an initial request and the
61 * request times out. If you make the request again with the same request ID,
62 * the server can check if original operation with the same request ID was
63 * received, and if so, will ignore the second request. This prevents clients
64 * from accidentally creating duplicate commitments. The request ID must be a
65 * valid UUID with the exception that zero UUID is not supported (
66 * 00000000-0000-0000-0000-000000000000).
67 * @return Operation
68 * @throws \Google\Service\Exception
69 */
70 public function addResourcePolicies($project, $region, $disk, RegionDisksAddResourcePoliciesRequest $postBody, $optParams = [])
71 {
72 $params = ['project' => $project, 'region' => $region, 'disk' => $disk, 'postBody' => $postBody];
73 $params = array_merge($params, $optParams);
74 return $this->call('addResourcePolicies', [$params], Operation::class);
75 }
76 /**
77 * Bulk create a set of disks. (regionDisks.bulkInsert)
78 *
79 * @param string $project Project ID for this request.
80 * @param string $region The name of the region for this request.
81 * @param BulkInsertDiskResource $postBody
82 * @param array $optParams Optional parameters.
83 *
84 * @opt_param string requestId An optional request ID to identify requests.
85 * Specify a unique request ID so that if you must retry your request, the
86 * server will know to ignore the request if it has already been completed. For
87 * example, consider a situation where you make an initial request and the
88 * request times out. If you make the request again with the same request ID,
89 * the server can check if original operation with the same request ID was
90 * received, and if so, will ignore the second request. This prevents clients
91 * from accidentally creating duplicate commitments. The request ID must be a
92 * valid UUID with the exception that zero UUID is not supported (
93 * 00000000-0000-0000-0000-000000000000).
94 * @return Operation
95 * @throws \Google\Service\Exception
96 */
97 public function bulkInsert($project, $region, BulkInsertDiskResource $postBody, $optParams = [])
98 {
99 $params = ['project' => $project, 'region' => $region, 'postBody' => $postBody];
100 $params = array_merge($params, $optParams);
101 return $this->call('bulkInsert', [$params], Operation::class);
102 }
103 /**
104 * Creates a snapshot of a specified persistent disk. For regular snapshot
105 * creation, consider using snapshots.insert instead, as that method supports
106 * more features, such as creating snapshots in a project different from the
107 * source disk project. (regionDisks.createSnapshot)
108 *
109 * @param string $project Project ID for this request.
110 * @param string $region Name of the region for this request.
111 * @param string $disk Name of the regional persistent disk to snapshot.
112 * @param Snapshot $postBody
113 * @param array $optParams Optional parameters.
114 *
115 * @opt_param string requestId An optional request ID to identify requests.
116 * Specify a unique request ID so that if you must retry your request, the
117 * server will know to ignore the request if it has already been completed. For
118 * example, consider a situation where you make an initial request and the
119 * request times out. If you make the request again with the same request ID,
120 * the server can check if original operation with the same request ID was
121 * received, and if so, will ignore the second request. This prevents clients
122 * from accidentally creating duplicate commitments. The request ID must be a
123 * valid UUID with the exception that zero UUID is not supported (
124 * 00000000-0000-0000-0000-000000000000).
125 * @return Operation
126 * @throws \Google\Service\Exception
127 */
128 public function createSnapshot($project, $region, $disk, Snapshot $postBody, $optParams = [])
129 {
130 $params = ['project' => $project, 'region' => $region, 'disk' => $disk, 'postBody' => $postBody];
131 $params = array_merge($params, $optParams);
132 return $this->call('createSnapshot', [$params], Operation::class);
133 }
134 /**
135 * Deletes the specified regional persistent disk. Deleting a regional disk
136 * removes all the replicas of its data permanently and is irreversible.
137 * However, deleting a disk does not delete any snapshots previously made from
138 * the disk. You must separately delete snapshots. (regionDisks.delete)
139 *
140 * @param string $project Project ID for this request.
141 * @param string $region Name of the region for this request.
142 * @param string $disk Name of the regional persistent disk to delete.
143 * @param array $optParams Optional parameters.
144 *
145 * @opt_param string requestId An optional request ID to identify requests.
146 * Specify a unique request ID so that if you must retry your request, the
147 * server will know to ignore the request if it has already been completed. For
148 * example, consider a situation where you make an initial request and the
149 * request times out. If you make the request again with the same request ID,
150 * the server can check if original operation with the same request ID was
151 * received, and if so, will ignore the second request. This prevents clients
152 * from accidentally creating duplicate commitments. The request ID must be a
153 * valid UUID with the exception that zero UUID is not supported (
154 * 00000000-0000-0000-0000-000000000000).
155 * @return Operation
156 * @throws \Google\Service\Exception
157 */
158 public function delete($project, $region, $disk, $optParams = [])
159 {
160 $params = ['project' => $project, 'region' => $region, 'disk' => $disk];
161 $params = array_merge($params, $optParams);
162 return $this->call('delete', [$params], Operation::class);
163 }
164 /**
165 * Returns a specified regional persistent disk. (regionDisks.get)
166 *
167 * @param string $project Project ID for this request.
168 * @param string $region Name of the region for this request.
169 * @param string $disk Name of the regional persistent disk to return.
170 * @param array $optParams Optional parameters.
171 * @return Disk
172 * @throws \Google\Service\Exception
173 */
174 public function get($project, $region, $disk, $optParams = [])
175 {
176 $params = ['project' => $project, 'region' => $region, 'disk' => $disk];
177 $params = array_merge($params, $optParams);
178 return $this->call('get', [$params], Disk::class);
179 }
180 /**
181 * Gets the access control policy for a resource. May be empty if no such policy
182 * or resource exists. (regionDisks.getIamPolicy)
183 *
184 * @param string $project Project ID for this request.
185 * @param string $region The name of the region for this request.
186 * @param string $resource Name or id of the resource for this request.
187 * @param array $optParams Optional parameters.
188 *
189 * @opt_param int optionsRequestedPolicyVersion Requested IAM Policy version.
190 * @return Policy
191 * @throws \Google\Service\Exception
192 */
193 public function getIamPolicy($project, $region, $resource, $optParams = [])
194 {
195 $params = ['project' => $project, 'region' => $region, 'resource' => $resource];
196 $params = array_merge($params, $optParams);
197 return $this->call('getIamPolicy', [$params], Policy::class);
198 }
199 /**
200 * Creates a persistent regional disk in the specified project using the data
201 * included in the request. (regionDisks.insert)
202 *
203 * @param string $project Project ID for this request.
204 * @param string $region Name of the region for this request.
205 * @param Disk $postBody
206 * @param array $optParams Optional parameters.
207 *
208 * @opt_param string requestId An optional request ID to identify requests.
209 * Specify a unique request ID so that if you must retry your request, the
210 * server will know to ignore the request if it has already been completed. For
211 * example, consider a situation where you make an initial request and the
212 * request times out. If you make the request again with the same request ID,
213 * the server can check if original operation with the same request ID was
214 * received, and if so, will ignore the second request. This prevents clients
215 * from accidentally creating duplicate commitments. The request ID must be a
216 * valid UUID with the exception that zero UUID is not supported (
217 * 00000000-0000-0000-0000-000000000000).
218 * @opt_param string sourceImage Source image to restore onto a disk. This field
219 * is optional.
220 * @return Operation
221 * @throws \Google\Service\Exception
222 */
223 public function insert($project, $region, Disk $postBody, $optParams = [])
224 {
225 $params = ['project' => $project, 'region' => $region, 'postBody' => $postBody];
226 $params = array_merge($params, $optParams);
227 return $this->call('insert', [$params], Operation::class);
228 }
229 /**
230 * Retrieves the list of persistent disks contained within the specified region.
231 * (regionDisks.listRegionDisks)
232 *
233 * @param string $project Project ID for this request.
234 * @param string $region Name of the region for this request.
235 * @param array $optParams Optional parameters.
236 *
237 * @opt_param string filter A filter expression that filters resources listed in
238 * the response. Most Compute resources support two types of filter expressions:
239 * expressions that support regular expressions and expressions that follow API
240 * improvement proposal AIP-160. These two types of filter expressions cannot be
241 * mixed in one request. If you want to use AIP-160, your expression must
242 * specify the field name, an operator, and the value that you want to use for
243 * filtering. The value must be a string, a number, or a boolean. The operator
244 * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you
245 * are filtering Compute Engine instances, you can exclude instances named
246 * `example-instance` by specifying `name != example-instance`. The `:*`
247 * comparison can be used to test whether a key has been defined. For example,
248 * to find all objects with `owner` label use: ``` labels.owner:* ``` You can
249 * also filter nested fields. For example, you could specify
250 * `scheduling.automaticRestart = false` to include instances only if they are
251 * not scheduled for automatic restarts. You can use filtering on nested fields
252 * to filter based on resource labels. To filter on multiple expressions,
253 * provide each separate expression within parentheses. For example: ```
254 * (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By
255 * default, each expression is an `AND` expression. However, you can include
256 * `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel
257 * Skylake") OR (cpuPlatform = "Intel Broadwell") AND
258 * (scheduling.automaticRestart = true) ``` If you want to use a regular
259 * expression, use the `eq` (equal) or `ne` (not equal) operator against a
260 * single un-parenthesized expression with or without quotes or against multiple
261 * parenthesized expressions. Examples: `fieldname eq unquoted literal`
262 * `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"`
263 * `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is
264 * interpreted as a regular expression using Google RE2 library syntax. The
265 * literal value must match the entire field. For example, to filter for
266 * instances that do not end with name "instance", you would use `name ne
267 * .*instance`. You cannot combine constraints on multiple fields using regular
268 * expressions.
269 * @opt_param string maxResults The maximum number of results per page that
270 * should be returned. If the number of available results is larger than
271 * `maxResults`, Compute Engine returns a `nextPageToken` that can be used to
272 * get the next page of results in subsequent list requests. Acceptable values
273 * are `0` to `500`, inclusive. (Default: `500`)
274 * @opt_param string orderBy Sorts list results by a certain order. By default,
275 * results are returned in alphanumerical order based on the resource name. You
276 * can also sort results in descending order based on the creation timestamp
277 * using `orderBy="creationTimestamp desc"`. This sorts results based on the
278 * `creationTimestamp` field in reverse chronological order (newest result
279 * first). Use this to sort resources like operations so that the newest
280 * operation is returned first. Currently, only sorting by `name` or
281 * `creationTimestamp desc` is supported.
282 * @opt_param string pageToken Specifies a page token to use. Set `pageToken` to
283 * the `nextPageToken` returned by a previous list request to get the next page
284 * of results.
285 * @opt_param bool returnPartialSuccess Opt-in for partial success behavior
286 * which provides partial results in case of failure. The default value is
287 * false. For example, when partial success behavior is enabled, aggregatedList
288 * for a single zone scope either returns all resources in the zone or no
289 * resources, with an error code.
290 * @return DiskList
291 * @throws \Google\Service\Exception
292 */
293 public function listRegionDisks($project, $region, $optParams = [])
294 {
295 $params = ['project' => $project, 'region' => $region];
296 $params = array_merge($params, $optParams);
297 return $this->call('list', [$params], DiskList::class);
298 }
299 /**
300 * Removes resource policies from a regional disk.
301 * (regionDisks.removeResourcePolicies)
302 *
303 * @param string $project Project ID for this request.
304 * @param string $region The name of the region for this request.
305 * @param string $disk The disk name for this request.
306 * @param RegionDisksRemoveResourcePoliciesRequest $postBody
307 * @param array $optParams Optional parameters.
308 *
309 * @opt_param string requestId An optional request ID to identify requests.
310 * Specify a unique request ID so that if you must retry your request, the
311 * server will know to ignore the request if it has already been completed. For
312 * example, consider a situation where you make an initial request and the
313 * request times out. If you make the request again with the same request ID,
314 * the server can check if original operation with the same request ID was
315 * received, and if so, will ignore the second request. This prevents clients
316 * from accidentally creating duplicate commitments. The request ID must be a
317 * valid UUID with the exception that zero UUID is not supported (
318 * 00000000-0000-0000-0000-000000000000).
319 * @return Operation
320 * @throws \Google\Service\Exception
321 */
322 public function removeResourcePolicies($project, $region, $disk, RegionDisksRemoveResourcePoliciesRequest $postBody, $optParams = [])
323 {
324 $params = ['project' => $project, 'region' => $region, 'disk' => $disk, 'postBody' => $postBody];
325 $params = array_merge($params, $optParams);
326 return $this->call('removeResourcePolicies', [$params], Operation::class);
327 }
328 /**
329 * Resizes the specified regional persistent disk. (regionDisks.resize)
330 *
331 * @param string $project The project ID for this request.
332 * @param string $region Name of the region for this request.
333 * @param string $disk Name of the regional persistent disk.
334 * @param RegionDisksResizeRequest $postBody
335 * @param array $optParams Optional parameters.
336 *
337 * @opt_param string requestId An optional request ID to identify requests.
338 * Specify a unique request ID so that if you must retry your request, the
339 * server will know to ignore the request if it has already been completed. For
340 * example, consider a situation where you make an initial request and the
341 * request times out. If you make the request again with the same request ID,
342 * the server can check if original operation with the same request ID was
343 * received, and if so, will ignore the second request. This prevents clients
344 * from accidentally creating duplicate commitments. The request ID must be a
345 * valid UUID with the exception that zero UUID is not supported (
346 * 00000000-0000-0000-0000-000000000000).
347 * @return Operation
348 * @throws \Google\Service\Exception
349 */
350 public function resize($project, $region, $disk, RegionDisksResizeRequest $postBody, $optParams = [])
351 {
352 $params = ['project' => $project, 'region' => $region, 'disk' => $disk, 'postBody' => $postBody];
353 $params = array_merge($params, $optParams);
354 return $this->call('resize', [$params], Operation::class);
355 }
356 /**
357 * Sets the access control policy on the specified resource. Replaces any
358 * existing policy. (regionDisks.setIamPolicy)
359 *
360 * @param string $project Project ID for this request.
361 * @param string $region The name of the region for this request.
362 * @param string $resource Name or id of the resource for this request.
363 * @param RegionSetPolicyRequest $postBody
364 * @param array $optParams Optional parameters.
365 * @return Policy
366 * @throws \Google\Service\Exception
367 */
368 public function setIamPolicy($project, $region, $resource, RegionSetPolicyRequest $postBody, $optParams = [])
369 {
370 $params = ['project' => $project, 'region' => $region, 'resource' => $resource, 'postBody' => $postBody];
371 $params = array_merge($params, $optParams);
372 return $this->call('setIamPolicy', [$params], Policy::class);
373 }
374 /**
375 * Sets the labels on the target regional disk. (regionDisks.setLabels)
376 *
377 * @param string $project Project ID for this request.
378 * @param string $region The region for this request.
379 * @param string $resource Name or id of the resource for this request.
380 * @param RegionSetLabelsRequest $postBody
381 * @param array $optParams Optional parameters.
382 *
383 * @opt_param string requestId An optional request ID to identify requests.
384 * Specify a unique request ID so that if you must retry your request, the
385 * server will know to ignore the request if it has already been completed. For
386 * example, consider a situation where you make an initial request and the
387 * request times out. If you make the request again with the same request ID,
388 * the server can check if original operation with the same request ID was
389 * received, and if so, will ignore the second request. This prevents clients
390 * from accidentally creating duplicate commitments. The request ID must be a
391 * valid UUID with the exception that zero UUID is not supported (
392 * 00000000-0000-0000-0000-000000000000).
393 * @return Operation
394 * @throws \Google\Service\Exception
395 */
396 public function setLabels($project, $region, $resource, RegionSetLabelsRequest $postBody, $optParams = [])
397 {
398 $params = ['project' => $project, 'region' => $region, 'resource' => $resource, 'postBody' => $postBody];
399 $params = array_merge($params, $optParams);
400 return $this->call('setLabels', [$params], Operation::class);
401 }
402 /**
403 * Starts asynchronous replication. Must be invoked on the primary disk.
404 * (regionDisks.startAsyncReplication)
405 *
406 * @param string $project Project ID for this request.
407 * @param string $region The name of the region for this request.
408 * @param string $disk The name of the persistent disk.
409 * @param RegionDisksStartAsyncReplicationRequest $postBody
410 * @param array $optParams Optional parameters.
411 *
412 * @opt_param string requestId An optional request ID to identify requests.
413 * Specify a unique request ID so that if you must retry your request, the
414 * server will know to ignore the request if it has already been completed. For
415 * example, consider a situation where you make an initial request and the
416 * request times out. If you make the request again with the same request ID,
417 * the server can check if original operation with the same request ID was
418 * received, and if so, will ignore the second request. This prevents clients
419 * from accidentally creating duplicate commitments. The request ID must be a
420 * valid UUID with the exception that zero UUID is not supported (
421 * 00000000-0000-0000-0000-000000000000).
422 * @return Operation
423 * @throws \Google\Service\Exception
424 */
425 public function startAsyncReplication($project, $region, $disk, RegionDisksStartAsyncReplicationRequest $postBody, $optParams = [])
426 {
427 $params = ['project' => $project, 'region' => $region, 'disk' => $disk, 'postBody' => $postBody];
428 $params = array_merge($params, $optParams);
429 return $this->call('startAsyncReplication', [$params], Operation::class);
430 }
431 /**
432 * Stops asynchronous replication. Can be invoked either on the primary or on
433 * the secondary disk. (regionDisks.stopAsyncReplication)
434 *
435 * @param string $project Project ID for this request.
436 * @param string $region The name of the region for this request.
437 * @param string $disk The name of the persistent disk.
438 * @param array $optParams Optional parameters.
439 *
440 * @opt_param string requestId An optional request ID to identify requests.
441 * Specify a unique request ID so that if you must retry your request, the
442 * server will know to ignore the request if it has already been completed. For
443 * example, consider a situation where you make an initial request and the
444 * request times out. If you make the request again with the same request ID,
445 * the server can check if original operation with the same request ID was
446 * received, and if so, will ignore the second request. This prevents clients
447 * from accidentally creating duplicate commitments. The request ID must be a
448 * valid UUID with the exception that zero UUID is not supported (
449 * 00000000-0000-0000-0000-000000000000).
450 * @return Operation
451 * @throws \Google\Service\Exception
452 */
453 public function stopAsyncReplication($project, $region, $disk, $optParams = [])
454 {
455 $params = ['project' => $project, 'region' => $region, 'disk' => $disk];
456 $params = array_merge($params, $optParams);
457 return $this->call('stopAsyncReplication', [$params], Operation::class);
458 }
459 /**
460 * Stops asynchronous replication for a consistency group of disks. Can be
461 * invoked either in the primary or secondary scope.
462 * (regionDisks.stopGroupAsyncReplication)
463 *
464 * @param string $project Project ID for this request.
465 * @param string $region The name of the region for this request. This must be
466 * the region of the primary or secondary disks in the consistency group.
467 * @param DisksStopGroupAsyncReplicationResource $postBody
468 * @param array $optParams Optional parameters.
469 *
470 * @opt_param string requestId An optional request ID to identify requests.
471 * Specify a unique request ID so that if you must retry your request, the
472 * server will know to ignore the request if it has already been completed. For
473 * example, consider a situation where you make an initial request and the
474 * request times out. If you make the request again with the same request ID,
475 * the server can check if original operation with the same request ID was
476 * received, and if so, will ignore the second request. This prevents clients
477 * from accidentally creating duplicate commitments. The request ID must be a
478 * valid UUID with the exception that zero UUID is not supported (
479 * 00000000-0000-0000-0000-000000000000).
480 * @return Operation
481 * @throws \Google\Service\Exception
482 */
483 public function stopGroupAsyncReplication($project, $region, DisksStopGroupAsyncReplicationResource $postBody, $optParams = [])
484 {
485 $params = ['project' => $project, 'region' => $region, 'postBody' => $postBody];
486 $params = array_merge($params, $optParams);
487 return $this->call('stopGroupAsyncReplication', [$params], Operation::class);
488 }
489 /**
490 * Returns permissions that a caller has on the specified resource.
491 * (regionDisks.testIamPermissions)
492 *
493 * @param string $project Project ID for this request.
494 * @param string $region The name of the region for this request.
495 * @param string $resource Name or id of the resource for this request.
496 * @param TestPermissionsRequest $postBody
497 * @param array $optParams Optional parameters.
498 * @return TestPermissionsResponse
499 * @throws \Google\Service\Exception
500 */
501 public function testIamPermissions($project, $region, $resource, TestPermissionsRequest $postBody, $optParams = [])
502 {
503 $params = ['project' => $project, 'region' => $region, 'resource' => $resource, 'postBody' => $postBody];
504 $params = array_merge($params, $optParams);
505 return $this->call('testIamPermissions', [$params], TestPermissionsResponse::class);
506 }
507 /**
508 * Update the specified disk with the data included in the request. Update is
509 * performed only on selected fields included as part of update-mask. Only the
510 * following fields can be modified: user_license. (regionDisks.update)
511 *
512 * @param string $project Project ID for this request.
513 * @param string $region The name of the region for this request.
514 * @param string $disk The disk name for this request.
515 * @param Disk $postBody
516 * @param array $optParams Optional parameters.
517 *
518 * @opt_param string paths
519 * @opt_param string requestId An optional request ID to identify requests.
520 * Specify a unique request ID so that if you must retry your request, the
521 * server will know to ignore the request if it has already been completed. For
522 * example, consider a situation where you make an initial request and the
523 * request times out. If you make the request again with the same request ID,
524 * the server can check if original operation with the same request ID was
525 * received, and if so, will ignore the second request. This prevents clients
526 * from accidentally creating duplicate commitments. The request ID must be a
527 * valid UUID with the exception that zero UUID is not supported (
528 * 00000000-0000-0000-0000-000000000000).
529 * @opt_param string updateMask update_mask indicates fields to be updated as
530 * part of this request.
531 * @return Operation
532 * @throws \Google\Service\Exception
533 */
534 public function update($project, $region, $disk, Disk $postBody, $optParams = [])
535 {
536 $params = ['project' => $project, 'region' => $region, 'disk' => $disk, 'postBody' => $postBody];
537 $params = array_merge($params, $optParams);
538 return $this->call('update', [$params], Operation::class);
539 }
540}
541
542// Adding a class alias for backwards compatibility with the previous class name.
543class_alias(RegionDisks::class, 'Google_Service_Compute_Resource_RegionDisks');
Note: See TracBrowser for help on using the repository browser.