[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\DnsKey;
|
---|
| 21 | use Google\Service\Dns\DnsKeysListResponse;
|
---|
| 22 |
|
---|
| 23 | /**
|
---|
| 24 | * The "dnsKeys" collection of methods.
|
---|
| 25 | * Typical usage is:
|
---|
| 26 | * <code>
|
---|
| 27 | * $dnsService = new Google\Service\Dns(...);
|
---|
| 28 | * $dnsKeys = $dnsService->dnsKeys;
|
---|
| 29 | * </code>
|
---|
| 30 | */
|
---|
| 31 | class DnsKeys extends \Google\Service\Resource
|
---|
| 32 | {
|
---|
| 33 | /**
|
---|
| 34 | * Fetches the representation of an existing DnsKey. (dnsKeys.get)
|
---|
| 35 | *
|
---|
| 36 | * @param string $project Identifies the project addressed by this request.
|
---|
| 37 | * @param string $managedZone Identifies the managed zone addressed by this
|
---|
| 38 | * request. Can be the managed zone name or ID.
|
---|
| 39 | * @param string $dnsKeyId The identifier of the requested DnsKey.
|
---|
| 40 | * @param array $optParams Optional parameters.
|
---|
| 41 | *
|
---|
| 42 | * @opt_param string clientOperationId For mutating operation requests only. An
|
---|
| 43 | * optional identifier specified by the client. Must be unique for operation
|
---|
| 44 | * resources in the Operations collection.
|
---|
| 45 | * @opt_param string digestType An optional comma-separated list of digest types
|
---|
| 46 | * to compute and display for key signing keys. If omitted, the recommended
|
---|
| 47 | * digest type is computed and displayed.
|
---|
| 48 | * @return DnsKey
|
---|
| 49 | * @throws \Google\Service\Exception
|
---|
| 50 | */
|
---|
| 51 | public function get($project, $managedZone, $dnsKeyId, $optParams = [])
|
---|
| 52 | {
|
---|
| 53 | $params = ['project' => $project, 'managedZone' => $managedZone, 'dnsKeyId' => $dnsKeyId];
|
---|
| 54 | $params = array_merge($params, $optParams);
|
---|
| 55 | return $this->call('get', [$params], DnsKey::class);
|
---|
| 56 | }
|
---|
| 57 | /**
|
---|
| 58 | * Enumerates DnsKeys to a ResourceRecordSet collection. (dnsKeys.listDnsKeys)
|
---|
| 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. Can be the managed zone name or ID.
|
---|
| 63 | * @param array $optParams Optional parameters.
|
---|
| 64 | *
|
---|
| 65 | * @opt_param string digestType An optional comma-separated list of digest types
|
---|
| 66 | * to compute and display for key signing keys. If omitted, the recommended
|
---|
| 67 | * digest type is computed and displayed.
|
---|
| 68 | * @opt_param int maxResults Optional. Maximum number of results to be returned.
|
---|
| 69 | * If unspecified, the server decides how many results to return.
|
---|
| 70 | * @opt_param string pageToken Optional. A tag returned by a previous list
|
---|
| 71 | * request that was truncated. Use this parameter to continue a previous list
|
---|
| 72 | * request.
|
---|
| 73 | * @return DnsKeysListResponse
|
---|
| 74 | * @throws \Google\Service\Exception
|
---|
| 75 | */
|
---|
| 76 | public function listDnsKeys($project, $managedZone, $optParams = [])
|
---|
| 77 | {
|
---|
| 78 | $params = ['project' => $project, 'managedZone' => $managedZone];
|
---|
| 79 | $params = array_merge($params, $optParams);
|
---|
| 80 | return $this->call('list', [$params], DnsKeysListResponse::class);
|
---|
| 81 | }
|
---|
| 82 | }
|
---|
| 83 |
|
---|
| 84 | // Adding a class alias for backwards compatibility with the previous class name.
|
---|
| 85 | class_alias(DnsKeys::class, 'Google_Service_Dns_Resource_DnsKeys');
|
---|