[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\CertificateManager\Resource;
|
---|
| 19 |
|
---|
| 20 | use Google\Service\CertificateManager\DnsAuthorization;
|
---|
| 21 | use Google\Service\CertificateManager\ListDnsAuthorizationsResponse;
|
---|
| 22 | use Google\Service\CertificateManager\Operation;
|
---|
| 23 |
|
---|
| 24 | /**
|
---|
| 25 | * The "dnsAuthorizations" collection of methods.
|
---|
| 26 | * Typical usage is:
|
---|
| 27 | * <code>
|
---|
| 28 | * $certificatemanagerService = new Google\Service\CertificateManager(...);
|
---|
| 29 | * $dnsAuthorizations = $certificatemanagerService->projects_locations_dnsAuthorizations;
|
---|
| 30 | * </code>
|
---|
| 31 | */
|
---|
| 32 | class ProjectsLocationsDnsAuthorizations extends \Google\Service\Resource
|
---|
| 33 | {
|
---|
| 34 | /**
|
---|
| 35 | * Creates a new DnsAuthorization in a given project and location.
|
---|
| 36 | * (dnsAuthorizations.create)
|
---|
| 37 | *
|
---|
| 38 | * @param string $parent Required. The parent resource of the dns authorization.
|
---|
| 39 | * Must be in the format `projects/locations`.
|
---|
| 40 | * @param DnsAuthorization $postBody
|
---|
| 41 | * @param array $optParams Optional parameters.
|
---|
| 42 | *
|
---|
| 43 | * @opt_param string dnsAuthorizationId Required. A user-provided name of the
|
---|
| 44 | * dns authorization.
|
---|
| 45 | * @return Operation
|
---|
| 46 | * @throws \Google\Service\Exception
|
---|
| 47 | */
|
---|
| 48 | public function create($parent, DnsAuthorization $postBody, $optParams = [])
|
---|
| 49 | {
|
---|
| 50 | $params = ['parent' => $parent, 'postBody' => $postBody];
|
---|
| 51 | $params = array_merge($params, $optParams);
|
---|
| 52 | return $this->call('create', [$params], Operation::class);
|
---|
| 53 | }
|
---|
| 54 | /**
|
---|
| 55 | * Deletes a single DnsAuthorization. (dnsAuthorizations.delete)
|
---|
| 56 | *
|
---|
| 57 | * @param string $name Required. A name of the dns authorization to delete. Must
|
---|
| 58 | * be in the format `projects/locations/dnsAuthorizations`.
|
---|
| 59 | * @param array $optParams Optional parameters.
|
---|
| 60 | * @return Operation
|
---|
| 61 | * @throws \Google\Service\Exception
|
---|
| 62 | */
|
---|
| 63 | public function delete($name, $optParams = [])
|
---|
| 64 | {
|
---|
| 65 | $params = ['name' => $name];
|
---|
| 66 | $params = array_merge($params, $optParams);
|
---|
| 67 | return $this->call('delete', [$params], Operation::class);
|
---|
| 68 | }
|
---|
| 69 | /**
|
---|
| 70 | * Gets details of a single DnsAuthorization. (dnsAuthorizations.get)
|
---|
| 71 | *
|
---|
| 72 | * @param string $name Required. A name of the dns authorization to describe.
|
---|
| 73 | * Must be in the format `projects/locations/dnsAuthorizations`.
|
---|
| 74 | * @param array $optParams Optional parameters.
|
---|
| 75 | * @return DnsAuthorization
|
---|
| 76 | * @throws \Google\Service\Exception
|
---|
| 77 | */
|
---|
| 78 | public function get($name, $optParams = [])
|
---|
| 79 | {
|
---|
| 80 | $params = ['name' => $name];
|
---|
| 81 | $params = array_merge($params, $optParams);
|
---|
| 82 | return $this->call('get', [$params], DnsAuthorization::class);
|
---|
| 83 | }
|
---|
| 84 | /**
|
---|
| 85 | * Lists DnsAuthorizations in a given project and location.
|
---|
| 86 | * (dnsAuthorizations.listProjectsLocationsDnsAuthorizations)
|
---|
| 87 | *
|
---|
| 88 | * @param string $parent Required. The project and location from which the dns
|
---|
| 89 | * authorizations should be listed, specified in the format
|
---|
| 90 | * `projects/locations`.
|
---|
| 91 | * @param array $optParams Optional parameters.
|
---|
| 92 | *
|
---|
| 93 | * @opt_param string filter Optional. Filter expression to restrict the Dns
|
---|
| 94 | * Authorizations returned.
|
---|
| 95 | * @opt_param string orderBy Optional. A list of Dns Authorization field names
|
---|
| 96 | * used to specify the order of the returned results. The default sorting order
|
---|
| 97 | * is ascending. To specify descending order for a field, add a suffix `"
|
---|
| 98 | * desc"`.
|
---|
| 99 | * @opt_param int pageSize Optional. Maximum number of dns authorizations to
|
---|
| 100 | * return per call.
|
---|
| 101 | * @opt_param string pageToken Optional. The value returned by the last
|
---|
| 102 | * `ListDnsAuthorizationsResponse`. Indicates that this is a continuation of a
|
---|
| 103 | * prior `ListDnsAuthorizations` call, and that the system should return the
|
---|
| 104 | * next page of data.
|
---|
| 105 | * @return ListDnsAuthorizationsResponse
|
---|
| 106 | * @throws \Google\Service\Exception
|
---|
| 107 | */
|
---|
| 108 | public function listProjectsLocationsDnsAuthorizations($parent, $optParams = [])
|
---|
| 109 | {
|
---|
| 110 | $params = ['parent' => $parent];
|
---|
| 111 | $params = array_merge($params, $optParams);
|
---|
| 112 | return $this->call('list', [$params], ListDnsAuthorizationsResponse::class);
|
---|
| 113 | }
|
---|
| 114 | /**
|
---|
| 115 | * Updates a DnsAuthorization. (dnsAuthorizations.patch)
|
---|
| 116 | *
|
---|
| 117 | * @param string $name Identifier. A user-defined name of the dns authorization.
|
---|
| 118 | * DnsAuthorization names must be unique globally and match pattern
|
---|
| 119 | * `projects/locations/dnsAuthorizations`.
|
---|
| 120 | * @param DnsAuthorization $postBody
|
---|
| 121 | * @param array $optParams Optional parameters.
|
---|
| 122 | *
|
---|
| 123 | * @opt_param string updateMask Required. The update mask applies to the
|
---|
| 124 | * resource. For the `FieldMask` definition, see
|
---|
| 125 | * https://developers.google.com/protocol-
|
---|
| 126 | * buffers/docs/reference/google.protobuf#fieldmask.
|
---|
| 127 | * @return Operation
|
---|
| 128 | * @throws \Google\Service\Exception
|
---|
| 129 | */
|
---|
| 130 | public function patch($name, DnsAuthorization $postBody, $optParams = [])
|
---|
| 131 | {
|
---|
| 132 | $params = ['name' => $name, 'postBody' => $postBody];
|
---|
| 133 | $params = array_merge($params, $optParams);
|
---|
| 134 | return $this->call('patch', [$params], Operation::class);
|
---|
| 135 | }
|
---|
| 136 | }
|
---|
| 137 |
|
---|
| 138 | // Adding a class alias for backwards compatibility with the previous class name.
|
---|
| 139 | class_alias(ProjectsLocationsDnsAuthorizations::class, 'Google_Service_CertificateManager_Resource_ProjectsLocationsDnsAuthorizations');
|
---|