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
47  /**
48   * Constructs the internal representation of the DomainsRDAP service.
49   *
50   * @param Client|array $clientOrConfig The client used to deliver requests, or a
51   *                                     config array to pass to a new Client instance.
52   * @param string $rootUrl The root URL used for requests to the service.
53   */
54  public function __construct($clientOrConfig = [], $rootUrl = null)
55  {
56    parent::__construct($clientOrConfig);
57    $this->rootUrl = $rootUrl ?: 'https://domainsrdap.googleapis.com/';
58    $this->servicePath = '';
59    $this->batchPath = 'batch';
60    $this->version = 'v1';
61    $this->serviceName = 'domainsrdap';
62
63    $this->autnum = new DomainsRDAP\Resource\Autnum(
64        $this,
65        $this->serviceName,
66        'autnum',
67        [
68          'methods' => [
69            'get' => [
70              'path' => 'v1/autnum/{autnumId}',
71              'httpMethod' => 'GET',
72              'parameters' => [
73                'autnumId' => [
74                  'location' => 'path',
75                  'type' => 'string',
76                  'required' => true,
77                ],
78              ],
79            ],
80          ]
81        ]
82    );
83    $this->domain = new DomainsRDAP\Resource\Domain(
84        $this,
85        $this->serviceName,
86        'domain',
87        [
88          'methods' => [
89            'get' => [
90              'path' => 'v1/domain/{+domainName}',
91              'httpMethod' => 'GET',
92              'parameters' => [
93                'domainName' => [
94                  'location' => 'path',
95                  'type' => 'string',
96                  'required' => true,
97                ],
98              ],
99            ],
100          ]
101        ]
102    );
103    $this->entity = new DomainsRDAP\Resource\Entity(
104        $this,
105        $this->serviceName,
106        'entity',
107        [
108          'methods' => [
109            'get' => [
110              'path' => 'v1/entity/{entityId}',
111              'httpMethod' => 'GET',
112              'parameters' => [
113                'entityId' => [
114                  'location' => 'path',
115                  'type' => 'string',
116                  'required' => true,
117                ],
118              ],
119            ],
120          ]
121        ]
122    );
123    $this->ip = new DomainsRDAP\Resource\Ip(
124        $this,
125        $this->serviceName,
126        'ip',
127        [
128          'methods' => [
129            'get' => [
130              'path' => 'v1/ip/{ipId}/{ipId1}',
131              'httpMethod' => 'GET',
132              'parameters' => [
133                'ipId' => [
134                  'location' => 'path',
135                  'type' => 'string',
136                  'required' => true,
137                ],
138                'ipId1' => [
139                  'location' => 'path',
140                  'type' => 'string',
141                  'required' => true,
142                ],
143              ],
144            ],
145          ]
146        ]
147    );
148    $this->nameserver = new DomainsRDAP\Resource\Nameserver(
149        $this,
150        $this->serviceName,
151        'nameserver',
152        [
153          'methods' => [
154            'get' => [
155              'path' => 'v1/nameserver/{nameserverId}',
156              'httpMethod' => 'GET',
157              'parameters' => [
158                'nameserverId' => [
159                  'location' => 'path',
160                  'type' => 'string',
161                  'required' => true,
162                ],
163              ],
164            ],
165          ]
166        ]
167    );
168    $this->v1 = new DomainsRDAP\Resource\V1(
169        $this,
170        $this->serviceName,
171        'v1',
172        [
173          'methods' => [
174            'getDomains' => [
175              'path' => 'v1/domains',
176              'httpMethod' => 'GET',
177              'parameters' => [],
178            ],'getEntities' => [
179              'path' => 'v1/entities',
180              'httpMethod' => 'GET',
181              'parameters' => [],
182            ],'getHelp' => [
183              'path' => 'v1/help',
184              'httpMethod' => 'GET',
185              'parameters' => [],
186            ],'getIp' => [
187              'path' => 'v1/ip',
188              'httpMethod' => 'GET',
189              'parameters' => [],
190            ],'getNameservers' => [
191              'path' => 'v1/nameservers',
192              'httpMethod' => 'GET',
193              'parameters' => [],
194            ],
195          ]
196        ]
197    );
198  }
199}
200
201// Adding a class alias for backwards compatibility with the previous class name.
202class_alias(DomainsRDAP::class, 'Google_Service_DomainsRDAP');
203