[e3d4e0a] | 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 | namespace Google\Service\Dns\Resource;
|
---|
| 19 |
|
---|
| 20 | use Google\Service\Dns\ManagedZoneOperationsListResponse;
|
---|
| 21 | use Google\Service\Dns\Operation;
|
---|
| 22 |
|
---|
| 23 | /**
|
---|
| 24 | * The "managedZoneOperations" collection of methods.
|
---|
| 25 | * Typical usage is:
|
---|
| 26 | * <code>
|
---|
| 27 | * $dnsService = new Google\Service\Dns(...);
|
---|
| 28 | * $managedZoneOperations = $dnsService->managedZoneOperations;
|
---|
| 29 | * </code>
|
---|
| 30 | */
|
---|
| 31 | class ManagedZoneOperations extends \Google\Service\Resource
|
---|
| 32 | {
|
---|
| 33 | /**
|
---|
| 34 | * Fetches the representation of an existing Operation.
|
---|
| 35 | * (managedZoneOperations.get)
|
---|
| 36 | *
|
---|
| 37 | * @param string $project Identifies the project addressed by this request.
|
---|
| 38 | * @param string $managedZone Identifies the managed zone addressed by this
|
---|
| 39 | * request.
|
---|
| 40 | * @param string $operation Identifies the operation addressed by this request
|
---|
| 41 | * (ID of the operation).
|
---|
| 42 | * @param array $optParams Optional parameters.
|
---|
| 43 | *
|
---|
| 44 | * @opt_param string clientOperationId For mutating operation requests only. An
|
---|
| 45 | * optional identifier specified by the client. Must be unique for operation
|
---|
| 46 | * resources in the Operations collection.
|
---|
| 47 | * @return Operation
|
---|
| 48 | * @throws \Google\Service\Exception
|
---|
| 49 | */
|
---|
| 50 | public function get($project, $managedZone, $operation, $optParams = [])
|
---|
| 51 | {
|
---|
| 52 | $params = ['project' => $project, 'managedZone' => $managedZone, 'operation' => $operation];
|
---|
| 53 | $params = array_merge($params, $optParams);
|
---|
| 54 | return $this->call('get', [$params], Operation::class);
|
---|
| 55 | }
|
---|
| 56 | /**
|
---|
| 57 | * Enumerates Operations for the given ManagedZone.
|
---|
| 58 | * (managedZoneOperations.listManagedZoneOperations)
|
---|
| 59 | *
|
---|
| 60 | * @param string $project Identifies the project addressed by this request.
|
---|
| 61 | * @param string $managedZone Identifies the managed zone addressed by this
|
---|
| 62 | * request.
|
---|
| 63 | * @param array $optParams Optional parameters.
|
---|
| 64 | *
|
---|
| 65 | * @opt_param int maxResults Optional. Maximum number of results to be returned.
|
---|
| 66 | * If unspecified, the server decides how many results to return.
|
---|
| 67 | * @opt_param string pageToken Optional. A tag returned by a previous list
|
---|
| 68 | * request that was truncated. Use this parameter to continue a previous list
|
---|
| 69 | * request.
|
---|
| 70 | * @opt_param string sortBy Sorting criterion. The only supported values are
|
---|
| 71 | * START_TIME and ID.
|
---|
| 72 | * @return ManagedZoneOperationsListResponse
|
---|
| 73 | * @throws \Google\Service\Exception
|
---|
| 74 | */
|
---|
| 75 | public function listManagedZoneOperations($project, $managedZone, $optParams = [])
|
---|
| 76 | {
|
---|
| 77 | $params = ['project' => $project, 'managedZone' => $managedZone];
|
---|
| 78 | $params = array_merge($params, $optParams);
|
---|
| 79 | return $this->call('list', [$params], ManagedZoneOperationsListResponse::class);
|
---|
| 80 | }
|
---|
| 81 | }
|
---|
| 82 |
|
---|
| 83 | // Adding a class alias for backwards compatibility with the previous class name.
|
---|
| 84 | class_alias(ManagedZoneOperations::class, 'Google_Service_Dns_Resource_ManagedZoneOperations');
|
---|