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