[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\DomainsRDAP\Resource;
|
---|
| 19 |
|
---|
| 20 | use Google\Service\DomainsRDAP\HttpBody;
|
---|
| 21 | use Google\Service\DomainsRDAP\RdapResponse;
|
---|
| 22 |
|
---|
| 23 | /**
|
---|
| 24 | * The "v1" collection of methods.
|
---|
| 25 | * Typical usage is:
|
---|
| 26 | * <code>
|
---|
| 27 | * $domainsrdapService = new Google\Service\DomainsRDAP(...);
|
---|
| 28 | * $v1 = $domainsrdapService->v1;
|
---|
| 29 | * </code>
|
---|
| 30 | */
|
---|
| 31 | class V1 extends \Google\Service\Resource
|
---|
| 32 | {
|
---|
| 33 | /**
|
---|
| 34 | * The RDAP API recognizes this command from the RDAP specification but does not
|
---|
| 35 | * support it. The response is a formatted 501 error. (v1.getDomains)
|
---|
| 36 | *
|
---|
| 37 | * @param array $optParams Optional parameters.
|
---|
| 38 | * @return RdapResponse
|
---|
| 39 | * @throws \Google\Service\Exception
|
---|
| 40 | */
|
---|
| 41 | public function getDomains($optParams = [])
|
---|
| 42 | {
|
---|
| 43 | $params = [];
|
---|
| 44 | $params = array_merge($params, $optParams);
|
---|
| 45 | return $this->call('getDomains', [$params], RdapResponse::class);
|
---|
| 46 | }
|
---|
| 47 | /**
|
---|
| 48 | * The RDAP API recognizes this command from the RDAP specification but does not
|
---|
| 49 | * support it. The response is a formatted 501 error. (v1.getEntities)
|
---|
| 50 | *
|
---|
| 51 | * @param array $optParams Optional parameters.
|
---|
| 52 | * @return RdapResponse
|
---|
| 53 | * @throws \Google\Service\Exception
|
---|
| 54 | */
|
---|
| 55 | public function getEntities($optParams = [])
|
---|
| 56 | {
|
---|
| 57 | $params = [];
|
---|
| 58 | $params = array_merge($params, $optParams);
|
---|
| 59 | return $this->call('getEntities', [$params], RdapResponse::class);
|
---|
| 60 | }
|
---|
| 61 | /**
|
---|
| 62 | * Get help information for the RDAP API, including links to documentation.
|
---|
| 63 | * (v1.getHelp)
|
---|
| 64 | *
|
---|
| 65 | * @param array $optParams Optional parameters.
|
---|
| 66 | * @return HttpBody
|
---|
| 67 | * @throws \Google\Service\Exception
|
---|
| 68 | */
|
---|
| 69 | public function getHelp($optParams = [])
|
---|
| 70 | {
|
---|
| 71 | $params = [];
|
---|
| 72 | $params = array_merge($params, $optParams);
|
---|
| 73 | return $this->call('getHelp', [$params], HttpBody::class);
|
---|
| 74 | }
|
---|
| 75 | /**
|
---|
| 76 | * The RDAP API recognizes this command from the RDAP specification but does not
|
---|
| 77 | * support it. The response is a formatted 501 error. (v1.getIp)
|
---|
| 78 | *
|
---|
| 79 | * @param array $optParams Optional parameters.
|
---|
| 80 | * @return HttpBody
|
---|
| 81 | * @throws \Google\Service\Exception
|
---|
| 82 | */
|
---|
| 83 | public function getIp($optParams = [])
|
---|
| 84 | {
|
---|
| 85 | $params = [];
|
---|
| 86 | $params = array_merge($params, $optParams);
|
---|
| 87 | return $this->call('getIp', [$params], HttpBody::class);
|
---|
| 88 | }
|
---|
| 89 | /**
|
---|
| 90 | * The RDAP API recognizes this command from the RDAP specification but does not
|
---|
| 91 | * support it. The response is a formatted 501 error. (v1.getNameservers)
|
---|
| 92 | *
|
---|
| 93 | * @param array $optParams Optional parameters.
|
---|
| 94 | * @return RdapResponse
|
---|
| 95 | * @throws \Google\Service\Exception
|
---|
| 96 | */
|
---|
| 97 | public function getNameservers($optParams = [])
|
---|
| 98 | {
|
---|
| 99 | $params = [];
|
---|
| 100 | $params = array_merge($params, $optParams);
|
---|
| 101 | return $this->call('getNameservers', [$params], RdapResponse::class);
|
---|
| 102 | }
|
---|
| 103 | }
|
---|
| 104 |
|
---|
| 105 | // Adding a class alias for backwards compatibility with the previous class name.
|
---|
| 106 | class_alias(V1::class, 'Google_Service_DomainsRDAP_Resource_V1');
|
---|