source: vendor/google/apiclient-services/src/SQLAdmin.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: 39.7 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 SQLAdmin (v1).
24 *
25 * <p>
26 * API for Cloud SQL database instance management</p>
27 *
28 * <p>
29 * For more information about this service, see the API
30 * <a href="https://developers.google.com/cloud-sql/" target="_blank">Documentation</a>
31 * </p>
32 *
33 * @author Google, Inc.
34 */
35class SQLAdmin 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 /** Manage your Google SQL Service instances. */
41 const SQLSERVICE_ADMIN =
42 "https://www.googleapis.com/auth/sqlservice.admin";
43
44 public $backupRuns;
45 public $connect;
46 public $databases;
47 public $flags;
48 public $instances;
49 public $operations;
50 public $projects_instances;
51 public $sslCerts;
52 public $tiers;
53 public $users;
54 public $rootUrlTemplate;
55
56 /**
57 * Constructs the internal representation of the SQLAdmin service.
58 *
59 * @param Client|array $clientOrConfig The client used to deliver requests, or a
60 * config array to pass to a new Client instance.
61 * @param string $rootUrl The root URL used for requests to the service.
62 */
63 public function __construct($clientOrConfig = [], $rootUrl = null)
64 {
65 parent::__construct($clientOrConfig);
66 $this->rootUrl = $rootUrl ?: 'https://sqladmin.googleapis.com/';
67 $this->rootUrlTemplate = $rootUrl ?: 'https://sqladmin.UNIVERSE_DOMAIN/';
68 $this->servicePath = '';
69 $this->batchPath = 'batch';
70 $this->version = 'v1';
71 $this->serviceName = 'sqladmin';
72
73 $this->backupRuns = new SQLAdmin\Resource\BackupRuns(
74 $this,
75 $this->serviceName,
76 'backupRuns',
77 [
78 'methods' => [
79 'delete' => [
80 'path' => 'v1/projects/{project}/instances/{instance}/backupRuns/{id}',
81 'httpMethod' => 'DELETE',
82 'parameters' => [
83 'project' => [
84 'location' => 'path',
85 'type' => 'string',
86 'required' => true,
87 ],
88 'instance' => [
89 'location' => 'path',
90 'type' => 'string',
91 'required' => true,
92 ],
93 'id' => [
94 'location' => 'path',
95 'type' => 'string',
96 'required' => true,
97 ],
98 ],
99 ],'get' => [
100 'path' => 'v1/projects/{project}/instances/{instance}/backupRuns/{id}',
101 'httpMethod' => 'GET',
102 'parameters' => [
103 'project' => [
104 'location' => 'path',
105 'type' => 'string',
106 'required' => true,
107 ],
108 'instance' => [
109 'location' => 'path',
110 'type' => 'string',
111 'required' => true,
112 ],
113 'id' => [
114 'location' => 'path',
115 'type' => 'string',
116 'required' => true,
117 ],
118 ],
119 ],'insert' => [
120 'path' => 'v1/projects/{project}/instances/{instance}/backupRuns',
121 'httpMethod' => 'POST',
122 'parameters' => [
123 'project' => [
124 'location' => 'path',
125 'type' => 'string',
126 'required' => true,
127 ],
128 'instance' => [
129 'location' => 'path',
130 'type' => 'string',
131 'required' => true,
132 ],
133 ],
134 ],'list' => [
135 'path' => 'v1/projects/{project}/instances/{instance}/backupRuns',
136 'httpMethod' => 'GET',
137 'parameters' => [
138 'project' => [
139 'location' => 'path',
140 'type' => 'string',
141 'required' => true,
142 ],
143 'instance' => [
144 'location' => 'path',
145 'type' => 'string',
146 'required' => true,
147 ],
148 'maxResults' => [
149 'location' => 'query',
150 'type' => 'integer',
151 ],
152 'pageToken' => [
153 'location' => 'query',
154 'type' => 'string',
155 ],
156 ],
157 ],
158 ]
159 ]
160 );
161 $this->connect = new SQLAdmin\Resource\Connect(
162 $this,
163 $this->serviceName,
164 'connect',
165 [
166 'methods' => [
167 'generateEphemeralCert' => [
168 'path' => 'v1/projects/{project}/instances/{instance}:generateEphemeralCert',
169 'httpMethod' => 'POST',
170 'parameters' => [
171 'project' => [
172 'location' => 'path',
173 'type' => 'string',
174 'required' => true,
175 ],
176 'instance' => [
177 'location' => 'path',
178 'type' => 'string',
179 'required' => true,
180 ],
181 ],
182 ],'get' => [
183 'path' => 'v1/projects/{project}/instances/{instance}/connectSettings',
184 'httpMethod' => 'GET',
185 'parameters' => [
186 'project' => [
187 'location' => 'path',
188 'type' => 'string',
189 'required' => true,
190 ],
191 'instance' => [
192 'location' => 'path',
193 'type' => 'string',
194 'required' => true,
195 ],
196 'readTime' => [
197 'location' => 'query',
198 'type' => 'string',
199 ],
200 ],
201 ],
202 ]
203 ]
204 );
205 $this->databases = new SQLAdmin\Resource\Databases(
206 $this,
207 $this->serviceName,
208 'databases',
209 [
210 'methods' => [
211 'delete' => [
212 'path' => 'v1/projects/{project}/instances/{instance}/databases/{database}',
213 'httpMethod' => 'DELETE',
214 'parameters' => [
215 'project' => [
216 'location' => 'path',
217 'type' => 'string',
218 'required' => true,
219 ],
220 'instance' => [
221 'location' => 'path',
222 'type' => 'string',
223 'required' => true,
224 ],
225 'database' => [
226 'location' => 'path',
227 'type' => 'string',
228 'required' => true,
229 ],
230 ],
231 ],'get' => [
232 'path' => 'v1/projects/{project}/instances/{instance}/databases/{database}',
233 'httpMethod' => 'GET',
234 'parameters' => [
235 'project' => [
236 'location' => 'path',
237 'type' => 'string',
238 'required' => true,
239 ],
240 'instance' => [
241 'location' => 'path',
242 'type' => 'string',
243 'required' => true,
244 ],
245 'database' => [
246 'location' => 'path',
247 'type' => 'string',
248 'required' => true,
249 ],
250 ],
251 ],'insert' => [
252 'path' => 'v1/projects/{project}/instances/{instance}/databases',
253 'httpMethod' => 'POST',
254 'parameters' => [
255 'project' => [
256 'location' => 'path',
257 'type' => 'string',
258 'required' => true,
259 ],
260 'instance' => [
261 'location' => 'path',
262 'type' => 'string',
263 'required' => true,
264 ],
265 ],
266 ],'list' => [
267 'path' => 'v1/projects/{project}/instances/{instance}/databases',
268 'httpMethod' => 'GET',
269 'parameters' => [
270 'project' => [
271 'location' => 'path',
272 'type' => 'string',
273 'required' => true,
274 ],
275 'instance' => [
276 'location' => 'path',
277 'type' => 'string',
278 'required' => true,
279 ],
280 ],
281 ],'patch' => [
282 'path' => 'v1/projects/{project}/instances/{instance}/databases/{database}',
283 'httpMethod' => 'PATCH',
284 'parameters' => [
285 'project' => [
286 'location' => 'path',
287 'type' => 'string',
288 'required' => true,
289 ],
290 'instance' => [
291 'location' => 'path',
292 'type' => 'string',
293 'required' => true,
294 ],
295 'database' => [
296 'location' => 'path',
297 'type' => 'string',
298 'required' => true,
299 ],
300 ],
301 ],'update' => [
302 'path' => 'v1/projects/{project}/instances/{instance}/databases/{database}',
303 'httpMethod' => 'PUT',
304 'parameters' => [
305 'project' => [
306 'location' => 'path',
307 'type' => 'string',
308 'required' => true,
309 ],
310 'instance' => [
311 'location' => 'path',
312 'type' => 'string',
313 'required' => true,
314 ],
315 'database' => [
316 'location' => 'path',
317 'type' => 'string',
318 'required' => true,
319 ],
320 ],
321 ],
322 ]
323 ]
324 );
325 $this->flags = new SQLAdmin\Resource\Flags(
326 $this,
327 $this->serviceName,
328 'flags',
329 [
330 'methods' => [
331 'list' => [
332 'path' => 'v1/flags',
333 'httpMethod' => 'GET',
334 'parameters' => [
335 'databaseVersion' => [
336 'location' => 'query',
337 'type' => 'string',
338 ],
339 ],
340 ],
341 ]
342 ]
343 );
344 $this->instances = new SQLAdmin\Resource\Instances(
345 $this,
346 $this->serviceName,
347 'instances',
348 [
349 'methods' => [
350 'ListServerCertificates' => [
351 'path' => 'v1/projects/{project}/instances/{instance}/listServerCertificates',
352 'httpMethod' => 'GET',
353 'parameters' => [
354 'project' => [
355 'location' => 'path',
356 'type' => 'string',
357 'required' => true,
358 ],
359 'instance' => [
360 'location' => 'path',
361 'type' => 'string',
362 'required' => true,
363 ],
364 ],
365 ],'RotateServerCertificate' => [
366 'path' => 'v1/projects/{project}/instances/{instance}/rotateServerCertificate',
367 'httpMethod' => 'POST',
368 'parameters' => [
369 'project' => [
370 'location' => 'path',
371 'type' => 'string',
372 'required' => true,
373 ],
374 'instance' => [
375 'location' => 'path',
376 'type' => 'string',
377 'required' => true,
378 ],
379 ],
380 ],'acquireSsrsLease' => [
381 'path' => 'v1/projects/{project}/instances/{instance}/acquireSsrsLease',
382 'httpMethod' => 'POST',
383 'parameters' => [
384 'project' => [
385 'location' => 'path',
386 'type' => 'string',
387 'required' => true,
388 ],
389 'instance' => [
390 'location' => 'path',
391 'type' => 'string',
392 'required' => true,
393 ],
394 ],
395 ],'addServerCa' => [
396 'path' => 'v1/projects/{project}/instances/{instance}/addServerCa',
397 'httpMethod' => 'POST',
398 'parameters' => [
399 'project' => [
400 'location' => 'path',
401 'type' => 'string',
402 'required' => true,
403 ],
404 'instance' => [
405 'location' => 'path',
406 'type' => 'string',
407 'required' => true,
408 ],
409 ],
410 ],'addServerCertificate' => [
411 'path' => 'v1/projects/{project}/instances/{instance}/addServerCertificate',
412 'httpMethod' => 'POST',
413 'parameters' => [
414 'project' => [
415 'location' => 'path',
416 'type' => 'string',
417 'required' => true,
418 ],
419 'instance' => [
420 'location' => 'path',
421 'type' => 'string',
422 'required' => true,
423 ],
424 ],
425 ],'clone' => [
426 'path' => 'v1/projects/{project}/instances/{instance}/clone',
427 'httpMethod' => 'POST',
428 'parameters' => [
429 'project' => [
430 'location' => 'path',
431 'type' => 'string',
432 'required' => true,
433 ],
434 'instance' => [
435 'location' => 'path',
436 'type' => 'string',
437 'required' => true,
438 ],
439 ],
440 ],'delete' => [
441 'path' => 'v1/projects/{project}/instances/{instance}',
442 'httpMethod' => 'DELETE',
443 'parameters' => [
444 'project' => [
445 'location' => 'path',
446 'type' => 'string',
447 'required' => true,
448 ],
449 'instance' => [
450 'location' => 'path',
451 'type' => 'string',
452 'required' => true,
453 ],
454 ],
455 ],'demote' => [
456 'path' => 'v1/projects/{project}/instances/{instance}/demote',
457 'httpMethod' => 'POST',
458 'parameters' => [
459 'project' => [
460 'location' => 'path',
461 'type' => 'string',
462 'required' => true,
463 ],
464 'instance' => [
465 'location' => 'path',
466 'type' => 'string',
467 'required' => true,
468 ],
469 ],
470 ],'demoteMaster' => [
471 'path' => 'v1/projects/{project}/instances/{instance}/demoteMaster',
472 'httpMethod' => 'POST',
473 'parameters' => [
474 'project' => [
475 'location' => 'path',
476 'type' => 'string',
477 'required' => true,
478 ],
479 'instance' => [
480 'location' => 'path',
481 'type' => 'string',
482 'required' => true,
483 ],
484 ],
485 ],'export' => [
486 'path' => 'v1/projects/{project}/instances/{instance}/export',
487 'httpMethod' => 'POST',
488 'parameters' => [
489 'project' => [
490 'location' => 'path',
491 'type' => 'string',
492 'required' => true,
493 ],
494 'instance' => [
495 'location' => 'path',
496 'type' => 'string',
497 'required' => true,
498 ],
499 ],
500 ],'failover' => [
501 'path' => 'v1/projects/{project}/instances/{instance}/failover',
502 'httpMethod' => 'POST',
503 'parameters' => [
504 'project' => [
505 'location' => 'path',
506 'type' => 'string',
507 'required' => true,
508 ],
509 'instance' => [
510 'location' => 'path',
511 'type' => 'string',
512 'required' => true,
513 ],
514 ],
515 ],'get' => [
516 'path' => 'v1/projects/{project}/instances/{instance}',
517 'httpMethod' => 'GET',
518 'parameters' => [
519 'project' => [
520 'location' => 'path',
521 'type' => 'string',
522 'required' => true,
523 ],
524 'instance' => [
525 'location' => 'path',
526 'type' => 'string',
527 'required' => true,
528 ],
529 ],
530 ],'import' => [
531 'path' => 'v1/projects/{project}/instances/{instance}/import',
532 'httpMethod' => 'POST',
533 'parameters' => [
534 'project' => [
535 'location' => 'path',
536 'type' => 'string',
537 'required' => true,
538 ],
539 'instance' => [
540 'location' => 'path',
541 'type' => 'string',
542 'required' => true,
543 ],
544 ],
545 ],'insert' => [
546 'path' => 'v1/projects/{project}/instances',
547 'httpMethod' => 'POST',
548 'parameters' => [
549 'project' => [
550 'location' => 'path',
551 'type' => 'string',
552 'required' => true,
553 ],
554 ],
555 ],'list' => [
556 'path' => 'v1/projects/{project}/instances',
557 'httpMethod' => 'GET',
558 'parameters' => [
559 'project' => [
560 'location' => 'path',
561 'type' => 'string',
562 'required' => true,
563 ],
564 'filter' => [
565 'location' => 'query',
566 'type' => 'string',
567 ],
568 'maxResults' => [
569 'location' => 'query',
570 'type' => 'integer',
571 ],
572 'pageToken' => [
573 'location' => 'query',
574 'type' => 'string',
575 ],
576 ],
577 ],'listServerCas' => [
578 'path' => 'v1/projects/{project}/instances/{instance}/listServerCas',
579 'httpMethod' => 'GET',
580 'parameters' => [
581 'project' => [
582 'location' => 'path',
583 'type' => 'string',
584 'required' => true,
585 ],
586 'instance' => [
587 'location' => 'path',
588 'type' => 'string',
589 'required' => true,
590 ],
591 ],
592 ],'patch' => [
593 'path' => 'v1/projects/{project}/instances/{instance}',
594 'httpMethod' => 'PATCH',
595 'parameters' => [
596 'project' => [
597 'location' => 'path',
598 'type' => 'string',
599 'required' => true,
600 ],
601 'instance' => [
602 'location' => 'path',
603 'type' => 'string',
604 'required' => true,
605 ],
606 ],
607 ],'promoteReplica' => [
608 'path' => 'v1/projects/{project}/instances/{instance}/promoteReplica',
609 'httpMethod' => 'POST',
610 'parameters' => [
611 'project' => [
612 'location' => 'path',
613 'type' => 'string',
614 'required' => true,
615 ],
616 'instance' => [
617 'location' => 'path',
618 'type' => 'string',
619 'required' => true,
620 ],
621 'failover' => [
622 'location' => 'query',
623 'type' => 'boolean',
624 ],
625 ],
626 ],'reencrypt' => [
627 'path' => 'v1/projects/{project}/instances/{instance}/reencrypt',
628 'httpMethod' => 'POST',
629 'parameters' => [
630 'project' => [
631 'location' => 'path',
632 'type' => 'string',
633 'required' => true,
634 ],
635 'instance' => [
636 'location' => 'path',
637 'type' => 'string',
638 'required' => true,
639 ],
640 ],
641 ],'releaseSsrsLease' => [
642 'path' => 'v1/projects/{project}/instances/{instance}/releaseSsrsLease',
643 'httpMethod' => 'POST',
644 'parameters' => [
645 'project' => [
646 'location' => 'path',
647 'type' => 'string',
648 'required' => true,
649 ],
650 'instance' => [
651 'location' => 'path',
652 'type' => 'string',
653 'required' => true,
654 ],
655 ],
656 ],'resetSslConfig' => [
657 'path' => 'v1/projects/{project}/instances/{instance}/resetSslConfig',
658 'httpMethod' => 'POST',
659 'parameters' => [
660 'project' => [
661 'location' => 'path',
662 'type' => 'string',
663 'required' => true,
664 ],
665 'instance' => [
666 'location' => 'path',
667 'type' => 'string',
668 'required' => true,
669 ],
670 ],
671 ],'restart' => [
672 'path' => 'v1/projects/{project}/instances/{instance}/restart',
673 'httpMethod' => 'POST',
674 'parameters' => [
675 'project' => [
676 'location' => 'path',
677 'type' => 'string',
678 'required' => true,
679 ],
680 'instance' => [
681 'location' => 'path',
682 'type' => 'string',
683 'required' => true,
684 ],
685 ],
686 ],'restoreBackup' => [
687 'path' => 'v1/projects/{project}/instances/{instance}/restoreBackup',
688 'httpMethod' => 'POST',
689 'parameters' => [
690 'project' => [
691 'location' => 'path',
692 'type' => 'string',
693 'required' => true,
694 ],
695 'instance' => [
696 'location' => 'path',
697 'type' => 'string',
698 'required' => true,
699 ],
700 ],
701 ],'rotateServerCa' => [
702 'path' => 'v1/projects/{project}/instances/{instance}/rotateServerCa',
703 'httpMethod' => 'POST',
704 'parameters' => [
705 'project' => [
706 'location' => 'path',
707 'type' => 'string',
708 'required' => true,
709 ],
710 'instance' => [
711 'location' => 'path',
712 'type' => 'string',
713 'required' => true,
714 ],
715 ],
716 ],'startReplica' => [
717 'path' => 'v1/projects/{project}/instances/{instance}/startReplica',
718 'httpMethod' => 'POST',
719 'parameters' => [
720 'project' => [
721 'location' => 'path',
722 'type' => 'string',
723 'required' => true,
724 ],
725 'instance' => [
726 'location' => 'path',
727 'type' => 'string',
728 'required' => true,
729 ],
730 ],
731 ],'stopReplica' => [
732 'path' => 'v1/projects/{project}/instances/{instance}/stopReplica',
733 'httpMethod' => 'POST',
734 'parameters' => [
735 'project' => [
736 'location' => 'path',
737 'type' => 'string',
738 'required' => true,
739 ],
740 'instance' => [
741 'location' => 'path',
742 'type' => 'string',
743 'required' => true,
744 ],
745 ],
746 ],'switchover' => [
747 'path' => 'v1/projects/{project}/instances/{instance}/switchover',
748 'httpMethod' => 'POST',
749 'parameters' => [
750 'project' => [
751 'location' => 'path',
752 'type' => 'string',
753 'required' => true,
754 ],
755 'instance' => [
756 'location' => 'path',
757 'type' => 'string',
758 'required' => true,
759 ],
760 'dbTimeout' => [
761 'location' => 'query',
762 'type' => 'string',
763 ],
764 ],
765 ],'truncateLog' => [
766 'path' => 'v1/projects/{project}/instances/{instance}/truncateLog',
767 'httpMethod' => 'POST',
768 'parameters' => [
769 'project' => [
770 'location' => 'path',
771 'type' => 'string',
772 'required' => true,
773 ],
774 'instance' => [
775 'location' => 'path',
776 'type' => 'string',
777 'required' => true,
778 ],
779 ],
780 ],'update' => [
781 'path' => 'v1/projects/{project}/instances/{instance}',
782 'httpMethod' => 'PUT',
783 'parameters' => [
784 'project' => [
785 'location' => 'path',
786 'type' => 'string',
787 'required' => true,
788 ],
789 'instance' => [
790 'location' => 'path',
791 'type' => 'string',
792 'required' => true,
793 ],
794 ],
795 ],
796 ]
797 ]
798 );
799 $this->operations = new SQLAdmin\Resource\Operations(
800 $this,
801 $this->serviceName,
802 'operations',
803 [
804 'methods' => [
805 'cancel' => [
806 'path' => 'v1/projects/{project}/operations/{operation}/cancel',
807 'httpMethod' => 'POST',
808 'parameters' => [
809 'project' => [
810 'location' => 'path',
811 'type' => 'string',
812 'required' => true,
813 ],
814 'operation' => [
815 'location' => 'path',
816 'type' => 'string',
817 'required' => true,
818 ],
819 ],
820 ],'get' => [
821 'path' => 'v1/projects/{project}/operations/{operation}',
822 'httpMethod' => 'GET',
823 'parameters' => [
824 'project' => [
825 'location' => 'path',
826 'type' => 'string',
827 'required' => true,
828 ],
829 'operation' => [
830 'location' => 'path',
831 'type' => 'string',
832 'required' => true,
833 ],
834 ],
835 ],'list' => [
836 'path' => 'v1/projects/{project}/operations',
837 'httpMethod' => 'GET',
838 'parameters' => [
839 'project' => [
840 'location' => 'path',
841 'type' => 'string',
842 'required' => true,
843 ],
844 'instance' => [
845 'location' => 'query',
846 'type' => 'string',
847 ],
848 'maxResults' => [
849 'location' => 'query',
850 'type' => 'integer',
851 ],
852 'pageToken' => [
853 'location' => 'query',
854 'type' => 'string',
855 ],
856 ],
857 ],
858 ]
859 ]
860 );
861 $this->projects_instances = new SQLAdmin\Resource\ProjectsInstances(
862 $this,
863 $this->serviceName,
864 'instances',
865 [
866 'methods' => [
867 'getDiskShrinkConfig' => [
868 'path' => 'v1/projects/{project}/instances/{instance}/getDiskShrinkConfig',
869 'httpMethod' => 'GET',
870 'parameters' => [
871 'project' => [
872 'location' => 'path',
873 'type' => 'string',
874 'required' => true,
875 ],
876 'instance' => [
877 'location' => 'path',
878 'type' => 'string',
879 'required' => true,
880 ],
881 ],
882 ],'getLatestRecoveryTime' => [
883 'path' => 'v1/projects/{project}/instances/{instance}/getLatestRecoveryTime',
884 'httpMethod' => 'GET',
885 'parameters' => [
886 'project' => [
887 'location' => 'path',
888 'type' => 'string',
889 'required' => true,
890 ],
891 'instance' => [
892 'location' => 'path',
893 'type' => 'string',
894 'required' => true,
895 ],
896 ],
897 ],'performDiskShrink' => [
898 'path' => 'v1/projects/{project}/instances/{instance}/performDiskShrink',
899 'httpMethod' => 'POST',
900 'parameters' => [
901 'project' => [
902 'location' => 'path',
903 'type' => 'string',
904 'required' => true,
905 ],
906 'instance' => [
907 'location' => 'path',
908 'type' => 'string',
909 'required' => true,
910 ],
911 ],
912 ],'rescheduleMaintenance' => [
913 'path' => 'v1/projects/{project}/instances/{instance}/rescheduleMaintenance',
914 'httpMethod' => 'POST',
915 'parameters' => [
916 'project' => [
917 'location' => 'path',
918 'type' => 'string',
919 'required' => true,
920 ],
921 'instance' => [
922 'location' => 'path',
923 'type' => 'string',
924 'required' => true,
925 ],
926 ],
927 ],'resetReplicaSize' => [
928 'path' => 'v1/projects/{project}/instances/{instance}/resetReplicaSize',
929 'httpMethod' => 'POST',
930 'parameters' => [
931 'project' => [
932 'location' => 'path',
933 'type' => 'string',
934 'required' => true,
935 ],
936 'instance' => [
937 'location' => 'path',
938 'type' => 'string',
939 'required' => true,
940 ],
941 ],
942 ],'startExternalSync' => [
943 'path' => 'v1/projects/{project}/instances/{instance}/startExternalSync',
944 'httpMethod' => 'POST',
945 'parameters' => [
946 'project' => [
947 'location' => 'path',
948 'type' => 'string',
949 'required' => true,
950 ],
951 'instance' => [
952 'location' => 'path',
953 'type' => 'string',
954 'required' => true,
955 ],
956 ],
957 ],'verifyExternalSyncSettings' => [
958 'path' => 'v1/projects/{project}/instances/{instance}/verifyExternalSyncSettings',
959 'httpMethod' => 'POST',
960 'parameters' => [
961 'project' => [
962 'location' => 'path',
963 'type' => 'string',
964 'required' => true,
965 ],
966 'instance' => [
967 'location' => 'path',
968 'type' => 'string',
969 'required' => true,
970 ],
971 ],
972 ],
973 ]
974 ]
975 );
976 $this->sslCerts = new SQLAdmin\Resource\SslCerts(
977 $this,
978 $this->serviceName,
979 'sslCerts',
980 [
981 'methods' => [
982 'createEphemeral' => [
983 'path' => 'v1/projects/{project}/instances/{instance}/createEphemeral',
984 'httpMethod' => 'POST',
985 'parameters' => [
986 'project' => [
987 'location' => 'path',
988 'type' => 'string',
989 'required' => true,
990 ],
991 'instance' => [
992 'location' => 'path',
993 'type' => 'string',
994 'required' => true,
995 ],
996 ],
997 ],'delete' => [
998 'path' => 'v1/projects/{project}/instances/{instance}/sslCerts/{sha1Fingerprint}',
999 'httpMethod' => 'DELETE',
1000 'parameters' => [
1001 'project' => [
1002 'location' => 'path',
1003 'type' => 'string',
1004 'required' => true,
1005 ],
1006 'instance' => [
1007 'location' => 'path',
1008 'type' => 'string',
1009 'required' => true,
1010 ],
1011 'sha1Fingerprint' => [
1012 'location' => 'path',
1013 'type' => 'string',
1014 'required' => true,
1015 ],
1016 ],
1017 ],'get' => [
1018 'path' => 'v1/projects/{project}/instances/{instance}/sslCerts/{sha1Fingerprint}',
1019 'httpMethod' => 'GET',
1020 'parameters' => [
1021 'project' => [
1022 'location' => 'path',
1023 'type' => 'string',
1024 'required' => true,
1025 ],
1026 'instance' => [
1027 'location' => 'path',
1028 'type' => 'string',
1029 'required' => true,
1030 ],
1031 'sha1Fingerprint' => [
1032 'location' => 'path',
1033 'type' => 'string',
1034 'required' => true,
1035 ],
1036 ],
1037 ],'insert' => [
1038 'path' => 'v1/projects/{project}/instances/{instance}/sslCerts',
1039 'httpMethod' => 'POST',
1040 'parameters' => [
1041 'project' => [
1042 'location' => 'path',
1043 'type' => 'string',
1044 'required' => true,
1045 ],
1046 'instance' => [
1047 'location' => 'path',
1048 'type' => 'string',
1049 'required' => true,
1050 ],
1051 ],
1052 ],'list' => [
1053 'path' => 'v1/projects/{project}/instances/{instance}/sslCerts',
1054 'httpMethod' => 'GET',
1055 'parameters' => [
1056 'project' => [
1057 'location' => 'path',
1058 'type' => 'string',
1059 'required' => true,
1060 ],
1061 'instance' => [
1062 'location' => 'path',
1063 'type' => 'string',
1064 'required' => true,
1065 ],
1066 ],
1067 ],
1068 ]
1069 ]
1070 );
1071 $this->tiers = new SQLAdmin\Resource\Tiers(
1072 $this,
1073 $this->serviceName,
1074 'tiers',
1075 [
1076 'methods' => [
1077 'list' => [
1078 'path' => 'v1/projects/{project}/tiers',
1079 'httpMethod' => 'GET',
1080 'parameters' => [
1081 'project' => [
1082 'location' => 'path',
1083 'type' => 'string',
1084 'required' => true,
1085 ],
1086 ],
1087 ],
1088 ]
1089 ]
1090 );
1091 $this->users = new SQLAdmin\Resource\Users(
1092 $this,
1093 $this->serviceName,
1094 'users',
1095 [
1096 'methods' => [
1097 'delete' => [
1098 'path' => 'v1/projects/{project}/instances/{instance}/users',
1099 'httpMethod' => 'DELETE',
1100 'parameters' => [
1101 'project' => [
1102 'location' => 'path',
1103 'type' => 'string',
1104 'required' => true,
1105 ],
1106 'instance' => [
1107 'location' => 'path',
1108 'type' => 'string',
1109 'required' => true,
1110 ],
1111 'host' => [
1112 'location' => 'query',
1113 'type' => 'string',
1114 ],
1115 'name' => [
1116 'location' => 'query',
1117 'type' => 'string',
1118 ],
1119 ],
1120 ],'get' => [
1121 'path' => 'v1/projects/{project}/instances/{instance}/users/{name}',
1122 'httpMethod' => 'GET',
1123 'parameters' => [
1124 'project' => [
1125 'location' => 'path',
1126 'type' => 'string',
1127 'required' => true,
1128 ],
1129 'instance' => [
1130 'location' => 'path',
1131 'type' => 'string',
1132 'required' => true,
1133 ],
1134 'name' => [
1135 'location' => 'path',
1136 'type' => 'string',
1137 'required' => true,
1138 ],
1139 'host' => [
1140 'location' => 'query',
1141 'type' => 'string',
1142 ],
1143 ],
1144 ],'insert' => [
1145 'path' => 'v1/projects/{project}/instances/{instance}/users',
1146 'httpMethod' => 'POST',
1147 'parameters' => [
1148 'project' => [
1149 'location' => 'path',
1150 'type' => 'string',
1151 'required' => true,
1152 ],
1153 'instance' => [
1154 'location' => 'path',
1155 'type' => 'string',
1156 'required' => true,
1157 ],
1158 ],
1159 ],'list' => [
1160 'path' => 'v1/projects/{project}/instances/{instance}/users',
1161 'httpMethod' => 'GET',
1162 'parameters' => [
1163 'project' => [
1164 'location' => 'path',
1165 'type' => 'string',
1166 'required' => true,
1167 ],
1168 'instance' => [
1169 'location' => 'path',
1170 'type' => 'string',
1171 'required' => true,
1172 ],
1173 ],
1174 ],'update' => [
1175 'path' => 'v1/projects/{project}/instances/{instance}/users',
1176 'httpMethod' => 'PUT',
1177 'parameters' => [
1178 'project' => [
1179 'location' => 'path',
1180 'type' => 'string',
1181 'required' => true,
1182 ],
1183 'instance' => [
1184 'location' => 'path',
1185 'type' => 'string',
1186 'required' => true,
1187 ],
1188 'host' => [
1189 'location' => 'query',
1190 'type' => 'string',
1191 ],
1192 'name' => [
1193 'location' => 'query',
1194 'type' => 'string',
1195 ],
1196 ],
1197 ],
1198 ]
1199 ]
1200 );
1201 }
1202}
1203
1204// Adding a class alias for backwards compatibility with the previous class name.
1205class_alias(SQLAdmin::class, 'Google_Service_SQLAdmin');
Note: See TracBrowser for help on using the repository browser.