PluginProbe
Authorizer / 2.6.10
Authorizer v2.6.10
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 / vendor / google-api-php-client / src / Google / Service / Storage.php

Storage.php in Authorizer 2.6.10, at vendor/google-api-php-client/src/Google/Service/Storage.php

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