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