source: vendor/google/apiclient-services/src/Spanner.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: 47.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 Spanner (v1).
24 *
25 * <p>
26 * Cloud Spanner is a managed, mission-critical, globally consistent and
27 * scalable relational database service.</p>
28 *
29 * <p>
30 * For more information about this service, see the API
31 * <a href="https://cloud.google.com/spanner/" target="_blank">Documentation</a>
32 * </p>
33 *
34 * @author Google, Inc.
35 */
36class Spanner 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 /** Administer your Spanner databases. */
42 const SPANNER_ADMIN =
43 "https://www.googleapis.com/auth/spanner.admin";
44 /** View and manage the contents of your Spanner databases. */
45 const SPANNER_DATA =
46 "https://www.googleapis.com/auth/spanner.data";
47
48 public $projects_instanceConfigOperations;
49 public $projects_instanceConfigs;
50 public $projects_instanceConfigs_operations;
51 public $projects_instanceConfigs_ssdCaches_operations;
52 public $projects_instances;
53 public $projects_instances_backupOperations;
54 public $projects_instances_backups;
55 public $projects_instances_backups_operations;
56 public $projects_instances_databaseOperations;
57 public $projects_instances_databases;
58 public $projects_instances_databases_backupSchedules;
59 public $projects_instances_databases_databaseRoles;
60 public $projects_instances_databases_operations;
61 public $projects_instances_databases_sessions;
62 public $projects_instances_instancePartitionOperations;
63 public $projects_instances_instancePartitions;
64 public $projects_instances_instancePartitions_operations;
65 public $projects_instances_operations;
66 public $scans;
67 public $rootUrlTemplate;
68
69 /**
70 * Constructs the internal representation of the Spanner service.
71 *
72 * @param Client|array $clientOrConfig The client used to deliver requests, or a
73 * config array to pass to a new Client instance.
74 * @param string $rootUrl The root URL used for requests to the service.
75 */
76 public function __construct($clientOrConfig = [], $rootUrl = null)
77 {
78 parent::__construct($clientOrConfig);
79 $this->rootUrl = $rootUrl ?: 'https://spanner.googleapis.com/';
80 $this->rootUrlTemplate = $rootUrl ?: 'https://spanner.UNIVERSE_DOMAIN/';
81 $this->servicePath = '';
82 $this->batchPath = 'batch';
83 $this->version = 'v1';
84 $this->serviceName = 'spanner';
85
86 $this->projects_instanceConfigOperations = new Spanner\Resource\ProjectsInstanceConfigOperations(
87 $this,
88 $this->serviceName,
89 'instanceConfigOperations',
90 [
91 'methods' => [
92 'list' => [
93 'path' => 'v1/{+parent}/instanceConfigOperations',
94 'httpMethod' => 'GET',
95 'parameters' => [
96 'parent' => [
97 'location' => 'path',
98 'type' => 'string',
99 'required' => true,
100 ],
101 'filter' => [
102 'location' => 'query',
103 'type' => 'string',
104 ],
105 'pageSize' => [
106 'location' => 'query',
107 'type' => 'integer',
108 ],
109 'pageToken' => [
110 'location' => 'query',
111 'type' => 'string',
112 ],
113 ],
114 ],
115 ]
116 ]
117 );
118 $this->projects_instanceConfigs = new Spanner\Resource\ProjectsInstanceConfigs(
119 $this,
120 $this->serviceName,
121 'instanceConfigs',
122 [
123 'methods' => [
124 'create' => [
125 'path' => 'v1/{+parent}/instanceConfigs',
126 'httpMethod' => 'POST',
127 'parameters' => [
128 'parent' => [
129 'location' => 'path',
130 'type' => 'string',
131 'required' => true,
132 ],
133 ],
134 ],'delete' => [
135 'path' => 'v1/{+name}',
136 'httpMethod' => 'DELETE',
137 'parameters' => [
138 'name' => [
139 'location' => 'path',
140 'type' => 'string',
141 'required' => true,
142 ],
143 'etag' => [
144 'location' => 'query',
145 'type' => 'string',
146 ],
147 'validateOnly' => [
148 'location' => 'query',
149 'type' => 'boolean',
150 ],
151 ],
152 ],'get' => [
153 'path' => 'v1/{+name}',
154 'httpMethod' => 'GET',
155 'parameters' => [
156 'name' => [
157 'location' => 'path',
158 'type' => 'string',
159 'required' => true,
160 ],
161 ],
162 ],'list' => [
163 'path' => 'v1/{+parent}/instanceConfigs',
164 'httpMethod' => 'GET',
165 'parameters' => [
166 'parent' => [
167 'location' => 'path',
168 'type' => 'string',
169 'required' => true,
170 ],
171 'pageSize' => [
172 'location' => 'query',
173 'type' => 'integer',
174 ],
175 'pageToken' => [
176 'location' => 'query',
177 'type' => 'string',
178 ],
179 ],
180 ],'patch' => [
181 'path' => 'v1/{+name}',
182 'httpMethod' => 'PATCH',
183 'parameters' => [
184 'name' => [
185 'location' => 'path',
186 'type' => 'string',
187 'required' => true,
188 ],
189 ],
190 ],
191 ]
192 ]
193 );
194 $this->projects_instanceConfigs_operations = new Spanner\Resource\ProjectsInstanceConfigsOperations(
195 $this,
196 $this->serviceName,
197 'operations',
198 [
199 'methods' => [
200 'cancel' => [
201 'path' => 'v1/{+name}:cancel',
202 'httpMethod' => 'POST',
203 'parameters' => [
204 'name' => [
205 'location' => 'path',
206 'type' => 'string',
207 'required' => true,
208 ],
209 ],
210 ],'delete' => [
211 'path' => 'v1/{+name}',
212 'httpMethod' => 'DELETE',
213 'parameters' => [
214 'name' => [
215 'location' => 'path',
216 'type' => 'string',
217 'required' => true,
218 ],
219 ],
220 ],'get' => [
221 'path' => 'v1/{+name}',
222 'httpMethod' => 'GET',
223 'parameters' => [
224 'name' => [
225 'location' => 'path',
226 'type' => 'string',
227 'required' => true,
228 ],
229 ],
230 ],'list' => [
231 'path' => 'v1/{+name}',
232 'httpMethod' => 'GET',
233 'parameters' => [
234 'name' => [
235 'location' => 'path',
236 'type' => 'string',
237 'required' => true,
238 ],
239 'filter' => [
240 'location' => 'query',
241 'type' => 'string',
242 ],
243 'pageSize' => [
244 'location' => 'query',
245 'type' => 'integer',
246 ],
247 'pageToken' => [
248 'location' => 'query',
249 'type' => 'string',
250 ],
251 ],
252 ],
253 ]
254 ]
255 );
256 $this->projects_instanceConfigs_ssdCaches_operations = new Spanner\Resource\ProjectsInstanceConfigsSsdCachesOperations(
257 $this,
258 $this->serviceName,
259 'operations',
260 [
261 'methods' => [
262 'cancel' => [
263 'path' => 'v1/{+name}:cancel',
264 'httpMethod' => 'POST',
265 'parameters' => [
266 'name' => [
267 'location' => 'path',
268 'type' => 'string',
269 'required' => true,
270 ],
271 ],
272 ],'delete' => [
273 'path' => 'v1/{+name}',
274 'httpMethod' => 'DELETE',
275 'parameters' => [
276 'name' => [
277 'location' => 'path',
278 'type' => 'string',
279 'required' => true,
280 ],
281 ],
282 ],'get' => [
283 'path' => 'v1/{+name}',
284 'httpMethod' => 'GET',
285 'parameters' => [
286 'name' => [
287 'location' => 'path',
288 'type' => 'string',
289 'required' => true,
290 ],
291 ],
292 ],'list' => [
293 'path' => 'v1/{+name}',
294 'httpMethod' => 'GET',
295 'parameters' => [
296 'name' => [
297 'location' => 'path',
298 'type' => 'string',
299 'required' => true,
300 ],
301 'filter' => [
302 'location' => 'query',
303 'type' => 'string',
304 ],
305 'pageSize' => [
306 'location' => 'query',
307 'type' => 'integer',
308 ],
309 'pageToken' => [
310 'location' => 'query',
311 'type' => 'string',
312 ],
313 ],
314 ],
315 ]
316 ]
317 );
318 $this->projects_instances = new Spanner\Resource\ProjectsInstances(
319 $this,
320 $this->serviceName,
321 'instances',
322 [
323 'methods' => [
324 'create' => [
325 'path' => 'v1/{+parent}/instances',
326 'httpMethod' => 'POST',
327 'parameters' => [
328 'parent' => [
329 'location' => 'path',
330 'type' => 'string',
331 'required' => true,
332 ],
333 ],
334 ],'delete' => [
335 'path' => 'v1/{+name}',
336 'httpMethod' => 'DELETE',
337 'parameters' => [
338 'name' => [
339 'location' => 'path',
340 'type' => 'string',
341 'required' => true,
342 ],
343 ],
344 ],'get' => [
345 'path' => 'v1/{+name}',
346 'httpMethod' => 'GET',
347 'parameters' => [
348 'name' => [
349 'location' => 'path',
350 'type' => 'string',
351 'required' => true,
352 ],
353 'fieldMask' => [
354 'location' => 'query',
355 'type' => 'string',
356 ],
357 ],
358 ],'getIamPolicy' => [
359 'path' => 'v1/{+resource}:getIamPolicy',
360 'httpMethod' => 'POST',
361 'parameters' => [
362 'resource' => [
363 'location' => 'path',
364 'type' => 'string',
365 'required' => true,
366 ],
367 ],
368 ],'list' => [
369 'path' => 'v1/{+parent}/instances',
370 'httpMethod' => 'GET',
371 'parameters' => [
372 'parent' => [
373 'location' => 'path',
374 'type' => 'string',
375 'required' => true,
376 ],
377 'filter' => [
378 'location' => 'query',
379 'type' => 'string',
380 ],
381 'instanceDeadline' => [
382 'location' => 'query',
383 'type' => 'string',
384 ],
385 'pageSize' => [
386 'location' => 'query',
387 'type' => 'integer',
388 ],
389 'pageToken' => [
390 'location' => 'query',
391 'type' => 'string',
392 ],
393 ],
394 ],'move' => [
395 'path' => 'v1/{+name}:move',
396 'httpMethod' => 'POST',
397 'parameters' => [
398 'name' => [
399 'location' => 'path',
400 'type' => 'string',
401 'required' => true,
402 ],
403 ],
404 ],'patch' => [
405 'path' => 'v1/{+name}',
406 'httpMethod' => 'PATCH',
407 'parameters' => [
408 'name' => [
409 'location' => 'path',
410 'type' => 'string',
411 'required' => true,
412 ],
413 ],
414 ],'setIamPolicy' => [
415 'path' => 'v1/{+resource}:setIamPolicy',
416 'httpMethod' => 'POST',
417 'parameters' => [
418 'resource' => [
419 'location' => 'path',
420 'type' => 'string',
421 'required' => true,
422 ],
423 ],
424 ],'testIamPermissions' => [
425 'path' => 'v1/{+resource}:testIamPermissions',
426 'httpMethod' => 'POST',
427 'parameters' => [
428 'resource' => [
429 'location' => 'path',
430 'type' => 'string',
431 'required' => true,
432 ],
433 ],
434 ],
435 ]
436 ]
437 );
438 $this->projects_instances_backupOperations = new Spanner\Resource\ProjectsInstancesBackupOperations(
439 $this,
440 $this->serviceName,
441 'backupOperations',
442 [
443 'methods' => [
444 'list' => [
445 'path' => 'v1/{+parent}/backupOperations',
446 'httpMethod' => 'GET',
447 'parameters' => [
448 'parent' => [
449 'location' => 'path',
450 'type' => 'string',
451 'required' => true,
452 ],
453 'filter' => [
454 'location' => 'query',
455 'type' => 'string',
456 ],
457 'pageSize' => [
458 'location' => 'query',
459 'type' => 'integer',
460 ],
461 'pageToken' => [
462 'location' => 'query',
463 'type' => 'string',
464 ],
465 ],
466 ],
467 ]
468 ]
469 );
470 $this->projects_instances_backups = new Spanner\Resource\ProjectsInstancesBackups(
471 $this,
472 $this->serviceName,
473 'backups',
474 [
475 'methods' => [
476 'copy' => [
477 'path' => 'v1/{+parent}/backups:copy',
478 'httpMethod' => 'POST',
479 'parameters' => [
480 'parent' => [
481 'location' => 'path',
482 'type' => 'string',
483 'required' => true,
484 ],
485 ],
486 ],'create' => [
487 'path' => 'v1/{+parent}/backups',
488 'httpMethod' => 'POST',
489 'parameters' => [
490 'parent' => [
491 'location' => 'path',
492 'type' => 'string',
493 'required' => true,
494 ],
495 'backupId' => [
496 'location' => 'query',
497 'type' => 'string',
498 ],
499 'encryptionConfig.encryptionType' => [
500 'location' => 'query',
501 'type' => 'string',
502 ],
503 'encryptionConfig.kmsKeyName' => [
504 'location' => 'query',
505 'type' => 'string',
506 ],
507 'encryptionConfig.kmsKeyNames' => [
508 'location' => 'query',
509 'type' => 'string',
510 'repeated' => true,
511 ],
512 ],
513 ],'delete' => [
514 'path' => 'v1/{+name}',
515 'httpMethod' => 'DELETE',
516 'parameters' => [
517 'name' => [
518 'location' => 'path',
519 'type' => 'string',
520 'required' => true,
521 ],
522 ],
523 ],'get' => [
524 'path' => 'v1/{+name}',
525 'httpMethod' => 'GET',
526 'parameters' => [
527 'name' => [
528 'location' => 'path',
529 'type' => 'string',
530 'required' => true,
531 ],
532 ],
533 ],'getIamPolicy' => [
534 'path' => 'v1/{+resource}:getIamPolicy',
535 'httpMethod' => 'POST',
536 'parameters' => [
537 'resource' => [
538 'location' => 'path',
539 'type' => 'string',
540 'required' => true,
541 ],
542 ],
543 ],'list' => [
544 'path' => 'v1/{+parent}/backups',
545 'httpMethod' => 'GET',
546 'parameters' => [
547 'parent' => [
548 'location' => 'path',
549 'type' => 'string',
550 'required' => true,
551 ],
552 'filter' => [
553 'location' => 'query',
554 'type' => 'string',
555 ],
556 'pageSize' => [
557 'location' => 'query',
558 'type' => 'integer',
559 ],
560 'pageToken' => [
561 'location' => 'query',
562 'type' => 'string',
563 ],
564 ],
565 ],'patch' => [
566 'path' => 'v1/{+name}',
567 'httpMethod' => 'PATCH',
568 'parameters' => [
569 'name' => [
570 'location' => 'path',
571 'type' => 'string',
572 'required' => true,
573 ],
574 'updateMask' => [
575 'location' => 'query',
576 'type' => 'string',
577 ],
578 ],
579 ],'setIamPolicy' => [
580 'path' => 'v1/{+resource}:setIamPolicy',
581 'httpMethod' => 'POST',
582 'parameters' => [
583 'resource' => [
584 'location' => 'path',
585 'type' => 'string',
586 'required' => true,
587 ],
588 ],
589 ],'testIamPermissions' => [
590 'path' => 'v1/{+resource}:testIamPermissions',
591 'httpMethod' => 'POST',
592 'parameters' => [
593 'resource' => [
594 'location' => 'path',
595 'type' => 'string',
596 'required' => true,
597 ],
598 ],
599 ],
600 ]
601 ]
602 );
603 $this->projects_instances_backups_operations = new Spanner\Resource\ProjectsInstancesBackupsOperations(
604 $this,
605 $this->serviceName,
606 'operations',
607 [
608 'methods' => [
609 'cancel' => [
610 'path' => 'v1/{+name}:cancel',
611 'httpMethod' => 'POST',
612 'parameters' => [
613 'name' => [
614 'location' => 'path',
615 'type' => 'string',
616 'required' => true,
617 ],
618 ],
619 ],'delete' => [
620 'path' => 'v1/{+name}',
621 'httpMethod' => 'DELETE',
622 'parameters' => [
623 'name' => [
624 'location' => 'path',
625 'type' => 'string',
626 'required' => true,
627 ],
628 ],
629 ],'get' => [
630 'path' => 'v1/{+name}',
631 'httpMethod' => 'GET',
632 'parameters' => [
633 'name' => [
634 'location' => 'path',
635 'type' => 'string',
636 'required' => true,
637 ],
638 ],
639 ],'list' => [
640 'path' => 'v1/{+name}',
641 'httpMethod' => 'GET',
642 'parameters' => [
643 'name' => [
644 'location' => 'path',
645 'type' => 'string',
646 'required' => true,
647 ],
648 'filter' => [
649 'location' => 'query',
650 'type' => 'string',
651 ],
652 'pageSize' => [
653 'location' => 'query',
654 'type' => 'integer',
655 ],
656 'pageToken' => [
657 'location' => 'query',
658 'type' => 'string',
659 ],
660 ],
661 ],
662 ]
663 ]
664 );
665 $this->projects_instances_databaseOperations = new Spanner\Resource\ProjectsInstancesDatabaseOperations(
666 $this,
667 $this->serviceName,
668 'databaseOperations',
669 [
670 'methods' => [
671 'list' => [
672 'path' => 'v1/{+parent}/databaseOperations',
673 'httpMethod' => 'GET',
674 'parameters' => [
675 'parent' => [
676 'location' => 'path',
677 'type' => 'string',
678 'required' => true,
679 ],
680 'filter' => [
681 'location' => 'query',
682 'type' => 'string',
683 ],
684 'pageSize' => [
685 'location' => 'query',
686 'type' => 'integer',
687 ],
688 'pageToken' => [
689 'location' => 'query',
690 'type' => 'string',
691 ],
692 ],
693 ],
694 ]
695 ]
696 );
697 $this->projects_instances_databases = new Spanner\Resource\ProjectsInstancesDatabases(
698 $this,
699 $this->serviceName,
700 'databases',
701 [
702 'methods' => [
703 'changequorum' => [
704 'path' => 'v1/{+name}:changequorum',
705 'httpMethod' => 'POST',
706 'parameters' => [
707 'name' => [
708 'location' => 'path',
709 'type' => 'string',
710 'required' => true,
711 ],
712 ],
713 ],'create' => [
714 'path' => 'v1/{+parent}/databases',
715 'httpMethod' => 'POST',
716 'parameters' => [
717 'parent' => [
718 'location' => 'path',
719 'type' => 'string',
720 'required' => true,
721 ],
722 ],
723 ],'dropDatabase' => [
724 'path' => 'v1/{+database}',
725 'httpMethod' => 'DELETE',
726 'parameters' => [
727 'database' => [
728 'location' => 'path',
729 'type' => 'string',
730 'required' => true,
731 ],
732 ],
733 ],'get' => [
734 'path' => 'v1/{+name}',
735 'httpMethod' => 'GET',
736 'parameters' => [
737 'name' => [
738 'location' => 'path',
739 'type' => 'string',
740 'required' => true,
741 ],
742 ],
743 ],'getDdl' => [
744 'path' => 'v1/{+database}/ddl',
745 'httpMethod' => 'GET',
746 'parameters' => [
747 'database' => [
748 'location' => 'path',
749 'type' => 'string',
750 'required' => true,
751 ],
752 ],
753 ],'getIamPolicy' => [
754 'path' => 'v1/{+resource}:getIamPolicy',
755 'httpMethod' => 'POST',
756 'parameters' => [
757 'resource' => [
758 'location' => 'path',
759 'type' => 'string',
760 'required' => true,
761 ],
762 ],
763 ],'getScans' => [
764 'path' => 'v1/{+name}/scans',
765 'httpMethod' => 'GET',
766 'parameters' => [
767 'name' => [
768 'location' => 'path',
769 'type' => 'string',
770 'required' => true,
771 ],
772 'endTime' => [
773 'location' => 'query',
774 'type' => 'string',
775 ],
776 'startTime' => [
777 'location' => 'query',
778 'type' => 'string',
779 ],
780 'view' => [
781 'location' => 'query',
782 'type' => 'string',
783 ],
784 ],
785 ],'list' => [
786 'path' => 'v1/{+parent}/databases',
787 'httpMethod' => 'GET',
788 'parameters' => [
789 'parent' => [
790 'location' => 'path',
791 'type' => 'string',
792 'required' => true,
793 ],
794 'pageSize' => [
795 'location' => 'query',
796 'type' => 'integer',
797 ],
798 'pageToken' => [
799 'location' => 'query',
800 'type' => 'string',
801 ],
802 ],
803 ],'patch' => [
804 'path' => 'v1/{+name}',
805 'httpMethod' => 'PATCH',
806 'parameters' => [
807 'name' => [
808 'location' => 'path',
809 'type' => 'string',
810 'required' => true,
811 ],
812 'updateMask' => [
813 'location' => 'query',
814 'type' => 'string',
815 ],
816 ],
817 ],'restore' => [
818 'path' => 'v1/{+parent}/databases:restore',
819 'httpMethod' => 'POST',
820 'parameters' => [
821 'parent' => [
822 'location' => 'path',
823 'type' => 'string',
824 'required' => true,
825 ],
826 ],
827 ],'setIamPolicy' => [
828 'path' => 'v1/{+resource}:setIamPolicy',
829 'httpMethod' => 'POST',
830 'parameters' => [
831 'resource' => [
832 'location' => 'path',
833 'type' => 'string',
834 'required' => true,
835 ],
836 ],
837 ],'testIamPermissions' => [
838 'path' => 'v1/{+resource}:testIamPermissions',
839 'httpMethod' => 'POST',
840 'parameters' => [
841 'resource' => [
842 'location' => 'path',
843 'type' => 'string',
844 'required' => true,
845 ],
846 ],
847 ],'updateDdl' => [
848 'path' => 'v1/{+database}/ddl',
849 'httpMethod' => 'PATCH',
850 'parameters' => [
851 'database' => [
852 'location' => 'path',
853 'type' => 'string',
854 'required' => true,
855 ],
856 ],
857 ],
858 ]
859 ]
860 );
861 $this->projects_instances_databases_backupSchedules = new Spanner\Resource\ProjectsInstancesDatabasesBackupSchedules(
862 $this,
863 $this->serviceName,
864 'backupSchedules',
865 [
866 'methods' => [
867 'create' => [
868 'path' => 'v1/{+parent}/backupSchedules',
869 'httpMethod' => 'POST',
870 'parameters' => [
871 'parent' => [
872 'location' => 'path',
873 'type' => 'string',
874 'required' => true,
875 ],
876 'backupScheduleId' => [
877 'location' => 'query',
878 'type' => 'string',
879 ],
880 ],
881 ],'delete' => [
882 'path' => 'v1/{+name}',
883 'httpMethod' => 'DELETE',
884 'parameters' => [
885 'name' => [
886 'location' => 'path',
887 'type' => 'string',
888 'required' => true,
889 ],
890 ],
891 ],'get' => [
892 'path' => 'v1/{+name}',
893 'httpMethod' => 'GET',
894 'parameters' => [
895 'name' => [
896 'location' => 'path',
897 'type' => 'string',
898 'required' => true,
899 ],
900 ],
901 ],'getIamPolicy' => [
902 'path' => 'v1/{+resource}:getIamPolicy',
903 'httpMethod' => 'POST',
904 'parameters' => [
905 'resource' => [
906 'location' => 'path',
907 'type' => 'string',
908 'required' => true,
909 ],
910 ],
911 ],'list' => [
912 'path' => 'v1/{+parent}/backupSchedules',
913 'httpMethod' => 'GET',
914 'parameters' => [
915 'parent' => [
916 'location' => 'path',
917 'type' => 'string',
918 'required' => true,
919 ],
920 'pageSize' => [
921 'location' => 'query',
922 'type' => 'integer',
923 ],
924 'pageToken' => [
925 'location' => 'query',
926 'type' => 'string',
927 ],
928 ],
929 ],'patch' => [
930 'path' => 'v1/{+name}',
931 'httpMethod' => 'PATCH',
932 'parameters' => [
933 'name' => [
934 'location' => 'path',
935 'type' => 'string',
936 'required' => true,
937 ],
938 'updateMask' => [
939 'location' => 'query',
940 'type' => 'string',
941 ],
942 ],
943 ],'setIamPolicy' => [
944 'path' => 'v1/{+resource}:setIamPolicy',
945 'httpMethod' => 'POST',
946 'parameters' => [
947 'resource' => [
948 'location' => 'path',
949 'type' => 'string',
950 'required' => true,
951 ],
952 ],
953 ],'testIamPermissions' => [
954 'path' => 'v1/{+resource}:testIamPermissions',
955 'httpMethod' => 'POST',
956 'parameters' => [
957 'resource' => [
958 'location' => 'path',
959 'type' => 'string',
960 'required' => true,
961 ],
962 ],
963 ],
964 ]
965 ]
966 );
967 $this->projects_instances_databases_databaseRoles = new Spanner\Resource\ProjectsInstancesDatabasesDatabaseRoles(
968 $this,
969 $this->serviceName,
970 'databaseRoles',
971 [
972 'methods' => [
973 'list' => [
974 'path' => 'v1/{+parent}/databaseRoles',
975 'httpMethod' => 'GET',
976 'parameters' => [
977 'parent' => [
978 'location' => 'path',
979 'type' => 'string',
980 'required' => true,
981 ],
982 'pageSize' => [
983 'location' => 'query',
984 'type' => 'integer',
985 ],
986 'pageToken' => [
987 'location' => 'query',
988 'type' => 'string',
989 ],
990 ],
991 ],'testIamPermissions' => [
992 'path' => 'v1/{+resource}:testIamPermissions',
993 'httpMethod' => 'POST',
994 'parameters' => [
995 'resource' => [
996 'location' => 'path',
997 'type' => 'string',
998 'required' => true,
999 ],
1000 ],
1001 ],
1002 ]
1003 ]
1004 );
1005 $this->projects_instances_databases_operations = new Spanner\Resource\ProjectsInstancesDatabasesOperations(
1006 $this,
1007 $this->serviceName,
1008 'operations',
1009 [
1010 'methods' => [
1011 'cancel' => [
1012 'path' => 'v1/{+name}:cancel',
1013 'httpMethod' => 'POST',
1014 'parameters' => [
1015 'name' => [
1016 'location' => 'path',
1017 'type' => 'string',
1018 'required' => true,
1019 ],
1020 ],
1021 ],'delete' => [
1022 'path' => 'v1/{+name}',
1023 'httpMethod' => 'DELETE',
1024 'parameters' => [
1025 'name' => [
1026 'location' => 'path',
1027 'type' => 'string',
1028 'required' => true,
1029 ],
1030 ],
1031 ],'get' => [
1032 'path' => 'v1/{+name}',
1033 'httpMethod' => 'GET',
1034 'parameters' => [
1035 'name' => [
1036 'location' => 'path',
1037 'type' => 'string',
1038 'required' => true,
1039 ],
1040 ],
1041 ],'list' => [
1042 'path' => 'v1/{+name}',
1043 'httpMethod' => 'GET',
1044 'parameters' => [
1045 'name' => [
1046 'location' => 'path',
1047 'type' => 'string',
1048 'required' => true,
1049 ],
1050 'filter' => [
1051 'location' => 'query',
1052 'type' => 'string',
1053 ],
1054 'pageSize' => [
1055 'location' => 'query',
1056 'type' => 'integer',
1057 ],
1058 'pageToken' => [
1059 'location' => 'query',
1060 'type' => 'string',
1061 ],
1062 ],
1063 ],
1064 ]
1065 ]
1066 );
1067 $this->projects_instances_databases_sessions = new Spanner\Resource\ProjectsInstancesDatabasesSessions(
1068 $this,
1069 $this->serviceName,
1070 'sessions',
1071 [
1072 'methods' => [
1073 'batchCreate' => [
1074 'path' => 'v1/{+database}/sessions:batchCreate',
1075 'httpMethod' => 'POST',
1076 'parameters' => [
1077 'database' => [
1078 'location' => 'path',
1079 'type' => 'string',
1080 'required' => true,
1081 ],
1082 ],
1083 ],'batchWrite' => [
1084 'path' => 'v1/{+session}:batchWrite',
1085 'httpMethod' => 'POST',
1086 'parameters' => [
1087 'session' => [
1088 'location' => 'path',
1089 'type' => 'string',
1090 'required' => true,
1091 ],
1092 ],
1093 ],'beginTransaction' => [
1094 'path' => 'v1/{+session}:beginTransaction',
1095 'httpMethod' => 'POST',
1096 'parameters' => [
1097 'session' => [
1098 'location' => 'path',
1099 'type' => 'string',
1100 'required' => true,
1101 ],
1102 ],
1103 ],'commit' => [
1104 'path' => 'v1/{+session}:commit',
1105 'httpMethod' => 'POST',
1106 'parameters' => [
1107 'session' => [
1108 'location' => 'path',
1109 'type' => 'string',
1110 'required' => true,
1111 ],
1112 ],
1113 ],'create' => [
1114 'path' => 'v1/{+database}/sessions',
1115 'httpMethod' => 'POST',
1116 'parameters' => [
1117 'database' => [
1118 'location' => 'path',
1119 'type' => 'string',
1120 'required' => true,
1121 ],
1122 ],
1123 ],'delete' => [
1124 'path' => 'v1/{+name}',
1125 'httpMethod' => 'DELETE',
1126 'parameters' => [
1127 'name' => [
1128 'location' => 'path',
1129 'type' => 'string',
1130 'required' => true,
1131 ],
1132 ],
1133 ],'executeBatchDml' => [
1134 'path' => 'v1/{+session}:executeBatchDml',
1135 'httpMethod' => 'POST',
1136 'parameters' => [
1137 'session' => [
1138 'location' => 'path',
1139 'type' => 'string',
1140 'required' => true,
1141 ],
1142 ],
1143 ],'executeSql' => [
1144 'path' => 'v1/{+session}:executeSql',
1145 'httpMethod' => 'POST',
1146 'parameters' => [
1147 'session' => [
1148 'location' => 'path',
1149 'type' => 'string',
1150 'required' => true,
1151 ],
1152 ],
1153 ],'executeStreamingSql' => [
1154 'path' => 'v1/{+session}:executeStreamingSql',
1155 'httpMethod' => 'POST',
1156 'parameters' => [
1157 'session' => [
1158 'location' => 'path',
1159 'type' => 'string',
1160 'required' => true,
1161 ],
1162 ],
1163 ],'get' => [
1164 'path' => 'v1/{+name}',
1165 'httpMethod' => 'GET',
1166 'parameters' => [
1167 'name' => [
1168 'location' => 'path',
1169 'type' => 'string',
1170 'required' => true,
1171 ],
1172 ],
1173 ],'list' => [
1174 'path' => 'v1/{+database}/sessions',
1175 'httpMethod' => 'GET',
1176 'parameters' => [
1177 'database' => [
1178 'location' => 'path',
1179 'type' => 'string',
1180 'required' => true,
1181 ],
1182 'filter' => [
1183 'location' => 'query',
1184 'type' => 'string',
1185 ],
1186 'pageSize' => [
1187 'location' => 'query',
1188 'type' => 'integer',
1189 ],
1190 'pageToken' => [
1191 'location' => 'query',
1192 'type' => 'string',
1193 ],
1194 ],
1195 ],'partitionQuery' => [
1196 'path' => 'v1/{+session}:partitionQuery',
1197 'httpMethod' => 'POST',
1198 'parameters' => [
1199 'session' => [
1200 'location' => 'path',
1201 'type' => 'string',
1202 'required' => true,
1203 ],
1204 ],
1205 ],'partitionRead' => [
1206 'path' => 'v1/{+session}:partitionRead',
1207 'httpMethod' => 'POST',
1208 'parameters' => [
1209 'session' => [
1210 'location' => 'path',
1211 'type' => 'string',
1212 'required' => true,
1213 ],
1214 ],
1215 ],'read' => [
1216 'path' => 'v1/{+session}:read',
1217 'httpMethod' => 'POST',
1218 'parameters' => [
1219 'session' => [
1220 'location' => 'path',
1221 'type' => 'string',
1222 'required' => true,
1223 ],
1224 ],
1225 ],'rollback' => [
1226 'path' => 'v1/{+session}:rollback',
1227 'httpMethod' => 'POST',
1228 'parameters' => [
1229 'session' => [
1230 'location' => 'path',
1231 'type' => 'string',
1232 'required' => true,
1233 ],
1234 ],
1235 ],'streamingRead' => [
1236 'path' => 'v1/{+session}:streamingRead',
1237 'httpMethod' => 'POST',
1238 'parameters' => [
1239 'session' => [
1240 'location' => 'path',
1241 'type' => 'string',
1242 'required' => true,
1243 ],
1244 ],
1245 ],
1246 ]
1247 ]
1248 );
1249 $this->projects_instances_instancePartitionOperations = new Spanner\Resource\ProjectsInstancesInstancePartitionOperations(
1250 $this,
1251 $this->serviceName,
1252 'instancePartitionOperations',
1253 [
1254 'methods' => [
1255 'list' => [
1256 'path' => 'v1/{+parent}/instancePartitionOperations',
1257 'httpMethod' => 'GET',
1258 'parameters' => [
1259 'parent' => [
1260 'location' => 'path',
1261 'type' => 'string',
1262 'required' => true,
1263 ],
1264 'filter' => [
1265 'location' => 'query',
1266 'type' => 'string',
1267 ],
1268 'instancePartitionDeadline' => [
1269 'location' => 'query',
1270 'type' => 'string',
1271 ],
1272 'pageSize' => [
1273 'location' => 'query',
1274 'type' => 'integer',
1275 ],
1276 'pageToken' => [
1277 'location' => 'query',
1278 'type' => 'string',
1279 ],
1280 ],
1281 ],
1282 ]
1283 ]
1284 );
1285 $this->projects_instances_instancePartitions = new Spanner\Resource\ProjectsInstancesInstancePartitions(
1286 $this,
1287 $this->serviceName,
1288 'instancePartitions',
1289 [
1290 'methods' => [
1291 'create' => [
1292 'path' => 'v1/{+parent}/instancePartitions',
1293 'httpMethod' => 'POST',
1294 'parameters' => [
1295 'parent' => [
1296 'location' => 'path',
1297 'type' => 'string',
1298 'required' => true,
1299 ],
1300 ],
1301 ],'delete' => [
1302 'path' => 'v1/{+name}',
1303 'httpMethod' => 'DELETE',
1304 'parameters' => [
1305 'name' => [
1306 'location' => 'path',
1307 'type' => 'string',
1308 'required' => true,
1309 ],
1310 'etag' => [
1311 'location' => 'query',
1312 'type' => 'string',
1313 ],
1314 ],
1315 ],'get' => [
1316 'path' => 'v1/{+name}',
1317 'httpMethod' => 'GET',
1318 'parameters' => [
1319 'name' => [
1320 'location' => 'path',
1321 'type' => 'string',
1322 'required' => true,
1323 ],
1324 ],
1325 ],'list' => [
1326 'path' => 'v1/{+parent}/instancePartitions',
1327 'httpMethod' => 'GET',
1328 'parameters' => [
1329 'parent' => [
1330 'location' => 'path',
1331 'type' => 'string',
1332 'required' => true,
1333 ],
1334 'instancePartitionDeadline' => [
1335 'location' => 'query',
1336 'type' => 'string',
1337 ],
1338 'pageSize' => [
1339 'location' => 'query',
1340 'type' => 'integer',
1341 ],
1342 'pageToken' => [
1343 'location' => 'query',
1344 'type' => 'string',
1345 ],
1346 ],
1347 ],'patch' => [
1348 'path' => 'v1/{+name}',
1349 'httpMethod' => 'PATCH',
1350 'parameters' => [
1351 'name' => [
1352 'location' => 'path',
1353 'type' => 'string',
1354 'required' => true,
1355 ],
1356 ],
1357 ],
1358 ]
1359 ]
1360 );
1361 $this->projects_instances_instancePartitions_operations = new Spanner\Resource\ProjectsInstancesInstancePartitionsOperations(
1362 $this,
1363 $this->serviceName,
1364 'operations',
1365 [
1366 'methods' => [
1367 'cancel' => [
1368 'path' => 'v1/{+name}:cancel',
1369 'httpMethod' => 'POST',
1370 'parameters' => [
1371 'name' => [
1372 'location' => 'path',
1373 'type' => 'string',
1374 'required' => true,
1375 ],
1376 ],
1377 ],'delete' => [
1378 'path' => 'v1/{+name}',
1379 'httpMethod' => 'DELETE',
1380 'parameters' => [
1381 'name' => [
1382 'location' => 'path',
1383 'type' => 'string',
1384 'required' => true,
1385 ],
1386 ],
1387 ],'get' => [
1388 'path' => 'v1/{+name}',
1389 'httpMethod' => 'GET',
1390 'parameters' => [
1391 'name' => [
1392 'location' => 'path',
1393 'type' => 'string',
1394 'required' => true,
1395 ],
1396 ],
1397 ],'list' => [
1398 'path' => 'v1/{+name}',
1399 'httpMethod' => 'GET',
1400 'parameters' => [
1401 'name' => [
1402 'location' => 'path',
1403 'type' => 'string',
1404 'required' => true,
1405 ],
1406 'filter' => [
1407 'location' => 'query',
1408 'type' => 'string',
1409 ],
1410 'pageSize' => [
1411 'location' => 'query',
1412 'type' => 'integer',
1413 ],
1414 'pageToken' => [
1415 'location' => 'query',
1416 'type' => 'string',
1417 ],
1418 ],
1419 ],
1420 ]
1421 ]
1422 );
1423 $this->projects_instances_operations = new Spanner\Resource\ProjectsInstancesOperations(
1424 $this,
1425 $this->serviceName,
1426 'operations',
1427 [
1428 'methods' => [
1429 'cancel' => [
1430 'path' => 'v1/{+name}:cancel',
1431 'httpMethod' => 'POST',
1432 'parameters' => [
1433 'name' => [
1434 'location' => 'path',
1435 'type' => 'string',
1436 'required' => true,
1437 ],
1438 ],
1439 ],'delete' => [
1440 'path' => 'v1/{+name}',
1441 'httpMethod' => 'DELETE',
1442 'parameters' => [
1443 'name' => [
1444 'location' => 'path',
1445 'type' => 'string',
1446 'required' => true,
1447 ],
1448 ],
1449 ],'get' => [
1450 'path' => 'v1/{+name}',
1451 'httpMethod' => 'GET',
1452 'parameters' => [
1453 'name' => [
1454 'location' => 'path',
1455 'type' => 'string',
1456 'required' => true,
1457 ],
1458 ],
1459 ],'list' => [
1460 'path' => 'v1/{+name}',
1461 'httpMethod' => 'GET',
1462 'parameters' => [
1463 'name' => [
1464 'location' => 'path',
1465 'type' => 'string',
1466 'required' => true,
1467 ],
1468 'filter' => [
1469 'location' => 'query',
1470 'type' => 'string',
1471 ],
1472 'pageSize' => [
1473 'location' => 'query',
1474 'type' => 'integer',
1475 ],
1476 'pageToken' => [
1477 'location' => 'query',
1478 'type' => 'string',
1479 ],
1480 ],
1481 ],
1482 ]
1483 ]
1484 );
1485 $this->scans = new Spanner\Resource\Scans(
1486 $this,
1487 $this->serviceName,
1488 'scans',
1489 [
1490 'methods' => [
1491 'list' => [
1492 'path' => 'v1/{+parent}',
1493 'httpMethod' => 'GET',
1494 'parameters' => [
1495 'parent' => [
1496 'location' => 'path',
1497 'type' => 'string',
1498 'required' => true,
1499 ],
1500 'filter' => [
1501 'location' => 'query',
1502 'type' => 'string',
1503 ],
1504 'pageSize' => [
1505 'location' => 'query',
1506 'type' => 'integer',
1507 ],
1508 'pageToken' => [
1509 'location' => 'query',
1510 'type' => 'string',
1511 ],
1512 'view' => [
1513 'location' => 'query',
1514 'type' => 'string',
1515 ],
1516 ],
1517 ],
1518 ]
1519 ]
1520 );
1521 }
1522}
1523
1524// Adding a class alias for backwards compatibility with the previous class name.
1525class_alias(Spanner::class, 'Google_Service_Spanner');
Note: See TracBrowser for help on using the repository browser.