source: vendor/google/apiclient-services/src/Config.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: 18.9 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 Config (v1).
24 *
25 * <p>
26 * Creates and manages Google Cloud Platform resources and infrastructure.</p>
27 *
28 * <p>
29 * For more information about this service, see the API
30 * <a href="https://cloud.google.com/infrastructure-manager/docs" target="_blank">Documentation</a>
31 * </p>
32 *
33 * @author Google, Inc.
34 */
35class Config 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_deployments;
43 public $projects_locations_deployments_revisions;
44 public $projects_locations_deployments_revisions_resources;
45 public $projects_locations_operations;
46 public $projects_locations_previews;
47 public $projects_locations_terraformVersions;
48 public $rootUrlTemplate;
49
50 /**
51 * Constructs the internal representation of the Config service.
52 *
53 * @param Client|array $clientOrConfig The client used to deliver requests, or a
54 * config array to pass to a new Client instance.
55 * @param string $rootUrl The root URL used for requests to the service.
56 */
57 public function __construct($clientOrConfig = [], $rootUrl = null)
58 {
59 parent::__construct($clientOrConfig);
60 $this->rootUrl = $rootUrl ?: 'https://config.googleapis.com/';
61 $this->rootUrlTemplate = $rootUrl ?: 'https://config.UNIVERSE_DOMAIN/';
62 $this->servicePath = '';
63 $this->batchPath = 'batch';
64 $this->version = 'v1';
65 $this->serviceName = 'config';
66
67 $this->projects_locations = new Config\Resource\ProjectsLocations(
68 $this,
69 $this->serviceName,
70 'locations',
71 [
72 'methods' => [
73 'get' => [
74 'path' => 'v1/{+name}',
75 'httpMethod' => 'GET',
76 'parameters' => [
77 'name' => [
78 'location' => 'path',
79 'type' => 'string',
80 'required' => true,
81 ],
82 ],
83 ],'list' => [
84 'path' => 'v1/{+name}/locations',
85 'httpMethod' => 'GET',
86 'parameters' => [
87 'name' => [
88 'location' => 'path',
89 'type' => 'string',
90 'required' => true,
91 ],
92 'filter' => [
93 'location' => 'query',
94 'type' => 'string',
95 ],
96 'pageSize' => [
97 'location' => 'query',
98 'type' => 'integer',
99 ],
100 'pageToken' => [
101 'location' => 'query',
102 'type' => 'string',
103 ],
104 ],
105 ],
106 ]
107 ]
108 );
109 $this->projects_locations_deployments = new Config\Resource\ProjectsLocationsDeployments(
110 $this,
111 $this->serviceName,
112 'deployments',
113 [
114 'methods' => [
115 'create' => [
116 'path' => 'v1/{+parent}/deployments',
117 'httpMethod' => 'POST',
118 'parameters' => [
119 'parent' => [
120 'location' => 'path',
121 'type' => 'string',
122 'required' => true,
123 ],
124 'deploymentId' => [
125 'location' => 'query',
126 'type' => 'string',
127 ],
128 'requestId' => [
129 'location' => 'query',
130 'type' => 'string',
131 ],
132 ],
133 ],'delete' => [
134 'path' => 'v1/{+name}',
135 'httpMethod' => 'DELETE',
136 'parameters' => [
137 'name' => [
138 'location' => 'path',
139 'type' => 'string',
140 'required' => true,
141 ],
142 'deletePolicy' => [
143 'location' => 'query',
144 'type' => 'string',
145 ],
146 'force' => [
147 'location' => 'query',
148 'type' => 'boolean',
149 ],
150 'requestId' => [
151 'location' => 'query',
152 'type' => 'string',
153 ],
154 ],
155 ],'deleteState' => [
156 'path' => 'v1/{+name}:deleteState',
157 'httpMethod' => 'POST',
158 'parameters' => [
159 'name' => [
160 'location' => 'path',
161 'type' => 'string',
162 'required' => true,
163 ],
164 ],
165 ],'exportLock' => [
166 'path' => 'v1/{+name}:exportLock',
167 'httpMethod' => 'GET',
168 'parameters' => [
169 'name' => [
170 'location' => 'path',
171 'type' => 'string',
172 'required' => true,
173 ],
174 ],
175 ],'exportState' => [
176 'path' => 'v1/{+parent}:exportState',
177 'httpMethod' => 'POST',
178 'parameters' => [
179 'parent' => [
180 'location' => 'path',
181 'type' => 'string',
182 'required' => true,
183 ],
184 ],
185 ],'get' => [
186 'path' => 'v1/{+name}',
187 'httpMethod' => 'GET',
188 'parameters' => [
189 'name' => [
190 'location' => 'path',
191 'type' => 'string',
192 'required' => true,
193 ],
194 ],
195 ],'getIamPolicy' => [
196 'path' => 'v1/{+resource}:getIamPolicy',
197 'httpMethod' => 'GET',
198 'parameters' => [
199 'resource' => [
200 'location' => 'path',
201 'type' => 'string',
202 'required' => true,
203 ],
204 'options.requestedPolicyVersion' => [
205 'location' => 'query',
206 'type' => 'integer',
207 ],
208 ],
209 ],'importState' => [
210 'path' => 'v1/{+parent}:importState',
211 'httpMethod' => 'POST',
212 'parameters' => [
213 'parent' => [
214 'location' => 'path',
215 'type' => 'string',
216 'required' => true,
217 ],
218 ],
219 ],'list' => [
220 'path' => 'v1/{+parent}/deployments',
221 'httpMethod' => 'GET',
222 'parameters' => [
223 'parent' => [
224 'location' => 'path',
225 'type' => 'string',
226 'required' => true,
227 ],
228 'filter' => [
229 'location' => 'query',
230 'type' => 'string',
231 ],
232 'orderBy' => [
233 'location' => 'query',
234 'type' => 'string',
235 ],
236 'pageSize' => [
237 'location' => 'query',
238 'type' => 'integer',
239 ],
240 'pageToken' => [
241 'location' => 'query',
242 'type' => 'string',
243 ],
244 ],
245 ],'lock' => [
246 'path' => 'v1/{+name}:lock',
247 'httpMethod' => 'POST',
248 'parameters' => [
249 'name' => [
250 'location' => 'path',
251 'type' => 'string',
252 'required' => true,
253 ],
254 ],
255 ],'patch' => [
256 'path' => 'v1/{+name}',
257 'httpMethod' => 'PATCH',
258 'parameters' => [
259 'name' => [
260 'location' => 'path',
261 'type' => 'string',
262 'required' => true,
263 ],
264 'requestId' => [
265 'location' => 'query',
266 'type' => 'string',
267 ],
268 'updateMask' => [
269 'location' => 'query',
270 'type' => 'string',
271 ],
272 ],
273 ],'setIamPolicy' => [
274 'path' => 'v1/{+resource}:setIamPolicy',
275 'httpMethod' => 'POST',
276 'parameters' => [
277 'resource' => [
278 'location' => 'path',
279 'type' => 'string',
280 'required' => true,
281 ],
282 ],
283 ],'testIamPermissions' => [
284 'path' => 'v1/{+resource}:testIamPermissions',
285 'httpMethod' => 'POST',
286 'parameters' => [
287 'resource' => [
288 'location' => 'path',
289 'type' => 'string',
290 'required' => true,
291 ],
292 ],
293 ],'unlock' => [
294 'path' => 'v1/{+name}:unlock',
295 'httpMethod' => 'POST',
296 'parameters' => [
297 'name' => [
298 'location' => 'path',
299 'type' => 'string',
300 'required' => true,
301 ],
302 ],
303 ],
304 ]
305 ]
306 );
307 $this->projects_locations_deployments_revisions = new Config\Resource\ProjectsLocationsDeploymentsRevisions(
308 $this,
309 $this->serviceName,
310 'revisions',
311 [
312 'methods' => [
313 'exportState' => [
314 'path' => 'v1/{+parent}:exportState',
315 'httpMethod' => 'POST',
316 'parameters' => [
317 'parent' => [
318 'location' => 'path',
319 'type' => 'string',
320 'required' => true,
321 ],
322 ],
323 ],'get' => [
324 'path' => 'v1/{+name}',
325 'httpMethod' => 'GET',
326 'parameters' => [
327 'name' => [
328 'location' => 'path',
329 'type' => 'string',
330 'required' => true,
331 ],
332 ],
333 ],'list' => [
334 'path' => 'v1/{+parent}/revisions',
335 'httpMethod' => 'GET',
336 'parameters' => [
337 'parent' => [
338 'location' => 'path',
339 'type' => 'string',
340 'required' => true,
341 ],
342 'filter' => [
343 'location' => 'query',
344 'type' => 'string',
345 ],
346 'orderBy' => [
347 'location' => 'query',
348 'type' => 'string',
349 ],
350 'pageSize' => [
351 'location' => 'query',
352 'type' => 'integer',
353 ],
354 'pageToken' => [
355 'location' => 'query',
356 'type' => 'string',
357 ],
358 ],
359 ],
360 ]
361 ]
362 );
363 $this->projects_locations_deployments_revisions_resources = new Config\Resource\ProjectsLocationsDeploymentsRevisionsResources(
364 $this,
365 $this->serviceName,
366 'resources',
367 [
368 'methods' => [
369 'get' => [
370 'path' => 'v1/{+name}',
371 'httpMethod' => 'GET',
372 'parameters' => [
373 'name' => [
374 'location' => 'path',
375 'type' => 'string',
376 'required' => true,
377 ],
378 ],
379 ],'list' => [
380 'path' => 'v1/{+parent}/resources',
381 'httpMethod' => 'GET',
382 'parameters' => [
383 'parent' => [
384 'location' => 'path',
385 'type' => 'string',
386 'required' => true,
387 ],
388 'filter' => [
389 'location' => 'query',
390 'type' => 'string',
391 ],
392 'orderBy' => [
393 'location' => 'query',
394 'type' => 'string',
395 ],
396 'pageSize' => [
397 'location' => 'query',
398 'type' => 'integer',
399 ],
400 'pageToken' => [
401 'location' => 'query',
402 'type' => 'string',
403 ],
404 ],
405 ],
406 ]
407 ]
408 );
409 $this->projects_locations_operations = new Config\Resource\ProjectsLocationsOperations(
410 $this,
411 $this->serviceName,
412 'operations',
413 [
414 'methods' => [
415 'cancel' => [
416 'path' => 'v1/{+name}:cancel',
417 'httpMethod' => 'POST',
418 'parameters' => [
419 'name' => [
420 'location' => 'path',
421 'type' => 'string',
422 'required' => true,
423 ],
424 ],
425 ],'delete' => [
426 'path' => 'v1/{+name}',
427 'httpMethod' => 'DELETE',
428 'parameters' => [
429 'name' => [
430 'location' => 'path',
431 'type' => 'string',
432 'required' => true,
433 ],
434 ],
435 ],'get' => [
436 'path' => 'v1/{+name}',
437 'httpMethod' => 'GET',
438 'parameters' => [
439 'name' => [
440 'location' => 'path',
441 'type' => 'string',
442 'required' => true,
443 ],
444 ],
445 ],'list' => [
446 'path' => 'v1/{+name}/operations',
447 'httpMethod' => 'GET',
448 'parameters' => [
449 'name' => [
450 'location' => 'path',
451 'type' => 'string',
452 'required' => true,
453 ],
454 'filter' => [
455 'location' => 'query',
456 'type' => 'string',
457 ],
458 'pageSize' => [
459 'location' => 'query',
460 'type' => 'integer',
461 ],
462 'pageToken' => [
463 'location' => 'query',
464 'type' => 'string',
465 ],
466 ],
467 ],
468 ]
469 ]
470 );
471 $this->projects_locations_previews = new Config\Resource\ProjectsLocationsPreviews(
472 $this,
473 $this->serviceName,
474 'previews',
475 [
476 'methods' => [
477 'create' => [
478 'path' => 'v1/{+parent}/previews',
479 'httpMethod' => 'POST',
480 'parameters' => [
481 'parent' => [
482 'location' => 'path',
483 'type' => 'string',
484 'required' => true,
485 ],
486 'previewId' => [
487 'location' => 'query',
488 'type' => 'string',
489 ],
490 'requestId' => [
491 'location' => 'query',
492 'type' => 'string',
493 ],
494 ],
495 ],'delete' => [
496 'path' => 'v1/{+name}',
497 'httpMethod' => 'DELETE',
498 'parameters' => [
499 'name' => [
500 'location' => 'path',
501 'type' => 'string',
502 'required' => true,
503 ],
504 'requestId' => [
505 'location' => 'query',
506 'type' => 'string',
507 ],
508 ],
509 ],'export' => [
510 'path' => 'v1/{+parent}:export',
511 'httpMethod' => 'POST',
512 'parameters' => [
513 'parent' => [
514 'location' => 'path',
515 'type' => 'string',
516 'required' => true,
517 ],
518 ],
519 ],'get' => [
520 'path' => 'v1/{+name}',
521 'httpMethod' => 'GET',
522 'parameters' => [
523 'name' => [
524 'location' => 'path',
525 'type' => 'string',
526 'required' => true,
527 ],
528 ],
529 ],'list' => [
530 'path' => 'v1/{+parent}/previews',
531 'httpMethod' => 'GET',
532 'parameters' => [
533 'parent' => [
534 'location' => 'path',
535 'type' => 'string',
536 'required' => true,
537 ],
538 'filter' => [
539 'location' => 'query',
540 'type' => 'string',
541 ],
542 'orderBy' => [
543 'location' => 'query',
544 'type' => 'string',
545 ],
546 'pageSize' => [
547 'location' => 'query',
548 'type' => 'integer',
549 ],
550 'pageToken' => [
551 'location' => 'query',
552 'type' => 'string',
553 ],
554 ],
555 ],
556 ]
557 ]
558 );
559 $this->projects_locations_terraformVersions = new Config\Resource\ProjectsLocationsTerraformVersions(
560 $this,
561 $this->serviceName,
562 'terraformVersions',
563 [
564 'methods' => [
565 'get' => [
566 'path' => 'v1/{+name}',
567 'httpMethod' => 'GET',
568 'parameters' => [
569 'name' => [
570 'location' => 'path',
571 'type' => 'string',
572 'required' => true,
573 ],
574 ],
575 ],'list' => [
576 'path' => 'v1/{+parent}/terraformVersions',
577 'httpMethod' => 'GET',
578 'parameters' => [
579 'parent' => [
580 'location' => 'path',
581 'type' => 'string',
582 'required' => true,
583 ],
584 'filter' => [
585 'location' => 'query',
586 'type' => 'string',
587 ],
588 'orderBy' => [
589 'location' => 'query',
590 'type' => 'string',
591 ],
592 'pageSize' => [
593 'location' => 'query',
594 'type' => 'integer',
595 ],
596 'pageToken' => [
597 'location' => 'query',
598 'type' => 'string',
599 ],
600 ],
601 ],
602 ]
603 ]
604 );
605 }
606}
607
608// Adding a class alias for backwards compatibility with the previous class name.
609class_alias(Config::class, 'Google_Service_Config');
Note: See TracBrowser for help on using the repository browser.