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