PluginProbe
Authorizer / 2.2
Authorizer v2.2
3.15.3 3.15.2 3.15.1 3.15.0 3.14.3 3.14.4 3.14.2 3.14.1 2.8.1 2.8.2 2.8.3 2.8.4 2.8.5 2.8.6 2.8.7 2.8.8 2.9.0 2.9.1 2.9.10 2.9.11 2.9.12 2.9.13 2.9.2 2.9.3 2.9.6 All 126 releases
authorizer / inc / google-api-php-client / src / Google / Service / Storage.php

Storage.php in Authorizer 2.2, at inc/google-api-php-client/src/Google/Service/Storage.php

3,265 lines 92.3 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 /*
3 * Copyright 2010 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
18 /**
19 * Service definition for Storage (v1).
20 *
21 * <p>
22 * Lets you store and retrieve potentially-large, immutable data objects.
23 * </p>
24 *
25 * <p>
26 * For more information about this service, see the API
27 * <a href="https://developers.google.com/storage/docs/json_api/" target="_blank">Documentation</a>
28 * </p>
29 *
30 * @author Google, Inc.
31 */
32 class Google_Service_Storage extends Google_Service
33 {
34 /** Manage your data and permissions in Google Cloud Storage. */
35 const DEVSTORAGE_FULL_CONTROL = "https://www.googleapis.com/auth/devstorage.full_control";
36 /** View your data in Google Cloud Storage. */
37 const DEVSTORAGE_READ_ONLY = "https://www.googleapis.com/auth/devstorage.read_only";
38 /** Manage your data in Google Cloud Storage. */
39 const DEVSTORAGE_READ_WRITE = "https://www.googleapis.com/auth/devstorage.read_write";
40
41 public $bucketAccessControls;
42 public $buckets;
43 public $channels;
44 public $defaultObjectAccessControls;
45 public $objectAccessControls;
46 public $objects;
47
48
49 /**
50 * Constructs the internal representation of the Storage service.
51 *
52 * @param Google_Client $client
53 */
54 public function __construct(Google_Client $client)
55 {
56 parent::__construct($client);
57 $this->servicePath = 'storage/v1/';
58 $this->version = 'v1';
59 $this->serviceName = 'storage';
60
61 $this->bucketAccessControls = new Google_Service_Storage_BucketAccessControls_Resource(
62 $this,
63 $this->serviceName,
64 'bucketAccessControls',
65 array(
66 'methods' => array(
67 'delete' => array(
68 'path' => 'b/{bucket}/acl/{entity}',
69 'httpMethod' => 'DELETE',
70 'parameters' => array(
71 'bucket' => array(
72 'location' => 'path',
73 'type' => 'string',
74 'required' => true,
75 ),
76 'entity' => array(
77 'location' => 'path',
78 'type' => 'string',
79 'required' => true,
80 ),
81 ),
82 ),'get' => array(
83 'path' => 'b/{bucket}/acl/{entity}',
84 'httpMethod' => 'GET',
85 'parameters' => array(
86 'bucket' => array(
87 'location' => 'path',
88 'type' => 'string',
89 'required' => true,
90 ),
91 'entity' => array(
92 'location' => 'path',
93 'type' => 'string',
94 'required' => true,
95 ),
96 ),
97 ),'insert' => array(
98 'path' => 'b/{bucket}/acl',
99 'httpMethod' => 'POST',
100 'parameters' => array(
101 'bucket' => array(
102 'location' => 'path',
103 'type' => 'string',
104 'required' => true,
105 ),
106 ),
107 ),'list' => array(
108 'path' => 'b/{bucket}/acl',
109 'httpMethod' => 'GET',
110 'parameters' => array(
111 'bucket' => array(
112 'location' => 'path',
113 'type' => 'string',
114 'required' => true,
115 ),
116 ),
117 ),'patch' => array(
118 'path' => 'b/{bucket}/acl/{entity}',
119 'httpMethod' => 'PATCH',
120 'parameters' => array(
121 'bucket' => array(
122 'location' => 'path',
123 'type' => 'string',
124 'required' => true,
125 ),
126 'entity' => array(
127 'location' => 'path',
128 'type' => 'string',
129 'required' => true,
130 ),
131 ),
132 ),'update' => array(
133 'path' => 'b/{bucket}/acl/{entity}',
134 'httpMethod' => 'PUT',
135 'parameters' => array(
136 'bucket' => array(
137 'location' => 'path',
138 'type' => 'string',
139 'required' => true,
140 ),
141 'entity' => array(
142 'location' => 'path',
143 'type' => 'string',
144 'required' => true,
145 ),
146 ),
147 ),
148 )
149 )
150 );
151 $this->buckets = new Google_Service_Storage_Buckets_Resource(
152 $this,
153 $this->serviceName,
154 'buckets',
155 array(
156 'methods' => array(
157 'delete' => array(
158 'path' => 'b/{bucket}',
159 'httpMethod' => 'DELETE',
160 'parameters' => array(
161 'bucket' => array(
162 'location' => 'path',
163 'type' => 'string',
164 'required' => true,
165 ),
166 'ifMetagenerationMatch' => array(
167 'location' => 'query',
168 'type' => 'string',
169 ),
170 'ifMetagenerationNotMatch' => array(
171 'location' => 'query',
172 'type' => 'string',
173 ),
174 ),
175 ),'get' => array(
176 'path' => 'b/{bucket}',
177 'httpMethod' => 'GET',
178 'parameters' => array(
179 'bucket' => array(
180 'location' => 'path',
181 'type' => 'string',
182 'required' => true,
183 ),
184 'ifMetagenerationMatch' => array(
185 'location' => 'query',
186 'type' => 'string',
187 ),
188 'ifMetagenerationNotMatch' => array(
189 'location' => 'query',
190 'type' => 'string',
191 ),
192 'projection' => array(
193 'location' => 'query',
194 'type' => 'string',
195 ),
196 ),
197 ),'insert' => array(
198 'path' => 'b',
199 'httpMethod' => 'POST',
200 'parameters' => array(
201 'project' => array(
202 'location' => 'query',
203 'type' => 'string',
204 'required' => true,
205 ),
206 'predefinedAcl' => array(
207 'location' => 'query',
208 'type' => 'string',
209 ),
210 'projection' => array(
211 'location' => 'query',
212 'type' => 'string',
213 ),
214 ),
215 ),'list' => array(
216 'path' => 'b',
217 'httpMethod' => 'GET',
218 'parameters' => array(
219 'project' => array(
220 'location' => 'query',
221 'type' => 'string',
222 'required' => true,
223 ),
224 'pageToken' => array(
225 'location' => 'query',
226 'type' => 'string',
227 ),
228 'projection' => array(
229 'location' => 'query',
230 'type' => 'string',
231 ),
232 'maxResults' => array(
233 'location' => 'query',
234 'type' => 'integer',
235 ),
236 ),
237 ),'patch' => array(
238 'path' => 'b/{bucket}',
239 'httpMethod' => 'PATCH',
240 'parameters' => array(
241 'bucket' => array(
242 'location' => 'path',
243 'type' => 'string',
244 'required' => true,
245 ),
246 'ifMetagenerationMatch' => array(
247 'location' => 'query',
248 'type' => 'string',
249 ),
250 'predefinedAcl' => array(
251 'location' => 'query',
252 'type' => 'string',
253 ),
254 'ifMetagenerationNotMatch' => array(
255 'location' => 'query',
256 'type' => 'string',
257 ),
258 'projection' => array(
259 'location' => 'query',
260 'type' => 'string',
261 ),
262 ),
263 ),'update' => array(
264 'path' => 'b/{bucket}',
265 'httpMethod' => 'PUT',
266 'parameters' => array(
267 'bucket' => array(
268 'location' => 'path',
269 'type' => 'string',
270 'required' => true,
271 ),
272 'ifMetagenerationMatch' => array(
273 'location' => 'query',
274 'type' => 'string',
275 ),
276 'predefinedAcl' => array(
277 'location' => 'query',
278 'type' => 'string',
279 ),
280 'ifMetagenerationNotMatch' => array(
281 'location' => 'query',
282 'type' => 'string',
283 ),
284 'projection' => array(
285 'location' => 'query',
286 'type' => 'string',
287 ),
288 ),
289 ),
290 )
291 )
292 );
293 $this->channels = new Google_Service_Storage_Channels_Resource(
294 $this,
295 $this->serviceName,
296 'channels',
297 array(
298 'methods' => array(
299 'stop' => array(
300 'path' => 'channels/stop',
301 'httpMethod' => 'POST',
302 'parameters' => array(),
303 ),
304 )
305 )
306 );
307 $this->defaultObjectAccessControls = new Google_Service_Storage_DefaultObjectAccessControls_Resource(
308 $this,
309 $this->serviceName,
310 'defaultObjectAccessControls',
311 array(
312 'methods' => array(
313 'delete' => array(
314 'path' => 'b/{bucket}/defaultObjectAcl/{entity}',
315 'httpMethod' => 'DELETE',
316 'parameters' => array(
317 'bucket' => array(
318 'location' => 'path',
319 'type' => 'string',
320 'required' => true,
321 ),
322 'entity' => array(
323 'location' => 'path',
324 'type' => 'string',
325 'required' => true,
326 ),
327 ),
328 ),'get' => array(
329 'path' => 'b/{bucket}/defaultObjectAcl/{entity}',
330 'httpMethod' => 'GET',
331 'parameters' => array(
332 'bucket' => array(
333 'location' => 'path',
334 'type' => 'string',
335 'required' => true,
336 ),
337 'entity' => array(
338 'location' => 'path',
339 'type' => 'string',
340 'required' => true,
341 ),
342 ),
343 ),'insert' => array(
344 'path' => 'b/{bucket}/defaultObjectAcl',
345 'httpMethod' => 'POST',
346 'parameters' => array(
347 'bucket' => array(
348 'location' => 'path',
349 'type' => 'string',
350 'required' => true,
351 ),
352 ),
353 ),'list' => array(
354 'path' => 'b/{bucket}/defaultObjectAcl',
355 'httpMethod' => 'GET',
356 'parameters' => array(
357 'bucket' => array(
358 'location' => 'path',
359 'type' => 'string',
360 'required' => true,
361 ),
362 'ifMetagenerationMatch' => array(
363 'location' => 'query',
364 'type' => 'string',
365 ),
366 'ifMetagenerationNotMatch' => array(
367 'location' => 'query',
368 'type' => 'string',
369 ),
370 ),
371 ),'patch' => array(
372 'path' => 'b/{bucket}/defaultObjectAcl/{entity}',
373 'httpMethod' => 'PATCH',
374 'parameters' => array(
375 'bucket' => array(
376 'location' => 'path',
377 'type' => 'string',
378 'required' => true,
379 ),
380 'entity' => array(
381 'location' => 'path',
382 'type' => 'string',
383 'required' => true,
384 ),
385 ),
386 ),'update' => array(
387 'path' => 'b/{bucket}/defaultObjectAcl/{entity}',
388 'httpMethod' => 'PUT',
389 'parameters' => array(
390 'bucket' => array(
391 'location' => 'path',
392 'type' => 'string',
393 'required' => true,
394 ),
395 'entity' => array(
396 'location' => 'path',
397 'type' => 'string',
398 'required' => true,
399 ),
400 ),
401 ),
402 )
403 )
404 );
405 $this->objectAccessControls = new Google_Service_Storage_ObjectAccessControls_Resource(
406 $this,
407 $this->serviceName,
408 'objectAccessControls',
409 array(
410 'methods' => array(
411 'delete' => array(
412 'path' => 'b/{bucket}/o/{object}/acl/{entity}',
413 'httpMethod' => 'DELETE',
414 'parameters' => array(
415 'bucket' => array(
416 'location' => 'path',
417 'type' => 'string',
418 'required' => true,
419 ),
420 'object' => array(
421 'location' => 'path',
422 'type' => 'string',
423 'required' => true,
424 ),
425 'entity' => array(
426 'location' => 'path',
427 'type' => 'string',
428 'required' => true,
429 ),
430 'generation' => array(
431 'location' => 'query',
432 'type' => 'string',
433 ),
434 ),
435 ),'get' => array(
436 'path' => 'b/{bucket}/o/{object}/acl/{entity}',
437 'httpMethod' => 'GET',
438 'parameters' => array(
439 'bucket' => array(
440 'location' => 'path',
441 'type' => 'string',
442 'required' => true,
443 ),
444 'object' => array(
445 'location' => 'path',
446 'type' => 'string',
447 'required' => true,
448 ),
449 'entity' => array(
450 'location' => 'path',
451 'type' => 'string',
452 'required' => true,
453 ),
454 'generation' => array(
455 'location' => 'query',
456 'type' => 'string',
457 ),
458 ),
459 ),'insert' => array(
460 'path' => 'b/{bucket}/o/{object}/acl',
461 'httpMethod' => 'POST',
462 'parameters' => array(
463 'bucket' => array(
464 'location' => 'path',
465 'type' => 'string',
466 'required' => true,
467 ),
468 'object' => array(
469 'location' => 'path',
470 'type' => 'string',
471 'required' => true,
472 ),
473 'generation' => array(
474 'location' => 'query',
475 'type' => 'string',
476 ),
477 ),
478 ),'list' => array(
479 'path' => 'b/{bucket}/o/{object}/acl',
480 'httpMethod' => 'GET',
481 'parameters' => array(
482 'bucket' => array(
483 'location' => 'path',
484 'type' => 'string',
485 'required' => true,
486 ),
487 'object' => array(
488 'location' => 'path',
489 'type' => 'string',
490 'required' => true,
491 ),
492 'generation' => array(
493 'location' => 'query',
494 'type' => 'string',
495 ),
496 ),
497 ),'patch' => array(
498 'path' => 'b/{bucket}/o/{object}/acl/{entity}',
499 'httpMethod' => 'PATCH',
500 'parameters' => array(
501 'bucket' => array(
502 'location' => 'path',
503 'type' => 'string',
504 'required' => true,
505 ),
506 'object' => array(
507 'location' => 'path',
508 'type' => 'string',
509 'required' => true,
510 ),
511 'entity' => array(
512 'location' => 'path',
513 'type' => 'string',
514 'required' => true,
515 ),
516 'generation' => array(
517 'location' => 'query',
518 'type' => 'string',
519 ),
520 ),
521 ),'update' => array(
522 'path' => 'b/{bucket}/o/{object}/acl/{entity}',
523 'httpMethod' => 'PUT',
524 'parameters' => array(
525 'bucket' => array(
526 'location' => 'path',
527 'type' => 'string',
528 'required' => true,
529 ),
530 'object' => array(
531 'location' => 'path',
532 'type' => 'string',
533 'required' => true,
534 ),
535 'entity' => array(
536 'location' => 'path',
537 'type' => 'string',
538 'required' => true,
539 ),
540 'generation' => array(
541 'location' => 'query',
542 'type' => 'string',
543 ),
544 ),
545 ),
546 )
547 )
548 );
549 $this->objects = new Google_Service_Storage_Objects_Resource(
550 $this,
551 $this->serviceName,
552 'objects',
553 array(
554 'methods' => array(
555 'compose' => array(
556 'path' => 'b/{destinationBucket}/o/{destinationObject}/compose',
557 'httpMethod' => 'POST',
558 'parameters' => array(
559 'destinationBucket' => array(
560 'location' => 'path',
561 'type' => 'string',
562 'required' => true,
563 ),
564 'destinationObject' => array(
565 'location' => 'path',
566 'type' => 'string',
567 'required' => true,
568 ),
569 'ifGenerationMatch' => array(
570 'location' => 'query',
571 'type' => 'string',
572 ),
573 'ifMetagenerationMatch' => array(
574 'location' => 'query',
575 'type' => 'string',
576 ),
577 'destinationPredefinedAcl' => array(
578 'location' => 'query',
579 'type' => 'string',
580 ),
581 ),
582 ),'copy' => array(
583 'path' => 'b/{sourceBucket}/o/{sourceObject}/copyTo/b/{destinationBucket}/o/{destinationObject}',
584 'httpMethod' => 'POST',
585 'parameters' => array(
586 'sourceBucket' => array(
587 'location' => 'path',
588 'type' => 'string',
589 'required' => true,
590 ),
591 'sourceObject' => array(
592 'location' => 'path',
593 'type' => 'string',
594 'required' => true,
595 ),
596 'destinationBucket' => array(
597 'location' => 'path',
598 'type' => 'string',
599 'required' => true,
600 ),
601 'destinationObject' => array(
602 'location' => 'path',
603 'type' => 'string',
604 'required' => true,
605 ),
606 'ifSourceGenerationNotMatch' => array(
607 'location' => 'query',
608 'type' => 'string',
609 ),
610 'ifGenerationNotMatch' => array(
611 'location' => 'query',
612 'type' => 'string',
613 ),
614 'ifSourceMetagenerationNotMatch' => array(
615 'location' => 'query',
616 'type' => 'string',
617 ),
618 'ifMetagenerationMatch' => array(
619 'location' => 'query',
620 'type' => 'string',
621 ),
622 'sourceGeneration' => array(
623 'location' => 'query',
624 'type' => 'string',
625 ),
626 'destinationPredefinedAcl' => array(
627 'location' => 'query',
628 'type' => 'string',
629 ),
630 'ifSourceGenerationMatch' => array(
631 'location' => 'query',
632 'type' => 'string',
633 ),
634 'ifSourceMetagenerationMatch' => array(
635 'location' => 'query',
636 'type' => 'string',
637 ),
638 'ifGenerationMatch' => array(
639 'location' => 'query',
640 'type' => 'string',
641 ),
642 'ifMetagenerationNotMatch' => array(
643 'location' => 'query',
644 'type' => 'string',
645 ),
646 'projection' => array(
647 'location' => 'query',
648 'type' => 'string',
649 ),
650 ),
651 ),'delete' => array(
652 'path' => 'b/{bucket}/o/{object}',
653 'httpMethod' => 'DELETE',
654 'parameters' => array(
655 'bucket' => array(
656 'location' => 'path',
657 'type' => 'string',
658 'required' => true,
659 ),
660 'object' => array(
661 'location' => 'path',
662 'type' => 'string',
663 'required' => true,
664 ),
665 'ifGenerationNotMatch' => array(
666 'location' => 'query',
667 'type' => 'string',
668 ),
669 'generation' => array(
670 'location' => 'query',
671 'type' => 'string',
672 ),
673 'ifMetagenerationMatch' => array(
674 'location' => 'query',
675 'type' => 'string',
676 ),
677 'ifGenerationMatch' => array(
678 'location' => 'query',
679 'type' => 'string',
680 ),
681 'ifMetagenerationNotMatch' => array(
682 'location' => 'query',
683 'type' => 'string',
684 ),
685 ),
686 ),'get' => array(
687 'path' => 'b/{bucket}/o/{object}',
688 'httpMethod' => 'GET',
689 'parameters' => array(
690 'bucket' => array(
691 'location' => 'path',
692 'type' => 'string',
693 'required' => true,
694 ),
695 'object' => array(
696 'location' => 'path',
697 'type' => 'string',
698 'required' => true,
699 ),
700 'ifGenerationNotMatch' => array(
701 'location' => 'query',
702 'type' => 'string',
703 ),
704 'generation' => array(
705 'location' => 'query',
706 'type' => 'string',
707 ),
708 'ifMetagenerationMatch' => array(
709 'location' => 'query',
710 'type' => 'string',
711 ),
712 'ifGenerationMatch' => array(
713 'location' => 'query',
714 'type' => 'string',
715 ),
716 'ifMetagenerationNotMatch' => array(
717 'location' => 'query',
718 'type' => 'string',
719 ),
720 'projection' => array(
721 'location' => 'query',
722 'type' => 'string',
723 ),
724 ),
725 ),'insert' => array(
726 'path' => 'b/{bucket}/o',
727 'httpMethod' => 'POST',
728 'parameters' => array(
729 'bucket' => array(
730 'location' => 'path',
731 'type' => 'string',
732 'required' => true,
733 ),
734 'predefinedAcl' => array(
735 'location' => 'query',
736 'type' => 'string',
737 ),
738 'projection' => array(
739 'location' => 'query',
740 'type' => 'string',
741 ),
742 'ifGenerationNotMatch' => array(
743 'location' => 'query',
744 'type' => 'string',
745 ),
746 'ifMetagenerationMatch' => array(
747 'location' => 'query',
748 'type' => 'string',
749 ),
750 'contentEncoding' => array(
751 'location' => 'query',
752 'type' => 'string',
753 ),
754 'ifGenerationMatch' => array(
755 'location' => 'query',
756 'type' => 'string',
757 ),
758 'ifMetagenerationNotMatch' => array(
759 'location' => 'query',
760 'type' => 'string',
761 ),
762 'name' => array(
763 'location' => 'query',
764 'type' => 'string',
765 ),
766 ),
767 ),'list' => array(
768 'path' => 'b/{bucket}/o',
769 'httpMethod' => 'GET',
770 'parameters' => array(
771 'bucket' => array(
772 'location' => 'path',
773 'type' => 'string',
774 'required' => true,
775 ),
776 'projection' => array(
777 'location' => 'query',
778 'type' => 'string',
779 ),
780 'versions' => array(
781 'location' => 'query',
782 'type' => 'boolean',
783 ),
784 'prefix' => array(
785 'location' => 'query',
786 'type' => 'string',
787 ),
788 'maxResults' => array(
789 'location' => 'query',
790 'type' => 'integer',
791 ),
792 'pageToken' => array(
793 'location' => 'query',
794 'type' => 'string',
795 ),
796 'delimiter' => array(
797 'location' => 'query',
798 'type' => 'string',
799 ),
800 ),
801 ),'patch' => array(
802 'path' => 'b/{bucket}/o/{object}',
803 'httpMethod' => 'PATCH',
804 'parameters' => array(
805 'bucket' => array(
806 'location' => 'path',
807 'type' => 'string',
808 'required' => true,
809 ),
810 'object' => array(
811 'location' => 'path',
812 'type' => 'string',
813 'required' => true,
814 ),
815 'predefinedAcl' => array(
816 'location' => 'query',
817 'type' => 'string',
818 ),
819 'ifGenerationNotMatch' => array(
820 'location' => 'query',
821 'type' => 'string',
822 ),
823 'generation' => array(
824 'location' => 'query',
825 'type' => 'string',
826 ),
827 'ifMetagenerationMatch' => array(
828 'location' => 'query',
829 'type' => 'string',
830 ),
831 'ifGenerationMatch' => array(
832 'location' => 'query',
833 'type' => 'string',
834 ),
835 'ifMetagenerationNotMatch' => array(
836 'location' => 'query',
837 'type' => 'string',
838 ),
839 'projection' => array(
840 'location' => 'query',
841 'type' => 'string',
842 ),
843 ),
844 ),'update' => array(
845 'path' => 'b/{bucket}/o/{object}',
846 'httpMethod' => 'PUT',
847 'parameters' => array(
848 'bucket' => array(
849 'location' => 'path',
850 'type' => 'string',
851 'required' => true,
852 ),
853 'object' => array(
854 'location' => 'path',
855 'type' => 'string',
856 'required' => true,
857 ),
858 'predefinedAcl' => array(
859 'location' => 'query',
860 'type' => 'string',
861 ),
862 'ifGenerationNotMatch' => array(
863 'location' => 'query',
864 'type' => 'string',
865 ),
866 'generation' => array(
867 'location' => 'query',
868 'type' => 'string',
869 ),
870 'ifMetagenerationMatch' => array(
871 'location' => 'query',
872 'type' => 'string',
873 ),
874 'ifGenerationMatch' => array(
875 'location' => 'query',
876 'type' => 'string',
877 ),
878 'ifMetagenerationNotMatch' => array(
879 'location' => 'query',
880 'type' => 'string',
881 ),
882 'projection' => array(
883 'location' => 'query',
884 'type' => 'string',
885 ),
886 ),
887 ),'watchAll' => array(
888 'path' => 'b/{bucket}/o/watch',
889 'httpMethod' => 'POST',
890 'parameters' => array(
891 'bucket' => array(
892 'location' => 'path',
893 'type' => 'string',
894 'required' => true,
895 ),
896 'projection' => array(
897 'location' => 'query',
898 'type' => 'string',
899 ),
900 'versions' => array(
901 'location' => 'query',
902 'type' => 'boolean',
903 ),
904 'prefix' => array(
905 'location' => 'query',
906 'type' => 'string',
907 ),
908 'maxResults' => array(
909 'location' => 'query',
910 'type' => 'integer',
911 ),
912 'pageToken' => array(
913 'location' => 'query',
914 'type' => 'string',
915 ),
916 'delimiter' => array(
917 'location' => 'query',
918 'type' => 'string',
919 ),
920 ),
921 ),
922 )
923 )
924 );
925 }
926 }
927
928
929 /**
930 * The "bucketAccessControls" collection of methods.
931 * Typical usage is:
932 * <code>
933 * $storageService = new Google_Service_Storage(...);
934 * $bucketAccessControls = $storageService->bucketAccessControls;
935 * </code>
936 */
937 class Google_Service_Storage_BucketAccessControls_Resource extends Google_Service_Resource
938 {
939
940 /**
941 * Permanently deletes the ACL entry for the specified entity on the specified
942 * bucket. (bucketAccessControls.delete)
943 *
944 * @param string $bucket
945 * Name of a bucket.
946 * @param string $entity
947 * The entity holding the permission. Can be user-userId, user-emailAddress, group-groupId, group-
948 * emailAddress, allUsers, or allAuthenticatedUsers.
949 * @param array $optParams Optional parameters.
950 */
951 public function delete($bucket, $entity, $optParams = array())
952 {
953 $params = array('bucket' => $bucket, 'entity' => $entity);
954 $params = array_merge($params, $optParams);
955 return $this->call('delete', array($params));
956 }
957 /**
958 * Returns the ACL entry for the specified entity on the specified bucket.
959 * (bucketAccessControls.get)
960 *
961 * @param string $bucket
962 * Name of a bucket.
963 * @param string $entity
964 * The entity holding the permission. Can be user-userId, user-emailAddress, group-groupId, group-
965 * emailAddress, allUsers, or allAuthenticatedUsers.
966 * @param array $optParams Optional parameters.
967 * @return Google_Service_Storage_BucketAccessControl
968 */
969 public function get($bucket, $entity, $optParams = array())
970 {
971 $params = array('bucket' => $bucket, 'entity' => $entity);
972 $params = array_merge($params, $optParams);
973 return $this->call('get', array($params), "Google_Service_Storage_BucketAccessControl");
974 }
975 /**
976 * Creates a new ACL entry on the specified bucket.
977 * (bucketAccessControls.insert)
978 *
979 * @param string $bucket
980 * Name of a bucket.
981 * @param Google_BucketAccessControl $postBody
982 * @param array $optParams Optional parameters.
983 * @return Google_Service_Storage_BucketAccessControl
984 */
985 public function insert($bucket, Google_Service_Storage_BucketAccessControl $postBody, $optParams = array())
986 {
987 $params = array('bucket' => $bucket, 'postBody' => $postBody);
988 $params = array_merge($params, $optParams);
989 return $this->call('insert', array($params), "Google_Service_Storage_BucketAccessControl");
990 }
991 /**
992 * Retrieves ACL entries on the specified bucket.
993 * (bucketAccessControls.listBucketAccessControls)
994 *
995 * @param string $bucket
996 * Name of a bucket.
997 * @param array $optParams Optional parameters.
998 * @return Google_Service_Storage_BucketAccessControls
999 */
1000 public function listBucketAccessControls($bucket, $optParams = array())
1001 {
1002 $params = array('bucket' => $bucket);
1003 $params = array_merge($params, $optParams);
1004 return $this->call('list', array($params), "Google_Service_Storage_BucketAccessControls");
1005 }
1006 /**
1007 * Updates an ACL entry on the specified bucket. This method supports patch
1008 * semantics. (bucketAccessControls.patch)
1009 *
1010 * @param string $bucket
1011 * Name of a bucket.
1012 * @param string $entity
1013 * The entity holding the permission. Can be user-userId, user-emailAddress, group-groupId, group-
1014 * emailAddress, allUsers, or allAuthenticatedUsers.
1015 * @param Google_BucketAccessControl $postBody
1016 * @param array $optParams Optional parameters.
1017 * @return Google_Service_Storage_BucketAccessControl
1018 */
1019 public function patch($bucket, $entity, Google_Service_Storage_BucketAccessControl $postBody, $optParams = array())
1020 {
1021 $params = array('bucket' => $bucket, 'entity' => $entity, 'postBody' => $postBody);
1022 $params = array_merge($params, $optParams);
1023 return $this->call('patch', array($params), "Google_Service_Storage_BucketAccessControl");
1024 }
1025 /**
1026 * Updates an ACL entry on the specified bucket. (bucketAccessControls.update)
1027 *
1028 * @param string $bucket
1029 * Name of a bucket.
1030 * @param string $entity
1031 * The entity holding the permission. Can be user-userId, user-emailAddress, group-groupId, group-
1032 * emailAddress, allUsers, or allAuthenticatedUsers.
1033 * @param Google_BucketAccessControl $postBody
1034 * @param array $optParams Optional parameters.
1035 * @return Google_Service_Storage_BucketAccessControl
1036 */
1037 public function update($bucket, $entity, Google_Service_Storage_BucketAccessControl $postBody, $optParams = array())
1038 {
1039 $params = array('bucket' => $bucket, 'entity' => $entity, 'postBody' => $postBody);
1040 $params = array_merge($params, $optParams);
1041 return $this->call('update', array($params), "Google_Service_Storage_BucketAccessControl");
1042 }
1043 }
1044
1045 /**
1046 * The "buckets" collection of methods.
1047 * Typical usage is:
1048 * <code>
1049 * $storageService = new Google_Service_Storage(...);
1050 * $buckets = $storageService->buckets;
1051 * </code>
1052 */
1053 class Google_Service_Storage_Buckets_Resource extends Google_Service_Resource
1054 {
1055
1056 /**
1057 * Permanently deletes an empty bucket. (buckets.delete)
1058 *
1059 * @param string $bucket
1060 * Name of a bucket.
1061 * @param array $optParams Optional parameters.
1062 *
1063 * @opt_param string ifMetagenerationMatch
1064 * If set, only deletes the bucket if its metageneration matches this value.
1065 * @opt_param string ifMetagenerationNotMatch
1066 * If set, only deletes the bucket if its metageneration does not match this value.
1067 */
1068 public function delete($bucket, $optParams = array())
1069 {
1070 $params = array('bucket' => $bucket);
1071 $params = array_merge($params, $optParams);
1072 return $this->call('delete', array($params));
1073 }
1074 /**
1075 * Returns metadata for the specified bucket. (buckets.get)
1076 *
1077 * @param string $bucket
1078 * Name of a bucket.
1079 * @param array $optParams Optional parameters.
1080 *
1081 * @opt_param string ifMetagenerationMatch
1082 * Makes the return of the bucket metadata conditional on whether the bucket's current
1083 * metageneration matches the given value.
1084 * @opt_param string ifMetagenerationNotMatch
1085 * Makes the return of the bucket metadata conditional on whether the bucket's current
1086 * metageneration does not match the given value.
1087 * @opt_param string projection
1088 * Set of properties to return. Defaults to noAcl.
1089 * @return Google_Service_Storage_Bucket
1090 */
1091 public function get($bucket, $optParams = array())
1092 {
1093 $params = array('bucket' => $bucket);
1094 $params = array_merge($params, $optParams);
1095 return $this->call('get', array($params), "Google_Service_Storage_Bucket");
1096 }
1097 /**
1098 * Creates a new bucket. (buckets.insert)
1099 *
1100 * @param string $project
1101 * A valid API project identifier.
1102 * @param Google_Bucket $postBody
1103 * @param array $optParams Optional parameters.
1104 *
1105 * @opt_param string predefinedAcl
1106 * Apply a predefined set of access controls to this bucket.
1107 * @opt_param string projection
1108 * Set of properties to return. Defaults to noAcl, unless the bucket resource specifies acl or
1109 * defaultObjectAcl properties, when it defaults to full.
1110 * @return Google_Service_Storage_Bucket
1111 */
1112 public function insert($project, Google_Service_Storage_Bucket $postBody, $optParams = array())
1113 {
1114 $params = array('project' => $project, 'postBody' => $postBody);
1115 $params = array_merge($params, $optParams);
1116 return $this->call('insert', array($params), "Google_Service_Storage_Bucket");
1117 }
1118 /**
1119 * Retrieves a list of buckets for a given project. (buckets.listBuckets)
1120 *
1121 * @param string $project
1122 * A valid API project identifier.
1123 * @param array $optParams Optional parameters.
1124 *
1125 * @opt_param string pageToken
1126 * A previously-returned page token representing part of the larger set of results to view.
1127 * @opt_param string projection
1128 * Set of properties to return. Defaults to noAcl.
1129 * @opt_param string maxResults
1130 * Maximum number of buckets to return.
1131 * @return Google_Service_Storage_Buckets
1132 */
1133 public function listBuckets($project, $optParams = array())
1134 {
1135 $params = array('project' => $project);
1136 $params = array_merge($params, $optParams);
1137 return $this->call('list', array($params), "Google_Service_Storage_Buckets");
1138 }
1139 /**
1140 * Updates a bucket. This method supports patch semantics. (buckets.patch)
1141 *
1142 * @param string $bucket
1143 * Name of a bucket.
1144 * @param Google_Bucket $postBody
1145 * @param array $optParams Optional parameters.
1146 *
1147 * @opt_param string ifMetagenerationMatch
1148 * Makes the return of the bucket metadata conditional on whether the bucket's current
1149 * metageneration matches the given value.
1150 * @opt_param string predefinedAcl
1151 * Apply a predefined set of access controls to this bucket.
1152 * @opt_param string ifMetagenerationNotMatch
1153 * Makes the return of the bucket metadata conditional on whether the bucket's current
1154 * metageneration does not match the given value.
1155 * @opt_param string projection
1156 * Set of properties to return. Defaults to full.
1157 * @return Google_Service_Storage_Bucket
1158 */
1159 public function patch($bucket, Google_Service_Storage_Bucket $postBody, $optParams = array())
1160 {
1161 $params = array('bucket' => $bucket, 'postBody' => $postBody);
1162 $params = array_merge($params, $optParams);
1163 return $this->call('patch', array($params), "Google_Service_Storage_Bucket");
1164 }
1165 /**
1166 * Updates a bucket. (buckets.update)
1167 *
1168 * @param string $bucket
1169 * Name of a bucket.
1170 * @param Google_Bucket $postBody
1171 * @param array $optParams Optional parameters.
1172 *
1173 * @opt_param string ifMetagenerationMatch
1174 * Makes the return of the bucket metadata conditional on whether the bucket's current
1175 * metageneration matches the given value.
1176 * @opt_param string predefinedAcl
1177 * Apply a predefined set of access controls to this bucket.
1178 * @opt_param string ifMetagenerationNotMatch
1179 * Makes the return of the bucket metadata conditional on whether the bucket's current
1180 * metageneration does not match the given value.
1181 * @opt_param string projection
1182 * Set of properties to return. Defaults to full.
1183 * @return Google_Service_Storage_Bucket
1184 */
1185 public function update($bucket, Google_Service_Storage_Bucket $postBody, $optParams = array())
1186 {
1187 $params = array('bucket' => $bucket, 'postBody' => $postBody);
1188 $params = array_merge($params, $optParams);
1189 return $this->call('update', array($params), "Google_Service_Storage_Bucket");
1190 }
1191 }
1192
1193 /**
1194 * The "channels" collection of methods.
1195 * Typical usage is:
1196 * <code>
1197 * $storageService = new Google_Service_Storage(...);
1198 * $channels = $storageService->channels;
1199 * </code>
1200 */
1201 class Google_Service_Storage_Channels_Resource extends Google_Service_Resource
1202 {
1203
1204 /**
1205 * Stop watching resources through this channel (channels.stop)
1206 *
1207 * @param Google_Channel $postBody
1208 * @param array $optParams Optional parameters.
1209 */
1210 public function stop(Google_Service_Storage_Channel $postBody, $optParams = array())
1211 {
1212 $params = array('postBody' => $postBody);
1213 $params = array_merge($params, $optParams);
1214 return $this->call('stop', array($params));
1215 }
1216 }
1217
1218 /**
1219 * The "defaultObjectAccessControls" collection of methods.
1220 * Typical usage is:
1221 * <code>
1222 * $storageService = new Google_Service_Storage(...);
1223 * $defaultObjectAccessControls = $storageService->defaultObjectAccessControls;
1224 * </code>
1225 */
1226 class Google_Service_Storage_DefaultObjectAccessControls_Resource extends Google_Service_Resource
1227 {
1228
1229 /**
1230 * Permanently deletes the default object ACL entry for the specified entity on
1231 * the specified bucket. (defaultObjectAccessControls.delete)
1232 *
1233 * @param string $bucket
1234 * Name of a bucket.
1235 * @param string $entity
1236 * The entity holding the permission. Can be user-userId, user-emailAddress, group-groupId, group-
1237 * emailAddress, allUsers, or allAuthenticatedUsers.
1238 * @param array $optParams Optional parameters.
1239 */
1240 public function delete($bucket, $entity, $optParams = array())
1241 {
1242 $params = array('bucket' => $bucket, 'entity' => $entity);
1243 $params = array_merge($params, $optParams);
1244 return $this->call('delete', array($params));
1245 }
1246 /**
1247 * Returns the default object ACL entry for the specified entity on the
1248 * specified bucket. (defaultObjectAccessControls.get)
1249 *
1250 * @param string $bucket
1251 * Name of a bucket.
1252 * @param string $entity
1253 * The entity holding the permission. Can be user-userId, user-emailAddress, group-groupId, group-
1254 * emailAddress, allUsers, or allAuthenticatedUsers.
1255 * @param array $optParams Optional parameters.
1256 * @return Google_Service_Storage_ObjectAccessControl
1257 */
1258 public function get($bucket, $entity, $optParams = array())
1259 {
1260 $params = array('bucket' => $bucket, 'entity' => $entity);
1261 $params = array_merge($params, $optParams);
1262 return $this->call('get', array($params), "Google_Service_Storage_ObjectAccessControl");
1263 }
1264 /**
1265 * Creates a new default object ACL entry on the specified bucket.
1266 * (defaultObjectAccessControls.insert)
1267 *
1268 * @param string $bucket
1269 * Name of a bucket.
1270 * @param Google_ObjectAccessControl $postBody
1271 * @param array $optParams Optional parameters.
1272 * @return Google_Service_Storage_ObjectAccessControl
1273 */
1274 public function insert($bucket, Google_Service_Storage_ObjectAccessControl $postBody, $optParams = array())
1275 {
1276 $params = array('bucket' => $bucket, 'postBody' => $postBody);
1277 $params = array_merge($params, $optParams);
1278 return $this->call('insert', array($params), "Google_Service_Storage_ObjectAccessControl");
1279 }
1280 /**
1281 * Retrieves default object ACL entries on the specified bucket.
1282 * (defaultObjectAccessControls.listDefaultObjectAccessControls)
1283 *
1284 * @param string $bucket
1285 * Name of a bucket.
1286 * @param array $optParams Optional parameters.
1287 *
1288 * @opt_param string ifMetagenerationMatch
1289 * If present, only return default ACL listing if the bucket's current metageneration matches this
1290 * value.
1291 * @opt_param string ifMetagenerationNotMatch
1292 * If present, only return default ACL listing if the bucket's current metageneration does not
1293 * match the given value.
1294 * @return Google_Service_Storage_ObjectAccessControls
1295 */
1296 public function listDefaultObjectAccessControls($bucket, $optParams = array())
1297 {
1298 $params = array('bucket' => $bucket);
1299 $params = array_merge($params, $optParams);
1300 return $this->call('list', array($params), "Google_Service_Storage_ObjectAccessControls");
1301 }
1302 /**
1303 * Updates a default object ACL entry on the specified bucket. This method
1304 * supports patch semantics. (defaultObjectAccessControls.patch)
1305 *
1306 * @param string $bucket
1307 * Name of a bucket.
1308 * @param string $entity
1309 * The entity holding the permission. Can be user-userId, user-emailAddress, group-groupId, group-
1310 * emailAddress, allUsers, or allAuthenticatedUsers.
1311 * @param Google_ObjectAccessControl $postBody
1312 * @param array $optParams Optional parameters.
1313 * @return Google_Service_Storage_ObjectAccessControl
1314 */
1315 public function patch($bucket, $entity, Google_Service_Storage_ObjectAccessControl $postBody, $optParams = array())
1316 {
1317 $params = array('bucket' => $bucket, 'entity' => $entity, 'postBody' => $postBody);
1318 $params = array_merge($params, $optParams);
1319 return $this->call('patch', array($params), "Google_Service_Storage_ObjectAccessControl");
1320 }
1321 /**
1322 * Updates a default object ACL entry on the specified bucket.
1323 * (defaultObjectAccessControls.update)
1324 *
1325 * @param string $bucket
1326 * Name of a bucket.
1327 * @param string $entity
1328 * The entity holding the permission. Can be user-userId, user-emailAddress, group-groupId, group-
1329 * emailAddress, allUsers, or allAuthenticatedUsers.
1330 * @param Google_ObjectAccessControl $postBody
1331 * @param array $optParams Optional parameters.
1332 * @return Google_Service_Storage_ObjectAccessControl
1333 */
1334 public function update($bucket, $entity, Google_Service_Storage_ObjectAccessControl $postBody, $optParams = array())
1335 {
1336 $params = array('bucket' => $bucket, 'entity' => $entity, 'postBody' => $postBody);
1337 $params = array_merge($params, $optParams);
1338 return $this->call('update', array($params), "Google_Service_Storage_ObjectAccessControl");
1339 }
1340 }
1341
1342 /**
1343 * The "objectAccessControls" collection of methods.
1344 * Typical usage is:
1345 * <code>
1346 * $storageService = new Google_Service_Storage(...);
1347 * $objectAccessControls = $storageService->objectAccessControls;
1348 * </code>
1349 */
1350 class Google_Service_Storage_ObjectAccessControls_Resource extends Google_Service_Resource
1351 {
1352
1353 /**
1354 * Permanently deletes the ACL entry for the specified entity on the specified
1355 * object. (objectAccessControls.delete)
1356 *
1357 * @param string $bucket
1358 * Name of a bucket.
1359 * @param string $object
1360 * Name of the object.
1361 * @param string $entity
1362 * The entity holding the permission. Can be user-userId, user-emailAddress, group-groupId, group-
1363 * emailAddress, allUsers, or allAuthenticatedUsers.
1364 * @param array $optParams Optional parameters.
1365 *
1366 * @opt_param string generation
1367 * If present, selects a specific revision of this object (as opposed to the latest version, the
1368 * default).
1369 */
1370 public function delete($bucket, $object, $entity, $optParams = array())
1371 {
1372 $params = array('bucket' => $bucket, 'object' => $object, 'entity' => $entity);
1373 $params = array_merge($params, $optParams);
1374 return $this->call('delete', array($params));
1375 }
1376 /**
1377 * Returns the ACL entry for the specified entity on the specified object.
1378 * (objectAccessControls.get)
1379 *
1380 * @param string $bucket
1381 * Name of a bucket.
1382 * @param string $object
1383 * Name of the object.
1384 * @param string $entity
1385 * The entity holding the permission. Can be user-userId, user-emailAddress, group-groupId, group-
1386 * emailAddress, allUsers, or allAuthenticatedUsers.
1387 * @param array $optParams Optional parameters.
1388 *
1389 * @opt_param string generation
1390 * If present, selects a specific revision of this object (as opposed to the latest version, the
1391 * default).
1392 * @return Google_Service_Storage_ObjectAccessControl
1393 */
1394 public function get($bucket, $object, $entity, $optParams = array())
1395 {
1396 $params = array('bucket' => $bucket, 'object' => $object, 'entity' => $entity);
1397 $params = array_merge($params, $optParams);
1398 return $this->call('get', array($params), "Google_Service_Storage_ObjectAccessControl");
1399 }
1400 /**
1401 * Creates a new ACL entry on the specified object.
1402 * (objectAccessControls.insert)
1403 *
1404 * @param string $bucket
1405 * Name of a bucket.
1406 * @param string $object
1407 * Name of the object.
1408 * @param Google_ObjectAccessControl $postBody
1409 * @param array $optParams Optional parameters.
1410 *
1411 * @opt_param string generation
1412 * If present, selects a specific revision of this object (as opposed to the latest version, the
1413 * default).
1414 * @return Google_Service_Storage_ObjectAccessControl
1415 */
1416 public function insert($bucket, $object, Google_Service_Storage_ObjectAccessControl $postBody, $optParams = array())
1417 {
1418 $params = array('bucket' => $bucket, 'object' => $object, 'postBody' => $postBody);
1419 $params = array_merge($params, $optParams);
1420 return $this->call('insert', array($params), "Google_Service_Storage_ObjectAccessControl");
1421 }
1422 /**
1423 * Retrieves ACL entries on the specified object.
1424 * (objectAccessControls.listObjectAccessControls)
1425 *
1426 * @param string $bucket
1427 * Name of a bucket.
1428 * @param string $object
1429 * Name of the object.
1430 * @param array $optParams Optional parameters.
1431 *
1432 * @opt_param string generation
1433 * If present, selects a specific revision of this object (as opposed to the latest version, the
1434 * default).
1435 * @return Google_Service_Storage_ObjectAccessControls
1436 */
1437 public function listObjectAccessControls($bucket, $object, $optParams = array())
1438 {
1439 $params = array('bucket' => $bucket, 'object' => $object);
1440 $params = array_merge($params, $optParams);
1441 return $this->call('list', array($params), "Google_Service_Storage_ObjectAccessControls");
1442 }
1443 /**
1444 * Updates an ACL entry on the specified object. This method supports patch
1445 * semantics. (objectAccessControls.patch)
1446 *
1447 * @param string $bucket
1448 * Name of a bucket.
1449 * @param string $object
1450 * Name of the object.
1451 * @param string $entity
1452 * The entity holding the permission. Can be user-userId, user-emailAddress, group-groupId, group-
1453 * emailAddress, allUsers, or allAuthenticatedUsers.
1454 * @param Google_ObjectAccessControl $postBody
1455 * @param array $optParams Optional parameters.
1456 *
1457 * @opt_param string generation
1458 * If present, selects a specific revision of this object (as opposed to the latest version, the
1459 * default).
1460 * @return Google_Service_Storage_ObjectAccessControl
1461 */
1462 public function patch($bucket, $object, $entity, Google_Service_Storage_ObjectAccessControl $postBody, $optParams = array())
1463 {
1464 $params = array('bucket' => $bucket, 'object' => $object, 'entity' => $entity, 'postBody' => $postBody);
1465 $params = array_merge($params, $optParams);
1466 return $this->call('patch', array($params), "Google_Service_Storage_ObjectAccessControl");
1467 }
1468 /**
1469 * Updates an ACL entry on the specified object. (objectAccessControls.update)
1470 *
1471 * @param string $bucket
1472 * Name of a bucket.
1473 * @param string $object
1474 * Name of the object.
1475 * @param string $entity
1476 * The entity holding the permission. Can be user-userId, user-emailAddress, group-groupId, group-
1477 * emailAddress, allUsers, or allAuthenticatedUsers.
1478 * @param Google_ObjectAccessControl $postBody
1479 * @param array $optParams Optional parameters.
1480 *
1481 * @opt_param string generation
1482 * If present, selects a specific revision of this object (as opposed to the latest version, the
1483 * default).
1484 * @return Google_Service_Storage_ObjectAccessControl
1485 */
1486 public function update($bucket, $object, $entity, Google_Service_Storage_ObjectAccessControl $postBody, $optParams = array())
1487 {
1488 $params = array('bucket' => $bucket, 'object' => $object, 'entity' => $entity, 'postBody' => $postBody);
1489 $params = array_merge($params, $optParams);
1490 return $this->call('update', array($params), "Google_Service_Storage_ObjectAccessControl");
1491 }
1492 }
1493
1494 /**
1495 * The "objects" collection of methods.
1496 * Typical usage is:
1497 * <code>
1498 * $storageService = new Google_Service_Storage(...);
1499 * $objects = $storageService->objects;
1500 * </code>
1501 */
1502 class Google_Service_Storage_Objects_Resource extends Google_Service_Resource
1503 {
1504
1505 /**
1506 * Concatenates a list of existing objects into a new object in the same bucket.
1507 * (objects.compose)
1508 *
1509 * @param string $destinationBucket
1510 * Name of the bucket in which to store the new object.
1511 * @param string $destinationObject
1512 * Name of the new object.
1513 * @param Google_ComposeRequest $postBody
1514 * @param array $optParams Optional parameters.
1515 *
1516 * @opt_param string ifGenerationMatch
1517 * Makes the operation conditional on whether the object's current generation matches the given
1518 * value.
1519 * @opt_param string ifMetagenerationMatch
1520 * Makes the operation conditional on whether the object's current metageneration matches the given
1521 * value.
1522 * @opt_param string destinationPredefinedAcl
1523 * Apply a predefined set of access controls to the destination object.
1524 * @return Google_Service_Storage_StorageObject
1525 */
1526 public function compose($destinationBucket, $destinationObject, Google_Service_Storage_ComposeRequest $postBody, $optParams = array())
1527 {
1528 $params = array('destinationBucket' => $destinationBucket, 'destinationObject' => $destinationObject, 'postBody' => $postBody);
1529 $params = array_merge($params, $optParams);
1530 return $this->call('compose', array($params), "Google_Service_Storage_StorageObject");
1531 }
1532 /**
1533 * Copies an object to a specified location. Optionally overrides metadata.
1534 * (objects.copy)
1535 *
1536 * @param string $sourceBucket
1537 * Name of the bucket in which to find the source object.
1538 * @param string $sourceObject
1539 * Name of the source object.
1540 * @param string $destinationBucket
1541 * Name of the bucket in which to store the new object. Overrides the provided object metadata's
1542 * bucket value, if any.
1543 * @param string $destinationObject
1544 * Name of the new object. Required when the object metadata is not otherwise provided. Overrides
1545 * the object metadata's name value, if any.
1546 * @param Google_StorageObject $postBody
1547 * @param array $optParams Optional parameters.
1548 *
1549 * @opt_param string ifSourceGenerationNotMatch
1550 * Makes the operation conditional on whether the source object's generation does not match the
1551 * given value.
1552 * @opt_param string ifGenerationNotMatch
1553 * Makes the operation conditional on whether the destination object's current generation does not
1554 * match the given value.
1555 * @opt_param string ifSourceMetagenerationNotMatch
1556 * Makes the operation conditional on whether the source object's current metageneration does not
1557 * match the given value.
1558 * @opt_param string ifMetagenerationMatch
1559 * Makes the operation conditional on whether the destination object's current metageneration
1560 * matches the given value.
1561 * @opt_param string sourceGeneration
1562 * If present, selects a specific revision of the source object (as opposed to the latest version,
1563 * the default).
1564 * @opt_param string destinationPredefinedAcl
1565 * Apply a predefined set of access controls to the destination object.
1566 * @opt_param string ifSourceGenerationMatch
1567 * Makes the operation conditional on whether the source object's generation matches the given
1568 * value.
1569 * @opt_param string ifSourceMetagenerationMatch
1570 * Makes the operation conditional on whether the source object's current metageneration matches
1571 * the given value.
1572 * @opt_param string ifGenerationMatch
1573 * Makes the operation conditional on whether the destination object's current generation matches
1574 * the given value.
1575 * @opt_param string ifMetagenerationNotMatch
1576 * Makes the operation conditional on whether the destination object's current metageneration does
1577 * not match the given value.
1578 * @opt_param string projection
1579 * Set of properties to return. Defaults to noAcl, unless the object resource specifies the acl
1580 * property, when it defaults to full.
1581 * @return Google_Service_Storage_StorageObject
1582 */
1583 public function copy($sourceBucket, $sourceObject, $destinationBucket, $destinationObject, Google_Service_Storage_StorageObject $postBody, $optParams = array())
1584 {
1585 $params = array('sourceBucket' => $sourceBucket, 'sourceObject' => $sourceObject, 'destinationBucket' => $destinationBucket, 'destinationObject' => $destinationObject, 'postBody' => $postBody);
1586 $params = array_merge($params, $optParams);
1587 return $this->call('copy', array($params), "Google_Service_Storage_StorageObject");
1588 }
1589 /**
1590 * Deletes an object and its metadata. Deletions are permanent if versioning is
1591 * not enabled for the bucket, or if the generation parameter is used.
1592 * (objects.delete)
1593 *
1594 * @param string $bucket
1595 * Name of the bucket in which the object resides.
1596 * @param string $object
1597 * Name of the object.
1598 * @param array $optParams Optional parameters.
1599 *
1600 * @opt_param string ifGenerationNotMatch
1601 * Makes the operation conditional on whether the object's current generation does not match the
1602 * given value.
1603 * @opt_param string generation
1604 * If present, permanently deletes a specific revision of this object (as opposed to the latest
1605 * version, the default).
1606 * @opt_param string ifMetagenerationMatch
1607 * Makes the operation conditional on whether the object's current metageneration matches the given
1608 * value.
1609 * @opt_param string ifGenerationMatch
1610 * Makes the operation conditional on whether the object's current generation matches the given
1611 * value.
1612 * @opt_param string ifMetagenerationNotMatch
1613 * Makes the operation conditional on whether the object's current metageneration does not match
1614 * the given value.
1615 */
1616 public function delete($bucket, $object, $optParams = array())
1617 {
1618 $params = array('bucket' => $bucket, 'object' => $object);
1619 $params = array_merge($params, $optParams);
1620 return $this->call('delete', array($params));
1621 }
1622 /**
1623 * Retrieves objects or their metadata. (objects.get)
1624 *
1625 * @param string $bucket
1626 * Name of the bucket in which the object resides.
1627 * @param string $object
1628 * Name of the object.
1629 * @param array $optParams Optional parameters.
1630 *
1631 * @opt_param string ifGenerationNotMatch
1632 * Makes the operation conditional on whether the object's generation does not match the given
1633 * value.
1634 * @opt_param string generation
1635 * If present, selects a specific revision of this object (as opposed to the latest version, the
1636 * default).
1637 * @opt_param string ifMetagenerationMatch
1638 * Makes the operation conditional on whether the object's current metageneration matches the given
1639 * value.
1640 * @opt_param string ifGenerationMatch
1641 * Makes the operation conditional on whether the object's generation matches the given value.
1642 * @opt_param string ifMetagenerationNotMatch
1643 * Makes the operation conditional on whether the object's current metageneration does not match
1644 * the given value.
1645 * @opt_param string projection
1646 * Set of properties to return. Defaults to noAcl.
1647 * @return Google_Service_Storage_StorageObject
1648 */
1649 public function get($bucket, $object, $optParams = array())
1650 {
1651 $params = array('bucket' => $bucket, 'object' => $object);
1652 $params = array_merge($params, $optParams);
1653 return $this->call('get', array($params), "Google_Service_Storage_StorageObject");
1654 }
1655 /**
1656 * Stores a new object and metadata. (objects.insert)
1657 *
1658 * @param string $bucket
1659 * Name of the bucket in which to store the new object. Overrides the provided object metadata's
1660 * bucket value, if any.
1661 * @param Google_StorageObject $postBody
1662 * @param array $optParams Optional parameters.
1663 *
1664 * @opt_param string predefinedAcl
1665 * Apply a predefined set of access controls to this object.
1666 * @opt_param string projection
1667 * Set of properties to return. Defaults to noAcl, unless the object resource specifies the acl
1668 * property, when it defaults to full.
1669 * @opt_param string ifGenerationNotMatch
1670 * Makes the operation conditional on whether the object's current generation does not match the
1671 * given value.
1672 * @opt_param string ifMetagenerationMatch
1673 * Makes the operation conditional on whether the object's current metageneration matches the given
1674 * value.
1675 * @opt_param string contentEncoding
1676 * If set, sets the contentEncoding property of the final object to this value. Setting this
1677 * parameter is equivalent to setting the contentEncoding metadata property. This can be useful
1678 * when uploading an object with uploadType=media to indicate the encoding of the content being
1679 * uploaded.
1680 * @opt_param string ifGenerationMatch
1681 * Makes the operation conditional on whether the object's current generation matches the given
1682 * value.
1683 * @opt_param string ifMetagenerationNotMatch
1684 * Makes the operation conditional on whether the object's current metageneration does not match
1685 * the given value.
1686 * @opt_param string name
1687 * Name of the object. Required when the object metadata is not otherwise provided. Overrides the
1688 * object metadata's name value, if any.
1689 * @return Google_Service_Storage_StorageObject
1690 */
1691 public function insert($bucket, Google_Service_Storage_StorageObject $postBody, $optParams = array())
1692 {
1693 $params = array('bucket' => $bucket, 'postBody' => $postBody);
1694 $params = array_merge($params, $optParams);
1695 return $this->call('insert', array($params), "Google_Service_Storage_StorageObject");
1696 }
1697 /**
1698 * Retrieves a list of objects matching the criteria. (objects.listObjects)
1699 *
1700 * @param string $bucket
1701 * Name of the bucket in which to look for objects.
1702 * @param array $optParams Optional parameters.
1703 *
1704 * @opt_param string projection
1705 * Set of properties to return. Defaults to noAcl.
1706 * @opt_param bool versions
1707 * If true, lists all versions of a file as distinct results.
1708 * @opt_param string prefix
1709 * Filter results to objects whose names begin with this prefix.
1710 * @opt_param string maxResults
1711 * Maximum number of items plus prefixes to return. As duplicate prefixes are omitted, fewer total
1712 * results may be returned than requested.
1713 * @opt_param string pageToken
1714 * A previously-returned page token representing part of the larger set of results to view.
1715 * @opt_param string delimiter
1716 * Returns results in a directory-like mode. items will contain only objects whose names, aside
1717 * from the prefix, do not contain delimiter. Objects whose names, aside from the prefix, contain
1718 * delimiter will have their name, truncated after the delimiter, returned in prefixes. Duplicate
1719 * prefixes are omitted.
1720 * @return Google_Service_Storage_Objects
1721 */
1722 public function listObjects($bucket, $optParams = array())
1723 {
1724 $params = array('bucket' => $bucket);
1725 $params = array_merge($params, $optParams);
1726 return $this->call('list', array($params), "Google_Service_Storage_Objects");
1727 }
1728 /**
1729 * Updates an object's metadata. This method supports patch semantics.
1730 * (objects.patch)
1731 *
1732 * @param string $bucket
1733 * Name of the bucket in which the object resides.
1734 * @param string $object
1735 * Name of the object.
1736 * @param Google_StorageObject $postBody
1737 * @param array $optParams Optional parameters.
1738 *
1739 * @opt_param string predefinedAcl
1740 * Apply a predefined set of access controls to this object.
1741 * @opt_param string ifGenerationNotMatch
1742 * Makes the operation conditional on whether the object's current generation does not match the
1743 * given value.
1744 * @opt_param string generation
1745 * If present, selects a specific revision of this object (as opposed to the latest version, the
1746 * default).
1747 * @opt_param string ifMetagenerationMatch
1748 * Makes the operation conditional on whether the object's current metageneration matches the given
1749 * value.
1750 * @opt_param string ifGenerationMatch
1751 * Makes the operation conditional on whether the object's current generation matches the given
1752 * value.
1753 * @opt_param string ifMetagenerationNotMatch
1754 * Makes the operation conditional on whether the object's current metageneration does not match
1755 * the given value.
1756 * @opt_param string projection
1757 * Set of properties to return. Defaults to full.
1758 * @return Google_Service_Storage_StorageObject
1759 */
1760 public function patch($bucket, $object, Google_Service_Storage_StorageObject $postBody, $optParams = array())
1761 {
1762 $params = array('bucket' => $bucket, 'object' => $object, 'postBody' => $postBody);
1763 $params = array_merge($params, $optParams);
1764 return $this->call('patch', array($params), "Google_Service_Storage_StorageObject");
1765 }
1766 /**
1767 * Updates an object's metadata. (objects.update)
1768 *
1769 * @param string $bucket
1770 * Name of the bucket in which the object resides.
1771 * @param string $object
1772 * Name of the object.
1773 * @param Google_StorageObject $postBody
1774 * @param array $optParams Optional parameters.
1775 *
1776 * @opt_param string predefinedAcl
1777 * Apply a predefined set of access controls to this object.
1778 * @opt_param string ifGenerationNotMatch
1779 * Makes the operation conditional on whether the object's current generation does not match the
1780 * given value.
1781 * @opt_param string generation
1782 * If present, selects a specific revision of this object (as opposed to the latest version, the
1783 * default).
1784 * @opt_param string ifMetagenerationMatch
1785 * Makes the operation conditional on whether the object's current metageneration matches the given
1786 * value.
1787 * @opt_param string ifGenerationMatch
1788 * Makes the operation conditional on whether the object's current generation matches the given
1789 * value.
1790 * @opt_param string ifMetagenerationNotMatch
1791 * Makes the operation conditional on whether the object's current metageneration does not match
1792 * the given value.
1793 * @opt_param string projection
1794 * Set of properties to return. Defaults to full.
1795 * @return Google_Service_Storage_StorageObject
1796 */
1797 public function update($bucket, $object, Google_Service_Storage_StorageObject $postBody, $optParams = array())
1798 {
1799 $params = array('bucket' => $bucket, 'object' => $object, 'postBody' => $postBody);
1800 $params = array_merge($params, $optParams);
1801 return $this->call('update', array($params), "Google_Service_Storage_StorageObject");
1802 }
1803 /**
1804 * Watch for changes on all objects in a bucket. (objects.watchAll)
1805 *
1806 * @param string $bucket
1807 * Name of the bucket in which to look for objects.
1808 * @param Google_Channel $postBody
1809 * @param array $optParams Optional parameters.
1810 *
1811 * @opt_param string projection
1812 * Set of properties to return. Defaults to noAcl.
1813 * @opt_param bool versions
1814 * If true, lists all versions of a file as distinct results.
1815 * @opt_param string prefix
1816 * Filter results to objects whose names begin with this prefix.
1817 * @opt_param string maxResults
1818 * Maximum number of items plus prefixes to return. As duplicate prefixes are omitted, fewer total
1819 * results may be returned than requested.
1820 * @opt_param string pageToken
1821 * A previously-returned page token representing part of the larger set of results to view.
1822 * @opt_param string delimiter
1823 * Returns results in a directory-like mode. items will contain only objects whose names, aside
1824 * from the prefix, do not contain delimiter. Objects whose names, aside from the prefix, contain
1825 * delimiter will have their name, truncated after the delimiter, returned in prefixes. Duplicate
1826 * prefixes are omitted.
1827 * @return Google_Service_Storage_Channel
1828 */
1829 public function watchAll($bucket, Google_Service_Storage_Channel $postBody, $optParams = array())
1830 {
1831 $params = array('bucket' => $bucket, 'postBody' => $postBody);
1832 $params = array_merge($params, $optParams);
1833 return $this->call('watchAll', array($params), "Google_Service_Storage_Channel");
1834 }
1835 }
1836
1837
1838
1839
1840 class Google_Service_Storage_Bucket extends Google_Collection
1841 {
1842 protected $aclType = 'Google_Service_Storage_BucketAccessControl';
1843 protected $aclDataType = 'array';
1844 protected $corsType = 'Google_Service_Storage_BucketCors';
1845 protected $corsDataType = 'array';
1846 protected $defaultObjectAclType = 'Google_Service_Storage_ObjectAccessControl';
1847 protected $defaultObjectAclDataType = 'array';
1848 public $etag;
1849 public $id;
1850 public $kind;
1851 protected $lifecycleType = 'Google_Service_Storage_BucketLifecycle';
1852 protected $lifecycleDataType = '';
1853 public $location;
1854 protected $loggingType = 'Google_Service_Storage_BucketLogging';
1855 protected $loggingDataType = '';
1856 public $metageneration;
1857 public $name;
1858 protected $ownerType = 'Google_Service_Storage_BucketOwner';
1859 protected $ownerDataType = '';
1860 public $projectNumber;
1861 public $selfLink;
1862 public $storageClass;
1863 public $timeCreated;
1864 protected $versioningType = 'Google_Service_Storage_BucketVersioning';
1865 protected $versioningDataType = '';
1866 protected $websiteType = 'Google_Service_Storage_BucketWebsite';
1867 protected $websiteDataType = '';
1868
1869 public function setAcl($acl)
1870 {
1871 $this->acl = $acl;
1872 }
1873
1874 public function getAcl()
1875 {
1876 return $this->acl;
1877 }
1878
1879 public function setCors($cors)
1880 {
1881 $this->cors = $cors;
1882 }
1883
1884 public function getCors()
1885 {
1886 return $this->cors;
1887 }
1888
1889 public function setDefaultObjectAcl($defaultObjectAcl)
1890 {
1891 $this->defaultObjectAcl = $defaultObjectAcl;
1892 }
1893
1894 public function getDefaultObjectAcl()
1895 {
1896 return $this->defaultObjectAcl;
1897 }
1898
1899 public function setEtag($etag)
1900 {
1901 $this->etag = $etag;
1902 }
1903
1904 public function getEtag()
1905 {
1906 return $this->etag;
1907 }
1908
1909 public function setId($id)
1910 {
1911 $this->id = $id;
1912 }
1913
1914 public function getId()
1915 {
1916 return $this->id;
1917 }
1918
1919 public function setKind($kind)
1920 {
1921 $this->kind = $kind;
1922 }
1923
1924 public function getKind()
1925 {
1926 return $this->kind;
1927 }
1928
1929 public function setLifecycle(Google_Service_Storage_BucketLifecycle $lifecycle)
1930 {
1931 $this->lifecycle = $lifecycle;
1932 }
1933
1934 public function getLifecycle()
1935 {
1936 return $this->lifecycle;
1937 }
1938
1939 public function setLocation($location)
1940 {
1941 $this->location = $location;
1942 }
1943
1944 public function getLocation()
1945 {
1946 return $this->location;
1947 }
1948
1949 public function setLogging(Google_Service_Storage_BucketLogging $logging)
1950 {
1951 $this->logging = $logging;
1952 }
1953
1954 public function getLogging()
1955 {
1956 return $this->logging;
1957 }
1958
1959 public function setMetageneration($metageneration)
1960 {
1961 $this->metageneration = $metageneration;
1962 }
1963
1964 public function getMetageneration()
1965 {
1966 return $this->metageneration;
1967 }
1968
1969 public function setName($name)
1970 {
1971 $this->name = $name;
1972 }
1973
1974 public function getName()
1975 {
1976 return $this->name;
1977 }
1978
1979 public function setOwner(Google_Service_Storage_BucketOwner $owner)
1980 {
1981 $this->owner = $owner;
1982 }
1983
1984 public function getOwner()
1985 {
1986 return $this->owner;
1987 }
1988
1989 public function setProjectNumber($projectNumber)
1990 {
1991 $this->projectNumber = $projectNumber;
1992 }
1993
1994 public function getProjectNumber()
1995 {
1996 return $this->projectNumber;
1997 }
1998
1999 public function setSelfLink($selfLink)
2000 {
2001 $this->selfLink = $selfLink;
2002 }
2003
2004 public function getSelfLink()
2005 {
2006 return $this->selfLink;
2007 }
2008
2009 public function setStorageClass($storageClass)
2010 {
2011 $this->storageClass = $storageClass;
2012 }
2013
2014 public function getStorageClass()
2015 {
2016 return $this->storageClass;
2017 }
2018
2019 public function setTimeCreated($timeCreated)
2020 {
2021 $this->timeCreated = $timeCreated;
2022 }
2023
2024 public function getTimeCreated()
2025 {
2026 return $this->timeCreated;
2027 }
2028
2029 public function setVersioning(Google_Service_Storage_BucketVersioning $versioning)
2030 {
2031 $this->versioning = $versioning;
2032 }
2033
2034 public function getVersioning()
2035 {
2036 return $this->versioning;
2037 }
2038
2039 public function setWebsite(Google_Service_Storage_BucketWebsite $website)
2040 {
2041 $this->website = $website;
2042 }
2043
2044 public function getWebsite()
2045 {
2046 return $this->website;
2047 }
2048 }
2049
2050 class Google_Service_Storage_BucketAccessControl extends Google_Model
2051 {
2052 public $bucket;
2053 public $domain;
2054 public $email;
2055 public $entity;
2056 public $entityId;
2057 public $etag;
2058 public $id;
2059 public $kind;
2060 protected $projectTeamType = 'Google_Service_Storage_BucketAccessControlProjectTeam';
2061 protected $projectTeamDataType = '';
2062 public $role;
2063 public $selfLink;
2064
2065 public function setBucket($bucket)
2066 {
2067 $this->bucket = $bucket;
2068 }
2069
2070 public function getBucket()
2071 {
2072 return $this->bucket;
2073 }
2074
2075 public function setDomain($domain)
2076 {
2077 $this->domain = $domain;
2078 }
2079
2080 public function getDomain()
2081 {
2082 return $this->domain;
2083 }
2084
2085 public function setEmail($email)
2086 {
2087 $this->email = $email;
2088 }
2089
2090 public function getEmail()
2091 {
2092 return $this->email;
2093 }
2094
2095 public function setEntity($entity)
2096 {
2097 $this->entity = $entity;
2098 }
2099
2100 public function getEntity()
2101 {
2102 return $this->entity;
2103 }
2104
2105 public function setEntityId($entityId)
2106 {
2107 $this->entityId = $entityId;
2108 }
2109
2110 public function getEntityId()
2111 {
2112 return $this->entityId;
2113 }
2114
2115 public function setEtag($etag)
2116 {
2117 $this->etag = $etag;
2118 }
2119
2120 public function getEtag()
2121 {
2122 return $this->etag;
2123 }
2124
2125 public function setId($id)
2126 {
2127 $this->id = $id;
2128 }
2129
2130 public function getId()
2131 {
2132 return $this->id;
2133 }
2134
2135 public function setKind($kind)
2136 {
2137 $this->kind = $kind;
2138 }
2139
2140 public function getKind()
2141 {
2142 return $this->kind;
2143 }
2144
2145 public function setProjectTeam(Google_Service_Storage_BucketAccessControlProjectTeam $projectTeam)
2146 {
2147 $this->projectTeam = $projectTeam;
2148 }
2149
2150 public function getProjectTeam()
2151 {
2152 return $this->projectTeam;
2153 }
2154
2155 public function setRole($role)
2156 {
2157 $this->role = $role;
2158 }
2159
2160 public function getRole()
2161 {
2162 return $this->role;
2163 }
2164
2165 public function setSelfLink($selfLink)
2166 {
2167 $this->selfLink = $selfLink;
2168 }
2169
2170 public function getSelfLink()
2171 {
2172 return $this->selfLink;
2173 }
2174 }
2175
2176 class Google_Service_Storage_BucketAccessControlProjectTeam extends Google_Model
2177 {
2178 public $projectNumber;
2179 public $team;
2180
2181 public function setProjectNumber($projectNumber)
2182 {
2183 $this->projectNumber = $projectNumber;
2184 }
2185
2186 public function getProjectNumber()
2187 {
2188 return $this->projectNumber;
2189 }
2190
2191 public function setTeam($team)
2192 {
2193 $this->team = $team;
2194 }
2195
2196 public function getTeam()
2197 {
2198 return $this->team;
2199 }
2200 }
2201
2202 class Google_Service_Storage_BucketAccessControls extends Google_Collection
2203 {
2204 protected $itemsType = 'Google_Service_Storage_BucketAccessControl';
2205 protected $itemsDataType = 'array';
2206 public $kind;
2207
2208 public function setItems($items)
2209 {
2210 $this->items = $items;
2211 }
2212
2213 public function getItems()
2214 {
2215 return $this->items;
2216 }
2217
2218 public function setKind($kind)
2219 {
2220 $this->kind = $kind;
2221 }
2222
2223 public function getKind()
2224 {
2225 return $this->kind;
2226 }
2227 }
2228
2229 class Google_Service_Storage_BucketCors extends Google_Collection
2230 {
2231 public $maxAgeSeconds;
2232 public $method;
2233 public $origin;
2234 public $responseHeader;
2235
2236 public function setMaxAgeSeconds($maxAgeSeconds)
2237 {
2238 $this->maxAgeSeconds = $maxAgeSeconds;
2239 }
2240
2241 public function getMaxAgeSeconds()
2242 {
2243 return $this->maxAgeSeconds;
2244 }
2245
2246 public function setMethod($method)
2247 {
2248 $this->method = $method;
2249 }
2250
2251 public function getMethod()
2252 {
2253 return $this->method;
2254 }
2255
2256 public function setOrigin($origin)
2257 {
2258 $this->origin = $origin;
2259 }
2260
2261 public function getOrigin()
2262 {
2263 return $this->origin;
2264 }
2265
2266 public function setResponseHeader($responseHeader)
2267 {
2268 $this->responseHeader = $responseHeader;
2269 }
2270
2271 public function getResponseHeader()
2272 {
2273 return $this->responseHeader;
2274 }
2275 }
2276
2277 class Google_Service_Storage_BucketLifecycle extends Google_Collection
2278 {
2279 protected $ruleType = 'Google_Service_Storage_BucketLifecycleRule';
2280 protected $ruleDataType = 'array';
2281
2282 public function setRule($rule)
2283 {
2284 $this->rule = $rule;
2285 }
2286
2287 public function getRule()
2288 {
2289 return $this->rule;
2290 }
2291 }
2292
2293 class Google_Service_Storage_BucketLifecycleRule extends Google_Model
2294 {
2295 protected $actionType = 'Google_Service_Storage_BucketLifecycleRuleAction';
2296 protected $actionDataType = '';
2297 protected $conditionType = 'Google_Service_Storage_BucketLifecycleRuleCondition';
2298 protected $conditionDataType = '';
2299
2300 public function setAction(Google_Service_Storage_BucketLifecycleRuleAction $action)
2301 {
2302 $this->action = $action;
2303 }
2304
2305 public function getAction()
2306 {
2307 return $this->action;
2308 }
2309
2310 public function setCondition(Google_Service_Storage_BucketLifecycleRuleCondition $condition)
2311 {
2312 $this->condition = $condition;
2313 }
2314
2315 public function getCondition()
2316 {
2317 return $this->condition;
2318 }
2319 }
2320
2321 class Google_Service_Storage_BucketLifecycleRuleAction extends Google_Model
2322 {
2323 public $type;
2324
2325 public function setType($type)
2326 {
2327 $this->type = $type;
2328 }
2329
2330 public function getType()
2331 {
2332 return $this->type;
2333 }
2334 }
2335
2336 class Google_Service_Storage_BucketLifecycleRuleCondition extends Google_Model
2337 {
2338 public $age;
2339 public $createdBefore;
2340 public $isLive;
2341 public $numNewerVersions;
2342
2343 public function setAge($age)
2344 {
2345 $this->age = $age;
2346 }
2347
2348 public function getAge()
2349 {
2350 return $this->age;
2351 }
2352
2353 public function setCreatedBefore($createdBefore)
2354 {
2355 $this->createdBefore = $createdBefore;
2356 }
2357
2358 public function getCreatedBefore()
2359 {
2360 return $this->createdBefore;
2361 }
2362
2363 public function setIsLive($isLive)
2364 {
2365 $this->isLive = $isLive;
2366 }
2367
2368 public function getIsLive()
2369 {
2370 return $this->isLive;
2371 }
2372
2373 public function setNumNewerVersions($numNewerVersions)
2374 {
2375 $this->numNewerVersions = $numNewerVersions;
2376 }
2377
2378 public function getNumNewerVersions()
2379 {
2380 return $this->numNewerVersions;
2381 }
2382 }
2383
2384 class Google_Service_Storage_BucketLogging extends Google_Model
2385 {
2386 public $logBucket;
2387 public $logObjectPrefix;
2388
2389 public function setLogBucket($logBucket)
2390 {
2391 $this->logBucket = $logBucket;
2392 }
2393
2394 public function getLogBucket()
2395 {
2396 return $this->logBucket;
2397 }
2398
2399 public function setLogObjectPrefix($logObjectPrefix)
2400 {
2401 $this->logObjectPrefix = $logObjectPrefix;
2402 }
2403
2404 public function getLogObjectPrefix()
2405 {
2406 return $this->logObjectPrefix;
2407 }
2408 }
2409
2410 class Google_Service_Storage_BucketOwner extends Google_Model
2411 {
2412 public $entity;
2413 public $entityId;
2414
2415 public function setEntity($entity)
2416 {
2417 $this->entity = $entity;
2418 }
2419
2420 public function getEntity()
2421 {
2422 return $this->entity;
2423 }
2424
2425 public function setEntityId($entityId)
2426 {
2427 $this->entityId = $entityId;
2428 }
2429
2430 public function getEntityId()
2431 {
2432 return $this->entityId;
2433 }
2434 }
2435
2436 class Google_Service_Storage_BucketVersioning extends Google_Model
2437 {
2438 public $enabled;
2439
2440 public function setEnabled($enabled)
2441 {
2442 $this->enabled = $enabled;
2443 }
2444
2445 public function getEnabled()
2446 {
2447 return $this->enabled;
2448 }
2449 }
2450
2451 class Google_Service_Storage_BucketWebsite extends Google_Model
2452 {
2453 public $mainPageSuffix;
2454 public $notFoundPage;
2455
2456 public function setMainPageSuffix($mainPageSuffix)
2457 {
2458 $this->mainPageSuffix = $mainPageSuffix;
2459 }
2460
2461 public function getMainPageSuffix()
2462 {
2463 return $this->mainPageSuffix;
2464 }
2465
2466 public function setNotFoundPage($notFoundPage)
2467 {
2468 $this->notFoundPage = $notFoundPage;
2469 }
2470
2471 public function getNotFoundPage()
2472 {
2473 return $this->notFoundPage;
2474 }
2475 }
2476
2477 class Google_Service_Storage_Buckets extends Google_Collection
2478 {
2479 protected $itemsType = 'Google_Service_Storage_Bucket';
2480 protected $itemsDataType = 'array';
2481 public $kind;
2482 public $nextPageToken;
2483
2484 public function setItems($items)
2485 {
2486 $this->items = $items;
2487 }
2488
2489 public function getItems()
2490 {
2491 return $this->items;
2492 }
2493
2494 public function setKind($kind)
2495 {
2496 $this->kind = $kind;
2497 }
2498
2499 public function getKind()
2500 {
2501 return $this->kind;
2502 }
2503
2504 public function setNextPageToken($nextPageToken)
2505 {
2506 $this->nextPageToken = $nextPageToken;
2507 }
2508
2509 public function getNextPageToken()
2510 {
2511 return $this->nextPageToken;
2512 }
2513 }
2514
2515 class Google_Service_Storage_Channel extends Google_Model
2516 {
2517 public $address;
2518 public $expiration;
2519 public $id;
2520 public $kind;
2521 public $params;
2522 public $payload;
2523 public $resourceId;
2524 public $resourceUri;
2525 public $token;
2526 public $type;
2527
2528 public function setAddress($address)
2529 {
2530 $this->address = $address;
2531 }
2532
2533 public function getAddress()
2534 {
2535 return $this->address;
2536 }
2537
2538 public function setExpiration($expiration)
2539 {
2540 $this->expiration = $expiration;
2541 }
2542
2543 public function getExpiration()
2544 {
2545 return $this->expiration;
2546 }
2547
2548 public function setId($id)
2549 {
2550 $this->id = $id;
2551 }
2552
2553 public function getId()
2554 {
2555 return $this->id;
2556 }
2557
2558 public function setKind($kind)
2559 {
2560 $this->kind = $kind;
2561 }
2562
2563 public function getKind()
2564 {
2565 return $this->kind;
2566 }
2567
2568 public function setParams($params)
2569 {
2570 $this->params = $params;
2571 }
2572
2573 public function getParams()
2574 {
2575 return $this->params;
2576 }
2577
2578 public function setPayload($payload)
2579 {
2580 $this->payload = $payload;
2581 }
2582
2583 public function getPayload()
2584 {
2585 return $this->payload;
2586 }
2587
2588 public function setResourceId($resourceId)
2589 {
2590 $this->resourceId = $resourceId;
2591 }
2592
2593 public function getResourceId()
2594 {
2595 return $this->resourceId;
2596 }
2597
2598 public function setResourceUri($resourceUri)
2599 {
2600 $this->resourceUri = $resourceUri;
2601 }
2602
2603 public function getResourceUri()
2604 {
2605 return $this->resourceUri;
2606 }
2607
2608 public function setToken($token)
2609 {
2610 $this->token = $token;
2611 }
2612
2613 public function getToken()
2614 {
2615 return $this->token;
2616 }
2617
2618 public function setType($type)
2619 {
2620 $this->type = $type;
2621 }
2622
2623 public function getType()
2624 {
2625 return $this->type;
2626 }
2627 }
2628
2629 class Google_Service_Storage_ComposeRequest extends Google_Collection
2630 {
2631 protected $destinationType = 'Google_Service_Storage_StorageObject';
2632 protected $destinationDataType = '';
2633 public $kind;
2634 protected $sourceObjectsType = 'Google_Service_Storage_ComposeRequestSourceObjects';
2635 protected $sourceObjectsDataType = 'array';
2636
2637 public function setDestination(Google_Service_Storage_StorageObject $destination)
2638 {
2639 $this->destination = $destination;
2640 }
2641
2642 public function getDestination()
2643 {
2644 return $this->destination;
2645 }
2646
2647 public function setKind($kind)
2648 {
2649 $this->kind = $kind;
2650 }
2651
2652 public function getKind()
2653 {
2654 return $this->kind;
2655 }
2656
2657 public function setSourceObjects($sourceObjects)
2658 {
2659 $this->sourceObjects = $sourceObjects;
2660 }
2661
2662 public function getSourceObjects()
2663 {
2664 return $this->sourceObjects;
2665 }
2666 }
2667
2668 class Google_Service_Storage_ComposeRequestSourceObjects extends Google_Model
2669 {
2670 public $generation;
2671 public $name;
2672 protected $objectPreconditionsType = 'Google_Service_Storage_ComposeRequestSourceObjectsObjectPreconditions';
2673 protected $objectPreconditionsDataType = '';
2674
2675 public function setGeneration($generation)
2676 {
2677 $this->generation = $generation;
2678 }
2679
2680 public function getGeneration()
2681 {
2682 return $this->generation;
2683 }
2684
2685 public function setName($name)
2686 {
2687 $this->name = $name;
2688 }
2689
2690 public function getName()
2691 {
2692 return $this->name;
2693 }
2694
2695 public function setObjectPreconditions(Google_Service_Storage_ComposeRequestSourceObjectsObjectPreconditions $objectPreconditions)
2696 {
2697 $this->objectPreconditions = $objectPreconditions;
2698 }
2699
2700 public function getObjectPreconditions()
2701 {
2702 return $this->objectPreconditions;
2703 }
2704 }
2705
2706 class Google_Service_Storage_ComposeRequestSourceObjectsObjectPreconditions extends Google_Model
2707 {
2708 public $ifGenerationMatch;
2709
2710 public function setIfGenerationMatch($ifGenerationMatch)
2711 {
2712 $this->ifGenerationMatch = $ifGenerationMatch;
2713 }
2714
2715 public function getIfGenerationMatch()
2716 {
2717 return $this->ifGenerationMatch;
2718 }
2719 }
2720
2721 class Google_Service_Storage_ObjectAccessControl extends Google_Model
2722 {
2723 public $bucket;
2724 public $domain;
2725 public $email;
2726 public $entity;
2727 public $entityId;
2728 public $etag;
2729 public $generation;
2730 public $id;
2731 public $kind;
2732 public $object;
2733 protected $projectTeamType = 'Google_Service_Storage_ObjectAccessControlProjectTeam';
2734 protected $projectTeamDataType = '';
2735 public $role;
2736 public $selfLink;
2737
2738 public function setBucket($bucket)
2739 {
2740 $this->bucket = $bucket;
2741 }
2742
2743 public function getBucket()
2744 {
2745 return $this->bucket;
2746 }
2747
2748 public function setDomain($domain)
2749 {
2750 $this->domain = $domain;
2751 }
2752
2753 public function getDomain()
2754 {
2755 return $this->domain;
2756 }
2757
2758 public function setEmail($email)
2759 {
2760 $this->email = $email;
2761 }
2762
2763 public function getEmail()
2764 {
2765 return $this->email;
2766 }
2767
2768 public function setEntity($entity)
2769 {
2770 $this->entity = $entity;
2771 }
2772
2773 public function getEntity()
2774 {
2775 return $this->entity;
2776 }
2777
2778 public function setEntityId($entityId)
2779 {
2780 $this->entityId = $entityId;
2781 }
2782
2783 public function getEntityId()
2784 {
2785 return $this->entityId;
2786 }
2787
2788 public function setEtag($etag)
2789 {
2790 $this->etag = $etag;
2791 }
2792
2793 public function getEtag()
2794 {
2795 return $this->etag;
2796 }
2797
2798 public function setGeneration($generation)
2799 {
2800 $this->generation = $generation;
2801 }
2802
2803 public function getGeneration()
2804 {
2805 return $this->generation;
2806 }
2807
2808 public function setId($id)
2809 {
2810 $this->id = $id;
2811 }
2812
2813 public function getId()
2814 {
2815 return $this->id;
2816 }
2817
2818 public function setKind($kind)
2819 {
2820 $this->kind = $kind;
2821 }
2822
2823 public function getKind()
2824 {
2825 return $this->kind;
2826 }
2827
2828 public function setObject($object)
2829 {
2830 $this->object = $object;
2831 }
2832
2833 public function getObject()
2834 {
2835 return $this->object;
2836 }
2837
2838 public function setProjectTeam(Google_Service_Storage_ObjectAccessControlProjectTeam $projectTeam)
2839 {
2840 $this->projectTeam = $projectTeam;
2841 }
2842
2843 public function getProjectTeam()
2844 {
2845 return $this->projectTeam;
2846 }
2847
2848 public function setRole($role)
2849 {
2850 $this->role = $role;
2851 }
2852
2853 public function getRole()
2854 {
2855 return $this->role;
2856 }
2857
2858 public function setSelfLink($selfLink)
2859 {
2860 $this->selfLink = $selfLink;
2861 }
2862
2863 public function getSelfLink()
2864 {
2865 return $this->selfLink;
2866 }
2867 }
2868
2869 class Google_Service_Storage_ObjectAccessControlProjectTeam extends Google_Model
2870 {
2871 public $projectNumber;
2872 public $team;
2873
2874 public function setProjectNumber($projectNumber)
2875 {
2876 $this->projectNumber = $projectNumber;
2877 }
2878
2879 public function getProjectNumber()
2880 {
2881 return $this->projectNumber;
2882 }
2883
2884 public function setTeam($team)
2885 {
2886 $this->team = $team;
2887 }
2888
2889 public function getTeam()
2890 {
2891 return $this->team;
2892 }
2893 }
2894
2895 class Google_Service_Storage_ObjectAccessControls extends Google_Collection
2896 {
2897 public $items;
2898 public $kind;
2899
2900 public function setItems($items)
2901 {
2902 $this->items = $items;
2903 }
2904
2905 public function getItems()
2906 {
2907 return $this->items;
2908 }
2909
2910 public function setKind($kind)
2911 {
2912 $this->kind = $kind;
2913 }
2914
2915 public function getKind()
2916 {
2917 return $this->kind;
2918 }
2919 }
2920
2921 class Google_Service_Storage_Objects extends Google_Collection
2922 {
2923 protected $itemsType = 'Google_Service_Storage_StorageObject';
2924 protected $itemsDataType = 'array';
2925 public $kind;
2926 public $nextPageToken;
2927 public $prefixes;
2928
2929 public function setItems($items)
2930 {
2931 $this->items = $items;
2932 }
2933
2934 public function getItems()
2935 {
2936 return $this->items;
2937 }
2938
2939 public function setKind($kind)
2940 {
2941 $this->kind = $kind;
2942 }
2943
2944 public function getKind()
2945 {
2946 return $this->kind;
2947 }
2948
2949 public function setNextPageToken($nextPageToken)
2950 {
2951 $this->nextPageToken = $nextPageToken;
2952 }
2953
2954 public function getNextPageToken()
2955 {
2956 return $this->nextPageToken;
2957 }
2958
2959 public function setPrefixes($prefixes)
2960 {
2961 $this->prefixes = $prefixes;
2962 }
2963
2964 public function getPrefixes()
2965 {
2966 return $this->prefixes;
2967 }
2968 }
2969
2970 class Google_Service_Storage_StorageObject extends Google_Collection
2971 {
2972 protected $aclType = 'Google_Service_Storage_ObjectAccessControl';
2973 protected $aclDataType = 'array';
2974 public $bucket;
2975 public $cacheControl;
2976 public $componentCount;
2977 public $contentDisposition;
2978 public $contentEncoding;
2979 public $contentLanguage;
2980 public $contentType;
2981 public $crc32c;
2982 public $etag;
2983 public $generation;
2984 public $id;
2985 public $kind;
2986 public $md5Hash;
2987 public $mediaLink;
2988 public $metadata;
2989 public $metageneration;
2990 public $name;
2991 protected $ownerType = 'Google_Service_Storage_StorageObjectOwner';
2992 protected $ownerDataType = '';
2993 public $selfLink;
2994 public $size;
2995 public $storageClass;
2996 public $timeDeleted;
2997 public $updated;
2998
2999 public function setAcl($acl)
3000 {
3001 $this->acl = $acl;
3002 }
3003
3004 public function getAcl()
3005 {
3006 return $this->acl;
3007 }
3008
3009 public function setBucket($bucket)
3010 {
3011 $this->bucket = $bucket;
3012 }
3013
3014 public function getBucket()
3015 {
3016 return $this->bucket;
3017 }
3018
3019 public function setCacheControl($cacheControl)
3020 {
3021 $this->cacheControl = $cacheControl;
3022 }
3023
3024 public function getCacheControl()
3025 {
3026 return $this->cacheControl;
3027 }
3028
3029 public function setComponentCount($componentCount)
3030 {
3031 $this->componentCount = $componentCount;
3032 }
3033
3034 public function getComponentCount()
3035 {
3036 return $this->componentCount;
3037 }
3038
3039 public function setContentDisposition($contentDisposition)
3040 {
3041 $this->contentDisposition = $contentDisposition;
3042 }
3043
3044 public function getContentDisposition()
3045 {
3046 return $this->contentDisposition;
3047 }
3048
3049 public function setContentEncoding($contentEncoding)
3050 {
3051 $this->contentEncoding = $contentEncoding;
3052 }
3053
3054 public function getContentEncoding()
3055 {
3056 return $this->contentEncoding;
3057 }
3058
3059 public function setContentLanguage($contentLanguage)
3060 {
3061 $this->contentLanguage = $contentLanguage;
3062 }
3063
3064 public function getContentLanguage()
3065 {
3066 return $this->contentLanguage;
3067 }
3068
3069 public function setContentType($contentType)
3070 {
3071 $this->contentType = $contentType;
3072 }
3073
3074 public function getContentType()
3075 {
3076 return $this->contentType;
3077 }
3078
3079 public function setCrc32c($crc32c)
3080 {
3081 $this->crc32c = $crc32c;
3082 }
3083
3084 public function getCrc32c()
3085 {
3086 return $this->crc32c;
3087 }
3088
3089 public function setEtag($etag)
3090 {
3091 $this->etag = $etag;
3092 }
3093
3094 public function getEtag()
3095 {
3096 return $this->etag;
3097 }
3098
3099 public function setGeneration($generation)
3100 {
3101 $this->generation = $generation;
3102 }
3103
3104 public function getGeneration()
3105 {
3106 return $this->generation;
3107 }
3108
3109 public function setId($id)
3110 {
3111 $this->id = $id;
3112 }
3113
3114 public function getId()
3115 {
3116 return $this->id;
3117 }
3118
3119 public function setKind($kind)
3120 {
3121 $this->kind = $kind;
3122 }
3123
3124 public function getKind()
3125 {
3126 return $this->kind;
3127 }
3128
3129 public function setMd5Hash($md5Hash)
3130 {
3131 $this->md5Hash = $md5Hash;
3132 }
3133
3134 public function getMd5Hash()
3135 {
3136 return $this->md5Hash;
3137 }
3138
3139 public function setMediaLink($mediaLink)
3140 {
3141 $this->mediaLink = $mediaLink;
3142 }
3143
3144 public function getMediaLink()
3145 {
3146 return $this->mediaLink;
3147 }
3148
3149 public function setMetadata($metadata)
3150 {
3151 $this->metadata = $metadata;
3152 }
3153
3154 public function getMetadata()
3155 {
3156 return $this->metadata;
3157 }
3158
3159 public function setMetageneration($metageneration)
3160 {
3161 $this->metageneration = $metageneration;
3162 }
3163
3164 public function getMetageneration()
3165 {
3166 return $this->metageneration;
3167 }
3168
3169 public function setName($name)
3170 {
3171 $this->name = $name;
3172 }
3173
3174 public function getName()
3175 {
3176 return $this->name;
3177 }
3178
3179 public function setOwner(Google_Service_Storage_StorageObjectOwner $owner)
3180 {
3181 $this->owner = $owner;
3182 }
3183
3184 public function getOwner()
3185 {
3186 return $this->owner;
3187 }
3188
3189 public function setSelfLink($selfLink)
3190 {
3191 $this->selfLink = $selfLink;
3192 }
3193
3194 public function getSelfLink()
3195 {
3196 return $this->selfLink;
3197 }
3198
3199 public function setSize($size)
3200 {
3201 $this->size = $size;
3202 }
3203
3204 public function getSize()
3205 {
3206 return $this->size;
3207 }
3208
3209 public function setStorageClass($storageClass)
3210 {
3211 $this->storageClass = $storageClass;
3212 }
3213
3214 public function getStorageClass()
3215 {
3216 return $this->storageClass;
3217 }
3218
3219 public function setTimeDeleted($timeDeleted)
3220 {
3221 $this->timeDeleted = $timeDeleted;
3222 }
3223
3224 public function getTimeDeleted()
3225 {
3226 return $this->timeDeleted;
3227 }
3228
3229 public function setUpdated($updated)
3230 {
3231 $this->updated = $updated;
3232 }
3233
3234 public function getUpdated()
3235 {
3236 return $this->updated;
3237 }
3238 }
3239
3240 class Google_Service_Storage_StorageObjectOwner extends Google_Model
3241 {
3242 public $entity;
3243 public $entityId;
3244
3245 public function setEntity($entity)
3246 {
3247 $this->entity = $entity;
3248 }
3249
3250 public function getEntity()
3251 {
3252 return $this->entity;
3253 }
3254
3255 public function setEntityId($entityId)
3256 {
3257 $this->entityId = $entityId;
3258 }
3259
3260 public function getEntityId()
3261 {
3262 return $this->entityId;
3263 }
3264 }
3265