source: vendor/google/apiclient-services/src/CloudDomains.php@ e3d4e0a

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

Upload project files

  • Property mode set to 100644
File size: 14.8 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 CloudDomains (v1).
24 *
25 * <p>
26 * Enables management and configuration of domain names.</p>
27 *
28 * <p>
29 * For more information about this service, see the API
30 * <a href="https://cloud.google.com/domains/" target="_blank">Documentation</a>
31 * </p>
32 *
33 * @author Google, Inc.
34 */
35class CloudDomains extends \Google\Service
36{
37 /** See, edit, configure, and delete your Google Cloud data and see the email address for your Google Account.. */
38 const CLOUD_PLATFORM =
39 "https://www.googleapis.com/auth/cloud-platform";
40
41 public $projects_locations;
42 public $projects_locations_operations;
43 public $projects_locations_registrations;
44 public $rootUrlTemplate;
45
46 /**
47 * Constructs the internal representation of the CloudDomains service.
48 *
49 * @param Client|array $clientOrConfig The client used to deliver requests, or a
50 * config array to pass to a new Client instance.
51 * @param string $rootUrl The root URL used for requests to the service.
52 */
53 public function __construct($clientOrConfig = [], $rootUrl = null)
54 {
55 parent::__construct($clientOrConfig);
56 $this->rootUrl = $rootUrl ?: 'https://domains.googleapis.com/';
57 $this->rootUrlTemplate = $rootUrl ?: 'https://domains.UNIVERSE_DOMAIN/';
58 $this->servicePath = '';
59 $this->batchPath = 'batch';
60 $this->version = 'v1';
61 $this->serviceName = 'domains';
62
63 $this->projects_locations = new CloudDomains\Resource\ProjectsLocations(
64 $this,
65 $this->serviceName,
66 'locations',
67 [
68 'methods' => [
69 'get' => [
70 'path' => 'v1/{+name}',
71 'httpMethod' => 'GET',
72 'parameters' => [
73 'name' => [
74 'location' => 'path',
75 'type' => 'string',
76 'required' => true,
77 ],
78 ],
79 ],'list' => [
80 'path' => 'v1/{+name}/locations',
81 'httpMethod' => 'GET',
82 'parameters' => [
83 'name' => [
84 'location' => 'path',
85 'type' => 'string',
86 'required' => true,
87 ],
88 'filter' => [
89 'location' => 'query',
90 'type' => 'string',
91 ],
92 'pageSize' => [
93 'location' => 'query',
94 'type' => 'integer',
95 ],
96 'pageToken' => [
97 'location' => 'query',
98 'type' => 'string',
99 ],
100 ],
101 ],
102 ]
103 ]
104 );
105 $this->projects_locations_operations = new CloudDomains\Resource\ProjectsLocationsOperations(
106 $this,
107 $this->serviceName,
108 'operations',
109 [
110 'methods' => [
111 'get' => [
112 'path' => 'v1/{+name}',
113 'httpMethod' => 'GET',
114 'parameters' => [
115 'name' => [
116 'location' => 'path',
117 'type' => 'string',
118 'required' => true,
119 ],
120 ],
121 ],'list' => [
122 'path' => 'v1/{+name}/operations',
123 'httpMethod' => 'GET',
124 'parameters' => [
125 'name' => [
126 'location' => 'path',
127 'type' => 'string',
128 'required' => true,
129 ],
130 'filter' => [
131 'location' => 'query',
132 'type' => 'string',
133 ],
134 'pageSize' => [
135 'location' => 'query',
136 'type' => 'integer',
137 ],
138 'pageToken' => [
139 'location' => 'query',
140 'type' => 'string',
141 ],
142 ],
143 ],
144 ]
145 ]
146 );
147 $this->projects_locations_registrations = new CloudDomains\Resource\ProjectsLocationsRegistrations(
148 $this,
149 $this->serviceName,
150 'registrations',
151 [
152 'methods' => [
153 'configureContactSettings' => [
154 'path' => 'v1/{+registration}:configureContactSettings',
155 'httpMethod' => 'POST',
156 'parameters' => [
157 'registration' => [
158 'location' => 'path',
159 'type' => 'string',
160 'required' => true,
161 ],
162 ],
163 ],'configureDnsSettings' => [
164 'path' => 'v1/{+registration}:configureDnsSettings',
165 'httpMethod' => 'POST',
166 'parameters' => [
167 'registration' => [
168 'location' => 'path',
169 'type' => 'string',
170 'required' => true,
171 ],
172 ],
173 ],'configureManagementSettings' => [
174 'path' => 'v1/{+registration}:configureManagementSettings',
175 'httpMethod' => 'POST',
176 'parameters' => [
177 'registration' => [
178 'location' => 'path',
179 'type' => 'string',
180 'required' => true,
181 ],
182 ],
183 ],'delete' => [
184 'path' => 'v1/{+name}',
185 'httpMethod' => 'DELETE',
186 'parameters' => [
187 'name' => [
188 'location' => 'path',
189 'type' => 'string',
190 'required' => true,
191 ],
192 ],
193 ],'export' => [
194 'path' => 'v1/{+name}:export',
195 'httpMethod' => 'POST',
196 'parameters' => [
197 'name' => [
198 'location' => 'path',
199 'type' => 'string',
200 'required' => true,
201 ],
202 ],
203 ],'get' => [
204 'path' => 'v1/{+name}',
205 'httpMethod' => 'GET',
206 'parameters' => [
207 'name' => [
208 'location' => 'path',
209 'type' => 'string',
210 'required' => true,
211 ],
212 ],
213 ],'getIamPolicy' => [
214 'path' => 'v1/{+resource}:getIamPolicy',
215 'httpMethod' => 'GET',
216 'parameters' => [
217 'resource' => [
218 'location' => 'path',
219 'type' => 'string',
220 'required' => true,
221 ],
222 'options.requestedPolicyVersion' => [
223 'location' => 'query',
224 'type' => 'integer',
225 ],
226 ],
227 ],'import' => [
228 'path' => 'v1/{+parent}/registrations:import',
229 'httpMethod' => 'POST',
230 'parameters' => [
231 'parent' => [
232 'location' => 'path',
233 'type' => 'string',
234 'required' => true,
235 ],
236 ],
237 ],'initiatePushTransfer' => [
238 'path' => 'v1/{+registration}:initiatePushTransfer',
239 'httpMethod' => 'POST',
240 'parameters' => [
241 'registration' => [
242 'location' => 'path',
243 'type' => 'string',
244 'required' => true,
245 ],
246 ],
247 ],'list' => [
248 'path' => 'v1/{+parent}/registrations',
249 'httpMethod' => 'GET',
250 'parameters' => [
251 'parent' => [
252 'location' => 'path',
253 'type' => 'string',
254 'required' => true,
255 ],
256 'filter' => [
257 'location' => 'query',
258 'type' => 'string',
259 ],
260 'pageSize' => [
261 'location' => 'query',
262 'type' => 'integer',
263 ],
264 'pageToken' => [
265 'location' => 'query',
266 'type' => 'string',
267 ],
268 ],
269 ],'patch' => [
270 'path' => 'v1/{+name}',
271 'httpMethod' => 'PATCH',
272 'parameters' => [
273 'name' => [
274 'location' => 'path',
275 'type' => 'string',
276 'required' => true,
277 ],
278 'updateMask' => [
279 'location' => 'query',
280 'type' => 'string',
281 ],
282 ],
283 ],'register' => [
284 'path' => 'v1/{+parent}/registrations:register',
285 'httpMethod' => 'POST',
286 'parameters' => [
287 'parent' => [
288 'location' => 'path',
289 'type' => 'string',
290 'required' => true,
291 ],
292 ],
293 ],'renewDomain' => [
294 'path' => 'v1/{+registration}:renewDomain',
295 'httpMethod' => 'POST',
296 'parameters' => [
297 'registration' => [
298 'location' => 'path',
299 'type' => 'string',
300 'required' => true,
301 ],
302 ],
303 ],'resetAuthorizationCode' => [
304 'path' => 'v1/{+registration}:resetAuthorizationCode',
305 'httpMethod' => 'POST',
306 'parameters' => [
307 'registration' => [
308 'location' => 'path',
309 'type' => 'string',
310 'required' => true,
311 ],
312 ],
313 ],'retrieveAuthorizationCode' => [
314 'path' => 'v1/{+registration}:retrieveAuthorizationCode',
315 'httpMethod' => 'GET',
316 'parameters' => [
317 'registration' => [
318 'location' => 'path',
319 'type' => 'string',
320 'required' => true,
321 ],
322 ],
323 ],'retrieveGoogleDomainsDnsRecords' => [
324 'path' => 'v1/{+registration}:retrieveGoogleDomainsDnsRecords',
325 'httpMethod' => 'GET',
326 'parameters' => [
327 'registration' => [
328 'location' => 'path',
329 'type' => 'string',
330 'required' => true,
331 ],
332 'pageSize' => [
333 'location' => 'query',
334 'type' => 'integer',
335 ],
336 'pageToken' => [
337 'location' => 'query',
338 'type' => 'string',
339 ],
340 ],
341 ],'retrieveGoogleDomainsForwardingConfig' => [
342 'path' => 'v1/{+registration}:retrieveGoogleDomainsForwardingConfig',
343 'httpMethod' => 'GET',
344 'parameters' => [
345 'registration' => [
346 'location' => 'path',
347 'type' => 'string',
348 'required' => true,
349 ],
350 ],
351 ],'retrieveImportableDomains' => [
352 'path' => 'v1/{+location}/registrations:retrieveImportableDomains',
353 'httpMethod' => 'GET',
354 'parameters' => [
355 'location' => [
356 'location' => 'path',
357 'type' => 'string',
358 'required' => true,
359 ],
360 'pageSize' => [
361 'location' => 'query',
362 'type' => 'integer',
363 ],
364 'pageToken' => [
365 'location' => 'query',
366 'type' => 'string',
367 ],
368 ],
369 ],'retrieveRegisterParameters' => [
370 'path' => 'v1/{+location}/registrations:retrieveRegisterParameters',
371 'httpMethod' => 'GET',
372 'parameters' => [
373 'location' => [
374 'location' => 'path',
375 'type' => 'string',
376 'required' => true,
377 ],
378 'domainName' => [
379 'location' => 'query',
380 'type' => 'string',
381 ],
382 ],
383 ],'retrieveTransferParameters' => [
384 'path' => 'v1/{+location}/registrations:retrieveTransferParameters',
385 'httpMethod' => 'GET',
386 'parameters' => [
387 'location' => [
388 'location' => 'path',
389 'type' => 'string',
390 'required' => true,
391 ],
392 'domainName' => [
393 'location' => 'query',
394 'type' => 'string',
395 ],
396 ],
397 ],'searchDomains' => [
398 'path' => 'v1/{+location}/registrations:searchDomains',
399 'httpMethod' => 'GET',
400 'parameters' => [
401 'location' => [
402 'location' => 'path',
403 'type' => 'string',
404 'required' => true,
405 ],
406 'query' => [
407 'location' => 'query',
408 'type' => 'string',
409 ],
410 ],
411 ],'setIamPolicy' => [
412 'path' => 'v1/{+resource}:setIamPolicy',
413 'httpMethod' => 'POST',
414 'parameters' => [
415 'resource' => [
416 'location' => 'path',
417 'type' => 'string',
418 'required' => true,
419 ],
420 ],
421 ],'testIamPermissions' => [
422 'path' => 'v1/{+resource}:testIamPermissions',
423 'httpMethod' => 'POST',
424 'parameters' => [
425 'resource' => [
426 'location' => 'path',
427 'type' => 'string',
428 'required' => true,
429 ],
430 ],
431 ],'transfer' => [
432 'path' => 'v1/{+parent}/registrations:transfer',
433 'httpMethod' => 'POST',
434 'parameters' => [
435 'parent' => [
436 'location' => 'path',
437 'type' => 'string',
438 'required' => true,
439 ],
440 ],
441 ],
442 ]
443 ]
444 );
445 }
446}
447
448// Adding a class alias for backwards compatibility with the previous class name.
449class_alias(CloudDomains::class, 'Google_Service_CloudDomains');
Note: See TracBrowser for help on using the repository browser.