[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\ACMEDNS\Resource;
|
---|
| 19 |
|
---|
| 20 | use Google\Service\ACMEDNS\AcmeChallengeSet;
|
---|
| 21 | use Google\Service\ACMEDNS\RotateChallengesRequest;
|
---|
| 22 |
|
---|
| 23 | /**
|
---|
| 24 | * The "acmeChallengeSets" collection of methods.
|
---|
| 25 | * Typical usage is:
|
---|
| 26 | * <code>
|
---|
| 27 | * $acmednsService = new Google\Service\ACMEDNS(...);
|
---|
| 28 | * $acmeChallengeSets = $acmednsService->acmeChallengeSets;
|
---|
| 29 | * </code>
|
---|
| 30 | */
|
---|
| 31 | class AcmeChallengeSets extends \Google\Service\Resource
|
---|
| 32 | {
|
---|
| 33 | /**
|
---|
| 34 | * Gets the ACME challenge set for a given domain name. Domain names must be
|
---|
| 35 | * provided in Punycode. (acmeChallengeSets.get)
|
---|
| 36 | *
|
---|
| 37 | * @param string $rootDomain Required. SLD + TLD domain name to list challenges.
|
---|
| 38 | * For example, this would be "google.com" for any FQDN under "google.com". That
|
---|
| 39 | * includes challenges for "subdomain.google.com". This MAY be Unicode or
|
---|
| 40 | * Punycode.
|
---|
| 41 | * @param array $optParams Optional parameters.
|
---|
| 42 | * @return AcmeChallengeSet
|
---|
| 43 | * @throws \Google\Service\Exception
|
---|
| 44 | */
|
---|
| 45 | public function get($rootDomain, $optParams = [])
|
---|
| 46 | {
|
---|
| 47 | $params = ['rootDomain' => $rootDomain];
|
---|
| 48 | $params = array_merge($params, $optParams);
|
---|
| 49 | return $this->call('get', [$params], AcmeChallengeSet::class);
|
---|
| 50 | }
|
---|
| 51 | /**
|
---|
| 52 | * Rotate the ACME challenges for a given domain name. By default, removes any
|
---|
| 53 | * challenges that are older than 30 days. Domain names must be provided in
|
---|
| 54 | * Punycode. (acmeChallengeSets.rotateChallenges)
|
---|
| 55 | *
|
---|
| 56 | * @param string $rootDomain Required. SLD + TLD domain name to update records
|
---|
| 57 | * for. For example, this would be "google.com" for any FQDN under "google.com".
|
---|
| 58 | * That includes challenges for "subdomain.google.com". This MAY be Unicode or
|
---|
| 59 | * Punycode.
|
---|
| 60 | * @param RotateChallengesRequest $postBody
|
---|
| 61 | * @param array $optParams Optional parameters.
|
---|
| 62 | * @return AcmeChallengeSet
|
---|
| 63 | * @throws \Google\Service\Exception
|
---|
| 64 | */
|
---|
| 65 | public function rotateChallenges($rootDomain, RotateChallengesRequest $postBody, $optParams = [])
|
---|
| 66 | {
|
---|
| 67 | $params = ['rootDomain' => $rootDomain, 'postBody' => $postBody];
|
---|
| 68 | $params = array_merge($params, $optParams);
|
---|
| 69 | return $this->call('rotateChallenges', [$params], AcmeChallengeSet::class);
|
---|
| 70 | }
|
---|
| 71 | }
|
---|
| 72 |
|
---|
| 73 | // Adding a class alias for backwards compatibility with the previous class name.
|
---|
| 74 | class_alias(AcmeChallengeSets::class, 'Google_Service_ACMEDNS_Resource_AcmeChallengeSets');
|
---|