source: vendor/google/apiclient-services/src/CloudResourceManager.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: 26.5 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 CloudResourceManager (v3).
24 *
25 * <p>
26 * Creates, reads, and updates metadata for Google Cloud Platform resource
27 * containers.</p>
28 *
29 * <p>
30 * For more information about this service, see the API
31 * <a href="https://cloud.google.com/resource-manager" target="_blank">Documentation</a>
32 * </p>
33 *
34 * @author Google, Inc.
35 */
36class CloudResourceManager extends \Google\Service
37{
38 /** See, edit, configure, and delete your Google Cloud data and see the email address for your Google Account.. */
39 const CLOUD_PLATFORM =
40 "https://www.googleapis.com/auth/cloud-platform";
41 /** View your data across Google Cloud services and see the email address of your Google Account. */
42 const CLOUD_PLATFORM_READ_ONLY =
43 "https://www.googleapis.com/auth/cloud-platform.read-only";
44
45 public $effectiveTags;
46 public $folders;
47 public $liens;
48 public $operations;
49 public $organizations;
50 public $projects;
51 public $tagBindings;
52 public $tagKeys;
53 public $tagValues;
54 public $tagValues_tagHolds;
55 public $rootUrlTemplate;
56
57 /**
58 * Constructs the internal representation of the CloudResourceManager service.
59 *
60 * @param Client|array $clientOrConfig The client used to deliver requests, or a
61 * config array to pass to a new Client instance.
62 * @param string $rootUrl The root URL used for requests to the service.
63 */
64 public function __construct($clientOrConfig = [], $rootUrl = null)
65 {
66 parent::__construct($clientOrConfig);
67 $this->rootUrl = $rootUrl ?: 'https://cloudresourcemanager.googleapis.com/';
68 $this->rootUrlTemplate = $rootUrl ?: 'https://cloudresourcemanager.UNIVERSE_DOMAIN/';
69 $this->servicePath = '';
70 $this->batchPath = 'batch';
71 $this->version = 'v3';
72 $this->serviceName = 'cloudresourcemanager';
73
74 $this->effectiveTags = new CloudResourceManager\Resource\EffectiveTags(
75 $this,
76 $this->serviceName,
77 'effectiveTags',
78 [
79 'methods' => [
80 'list' => [
81 'path' => 'v3/effectiveTags',
82 'httpMethod' => 'GET',
83 'parameters' => [
84 'pageSize' => [
85 'location' => 'query',
86 'type' => 'integer',
87 ],
88 'pageToken' => [
89 'location' => 'query',
90 'type' => 'string',
91 ],
92 'parent' => [
93 'location' => 'query',
94 'type' => 'string',
95 ],
96 ],
97 ],
98 ]
99 ]
100 );
101 $this->folders = new CloudResourceManager\Resource\Folders(
102 $this,
103 $this->serviceName,
104 'folders',
105 [
106 'methods' => [
107 'create' => [
108 'path' => 'v3/folders',
109 'httpMethod' => 'POST',
110 'parameters' => [],
111 ],'delete' => [
112 'path' => 'v3/{+name}',
113 'httpMethod' => 'DELETE',
114 'parameters' => [
115 'name' => [
116 'location' => 'path',
117 'type' => 'string',
118 'required' => true,
119 ],
120 ],
121 ],'get' => [
122 'path' => 'v3/{+name}',
123 'httpMethod' => 'GET',
124 'parameters' => [
125 'name' => [
126 'location' => 'path',
127 'type' => 'string',
128 'required' => true,
129 ],
130 ],
131 ],'getIamPolicy' => [
132 'path' => 'v3/{+resource}:getIamPolicy',
133 'httpMethod' => 'POST',
134 'parameters' => [
135 'resource' => [
136 'location' => 'path',
137 'type' => 'string',
138 'required' => true,
139 ],
140 ],
141 ],'list' => [
142 'path' => 'v3/folders',
143 'httpMethod' => 'GET',
144 'parameters' => [
145 'pageSize' => [
146 'location' => 'query',
147 'type' => 'integer',
148 ],
149 'pageToken' => [
150 'location' => 'query',
151 'type' => 'string',
152 ],
153 'parent' => [
154 'location' => 'query',
155 'type' => 'string',
156 ],
157 'showDeleted' => [
158 'location' => 'query',
159 'type' => 'boolean',
160 ],
161 ],
162 ],'move' => [
163 'path' => 'v3/{+name}:move',
164 'httpMethod' => 'POST',
165 'parameters' => [
166 'name' => [
167 'location' => 'path',
168 'type' => 'string',
169 'required' => true,
170 ],
171 ],
172 ],'patch' => [
173 'path' => 'v3/{+name}',
174 'httpMethod' => 'PATCH',
175 'parameters' => [
176 'name' => [
177 'location' => 'path',
178 'type' => 'string',
179 'required' => true,
180 ],
181 'updateMask' => [
182 'location' => 'query',
183 'type' => 'string',
184 ],
185 ],
186 ],'search' => [
187 'path' => 'v3/folders:search',
188 'httpMethod' => 'GET',
189 'parameters' => [
190 'pageSize' => [
191 'location' => 'query',
192 'type' => 'integer',
193 ],
194 'pageToken' => [
195 'location' => 'query',
196 'type' => 'string',
197 ],
198 'query' => [
199 'location' => 'query',
200 'type' => 'string',
201 ],
202 ],
203 ],'setIamPolicy' => [
204 'path' => 'v3/{+resource}:setIamPolicy',
205 'httpMethod' => 'POST',
206 'parameters' => [
207 'resource' => [
208 'location' => 'path',
209 'type' => 'string',
210 'required' => true,
211 ],
212 ],
213 ],'testIamPermissions' => [
214 'path' => 'v3/{+resource}:testIamPermissions',
215 'httpMethod' => 'POST',
216 'parameters' => [
217 'resource' => [
218 'location' => 'path',
219 'type' => 'string',
220 'required' => true,
221 ],
222 ],
223 ],'undelete' => [
224 'path' => 'v3/{+name}:undelete',
225 'httpMethod' => 'POST',
226 'parameters' => [
227 'name' => [
228 'location' => 'path',
229 'type' => 'string',
230 'required' => true,
231 ],
232 ],
233 ],
234 ]
235 ]
236 );
237 $this->liens = new CloudResourceManager\Resource\Liens(
238 $this,
239 $this->serviceName,
240 'liens',
241 [
242 'methods' => [
243 'create' => [
244 'path' => 'v3/liens',
245 'httpMethod' => 'POST',
246 'parameters' => [],
247 ],'delete' => [
248 'path' => 'v3/{+name}',
249 'httpMethod' => 'DELETE',
250 'parameters' => [
251 'name' => [
252 'location' => 'path',
253 'type' => 'string',
254 'required' => true,
255 ],
256 ],
257 ],'get' => [
258 'path' => 'v3/{+name}',
259 'httpMethod' => 'GET',
260 'parameters' => [
261 'name' => [
262 'location' => 'path',
263 'type' => 'string',
264 'required' => true,
265 ],
266 ],
267 ],'list' => [
268 'path' => 'v3/liens',
269 'httpMethod' => 'GET',
270 'parameters' => [
271 'pageSize' => [
272 'location' => 'query',
273 'type' => 'integer',
274 ],
275 'pageToken' => [
276 'location' => 'query',
277 'type' => 'string',
278 ],
279 'parent' => [
280 'location' => 'query',
281 'type' => 'string',
282 ],
283 ],
284 ],
285 ]
286 ]
287 );
288 $this->operations = new CloudResourceManager\Resource\Operations(
289 $this,
290 $this->serviceName,
291 'operations',
292 [
293 'methods' => [
294 'get' => [
295 'path' => 'v3/{+name}',
296 'httpMethod' => 'GET',
297 'parameters' => [
298 'name' => [
299 'location' => 'path',
300 'type' => 'string',
301 'required' => true,
302 ],
303 ],
304 ],
305 ]
306 ]
307 );
308 $this->organizations = new CloudResourceManager\Resource\Organizations(
309 $this,
310 $this->serviceName,
311 'organizations',
312 [
313 'methods' => [
314 'get' => [
315 'path' => 'v3/{+name}',
316 'httpMethod' => 'GET',
317 'parameters' => [
318 'name' => [
319 'location' => 'path',
320 'type' => 'string',
321 'required' => true,
322 ],
323 ],
324 ],'getIamPolicy' => [
325 'path' => 'v3/{+resource}:getIamPolicy',
326 'httpMethod' => 'POST',
327 'parameters' => [
328 'resource' => [
329 'location' => 'path',
330 'type' => 'string',
331 'required' => true,
332 ],
333 ],
334 ],'search' => [
335 'path' => 'v3/organizations:search',
336 'httpMethod' => 'GET',
337 'parameters' => [
338 'pageSize' => [
339 'location' => 'query',
340 'type' => 'integer',
341 ],
342 'pageToken' => [
343 'location' => 'query',
344 'type' => 'string',
345 ],
346 'query' => [
347 'location' => 'query',
348 'type' => 'string',
349 ],
350 ],
351 ],'setIamPolicy' => [
352 'path' => 'v3/{+resource}:setIamPolicy',
353 'httpMethod' => 'POST',
354 'parameters' => [
355 'resource' => [
356 'location' => 'path',
357 'type' => 'string',
358 'required' => true,
359 ],
360 ],
361 ],'testIamPermissions' => [
362 'path' => 'v3/{+resource}:testIamPermissions',
363 'httpMethod' => 'POST',
364 'parameters' => [
365 'resource' => [
366 'location' => 'path',
367 'type' => 'string',
368 'required' => true,
369 ],
370 ],
371 ],
372 ]
373 ]
374 );
375 $this->projects = new CloudResourceManager\Resource\Projects(
376 $this,
377 $this->serviceName,
378 'projects',
379 [
380 'methods' => [
381 'create' => [
382 'path' => 'v3/projects',
383 'httpMethod' => 'POST',
384 'parameters' => [],
385 ],'delete' => [
386 'path' => 'v3/{+name}',
387 'httpMethod' => 'DELETE',
388 'parameters' => [
389 'name' => [
390 'location' => 'path',
391 'type' => 'string',
392 'required' => true,
393 ],
394 ],
395 ],'get' => [
396 'path' => 'v3/{+name}',
397 'httpMethod' => 'GET',
398 'parameters' => [
399 'name' => [
400 'location' => 'path',
401 'type' => 'string',
402 'required' => true,
403 ],
404 ],
405 ],'getIamPolicy' => [
406 'path' => 'v3/{+resource}:getIamPolicy',
407 'httpMethod' => 'POST',
408 'parameters' => [
409 'resource' => [
410 'location' => 'path',
411 'type' => 'string',
412 'required' => true,
413 ],
414 ],
415 ],'list' => [
416 'path' => 'v3/projects',
417 'httpMethod' => 'GET',
418 'parameters' => [
419 'pageSize' => [
420 'location' => 'query',
421 'type' => 'integer',
422 ],
423 'pageToken' => [
424 'location' => 'query',
425 'type' => 'string',
426 ],
427 'parent' => [
428 'location' => 'query',
429 'type' => 'string',
430 ],
431 'showDeleted' => [
432 'location' => 'query',
433 'type' => 'boolean',
434 ],
435 ],
436 ],'move' => [
437 'path' => 'v3/{+name}:move',
438 'httpMethod' => 'POST',
439 'parameters' => [
440 'name' => [
441 'location' => 'path',
442 'type' => 'string',
443 'required' => true,
444 ],
445 ],
446 ],'patch' => [
447 'path' => 'v3/{+name}',
448 'httpMethod' => 'PATCH',
449 'parameters' => [
450 'name' => [
451 'location' => 'path',
452 'type' => 'string',
453 'required' => true,
454 ],
455 'updateMask' => [
456 'location' => 'query',
457 'type' => 'string',
458 ],
459 ],
460 ],'search' => [
461 'path' => 'v3/projects:search',
462 'httpMethod' => 'GET',
463 'parameters' => [
464 'pageSize' => [
465 'location' => 'query',
466 'type' => 'integer',
467 ],
468 'pageToken' => [
469 'location' => 'query',
470 'type' => 'string',
471 ],
472 'query' => [
473 'location' => 'query',
474 'type' => 'string',
475 ],
476 ],
477 ],'setIamPolicy' => [
478 'path' => 'v3/{+resource}:setIamPolicy',
479 'httpMethod' => 'POST',
480 'parameters' => [
481 'resource' => [
482 'location' => 'path',
483 'type' => 'string',
484 'required' => true,
485 ],
486 ],
487 ],'testIamPermissions' => [
488 'path' => 'v3/{+resource}:testIamPermissions',
489 'httpMethod' => 'POST',
490 'parameters' => [
491 'resource' => [
492 'location' => 'path',
493 'type' => 'string',
494 'required' => true,
495 ],
496 ],
497 ],'undelete' => [
498 'path' => 'v3/{+name}:undelete',
499 'httpMethod' => 'POST',
500 'parameters' => [
501 'name' => [
502 'location' => 'path',
503 'type' => 'string',
504 'required' => true,
505 ],
506 ],
507 ],
508 ]
509 ]
510 );
511 $this->tagBindings = new CloudResourceManager\Resource\TagBindings(
512 $this,
513 $this->serviceName,
514 'tagBindings',
515 [
516 'methods' => [
517 'create' => [
518 'path' => 'v3/tagBindings',
519 'httpMethod' => 'POST',
520 'parameters' => [
521 'validateOnly' => [
522 'location' => 'query',
523 'type' => 'boolean',
524 ],
525 ],
526 ],'delete' => [
527 'path' => 'v3/{+name}',
528 'httpMethod' => 'DELETE',
529 'parameters' => [
530 'name' => [
531 'location' => 'path',
532 'type' => 'string',
533 'required' => true,
534 ],
535 ],
536 ],'list' => [
537 'path' => 'v3/tagBindings',
538 'httpMethod' => 'GET',
539 'parameters' => [
540 'pageSize' => [
541 'location' => 'query',
542 'type' => 'integer',
543 ],
544 'pageToken' => [
545 'location' => 'query',
546 'type' => 'string',
547 ],
548 'parent' => [
549 'location' => 'query',
550 'type' => 'string',
551 ],
552 ],
553 ],
554 ]
555 ]
556 );
557 $this->tagKeys = new CloudResourceManager\Resource\TagKeys(
558 $this,
559 $this->serviceName,
560 'tagKeys',
561 [
562 'methods' => [
563 'create' => [
564 'path' => 'v3/tagKeys',
565 'httpMethod' => 'POST',
566 'parameters' => [
567 'validateOnly' => [
568 'location' => 'query',
569 'type' => 'boolean',
570 ],
571 ],
572 ],'delete' => [
573 'path' => 'v3/{+name}',
574 'httpMethod' => 'DELETE',
575 'parameters' => [
576 'name' => [
577 'location' => 'path',
578 'type' => 'string',
579 'required' => true,
580 ],
581 'etag' => [
582 'location' => 'query',
583 'type' => 'string',
584 ],
585 'validateOnly' => [
586 'location' => 'query',
587 'type' => 'boolean',
588 ],
589 ],
590 ],'get' => [
591 'path' => 'v3/{+name}',
592 'httpMethod' => 'GET',
593 'parameters' => [
594 'name' => [
595 'location' => 'path',
596 'type' => 'string',
597 'required' => true,
598 ],
599 ],
600 ],'getIamPolicy' => [
601 'path' => 'v3/{+resource}:getIamPolicy',
602 'httpMethod' => 'POST',
603 'parameters' => [
604 'resource' => [
605 'location' => 'path',
606 'type' => 'string',
607 'required' => true,
608 ],
609 ],
610 ],'getNamespaced' => [
611 'path' => 'v3/tagKeys/namespaced',
612 'httpMethod' => 'GET',
613 'parameters' => [
614 'name' => [
615 'location' => 'query',
616 'type' => 'string',
617 ],
618 ],
619 ],'list' => [
620 'path' => 'v3/tagKeys',
621 'httpMethod' => 'GET',
622 'parameters' => [
623 'pageSize' => [
624 'location' => 'query',
625 'type' => 'integer',
626 ],
627 'pageToken' => [
628 'location' => 'query',
629 'type' => 'string',
630 ],
631 'parent' => [
632 'location' => 'query',
633 'type' => 'string',
634 ],
635 ],
636 ],'patch' => [
637 'path' => 'v3/{+name}',
638 'httpMethod' => 'PATCH',
639 'parameters' => [
640 'name' => [
641 'location' => 'path',
642 'type' => 'string',
643 'required' => true,
644 ],
645 'updateMask' => [
646 'location' => 'query',
647 'type' => 'string',
648 ],
649 'validateOnly' => [
650 'location' => 'query',
651 'type' => 'boolean',
652 ],
653 ],
654 ],'setIamPolicy' => [
655 'path' => 'v3/{+resource}:setIamPolicy',
656 'httpMethod' => 'POST',
657 'parameters' => [
658 'resource' => [
659 'location' => 'path',
660 'type' => 'string',
661 'required' => true,
662 ],
663 ],
664 ],'testIamPermissions' => [
665 'path' => 'v3/{+resource}:testIamPermissions',
666 'httpMethod' => 'POST',
667 'parameters' => [
668 'resource' => [
669 'location' => 'path',
670 'type' => 'string',
671 'required' => true,
672 ],
673 ],
674 ],
675 ]
676 ]
677 );
678 $this->tagValues = new CloudResourceManager\Resource\TagValues(
679 $this,
680 $this->serviceName,
681 'tagValues',
682 [
683 'methods' => [
684 'create' => [
685 'path' => 'v3/tagValues',
686 'httpMethod' => 'POST',
687 'parameters' => [
688 'validateOnly' => [
689 'location' => 'query',
690 'type' => 'boolean',
691 ],
692 ],
693 ],'delete' => [
694 'path' => 'v3/{+name}',
695 'httpMethod' => 'DELETE',
696 'parameters' => [
697 'name' => [
698 'location' => 'path',
699 'type' => 'string',
700 'required' => true,
701 ],
702 'etag' => [
703 'location' => 'query',
704 'type' => 'string',
705 ],
706 'validateOnly' => [
707 'location' => 'query',
708 'type' => 'boolean',
709 ],
710 ],
711 ],'get' => [
712 'path' => 'v3/{+name}',
713 'httpMethod' => 'GET',
714 'parameters' => [
715 'name' => [
716 'location' => 'path',
717 'type' => 'string',
718 'required' => true,
719 ],
720 ],
721 ],'getIamPolicy' => [
722 'path' => 'v3/{+resource}:getIamPolicy',
723 'httpMethod' => 'POST',
724 'parameters' => [
725 'resource' => [
726 'location' => 'path',
727 'type' => 'string',
728 'required' => true,
729 ],
730 ],
731 ],'getNamespaced' => [
732 'path' => 'v3/tagValues/namespaced',
733 'httpMethod' => 'GET',
734 'parameters' => [
735 'name' => [
736 'location' => 'query',
737 'type' => 'string',
738 ],
739 ],
740 ],'list' => [
741 'path' => 'v3/tagValues',
742 'httpMethod' => 'GET',
743 'parameters' => [
744 'pageSize' => [
745 'location' => 'query',
746 'type' => 'integer',
747 ],
748 'pageToken' => [
749 'location' => 'query',
750 'type' => 'string',
751 ],
752 'parent' => [
753 'location' => 'query',
754 'type' => 'string',
755 ],
756 ],
757 ],'patch' => [
758 'path' => 'v3/{+name}',
759 'httpMethod' => 'PATCH',
760 'parameters' => [
761 'name' => [
762 'location' => 'path',
763 'type' => 'string',
764 'required' => true,
765 ],
766 'updateMask' => [
767 'location' => 'query',
768 'type' => 'string',
769 ],
770 'validateOnly' => [
771 'location' => 'query',
772 'type' => 'boolean',
773 ],
774 ],
775 ],'setIamPolicy' => [
776 'path' => 'v3/{+resource}:setIamPolicy',
777 'httpMethod' => 'POST',
778 'parameters' => [
779 'resource' => [
780 'location' => 'path',
781 'type' => 'string',
782 'required' => true,
783 ],
784 ],
785 ],'testIamPermissions' => [
786 'path' => 'v3/{+resource}:testIamPermissions',
787 'httpMethod' => 'POST',
788 'parameters' => [
789 'resource' => [
790 'location' => 'path',
791 'type' => 'string',
792 'required' => true,
793 ],
794 ],
795 ],
796 ]
797 ]
798 );
799 $this->tagValues_tagHolds = new CloudResourceManager\Resource\TagValuesTagHolds(
800 $this,
801 $this->serviceName,
802 'tagHolds',
803 [
804 'methods' => [
805 'create' => [
806 'path' => 'v3/{+parent}/tagHolds',
807 'httpMethod' => 'POST',
808 'parameters' => [
809 'parent' => [
810 'location' => 'path',
811 'type' => 'string',
812 'required' => true,
813 ],
814 'validateOnly' => [
815 'location' => 'query',
816 'type' => 'boolean',
817 ],
818 ],
819 ],'delete' => [
820 'path' => 'v3/{+name}',
821 'httpMethod' => 'DELETE',
822 'parameters' => [
823 'name' => [
824 'location' => 'path',
825 'type' => 'string',
826 'required' => true,
827 ],
828 'validateOnly' => [
829 'location' => 'query',
830 'type' => 'boolean',
831 ],
832 ],
833 ],'list' => [
834 'path' => 'v3/{+parent}/tagHolds',
835 'httpMethod' => 'GET',
836 'parameters' => [
837 'parent' => [
838 'location' => 'path',
839 'type' => 'string',
840 'required' => true,
841 ],
842 'filter' => [
843 'location' => 'query',
844 'type' => 'string',
845 ],
846 'pageSize' => [
847 'location' => 'query',
848 'type' => 'integer',
849 ],
850 'pageToken' => [
851 'location' => 'query',
852 'type' => 'string',
853 ],
854 ],
855 ],
856 ]
857 ]
858 );
859 }
860}
861
862// Adding a class alias for backwards compatibility with the previous class name.
863class_alias(CloudResourceManager::class, 'Google_Service_CloudResourceManager');
Note: See TracBrowser for help on using the repository browser.