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