source: vendor/google/apiclient-services/src/DomainsRDAP.php

Last change on this file was e3d4e0a, checked in by Vlado 222039 <vlado.popovski@…>, 7 days ago

Upload project files

  • Property mode set to 100644
File size: 5.6 KB
Line 
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;
19
20use Google\Client;
21
22/**
23 * Service definition for DomainsRDAP (v1).
24 *
25 * <p>
26 * Read-only public API that lets users search for information about domain
27 * names.</p>
28 *
29 * <p>
30 * For more information about this service, see the API
31 * <a href="https://developers.google.com/domains/rdap/" target="_blank">Documentation</a>
32 * </p>
33 *
34 * @author Google, Inc.
35 */
36class DomainsRDAP extends \Google\Service
37{
38
39
40 public $autnum;
41 public $domain;
42 public $entity;
43 public $ip;
44 public $nameserver;
45 public $v1;
46 public $rootUrlTemplate;
47
48 /**
49 * Constructs the internal representation of the DomainsRDAP service.
50 *
51 * @param Client|array $clientOrConfig The client used to deliver requests, or a
52 * config array to pass to a new Client instance.
53 * @param string $rootUrl The root URL used for requests to the service.
54 */
55 public function __construct($clientOrConfig = [], $rootUrl = null)
56 {
57 parent::__construct($clientOrConfig);
58 $this->rootUrl = $rootUrl ?: 'https://domainsrdap.googleapis.com/';
59 $this->rootUrlTemplate = $rootUrl ?: 'https://domainsrdap.UNIVERSE_DOMAIN/';
60 $this->servicePath = '';
61 $this->batchPath = 'batch';
62 $this->version = 'v1';
63 $this->serviceName = 'domainsrdap';
64
65 $this->autnum = new DomainsRDAP\Resource\Autnum(
66 $this,
67 $this->serviceName,
68 'autnum',
69 [
70 'methods' => [
71 'get' => [
72 'path' => 'v1/autnum/{autnumId}',
73 'httpMethod' => 'GET',
74 'parameters' => [
75 'autnumId' => [
76 'location' => 'path',
77 'type' => 'string',
78 'required' => true,
79 ],
80 ],
81 ],
82 ]
83 ]
84 );
85 $this->domain = new DomainsRDAP\Resource\Domain(
86 $this,
87 $this->serviceName,
88 'domain',
89 [
90 'methods' => [
91 'get' => [
92 'path' => 'v1/domain/{+domainName}',
93 'httpMethod' => 'GET',
94 'parameters' => [
95 'domainName' => [
96 'location' => 'path',
97 'type' => 'string',
98 'required' => true,
99 ],
100 ],
101 ],
102 ]
103 ]
104 );
105 $this->entity = new DomainsRDAP\Resource\Entity(
106 $this,
107 $this->serviceName,
108 'entity',
109 [
110 'methods' => [
111 'get' => [
112 'path' => 'v1/entity/{entityId}',
113 'httpMethod' => 'GET',
114 'parameters' => [
115 'entityId' => [
116 'location' => 'path',
117 'type' => 'string',
118 'required' => true,
119 ],
120 ],
121 ],
122 ]
123 ]
124 );
125 $this->ip = new DomainsRDAP\Resource\Ip(
126 $this,
127 $this->serviceName,
128 'ip',
129 [
130 'methods' => [
131 'get' => [
132 'path' => 'v1/ip/{ipId}/{ipId1}',
133 'httpMethod' => 'GET',
134 'parameters' => [
135 'ipId' => [
136 'location' => 'path',
137 'type' => 'string',
138 'required' => true,
139 ],
140 'ipId1' => [
141 'location' => 'path',
142 'type' => 'string',
143 'required' => true,
144 ],
145 ],
146 ],
147 ]
148 ]
149 );
150 $this->nameserver = new DomainsRDAP\Resource\Nameserver(
151 $this,
152 $this->serviceName,
153 'nameserver',
154 [
155 'methods' => [
156 'get' => [
157 'path' => 'v1/nameserver/{nameserverId}',
158 'httpMethod' => 'GET',
159 'parameters' => [
160 'nameserverId' => [
161 'location' => 'path',
162 'type' => 'string',
163 'required' => true,
164 ],
165 ],
166 ],
167 ]
168 ]
169 );
170 $this->v1 = new DomainsRDAP\Resource\V1(
171 $this,
172 $this->serviceName,
173 'v1',
174 [
175 'methods' => [
176 'getDomains' => [
177 'path' => 'v1/domains',
178 'httpMethod' => 'GET',
179 'parameters' => [],
180 ],'getEntities' => [
181 'path' => 'v1/entities',
182 'httpMethod' => 'GET',
183 'parameters' => [],
184 ],'getHelp' => [
185 'path' => 'v1/help',
186 'httpMethod' => 'GET',
187 'parameters' => [],
188 ],'getIp' => [
189 'path' => 'v1/ip',
190 'httpMethod' => 'GET',
191 'parameters' => [],
192 ],'getNameservers' => [
193 'path' => 'v1/nameservers',
194 'httpMethod' => 'GET',
195 'parameters' => [],
196 ],
197 ]
198 ]
199 );
200 }
201}
202
203// Adding a class alias for backwards compatibility with the previous class name.
204class_alias(DomainsRDAP::class, 'Google_Service_DomainsRDAP');
Note: See TracBrowser for help on using the repository browser.