source: vendor/google/apiclient-services/src/Storage.php@ e3d4e0a

Last change on this file since e3d4e0a was e3d4e0a, checked in by Vlado 222039 <vlado.popovski@…>, 7 days ago

Upload project files

  • Property mode set to 100644
File size: 72.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 Storage (v1).
24 *
25 * <p>
26 * Stores and retrieves potentially large, immutable data objects.</p>
27 *
28 * <p>
29 * For more information about this service, see the API
30 * <a href="https://developers.google.com/storage/docs/json_api/" target="_blank">Documentation</a>
31 * </p>
32 *
33 * @author Google, Inc.
34 */
35class Storage extends \Google\Service
36{
37 /** View and manage your data across Google Cloud Platform services. */
38 const CLOUD_PLATFORM =
39 "https://www.googleapis.com/auth/cloud-platform";
40 /** View your data across Google Cloud Platform services. */
41 const CLOUD_PLATFORM_READ_ONLY =
42 "https://www.googleapis.com/auth/cloud-platform.read-only";
43 /** Manage your data and permissions in Google Cloud Storage. */
44 const DEVSTORAGE_FULL_CONTROL =
45 "https://www.googleapis.com/auth/devstorage.full_control";
46 /** View your data in Google Cloud Storage. */
47 const DEVSTORAGE_READ_ONLY =
48 "https://www.googleapis.com/auth/devstorage.read_only";
49 /** Manage your data in Google Cloud Storage. */
50 const DEVSTORAGE_READ_WRITE =
51 "https://www.googleapis.com/auth/devstorage.read_write";
52
53 public $anywhereCaches;
54 public $bucketAccessControls;
55 public $buckets;
56 public $channels;
57 public $defaultObjectAccessControls;
58 public $folders;
59 public $managedFolders;
60 public $notifications;
61 public $objectAccessControls;
62 public $objects;
63 public $operations;
64 public $projects_hmacKeys;
65 public $projects_serviceAccount;
66 public $rootUrlTemplate;
67
68 /**
69 * Constructs the internal representation of the Storage service.
70 *
71 * @param Client|array $clientOrConfig The client used to deliver requests, or a
72 * config array to pass to a new Client instance.
73 * @param string $rootUrl The root URL used for requests to the service.
74 */
75 public function __construct($clientOrConfig = [], $rootUrl = null)
76 {
77 parent::__construct($clientOrConfig);
78 $this->rootUrl = $rootUrl ?: 'https://storage.googleapis.com/';
79 $this->rootUrlTemplate = $rootUrl ?: 'https://storage.UNIVERSE_DOMAIN/';
80 $this->servicePath = 'storage/v1/';
81 $this->batchPath = 'batch/storage/v1';
82 $this->version = 'v1';
83 $this->serviceName = 'storage';
84
85 $this->anywhereCaches = new Storage\Resource\AnywhereCaches(
86 $this,
87 $this->serviceName,
88 'anywhereCaches',
89 [
90 'methods' => [
91 'disable' => [
92 'path' => 'b/{bucket}/anywhereCaches/{anywhereCacheId}/disable',
93 'httpMethod' => 'POST',
94 'parameters' => [
95 'bucket' => [
96 'location' => 'path',
97 'type' => 'string',
98 'required' => true,
99 ],
100 'anywhereCacheId' => [
101 'location' => 'path',
102 'type' => 'string',
103 'required' => true,
104 ],
105 ],
106 ],'get' => [
107 'path' => 'b/{bucket}/anywhereCaches/{anywhereCacheId}',
108 'httpMethod' => 'GET',
109 'parameters' => [
110 'bucket' => [
111 'location' => 'path',
112 'type' => 'string',
113 'required' => true,
114 ],
115 'anywhereCacheId' => [
116 'location' => 'path',
117 'type' => 'string',
118 'required' => true,
119 ],
120 ],
121 ],'insert' => [
122 'path' => 'b/{bucket}/anywhereCaches',
123 'httpMethod' => 'POST',
124 'parameters' => [
125 'bucket' => [
126 'location' => 'path',
127 'type' => 'string',
128 'required' => true,
129 ],
130 ],
131 ],'list' => [
132 'path' => 'b/{bucket}/anywhereCaches',
133 'httpMethod' => 'GET',
134 'parameters' => [
135 'bucket' => [
136 'location' => 'path',
137 'type' => 'string',
138 'required' => true,
139 ],
140 'pageSize' => [
141 'location' => 'query',
142 'type' => 'integer',
143 ],
144 'pageToken' => [
145 'location' => 'query',
146 'type' => 'string',
147 ],
148 ],
149 ],'pause' => [
150 'path' => 'b/{bucket}/anywhereCaches/{anywhereCacheId}/pause',
151 'httpMethod' => 'POST',
152 'parameters' => [
153 'bucket' => [
154 'location' => 'path',
155 'type' => 'string',
156 'required' => true,
157 ],
158 'anywhereCacheId' => [
159 'location' => 'path',
160 'type' => 'string',
161 'required' => true,
162 ],
163 ],
164 ],'resume' => [
165 'path' => 'b/{bucket}/anywhereCaches/{anywhereCacheId}/resume',
166 'httpMethod' => 'POST',
167 'parameters' => [
168 'bucket' => [
169 'location' => 'path',
170 'type' => 'string',
171 'required' => true,
172 ],
173 'anywhereCacheId' => [
174 'location' => 'path',
175 'type' => 'string',
176 'required' => true,
177 ],
178 ],
179 ],'update' => [
180 'path' => 'b/{bucket}/anywhereCaches/{anywhereCacheId}',
181 'httpMethod' => 'PATCH',
182 'parameters' => [
183 'bucket' => [
184 'location' => 'path',
185 'type' => 'string',
186 'required' => true,
187 ],
188 'anywhereCacheId' => [
189 'location' => 'path',
190 'type' => 'string',
191 'required' => true,
192 ],
193 ],
194 ],
195 ]
196 ]
197 );
198 $this->bucketAccessControls = new Storage\Resource\BucketAccessControls(
199 $this,
200 $this->serviceName,
201 'bucketAccessControls',
202 [
203 'methods' => [
204 'delete' => [
205 'path' => 'b/{bucket}/acl/{entity}',
206 'httpMethod' => 'DELETE',
207 'parameters' => [
208 'bucket' => [
209 'location' => 'path',
210 'type' => 'string',
211 'required' => true,
212 ],
213 'entity' => [
214 'location' => 'path',
215 'type' => 'string',
216 'required' => true,
217 ],
218 'userProject' => [
219 'location' => 'query',
220 'type' => 'string',
221 ],
222 ],
223 ],'get' => [
224 'path' => 'b/{bucket}/acl/{entity}',
225 'httpMethod' => 'GET',
226 'parameters' => [
227 'bucket' => [
228 'location' => 'path',
229 'type' => 'string',
230 'required' => true,
231 ],
232 'entity' => [
233 'location' => 'path',
234 'type' => 'string',
235 'required' => true,
236 ],
237 'userProject' => [
238 'location' => 'query',
239 'type' => 'string',
240 ],
241 ],
242 ],'insert' => [
243 'path' => 'b/{bucket}/acl',
244 'httpMethod' => 'POST',
245 'parameters' => [
246 'bucket' => [
247 'location' => 'path',
248 'type' => 'string',
249 'required' => true,
250 ],
251 'userProject' => [
252 'location' => 'query',
253 'type' => 'string',
254 ],
255 ],
256 ],'list' => [
257 'path' => 'b/{bucket}/acl',
258 'httpMethod' => 'GET',
259 'parameters' => [
260 'bucket' => [
261 'location' => 'path',
262 'type' => 'string',
263 'required' => true,
264 ],
265 'userProject' => [
266 'location' => 'query',
267 'type' => 'string',
268 ],
269 ],
270 ],'patch' => [
271 'path' => 'b/{bucket}/acl/{entity}',
272 'httpMethod' => 'PATCH',
273 'parameters' => [
274 'bucket' => [
275 'location' => 'path',
276 'type' => 'string',
277 'required' => true,
278 ],
279 'entity' => [
280 'location' => 'path',
281 'type' => 'string',
282 'required' => true,
283 ],
284 'userProject' => [
285 'location' => 'query',
286 'type' => 'string',
287 ],
288 ],
289 ],'update' => [
290 'path' => 'b/{bucket}/acl/{entity}',
291 'httpMethod' => 'PUT',
292 'parameters' => [
293 'bucket' => [
294 'location' => 'path',
295 'type' => 'string',
296 'required' => true,
297 ],
298 'entity' => [
299 'location' => 'path',
300 'type' => 'string',
301 'required' => true,
302 ],
303 'userProject' => [
304 'location' => 'query',
305 'type' => 'string',
306 ],
307 ],
308 ],
309 ]
310 ]
311 );
312 $this->buckets = new Storage\Resource\Buckets(
313 $this,
314 $this->serviceName,
315 'buckets',
316 [
317 'methods' => [
318 'delete' => [
319 'path' => 'b/{bucket}',
320 'httpMethod' => 'DELETE',
321 'parameters' => [
322 'bucket' => [
323 'location' => 'path',
324 'type' => 'string',
325 'required' => true,
326 ],
327 'ifMetagenerationMatch' => [
328 'location' => 'query',
329 'type' => 'string',
330 ],
331 'ifMetagenerationNotMatch' => [
332 'location' => 'query',
333 'type' => 'string',
334 ],
335 'userProject' => [
336 'location' => 'query',
337 'type' => 'string',
338 ],
339 ],
340 ],'get' => [
341 'path' => 'b/{bucket}',
342 'httpMethod' => 'GET',
343 'parameters' => [
344 'bucket' => [
345 'location' => 'path',
346 'type' => 'string',
347 'required' => true,
348 ],
349 'generation' => [
350 'location' => 'query',
351 'type' => 'string',
352 ],
353 'ifMetagenerationMatch' => [
354 'location' => 'query',
355 'type' => 'string',
356 ],
357 'ifMetagenerationNotMatch' => [
358 'location' => 'query',
359 'type' => 'string',
360 ],
361 'projection' => [
362 'location' => 'query',
363 'type' => 'string',
364 ],
365 'softDeleted' => [
366 'location' => 'query',
367 'type' => 'boolean',
368 ],
369 'userProject' => [
370 'location' => 'query',
371 'type' => 'string',
372 ],
373 ],
374 ],'getIamPolicy' => [
375 'path' => 'b/{bucket}/iam',
376 'httpMethod' => 'GET',
377 'parameters' => [
378 'bucket' => [
379 'location' => 'path',
380 'type' => 'string',
381 'required' => true,
382 ],
383 'optionsRequestedPolicyVersion' => [
384 'location' => 'query',
385 'type' => 'integer',
386 ],
387 'userProject' => [
388 'location' => 'query',
389 'type' => 'string',
390 ],
391 ],
392 ],'getStorageLayout' => [
393 'path' => 'b/{bucket}/storageLayout',
394 'httpMethod' => 'GET',
395 'parameters' => [
396 'bucket' => [
397 'location' => 'path',
398 'type' => 'string',
399 'required' => true,
400 ],
401 'prefix' => [
402 'location' => 'query',
403 'type' => 'string',
404 ],
405 ],
406 ],'insert' => [
407 'path' => 'b',
408 'httpMethod' => 'POST',
409 'parameters' => [
410 'project' => [
411 'location' => 'query',
412 'type' => 'string',
413 'required' => true,
414 ],
415 'enableObjectRetention' => [
416 'location' => 'query',
417 'type' => 'boolean',
418 ],
419 'predefinedAcl' => [
420 'location' => 'query',
421 'type' => 'string',
422 ],
423 'predefinedDefaultObjectAcl' => [
424 'location' => 'query',
425 'type' => 'string',
426 ],
427 'projection' => [
428 'location' => 'query',
429 'type' => 'string',
430 ],
431 'userProject' => [
432 'location' => 'query',
433 'type' => 'string',
434 ],
435 ],
436 ],'list' => [
437 'path' => 'b',
438 'httpMethod' => 'GET',
439 'parameters' => [
440 'project' => [
441 'location' => 'query',
442 'type' => 'string',
443 'required' => true,
444 ],
445 'maxResults' => [
446 'location' => 'query',
447 'type' => 'integer',
448 ],
449 'pageToken' => [
450 'location' => 'query',
451 'type' => 'string',
452 ],
453 'prefix' => [
454 'location' => 'query',
455 'type' => 'string',
456 ],
457 'projection' => [
458 'location' => 'query',
459 'type' => 'string',
460 ],
461 'softDeleted' => [
462 'location' => 'query',
463 'type' => 'boolean',
464 ],
465 'userProject' => [
466 'location' => 'query',
467 'type' => 'string',
468 ],
469 ],
470 ],'lockRetentionPolicy' => [
471 'path' => 'b/{bucket}/lockRetentionPolicy',
472 'httpMethod' => 'POST',
473 'parameters' => [
474 'bucket' => [
475 'location' => 'path',
476 'type' => 'string',
477 'required' => true,
478 ],
479 'ifMetagenerationMatch' => [
480 'location' => 'query',
481 'type' => 'string',
482 'required' => true,
483 ],
484 'userProject' => [
485 'location' => 'query',
486 'type' => 'string',
487 ],
488 ],
489 ],'patch' => [
490 'path' => 'b/{bucket}',
491 'httpMethod' => 'PATCH',
492 'parameters' => [
493 'bucket' => [
494 'location' => 'path',
495 'type' => 'string',
496 'required' => true,
497 ],
498 'ifMetagenerationMatch' => [
499 'location' => 'query',
500 'type' => 'string',
501 ],
502 'ifMetagenerationNotMatch' => [
503 'location' => 'query',
504 'type' => 'string',
505 ],
506 'predefinedAcl' => [
507 'location' => 'query',
508 'type' => 'string',
509 ],
510 'predefinedDefaultObjectAcl' => [
511 'location' => 'query',
512 'type' => 'string',
513 ],
514 'projection' => [
515 'location' => 'query',
516 'type' => 'string',
517 ],
518 'userProject' => [
519 'location' => 'query',
520 'type' => 'string',
521 ],
522 ],
523 ],'relocate' => [
524 'path' => 'b/{bucket}/relocate',
525 'httpMethod' => 'POST',
526 'parameters' => [
527 'bucket' => [
528 'location' => 'path',
529 'type' => 'string',
530 'required' => true,
531 ],
532 ],
533 ],'restore' => [
534 'path' => 'b/{bucket}/restore',
535 'httpMethod' => 'POST',
536 'parameters' => [
537 'bucket' => [
538 'location' => 'path',
539 'type' => 'string',
540 'required' => true,
541 ],
542 'generation' => [
543 'location' => 'query',
544 'type' => 'string',
545 'required' => true,
546 ],
547 'projection' => [
548 'location' => 'query',
549 'type' => 'string',
550 ],
551 'userProject' => [
552 'location' => 'query',
553 'type' => 'string',
554 ],
555 ],
556 ],'setIamPolicy' => [
557 'path' => 'b/{bucket}/iam',
558 'httpMethod' => 'PUT',
559 'parameters' => [
560 'bucket' => [
561 'location' => 'path',
562 'type' => 'string',
563 'required' => true,
564 ],
565 'userProject' => [
566 'location' => 'query',
567 'type' => 'string',
568 ],
569 ],
570 ],'testIamPermissions' => [
571 'path' => 'b/{bucket}/iam/testPermissions',
572 'httpMethod' => 'GET',
573 'parameters' => [
574 'bucket' => [
575 'location' => 'path',
576 'type' => 'string',
577 'required' => true,
578 ],
579 'permissions' => [
580 'location' => 'query',
581 'type' => 'string',
582 'repeated' => true,
583 'required' => true,
584 ],
585 'userProject' => [
586 'location' => 'query',
587 'type' => 'string',
588 ],
589 ],
590 ],'update' => [
591 'path' => 'b/{bucket}',
592 'httpMethod' => 'PUT',
593 'parameters' => [
594 'bucket' => [
595 'location' => 'path',
596 'type' => 'string',
597 'required' => true,
598 ],
599 'ifMetagenerationMatch' => [
600 'location' => 'query',
601 'type' => 'string',
602 ],
603 'ifMetagenerationNotMatch' => [
604 'location' => 'query',
605 'type' => 'string',
606 ],
607 'predefinedAcl' => [
608 'location' => 'query',
609 'type' => 'string',
610 ],
611 'predefinedDefaultObjectAcl' => [
612 'location' => 'query',
613 'type' => 'string',
614 ],
615 'projection' => [
616 'location' => 'query',
617 'type' => 'string',
618 ],
619 'userProject' => [
620 'location' => 'query',
621 'type' => 'string',
622 ],
623 ],
624 ],
625 ]
626 ]
627 );
628 $this->channels = new Storage\Resource\Channels(
629 $this,
630 $this->serviceName,
631 'channels',
632 [
633 'methods' => [
634 'stop' => [
635 'path' => 'channels/stop',
636 'httpMethod' => 'POST',
637 'parameters' => [],
638 ],
639 ]
640 ]
641 );
642 $this->defaultObjectAccessControls = new Storage\Resource\DefaultObjectAccessControls(
643 $this,
644 $this->serviceName,
645 'defaultObjectAccessControls',
646 [
647 'methods' => [
648 'delete' => [
649 'path' => 'b/{bucket}/defaultObjectAcl/{entity}',
650 'httpMethod' => 'DELETE',
651 'parameters' => [
652 'bucket' => [
653 'location' => 'path',
654 'type' => 'string',
655 'required' => true,
656 ],
657 'entity' => [
658 'location' => 'path',
659 'type' => 'string',
660 'required' => true,
661 ],
662 'userProject' => [
663 'location' => 'query',
664 'type' => 'string',
665 ],
666 ],
667 ],'get' => [
668 'path' => 'b/{bucket}/defaultObjectAcl/{entity}',
669 'httpMethod' => 'GET',
670 'parameters' => [
671 'bucket' => [
672 'location' => 'path',
673 'type' => 'string',
674 'required' => true,
675 ],
676 'entity' => [
677 'location' => 'path',
678 'type' => 'string',
679 'required' => true,
680 ],
681 'userProject' => [
682 'location' => 'query',
683 'type' => 'string',
684 ],
685 ],
686 ],'insert' => [
687 'path' => 'b/{bucket}/defaultObjectAcl',
688 'httpMethod' => 'POST',
689 'parameters' => [
690 'bucket' => [
691 'location' => 'path',
692 'type' => 'string',
693 'required' => true,
694 ],
695 'userProject' => [
696 'location' => 'query',
697 'type' => 'string',
698 ],
699 ],
700 ],'list' => [
701 'path' => 'b/{bucket}/defaultObjectAcl',
702 'httpMethod' => 'GET',
703 'parameters' => [
704 'bucket' => [
705 'location' => 'path',
706 'type' => 'string',
707 'required' => true,
708 ],
709 'ifMetagenerationMatch' => [
710 'location' => 'query',
711 'type' => 'string',
712 ],
713 'ifMetagenerationNotMatch' => [
714 'location' => 'query',
715 'type' => 'string',
716 ],
717 'userProject' => [
718 'location' => 'query',
719 'type' => 'string',
720 ],
721 ],
722 ],'patch' => [
723 'path' => 'b/{bucket}/defaultObjectAcl/{entity}',
724 'httpMethod' => 'PATCH',
725 'parameters' => [
726 'bucket' => [
727 'location' => 'path',
728 'type' => 'string',
729 'required' => true,
730 ],
731 'entity' => [
732 'location' => 'path',
733 'type' => 'string',
734 'required' => true,
735 ],
736 'userProject' => [
737 'location' => 'query',
738 'type' => 'string',
739 ],
740 ],
741 ],'update' => [
742 'path' => 'b/{bucket}/defaultObjectAcl/{entity}',
743 'httpMethod' => 'PUT',
744 'parameters' => [
745 'bucket' => [
746 'location' => 'path',
747 'type' => 'string',
748 'required' => true,
749 ],
750 'entity' => [
751 'location' => 'path',
752 'type' => 'string',
753 'required' => true,
754 ],
755 'userProject' => [
756 'location' => 'query',
757 'type' => 'string',
758 ],
759 ],
760 ],
761 ]
762 ]
763 );
764 $this->folders = new Storage\Resource\Folders(
765 $this,
766 $this->serviceName,
767 'folders',
768 [
769 'methods' => [
770 'delete' => [
771 'path' => 'b/{bucket}/folders/{folder}',
772 'httpMethod' => 'DELETE',
773 'parameters' => [
774 'bucket' => [
775 'location' => 'path',
776 'type' => 'string',
777 'required' => true,
778 ],
779 'folder' => [
780 'location' => 'path',
781 'type' => 'string',
782 'required' => true,
783 ],
784 'ifMetagenerationMatch' => [
785 'location' => 'query',
786 'type' => 'string',
787 ],
788 'ifMetagenerationNotMatch' => [
789 'location' => 'query',
790 'type' => 'string',
791 ],
792 ],
793 ],'get' => [
794 'path' => 'b/{bucket}/folders/{folder}',
795 'httpMethod' => 'GET',
796 'parameters' => [
797 'bucket' => [
798 'location' => 'path',
799 'type' => 'string',
800 'required' => true,
801 ],
802 'folder' => [
803 'location' => 'path',
804 'type' => 'string',
805 'required' => true,
806 ],
807 'ifMetagenerationMatch' => [
808 'location' => 'query',
809 'type' => 'string',
810 ],
811 'ifMetagenerationNotMatch' => [
812 'location' => 'query',
813 'type' => 'string',
814 ],
815 ],
816 ],'insert' => [
817 'path' => 'b/{bucket}/folders',
818 'httpMethod' => 'POST',
819 'parameters' => [
820 'bucket' => [
821 'location' => 'path',
822 'type' => 'string',
823 'required' => true,
824 ],
825 'recursive' => [
826 'location' => 'query',
827 'type' => 'boolean',
828 ],
829 ],
830 ],'list' => [
831 'path' => 'b/{bucket}/folders',
832 'httpMethod' => 'GET',
833 'parameters' => [
834 'bucket' => [
835 'location' => 'path',
836 'type' => 'string',
837 'required' => true,
838 ],
839 'delimiter' => [
840 'location' => 'query',
841 'type' => 'string',
842 ],
843 'endOffset' => [
844 'location' => 'query',
845 'type' => 'string',
846 ],
847 'pageSize' => [
848 'location' => 'query',
849 'type' => 'integer',
850 ],
851 'pageToken' => [
852 'location' => 'query',
853 'type' => 'string',
854 ],
855 'prefix' => [
856 'location' => 'query',
857 'type' => 'string',
858 ],
859 'startOffset' => [
860 'location' => 'query',
861 'type' => 'string',
862 ],
863 ],
864 ],'rename' => [
865 'path' => 'b/{bucket}/folders/{sourceFolder}/renameTo/folders/{destinationFolder}',
866 'httpMethod' => 'POST',
867 'parameters' => [
868 'bucket' => [
869 'location' => 'path',
870 'type' => 'string',
871 'required' => true,
872 ],
873 'sourceFolder' => [
874 'location' => 'path',
875 'type' => 'string',
876 'required' => true,
877 ],
878 'destinationFolder' => [
879 'location' => 'path',
880 'type' => 'string',
881 'required' => true,
882 ],
883 'ifSourceMetagenerationMatch' => [
884 'location' => 'query',
885 'type' => 'string',
886 ],
887 'ifSourceMetagenerationNotMatch' => [
888 'location' => 'query',
889 'type' => 'string',
890 ],
891 ],
892 ],
893 ]
894 ]
895 );
896 $this->managedFolders = new Storage\Resource\ManagedFolders(
897 $this,
898 $this->serviceName,
899 'managedFolders',
900 [
901 'methods' => [
902 'delete' => [
903 'path' => 'b/{bucket}/managedFolders/{managedFolder}',
904 'httpMethod' => 'DELETE',
905 'parameters' => [
906 'bucket' => [
907 'location' => 'path',
908 'type' => 'string',
909 'required' => true,
910 ],
911 'managedFolder' => [
912 'location' => 'path',
913 'type' => 'string',
914 'required' => true,
915 ],
916 'allowNonEmpty' => [
917 'location' => 'query',
918 'type' => 'boolean',
919 ],
920 'ifMetagenerationMatch' => [
921 'location' => 'query',
922 'type' => 'string',
923 ],
924 'ifMetagenerationNotMatch' => [
925 'location' => 'query',
926 'type' => 'string',
927 ],
928 ],
929 ],'get' => [
930 'path' => 'b/{bucket}/managedFolders/{managedFolder}',
931 'httpMethod' => 'GET',
932 'parameters' => [
933 'bucket' => [
934 'location' => 'path',
935 'type' => 'string',
936 'required' => true,
937 ],
938 'managedFolder' => [
939 'location' => 'path',
940 'type' => 'string',
941 'required' => true,
942 ],
943 'ifMetagenerationMatch' => [
944 'location' => 'query',
945 'type' => 'string',
946 ],
947 'ifMetagenerationNotMatch' => [
948 'location' => 'query',
949 'type' => 'string',
950 ],
951 ],
952 ],'getIamPolicy' => [
953 'path' => 'b/{bucket}/managedFolders/{managedFolder}/iam',
954 'httpMethod' => 'GET',
955 'parameters' => [
956 'bucket' => [
957 'location' => 'path',
958 'type' => 'string',
959 'required' => true,
960 ],
961 'managedFolder' => [
962 'location' => 'path',
963 'type' => 'string',
964 'required' => true,
965 ],
966 'optionsRequestedPolicyVersion' => [
967 'location' => 'query',
968 'type' => 'integer',
969 ],
970 'userProject' => [
971 'location' => 'query',
972 'type' => 'string',
973 ],
974 ],
975 ],'insert' => [
976 'path' => 'b/{bucket}/managedFolders',
977 'httpMethod' => 'POST',
978 'parameters' => [
979 'bucket' => [
980 'location' => 'path',
981 'type' => 'string',
982 'required' => true,
983 ],
984 ],
985 ],'list' => [
986 'path' => 'b/{bucket}/managedFolders',
987 'httpMethod' => 'GET',
988 'parameters' => [
989 'bucket' => [
990 'location' => 'path',
991 'type' => 'string',
992 'required' => true,
993 ],
994 'pageSize' => [
995 'location' => 'query',
996 'type' => 'integer',
997 ],
998 'pageToken' => [
999 'location' => 'query',
1000 'type' => 'string',
1001 ],
1002 'prefix' => [
1003 'location' => 'query',
1004 'type' => 'string',
1005 ],
1006 ],
1007 ],'setIamPolicy' => [
1008 'path' => 'b/{bucket}/managedFolders/{managedFolder}/iam',
1009 'httpMethod' => 'PUT',
1010 'parameters' => [
1011 'bucket' => [
1012 'location' => 'path',
1013 'type' => 'string',
1014 'required' => true,
1015 ],
1016 'managedFolder' => [
1017 'location' => 'path',
1018 'type' => 'string',
1019 'required' => true,
1020 ],
1021 'userProject' => [
1022 'location' => 'query',
1023 'type' => 'string',
1024 ],
1025 ],
1026 ],'testIamPermissions' => [
1027 'path' => 'b/{bucket}/managedFolders/{managedFolder}/iam/testPermissions',
1028 'httpMethod' => 'GET',
1029 'parameters' => [
1030 'bucket' => [
1031 'location' => 'path',
1032 'type' => 'string',
1033 'required' => true,
1034 ],
1035 'managedFolder' => [
1036 'location' => 'path',
1037 'type' => 'string',
1038 'required' => true,
1039 ],
1040 'permissions' => [
1041 'location' => 'query',
1042 'type' => 'string',
1043 'repeated' => true,
1044 'required' => true,
1045 ],
1046 'userProject' => [
1047 'location' => 'query',
1048 'type' => 'string',
1049 ],
1050 ],
1051 ],
1052 ]
1053 ]
1054 );
1055 $this->notifications = new Storage\Resource\Notifications(
1056 $this,
1057 $this->serviceName,
1058 'notifications',
1059 [
1060 'methods' => [
1061 'delete' => [
1062 'path' => 'b/{bucket}/notificationConfigs/{notification}',
1063 'httpMethod' => 'DELETE',
1064 'parameters' => [
1065 'bucket' => [
1066 'location' => 'path',
1067 'type' => 'string',
1068 'required' => true,
1069 ],
1070 'notification' => [
1071 'location' => 'path',
1072 'type' => 'string',
1073 'required' => true,
1074 ],
1075 'userProject' => [
1076 'location' => 'query',
1077 'type' => 'string',
1078 ],
1079 ],
1080 ],'get' => [
1081 'path' => 'b/{bucket}/notificationConfigs/{notification}',
1082 'httpMethod' => 'GET',
1083 'parameters' => [
1084 'bucket' => [
1085 'location' => 'path',
1086 'type' => 'string',
1087 'required' => true,
1088 ],
1089 'notification' => [
1090 'location' => 'path',
1091 'type' => 'string',
1092 'required' => true,
1093 ],
1094 'userProject' => [
1095 'location' => 'query',
1096 'type' => 'string',
1097 ],
1098 ],
1099 ],'insert' => [
1100 'path' => 'b/{bucket}/notificationConfigs',
1101 'httpMethod' => 'POST',
1102 'parameters' => [
1103 'bucket' => [
1104 'location' => 'path',
1105 'type' => 'string',
1106 'required' => true,
1107 ],
1108 'userProject' => [
1109 'location' => 'query',
1110 'type' => 'string',
1111 ],
1112 ],
1113 ],'list' => [
1114 'path' => 'b/{bucket}/notificationConfigs',
1115 'httpMethod' => 'GET',
1116 'parameters' => [
1117 'bucket' => [
1118 'location' => 'path',
1119 'type' => 'string',
1120 'required' => true,
1121 ],
1122 'userProject' => [
1123 'location' => 'query',
1124 'type' => 'string',
1125 ],
1126 ],
1127 ],
1128 ]
1129 ]
1130 );
1131 $this->objectAccessControls = new Storage\Resource\ObjectAccessControls(
1132 $this,
1133 $this->serviceName,
1134 'objectAccessControls',
1135 [
1136 'methods' => [
1137 'delete' => [
1138 'path' => 'b/{bucket}/o/{object}/acl/{entity}',
1139 'httpMethod' => 'DELETE',
1140 'parameters' => [
1141 'bucket' => [
1142 'location' => 'path',
1143 'type' => 'string',
1144 'required' => true,
1145 ],
1146 'object' => [
1147 'location' => 'path',
1148 'type' => 'string',
1149 'required' => true,
1150 ],
1151 'entity' => [
1152 'location' => 'path',
1153 'type' => 'string',
1154 'required' => true,
1155 ],
1156 'generation' => [
1157 'location' => 'query',
1158 'type' => 'string',
1159 ],
1160 'userProject' => [
1161 'location' => 'query',
1162 'type' => 'string',
1163 ],
1164 ],
1165 ],'get' => [
1166 'path' => 'b/{bucket}/o/{object}/acl/{entity}',
1167 'httpMethod' => 'GET',
1168 'parameters' => [
1169 'bucket' => [
1170 'location' => 'path',
1171 'type' => 'string',
1172 'required' => true,
1173 ],
1174 'object' => [
1175 'location' => 'path',
1176 'type' => 'string',
1177 'required' => true,
1178 ],
1179 'entity' => [
1180 'location' => 'path',
1181 'type' => 'string',
1182 'required' => true,
1183 ],
1184 'generation' => [
1185 'location' => 'query',
1186 'type' => 'string',
1187 ],
1188 'userProject' => [
1189 'location' => 'query',
1190 'type' => 'string',
1191 ],
1192 ],
1193 ],'insert' => [
1194 'path' => 'b/{bucket}/o/{object}/acl',
1195 'httpMethod' => 'POST',
1196 'parameters' => [
1197 'bucket' => [
1198 'location' => 'path',
1199 'type' => 'string',
1200 'required' => true,
1201 ],
1202 'object' => [
1203 'location' => 'path',
1204 'type' => 'string',
1205 'required' => true,
1206 ],
1207 'generation' => [
1208 'location' => 'query',
1209 'type' => 'string',
1210 ],
1211 'userProject' => [
1212 'location' => 'query',
1213 'type' => 'string',
1214 ],
1215 ],
1216 ],'list' => [
1217 'path' => 'b/{bucket}/o/{object}/acl',
1218 'httpMethod' => 'GET',
1219 'parameters' => [
1220 'bucket' => [
1221 'location' => 'path',
1222 'type' => 'string',
1223 'required' => true,
1224 ],
1225 'object' => [
1226 'location' => 'path',
1227 'type' => 'string',
1228 'required' => true,
1229 ],
1230 'generation' => [
1231 'location' => 'query',
1232 'type' => 'string',
1233 ],
1234 'userProject' => [
1235 'location' => 'query',
1236 'type' => 'string',
1237 ],
1238 ],
1239 ],'patch' => [
1240 'path' => 'b/{bucket}/o/{object}/acl/{entity}',
1241 'httpMethod' => 'PATCH',
1242 'parameters' => [
1243 'bucket' => [
1244 'location' => 'path',
1245 'type' => 'string',
1246 'required' => true,
1247 ],
1248 'object' => [
1249 'location' => 'path',
1250 'type' => 'string',
1251 'required' => true,
1252 ],
1253 'entity' => [
1254 'location' => 'path',
1255 'type' => 'string',
1256 'required' => true,
1257 ],
1258 'generation' => [
1259 'location' => 'query',
1260 'type' => 'string',
1261 ],
1262 'userProject' => [
1263 'location' => 'query',
1264 'type' => 'string',
1265 ],
1266 ],
1267 ],'update' => [
1268 'path' => 'b/{bucket}/o/{object}/acl/{entity}',
1269 'httpMethod' => 'PUT',
1270 'parameters' => [
1271 'bucket' => [
1272 'location' => 'path',
1273 'type' => 'string',
1274 'required' => true,
1275 ],
1276 'object' => [
1277 'location' => 'path',
1278 'type' => 'string',
1279 'required' => true,
1280 ],
1281 'entity' => [
1282 'location' => 'path',
1283 'type' => 'string',
1284 'required' => true,
1285 ],
1286 'generation' => [
1287 'location' => 'query',
1288 'type' => 'string',
1289 ],
1290 'userProject' => [
1291 'location' => 'query',
1292 'type' => 'string',
1293 ],
1294 ],
1295 ],
1296 ]
1297 ]
1298 );
1299 $this->objects = new Storage\Resource\Objects(
1300 $this,
1301 $this->serviceName,
1302 'objects',
1303 [
1304 'methods' => [
1305 'bulkRestore' => [
1306 'path' => 'b/{bucket}/o/bulkRestore',
1307 'httpMethod' => 'POST',
1308 'parameters' => [
1309 'bucket' => [
1310 'location' => 'path',
1311 'type' => 'string',
1312 'required' => true,
1313 ],
1314 ],
1315 ],'compose' => [
1316 'path' => 'b/{destinationBucket}/o/{destinationObject}/compose',
1317 'httpMethod' => 'POST',
1318 'parameters' => [
1319 'destinationBucket' => [
1320 'location' => 'path',
1321 'type' => 'string',
1322 'required' => true,
1323 ],
1324 'destinationObject' => [
1325 'location' => 'path',
1326 'type' => 'string',
1327 'required' => true,
1328 ],
1329 'destinationPredefinedAcl' => [
1330 'location' => 'query',
1331 'type' => 'string',
1332 ],
1333 'ifGenerationMatch' => [
1334 'location' => 'query',
1335 'type' => 'string',
1336 ],
1337 'ifMetagenerationMatch' => [
1338 'location' => 'query',
1339 'type' => 'string',
1340 ],
1341 'kmsKeyName' => [
1342 'location' => 'query',
1343 'type' => 'string',
1344 ],
1345 'userProject' => [
1346 'location' => 'query',
1347 'type' => 'string',
1348 ],
1349 ],
1350 ],'copy' => [
1351 'path' => 'b/{sourceBucket}/o/{sourceObject}/copyTo/b/{destinationBucket}/o/{destinationObject}',
1352 'httpMethod' => 'POST',
1353 'parameters' => [
1354 'sourceBucket' => [
1355 'location' => 'path',
1356 'type' => 'string',
1357 'required' => true,
1358 ],
1359 'sourceObject' => [
1360 'location' => 'path',
1361 'type' => 'string',
1362 'required' => true,
1363 ],
1364 'destinationBucket' => [
1365 'location' => 'path',
1366 'type' => 'string',
1367 'required' => true,
1368 ],
1369 'destinationObject' => [
1370 'location' => 'path',
1371 'type' => 'string',
1372 'required' => true,
1373 ],
1374 'destinationKmsKeyName' => [
1375 'location' => 'query',
1376 'type' => 'string',
1377 ],
1378 'destinationPredefinedAcl' => [
1379 'location' => 'query',
1380 'type' => 'string',
1381 ],
1382 'ifGenerationMatch' => [
1383 'location' => 'query',
1384 'type' => 'string',
1385 ],
1386 'ifGenerationNotMatch' => [
1387 'location' => 'query',
1388 'type' => 'string',
1389 ],
1390 'ifMetagenerationMatch' => [
1391 'location' => 'query',
1392 'type' => 'string',
1393 ],
1394 'ifMetagenerationNotMatch' => [
1395 'location' => 'query',
1396 'type' => 'string',
1397 ],
1398 'ifSourceGenerationMatch' => [
1399 'location' => 'query',
1400 'type' => 'string',
1401 ],
1402 'ifSourceGenerationNotMatch' => [
1403 'location' => 'query',
1404 'type' => 'string',
1405 ],
1406 'ifSourceMetagenerationMatch' => [
1407 'location' => 'query',
1408 'type' => 'string',
1409 ],
1410 'ifSourceMetagenerationNotMatch' => [
1411 'location' => 'query',
1412 'type' => 'string',
1413 ],
1414 'projection' => [
1415 'location' => 'query',
1416 'type' => 'string',
1417 ],
1418 'sourceGeneration' => [
1419 'location' => 'query',
1420 'type' => 'string',
1421 ],
1422 'userProject' => [
1423 'location' => 'query',
1424 'type' => 'string',
1425 ],
1426 ],
1427 ],'delete' => [
1428 'path' => 'b/{bucket}/o/{object}',
1429 'httpMethod' => 'DELETE',
1430 'parameters' => [
1431 'bucket' => [
1432 'location' => 'path',
1433 'type' => 'string',
1434 'required' => true,
1435 ],
1436 'object' => [
1437 'location' => 'path',
1438 'type' => 'string',
1439 'required' => true,
1440 ],
1441 'generation' => [
1442 'location' => 'query',
1443 'type' => 'string',
1444 ],
1445 'ifGenerationMatch' => [
1446 'location' => 'query',
1447 'type' => 'string',
1448 ],
1449 'ifGenerationNotMatch' => [
1450 'location' => 'query',
1451 'type' => 'string',
1452 ],
1453 'ifMetagenerationMatch' => [
1454 'location' => 'query',
1455 'type' => 'string',
1456 ],
1457 'ifMetagenerationNotMatch' => [
1458 'location' => 'query',
1459 'type' => 'string',
1460 ],
1461 'userProject' => [
1462 'location' => 'query',
1463 'type' => 'string',
1464 ],
1465 ],
1466 ],'get' => [
1467 'path' => 'b/{bucket}/o/{object}',
1468 'httpMethod' => 'GET',
1469 'parameters' => [
1470 'bucket' => [
1471 'location' => 'path',
1472 'type' => 'string',
1473 'required' => true,
1474 ],
1475 'object' => [
1476 'location' => 'path',
1477 'type' => 'string',
1478 'required' => true,
1479 ],
1480 'generation' => [
1481 'location' => 'query',
1482 'type' => 'string',
1483 ],
1484 'ifGenerationMatch' => [
1485 'location' => 'query',
1486 'type' => 'string',
1487 ],
1488 'ifGenerationNotMatch' => [
1489 'location' => 'query',
1490 'type' => 'string',
1491 ],
1492 'ifMetagenerationMatch' => [
1493 'location' => 'query',
1494 'type' => 'string',
1495 ],
1496 'ifMetagenerationNotMatch' => [
1497 'location' => 'query',
1498 'type' => 'string',
1499 ],
1500 'projection' => [
1501 'location' => 'query',
1502 'type' => 'string',
1503 ],
1504 'restoreToken' => [
1505 'location' => 'query',
1506 'type' => 'string',
1507 ],
1508 'softDeleted' => [
1509 'location' => 'query',
1510 'type' => 'boolean',
1511 ],
1512 'userProject' => [
1513 'location' => 'query',
1514 'type' => 'string',
1515 ],
1516 ],
1517 ],'getIamPolicy' => [
1518 'path' => 'b/{bucket}/o/{object}/iam',
1519 'httpMethod' => 'GET',
1520 'parameters' => [
1521 'bucket' => [
1522 'location' => 'path',
1523 'type' => 'string',
1524 'required' => true,
1525 ],
1526 'object' => [
1527 'location' => 'path',
1528 'type' => 'string',
1529 'required' => true,
1530 ],
1531 'generation' => [
1532 'location' => 'query',
1533 'type' => 'string',
1534 ],
1535 'userProject' => [
1536 'location' => 'query',
1537 'type' => 'string',
1538 ],
1539 ],
1540 ],'insert' => [
1541 'path' => 'b/{bucket}/o',
1542 'httpMethod' => 'POST',
1543 'parameters' => [
1544 'bucket' => [
1545 'location' => 'path',
1546 'type' => 'string',
1547 'required' => true,
1548 ],
1549 'contentEncoding' => [
1550 'location' => 'query',
1551 'type' => 'string',
1552 ],
1553 'ifGenerationMatch' => [
1554 'location' => 'query',
1555 'type' => 'string',
1556 ],
1557 'ifGenerationNotMatch' => [
1558 'location' => 'query',
1559 'type' => 'string',
1560 ],
1561 'ifMetagenerationMatch' => [
1562 'location' => 'query',
1563 'type' => 'string',
1564 ],
1565 'ifMetagenerationNotMatch' => [
1566 'location' => 'query',
1567 'type' => 'string',
1568 ],
1569 'kmsKeyName' => [
1570 'location' => 'query',
1571 'type' => 'string',
1572 ],
1573 'name' => [
1574 'location' => 'query',
1575 'type' => 'string',
1576 ],
1577 'predefinedAcl' => [
1578 'location' => 'query',
1579 'type' => 'string',
1580 ],
1581 'projection' => [
1582 'location' => 'query',
1583 'type' => 'string',
1584 ],
1585 'userProject' => [
1586 'location' => 'query',
1587 'type' => 'string',
1588 ],
1589 ],
1590 ],'list' => [
1591 'path' => 'b/{bucket}/o',
1592 'httpMethod' => 'GET',
1593 'parameters' => [
1594 'bucket' => [
1595 'location' => 'path',
1596 'type' => 'string',
1597 'required' => true,
1598 ],
1599 'delimiter' => [
1600 'location' => 'query',
1601 'type' => 'string',
1602 ],
1603 'endOffset' => [
1604 'location' => 'query',
1605 'type' => 'string',
1606 ],
1607 'includeFoldersAsPrefixes' => [
1608 'location' => 'query',
1609 'type' => 'boolean',
1610 ],
1611 'includeTrailingDelimiter' => [
1612 'location' => 'query',
1613 'type' => 'boolean',
1614 ],
1615 'matchGlob' => [
1616 'location' => 'query',
1617 'type' => 'string',
1618 ],
1619 'maxResults' => [
1620 'location' => 'query',
1621 'type' => 'integer',
1622 ],
1623 'pageToken' => [
1624 'location' => 'query',
1625 'type' => 'string',
1626 ],
1627 'prefix' => [
1628 'location' => 'query',
1629 'type' => 'string',
1630 ],
1631 'projection' => [
1632 'location' => 'query',
1633 'type' => 'string',
1634 ],
1635 'softDeleted' => [
1636 'location' => 'query',
1637 'type' => 'boolean',
1638 ],
1639 'startOffset' => [
1640 'location' => 'query',
1641 'type' => 'string',
1642 ],
1643 'userProject' => [
1644 'location' => 'query',
1645 'type' => 'string',
1646 ],
1647 'versions' => [
1648 'location' => 'query',
1649 'type' => 'boolean',
1650 ],
1651 ],
1652 ],'patch' => [
1653 'path' => 'b/{bucket}/o/{object}',
1654 'httpMethod' => 'PATCH',
1655 'parameters' => [
1656 'bucket' => [
1657 'location' => 'path',
1658 'type' => 'string',
1659 'required' => true,
1660 ],
1661 'object' => [
1662 'location' => 'path',
1663 'type' => 'string',
1664 'required' => true,
1665 ],
1666 'generation' => [
1667 'location' => 'query',
1668 'type' => 'string',
1669 ],
1670 'ifGenerationMatch' => [
1671 'location' => 'query',
1672 'type' => 'string',
1673 ],
1674 'ifGenerationNotMatch' => [
1675 'location' => 'query',
1676 'type' => 'string',
1677 ],
1678 'ifMetagenerationMatch' => [
1679 'location' => 'query',
1680 'type' => 'string',
1681 ],
1682 'ifMetagenerationNotMatch' => [
1683 'location' => 'query',
1684 'type' => 'string',
1685 ],
1686 'overrideUnlockedRetention' => [
1687 'location' => 'query',
1688 'type' => 'boolean',
1689 ],
1690 'predefinedAcl' => [
1691 'location' => 'query',
1692 'type' => 'string',
1693 ],
1694 'projection' => [
1695 'location' => 'query',
1696 'type' => 'string',
1697 ],
1698 'userProject' => [
1699 'location' => 'query',
1700 'type' => 'string',
1701 ],
1702 ],
1703 ],'restore' => [
1704 'path' => 'b/{bucket}/o/{object}/restore',
1705 'httpMethod' => 'POST',
1706 'parameters' => [
1707 'bucket' => [
1708 'location' => 'path',
1709 'type' => 'string',
1710 'required' => true,
1711 ],
1712 'object' => [
1713 'location' => 'path',
1714 'type' => 'string',
1715 'required' => true,
1716 ],
1717 'generation' => [
1718 'location' => 'query',
1719 'type' => 'string',
1720 'required' => true,
1721 ],
1722 'copySourceAcl' => [
1723 'location' => 'query',
1724 'type' => 'boolean',
1725 ],
1726 'ifGenerationMatch' => [
1727 'location' => 'query',
1728 'type' => 'string',
1729 ],
1730 'ifGenerationNotMatch' => [
1731 'location' => 'query',
1732 'type' => 'string',
1733 ],
1734 'ifMetagenerationMatch' => [
1735 'location' => 'query',
1736 'type' => 'string',
1737 ],
1738 'ifMetagenerationNotMatch' => [
1739 'location' => 'query',
1740 'type' => 'string',
1741 ],
1742 'projection' => [
1743 'location' => 'query',
1744 'type' => 'string',
1745 ],
1746 'restoreToken' => [
1747 'location' => 'query',
1748 'type' => 'string',
1749 ],
1750 'userProject' => [
1751 'location' => 'query',
1752 'type' => 'string',
1753 ],
1754 ],
1755 ],'rewrite' => [
1756 'path' => 'b/{sourceBucket}/o/{sourceObject}/rewriteTo/b/{destinationBucket}/o/{destinationObject}',
1757 'httpMethod' => 'POST',
1758 'parameters' => [
1759 'sourceBucket' => [
1760 'location' => 'path',
1761 'type' => 'string',
1762 'required' => true,
1763 ],
1764 'sourceObject' => [
1765 'location' => 'path',
1766 'type' => 'string',
1767 'required' => true,
1768 ],
1769 'destinationBucket' => [
1770 'location' => 'path',
1771 'type' => 'string',
1772 'required' => true,
1773 ],
1774 'destinationObject' => [
1775 'location' => 'path',
1776 'type' => 'string',
1777 'required' => true,
1778 ],
1779 'destinationKmsKeyName' => [
1780 'location' => 'query',
1781 'type' => 'string',
1782 ],
1783 'destinationPredefinedAcl' => [
1784 'location' => 'query',
1785 'type' => 'string',
1786 ],
1787 'ifGenerationMatch' => [
1788 'location' => 'query',
1789 'type' => 'string',
1790 ],
1791 'ifGenerationNotMatch' => [
1792 'location' => 'query',
1793 'type' => 'string',
1794 ],
1795 'ifMetagenerationMatch' => [
1796 'location' => 'query',
1797 'type' => 'string',
1798 ],
1799 'ifMetagenerationNotMatch' => [
1800 'location' => 'query',
1801 'type' => 'string',
1802 ],
1803 'ifSourceGenerationMatch' => [
1804 'location' => 'query',
1805 'type' => 'string',
1806 ],
1807 'ifSourceGenerationNotMatch' => [
1808 'location' => 'query',
1809 'type' => 'string',
1810 ],
1811 'ifSourceMetagenerationMatch' => [
1812 'location' => 'query',
1813 'type' => 'string',
1814 ],
1815 'ifSourceMetagenerationNotMatch' => [
1816 'location' => 'query',
1817 'type' => 'string',
1818 ],
1819 'maxBytesRewrittenPerCall' => [
1820 'location' => 'query',
1821 'type' => 'string',
1822 ],
1823 'projection' => [
1824 'location' => 'query',
1825 'type' => 'string',
1826 ],
1827 'rewriteToken' => [
1828 'location' => 'query',
1829 'type' => 'string',
1830 ],
1831 'sourceGeneration' => [
1832 'location' => 'query',
1833 'type' => 'string',
1834 ],
1835 'userProject' => [
1836 'location' => 'query',
1837 'type' => 'string',
1838 ],
1839 ],
1840 ],'setIamPolicy' => [
1841 'path' => 'b/{bucket}/o/{object}/iam',
1842 'httpMethod' => 'PUT',
1843 'parameters' => [
1844 'bucket' => [
1845 'location' => 'path',
1846 'type' => 'string',
1847 'required' => true,
1848 ],
1849 'object' => [
1850 'location' => 'path',
1851 'type' => 'string',
1852 'required' => true,
1853 ],
1854 'generation' => [
1855 'location' => 'query',
1856 'type' => 'string',
1857 ],
1858 'userProject' => [
1859 'location' => 'query',
1860 'type' => 'string',
1861 ],
1862 ],
1863 ],'testIamPermissions' => [
1864 'path' => 'b/{bucket}/o/{object}/iam/testPermissions',
1865 'httpMethod' => 'GET',
1866 'parameters' => [
1867 'bucket' => [
1868 'location' => 'path',
1869 'type' => 'string',
1870 'required' => true,
1871 ],
1872 'object' => [
1873 'location' => 'path',
1874 'type' => 'string',
1875 'required' => true,
1876 ],
1877 'permissions' => [
1878 'location' => 'query',
1879 'type' => 'string',
1880 'repeated' => true,
1881 'required' => true,
1882 ],
1883 'generation' => [
1884 'location' => 'query',
1885 'type' => 'string',
1886 ],
1887 'userProject' => [
1888 'location' => 'query',
1889 'type' => 'string',
1890 ],
1891 ],
1892 ],'update' => [
1893 'path' => 'b/{bucket}/o/{object}',
1894 'httpMethod' => 'PUT',
1895 'parameters' => [
1896 'bucket' => [
1897 'location' => 'path',
1898 'type' => 'string',
1899 'required' => true,
1900 ],
1901 'object' => [
1902 'location' => 'path',
1903 'type' => 'string',
1904 'required' => true,
1905 ],
1906 'generation' => [
1907 'location' => 'query',
1908 'type' => 'string',
1909 ],
1910 'ifGenerationMatch' => [
1911 'location' => 'query',
1912 'type' => 'string',
1913 ],
1914 'ifGenerationNotMatch' => [
1915 'location' => 'query',
1916 'type' => 'string',
1917 ],
1918 'ifMetagenerationMatch' => [
1919 'location' => 'query',
1920 'type' => 'string',
1921 ],
1922 'ifMetagenerationNotMatch' => [
1923 'location' => 'query',
1924 'type' => 'string',
1925 ],
1926 'overrideUnlockedRetention' => [
1927 'location' => 'query',
1928 'type' => 'boolean',
1929 ],
1930 'predefinedAcl' => [
1931 'location' => 'query',
1932 'type' => 'string',
1933 ],
1934 'projection' => [
1935 'location' => 'query',
1936 'type' => 'string',
1937 ],
1938 'userProject' => [
1939 'location' => 'query',
1940 'type' => 'string',
1941 ],
1942 ],
1943 ],'watchAll' => [
1944 'path' => 'b/{bucket}/o/watch',
1945 'httpMethod' => 'POST',
1946 'parameters' => [
1947 'bucket' => [
1948 'location' => 'path',
1949 'type' => 'string',
1950 'required' => true,
1951 ],
1952 'delimiter' => [
1953 'location' => 'query',
1954 'type' => 'string',
1955 ],
1956 'endOffset' => [
1957 'location' => 'query',
1958 'type' => 'string',
1959 ],
1960 'includeTrailingDelimiter' => [
1961 'location' => 'query',
1962 'type' => 'boolean',
1963 ],
1964 'maxResults' => [
1965 'location' => 'query',
1966 'type' => 'integer',
1967 ],
1968 'pageToken' => [
1969 'location' => 'query',
1970 'type' => 'string',
1971 ],
1972 'prefix' => [
1973 'location' => 'query',
1974 'type' => 'string',
1975 ],
1976 'projection' => [
1977 'location' => 'query',
1978 'type' => 'string',
1979 ],
1980 'startOffset' => [
1981 'location' => 'query',
1982 'type' => 'string',
1983 ],
1984 'userProject' => [
1985 'location' => 'query',
1986 'type' => 'string',
1987 ],
1988 'versions' => [
1989 'location' => 'query',
1990 'type' => 'boolean',
1991 ],
1992 ],
1993 ],
1994 ]
1995 ]
1996 );
1997 $this->operations = new Storage\Resource\Operations(
1998 $this,
1999 $this->serviceName,
2000 'operations',
2001 [
2002 'methods' => [
2003 'advanceRelocateBucket' => [
2004 'path' => 'b/{bucket}/operations/{operationId}/advanceRelocateBucket',
2005 'httpMethod' => 'POST',
2006 'parameters' => [
2007 'bucket' => [
2008 'location' => 'path',
2009 'type' => 'string',
2010 'required' => true,
2011 ],
2012 'operationId' => [
2013 'location' => 'path',
2014 'type' => 'string',
2015 'required' => true,
2016 ],
2017 ],
2018 ],'cancel' => [
2019 'path' => 'b/{bucket}/operations/{operationId}/cancel',
2020 'httpMethod' => 'POST',
2021 'parameters' => [
2022 'bucket' => [
2023 'location' => 'path',
2024 'type' => 'string',
2025 'required' => true,
2026 ],
2027 'operationId' => [
2028 'location' => 'path',
2029 'type' => 'string',
2030 'required' => true,
2031 ],
2032 ],
2033 ],'get' => [
2034 'path' => 'b/{bucket}/operations/{operationId}',
2035 'httpMethod' => 'GET',
2036 'parameters' => [
2037 'bucket' => [
2038 'location' => 'path',
2039 'type' => 'string',
2040 'required' => true,
2041 ],
2042 'operationId' => [
2043 'location' => 'path',
2044 'type' => 'string',
2045 'required' => true,
2046 ],
2047 ],
2048 ],'list' => [
2049 'path' => 'b/{bucket}/operations',
2050 'httpMethod' => 'GET',
2051 'parameters' => [
2052 'bucket' => [
2053 'location' => 'path',
2054 'type' => 'string',
2055 'required' => true,
2056 ],
2057 'filter' => [
2058 'location' => 'query',
2059 'type' => 'string',
2060 ],
2061 'pageSize' => [
2062 'location' => 'query',
2063 'type' => 'integer',
2064 ],
2065 'pageToken' => [
2066 'location' => 'query',
2067 'type' => 'string',
2068 ],
2069 ],
2070 ],
2071 ]
2072 ]
2073 );
2074 $this->projects_hmacKeys = new Storage\Resource\ProjectsHmacKeys(
2075 $this,
2076 $this->serviceName,
2077 'hmacKeys',
2078 [
2079 'methods' => [
2080 'create' => [
2081 'path' => 'projects/{projectId}/hmacKeys',
2082 'httpMethod' => 'POST',
2083 'parameters' => [
2084 'projectId' => [
2085 'location' => 'path',
2086 'type' => 'string',
2087 'required' => true,
2088 ],
2089 'serviceAccountEmail' => [
2090 'location' => 'query',
2091 'type' => 'string',
2092 'required' => true,
2093 ],
2094 'userProject' => [
2095 'location' => 'query',
2096 'type' => 'string',
2097 ],
2098 ],
2099 ],'delete' => [
2100 'path' => 'projects/{projectId}/hmacKeys/{accessId}',
2101 'httpMethod' => 'DELETE',
2102 'parameters' => [
2103 'projectId' => [
2104 'location' => 'path',
2105 'type' => 'string',
2106 'required' => true,
2107 ],
2108 'accessId' => [
2109 'location' => 'path',
2110 'type' => 'string',
2111 'required' => true,
2112 ],
2113 'userProject' => [
2114 'location' => 'query',
2115 'type' => 'string',
2116 ],
2117 ],
2118 ],'get' => [
2119 'path' => 'projects/{projectId}/hmacKeys/{accessId}',
2120 'httpMethod' => 'GET',
2121 'parameters' => [
2122 'projectId' => [
2123 'location' => 'path',
2124 'type' => 'string',
2125 'required' => true,
2126 ],
2127 'accessId' => [
2128 'location' => 'path',
2129 'type' => 'string',
2130 'required' => true,
2131 ],
2132 'userProject' => [
2133 'location' => 'query',
2134 'type' => 'string',
2135 ],
2136 ],
2137 ],'list' => [
2138 'path' => 'projects/{projectId}/hmacKeys',
2139 'httpMethod' => 'GET',
2140 'parameters' => [
2141 'projectId' => [
2142 'location' => 'path',
2143 'type' => 'string',
2144 'required' => true,
2145 ],
2146 'maxResults' => [
2147 'location' => 'query',
2148 'type' => 'integer',
2149 ],
2150 'pageToken' => [
2151 'location' => 'query',
2152 'type' => 'string',
2153 ],
2154 'serviceAccountEmail' => [
2155 'location' => 'query',
2156 'type' => 'string',
2157 ],
2158 'showDeletedKeys' => [
2159 'location' => 'query',
2160 'type' => 'boolean',
2161 ],
2162 'userProject' => [
2163 'location' => 'query',
2164 'type' => 'string',
2165 ],
2166 ],
2167 ],'update' => [
2168 'path' => 'projects/{projectId}/hmacKeys/{accessId}',
2169 'httpMethod' => 'PUT',
2170 'parameters' => [
2171 'projectId' => [
2172 'location' => 'path',
2173 'type' => 'string',
2174 'required' => true,
2175 ],
2176 'accessId' => [
2177 'location' => 'path',
2178 'type' => 'string',
2179 'required' => true,
2180 ],
2181 'userProject' => [
2182 'location' => 'query',
2183 'type' => 'string',
2184 ],
2185 ],
2186 ],
2187 ]
2188 ]
2189 );
2190 $this->projects_serviceAccount = new Storage\Resource\ProjectsServiceAccount(
2191 $this,
2192 $this->serviceName,
2193 'serviceAccount',
2194 [
2195 'methods' => [
2196 'get' => [
2197 'path' => 'projects/{projectId}/serviceAccount',
2198 'httpMethod' => 'GET',
2199 'parameters' => [
2200 'projectId' => [
2201 'location' => 'path',
2202 'type' => 'string',
2203 'required' => true,
2204 ],
2205 'userProject' => [
2206 'location' => 'query',
2207 'type' => 'string',
2208 ],
2209 ],
2210 ],
2211 ]
2212 ]
2213 );
2214 }
2215}
2216
2217// Adding a class alias for backwards compatibility with the previous class name.
2218class_alias(Storage::class, 'Google_Service_Storage');
Note: See TracBrowser for help on using the repository browser.