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   /**
18    * The "bucketAccessControls" collection of methods.
19    * Typical usage is:
20    *  <code>
21    *   $storageService = new Google_StorageService(...);
22    *   $bucketAccessControls = $storageService->bucketAccessControls;
23    *  </code>
24    */
25   class Google_BucketAccessControlsServiceResource extends Google_ServiceResource {
26 
27     /**
28      * Permanently deletes the ACL entry for the specified entity on the specified bucket.
29      * (bucketAccessControls.delete)
30      *
31      * @param string $bucket Name of a bucket.
32      * @param string $entity The entity holding the permission. Can be user-userId, group-groupId, allUsers, or allAuthenticatedUsers.
33      * @param array $optParams Optional parameters.
34      */
35     public function delete($bucket, $entity, $optParams = array()) {
36       $params = array('bucket' => $bucket, 'entity' => $entity);
37       $params = array_merge($params, $optParams);
38       $data = $this->__call('delete', array($params));
39       return $data;
40     }
41     /**
42      * Returns the ACL entry for the specified entity on the specified bucket.
43      * (bucketAccessControls.get)
44      *
45      * @param string $bucket Name of a bucket.
46      * @param string $entity The entity holding the permission. Can be user-userId, group-groupId, allUsers, or allAuthenticatedUsers.
47      * @param array $optParams Optional parameters.
48      * @return Google_BucketAccessControl
49      */
50     public function get($bucket, $entity, $optParams = array()) {
51       $params = array('bucket' => $bucket, 'entity' => $entity);
52       $params = array_merge($params, $optParams);
53       $data = $this->__call('get', array($params));
54       if ($this->useObjects()) {
55         return new Google_BucketAccessControl($data);
56       } else {
57         return $data;
58       }
59     }
60     /**
61      * Creates a new ACL entry on the specified bucket. (bucketAccessControls.insert)
62      *
63      * @param string $bucket Name of a bucket.
64      * @param Google_BucketAccessControl $postBody
65      * @param array $optParams Optional parameters.
66      * @return Google_BucketAccessControl
67      */
68     public function insert($bucket, Google_BucketAccessControl $postBody, $optParams = array()) {
69       $params = array('bucket' => $bucket, 'postBody' => $postBody);
70       $params = array_merge($params, $optParams);
71       $data = $this->__call('insert', array($params));
72       if ($this->useObjects()) {
73         return new Google_BucketAccessControl($data);
74       } else {
75         return $data;
76       }
77     }
78     /**
79      * Retrieves ACL entries on the specified bucket. (bucketAccessControls.list)
80      *
81      * @param string $bucket Name of a bucket.
82      * @param array $optParams Optional parameters.
83      * @return Google_BucketAccessControls
84      */
85     public function listBucketAccessControls($bucket, $optParams = array()) {
86       $params = array('bucket' => $bucket);
87       $params = array_merge($params, $optParams);
88       $data = $this->__call('list', array($params));
89       if ($this->useObjects()) {
90         return new Google_BucketAccessControls($data);
91       } else {
92         return $data;
93       }
94     }
95     /**
96      * Updates an ACL entry on the specified bucket. This method supports patch semantics.
97      * (bucketAccessControls.patch)
98      *
99      * @param string $bucket Name of a bucket.
100      * @param string $entity The entity holding the permission. Can be user-userId, group-groupId, allUsers, or allAuthenticatedUsers.
101      * @param Google_BucketAccessControl $postBody
102      * @param array $optParams Optional parameters.
103      * @return Google_BucketAccessControl
104      */
105     public function patch($bucket, $entity, Google_BucketAccessControl $postBody, $optParams = array()) {
106       $params = array('bucket' => $bucket, 'entity' => $entity, 'postBody' => $postBody);
107       $params = array_merge($params, $optParams);
108       $data = $this->__call('patch', array($params));
109       if ($this->useObjects()) {
110         return new Google_BucketAccessControl($data);
111       } else {
112         return $data;
113       }
114     }
115     /**
116      * Updates an ACL entry on the specified bucket. (bucketAccessControls.update)
117      *
118      * @param string $bucket Name of a bucket.
119      * @param string $entity The entity holding the permission. Can be user-userId, group-groupId, allUsers, or allAuthenticatedUsers.
120      * @param Google_BucketAccessControl $postBody
121      * @param array $optParams Optional parameters.
122      * @return Google_BucketAccessControl
123      */
124     public function update($bucket, $entity, Google_BucketAccessControl $postBody, $optParams = array()) {
125       $params = array('bucket' => $bucket, 'entity' => $entity, 'postBody' => $postBody);
126       $params = array_merge($params, $optParams);
127       $data = $this->__call('update', array($params));
128       if ($this->useObjects()) {
129         return new Google_BucketAccessControl($data);
130       } else {
131         return $data;
132       }
133     }
134   }
135 
136   /**
137    * The "buckets" collection of methods.
138    * Typical usage is:
139    *  <code>
140    *   $storageService = new Google_StorageService(...);
141    *   $buckets = $storageService->buckets;
142    *  </code>
143    */
144   class Google_BucketsServiceResource extends Google_ServiceResource {
145 
146     /**
147      * Permanently deletes an empty bucket. (buckets.delete)
148      *
149      * @param string $bucket Name of a bucket.
150      * @param array $optParams Optional parameters.
151      *
152      * @opt_param string ifMetagenerationMatch Makes the return of the bucket metadata conditional on whether the bucket's current metageneration matches the given value.
153      * @opt_param string ifMetagenerationNotMatch Makes the return of the bucket metadata conditional on whether the bucket's current metageneration does not match the given value.
154      */
155     public function delete($bucket, $optParams = array()) {
156       $params = array('bucket' => $bucket);
157       $params = array_merge($params, $optParams);
158       $data = $this->__call('delete', array($params));
159       return $data;
160     }
161     /**
162      * Returns metadata for the specified bucket. (buckets.get)
163      *
164      * @param string $bucket Name of a bucket.
165      * @param array $optParams Optional parameters.
166      *
167      * @opt_param string ifMetagenerationMatch Makes the return of the bucket metadata conditional on whether the bucket's current metageneration matches the given value.
168      * @opt_param string ifMetagenerationNotMatch Makes the return of the bucket metadata conditional on whether the bucket's current metageneration does not match the given value.
169      * @opt_param string projection Set of properties to return. Defaults to noAcl.
170      * @return Google_Bucket
171      */
172     public function get($bucket, $optParams = array()) {
173       $params = array('bucket' => $bucket);
174       $params = array_merge($params, $optParams);
175       $data = $this->__call('get', array($params));
176       if ($this->useObjects()) {
177         return new Google_Bucket($data);
178       } else {
179         return $data;
180       }
181     }
182     /**
183      * Creates a new bucket. (buckets.insert)
184      *
185      * @param string $project A valid API project identifier.
186      * @param Google_Bucket $postBody
187      * @param array $optParams Optional parameters.
188      *
189      * @opt_param string projection Set of properties to return. Defaults to noAcl, unless the bucket resource specifies acl or defaultObjectAcl properties, when it defaults to full.
190      * @return Google_Bucket
191      */
192     public function insert($project, Google_Bucket $postBody, $optParams = array()) {
193       $params = array('project' => $project, 'postBody' => $postBody);
194       $params = array_merge($params, $optParams);
195       $data = $this->__call('insert', array($params));
196       if ($this->useObjects()) {
197         return new Google_Bucket($data);
198       } else {
199         return $data;
200       }
201     }
202     /**
203      * Retrieves a list of buckets for a given project. (buckets.list)
204      *
205      * @param string $project A valid API project identifier.
206      * @param array $optParams Optional parameters.
207      *
208      * @opt_param string maxResults Maximum number of buckets to return.
209      * @opt_param string pageToken A previously-returned page token representing part of the larger set of results to view.
210      * @opt_param string projection Set of properties to return. Defaults to noAcl.
211      * @return Google_Buckets
212      */
213     public function listBuckets($project, $optParams = array()) {
214       $params = array('project' => $project);
215       $params = array_merge($params, $optParams);
216       $data = $this->__call('list', array($params));
217       if ($this->useObjects()) {
218         return new Google_Buckets($data);
219       } else {
220         return $data;
221       }
222     }
223     /**
224      * Updates a bucket. This method supports patch semantics. (buckets.patch)
225      *
226      * @param string $bucket Name of a bucket.
227      * @param Google_Bucket $postBody
228      * @param array $optParams Optional parameters.
229      *
230      * @opt_param string ifMetagenerationMatch Makes the return of the bucket metadata conditional on whether the bucket's current metageneration matches the given value.
231      * @opt_param string ifMetagenerationNotMatch Makes the return of the bucket metadata conditional on whether the bucket's current metageneration does not match the given value.
232      * @opt_param string projection Set of properties to return. Defaults to full.
233      * @return Google_Bucket
234      */
235     public function patch($bucket, Google_Bucket $postBody, $optParams = array()) {
236       $params = array('bucket' => $bucket, 'postBody' => $postBody);
237       $params = array_merge($params, $optParams);
238       $data = $this->__call('patch', array($params));
239       if ($this->useObjects()) {
240         return new Google_Bucket($data);
241       } else {
242         return $data;
243       }
244     }
245     /**
246      * Updates a bucket. (buckets.update)
247      *
248      * @param string $bucket Name of a bucket.
249      * @param Google_Bucket $postBody
250      * @param array $optParams Optional parameters.
251      *
252      * @opt_param string ifMetagenerationMatch Makes the return of the bucket metadata conditional on whether the bucket's current metageneration matches the given value.
253      * @opt_param string ifMetagenerationNotMatch Makes the return of the bucket metadata conditional on whether the bucket's current metageneration does not match the given value.
254      * @opt_param string projection Set of properties to return. Defaults to full.
255      * @return Google_Bucket
256      */
257     public function update($bucket, Google_Bucket $postBody, $optParams = array()) {
258       $params = array('bucket' => $bucket, 'postBody' => $postBody);
259       $params = array_merge($params, $optParams);
260       $data = $this->__call('update', array($params));
261       if ($this->useObjects()) {
262         return new Google_Bucket($data);
263       } else {
264         return $data;
265       }
266     }
267   }
268 
269   /**
270    * The "channels" collection of methods.
271    * Typical usage is:
272    *  <code>
273    *   $storageService = new Google_StorageService(...);
274    *   $channels = $storageService->channels;
275    *  </code>
276    */
277   class Google_ChannelsServiceResource extends Google_ServiceResource {
278 
279     /**
280      * (channels.stop)
281      *
282      * @param Google_Channel $postBody
283      * @param array $optParams Optional parameters.
284      */
285     public function stop(Google_Channel $postBody, $optParams = array()) {
286       $params = array('postBody' => $postBody);
287       $params = array_merge($params, $optParams);
288       $data = $this->__call('stop', array($params));
289       return $data;
290     }
291   }
292 
293   /**
294    * The "defaultObjectAccessControls" collection of methods.
295    * Typical usage is:
296    *  <code>
297    *   $storageService = new Google_StorageService(...);
298    *   $defaultObjectAccessControls = $storageService->defaultObjectAccessControls;
299    *  </code>
300    */
301   class Google_DefaultObjectAccessControlsServiceResource extends Google_ServiceResource {
302 
303     /**
304      * Permanently deletes the default object ACL entry for the specified entity on the specified
305      * bucket. (defaultObjectAccessControls.delete)
306      *
307      * @param string $bucket Name of a bucket.
308      * @param string $entity The entity holding the permission. Can be user-userId, group-groupId, allUsers, or allAuthenticatedUsers.
309      * @param array $optParams Optional parameters.
310      */
311     public function delete($bucket, $entity, $optParams = array()) {
312       $params = array('bucket' => $bucket, 'entity' => $entity);
313       $params = array_merge($params, $optParams);
314       $data = $this->__call('delete', array($params));
315       return $data;
316     }
317     /**
318      * Returns the default object ACL entry for the specified entity on the specified bucket.
319      * (defaultObjectAccessControls.get)
320      *
321      * @param string $bucket Name of a bucket.
322      * @param string $entity The entity holding the permission. Can be user-userId, group-groupId, allUsers, or allAuthenticatedUsers.
323      * @param array $optParams Optional parameters.
324      * @return Google_ObjectAccessControl
325      */
326     public function get($bucket, $entity, $optParams = array()) {
327       $params = array('bucket' => $bucket, 'entity' => $entity);
328       $params = array_merge($params, $optParams);
329       $data = $this->__call('get', array($params));
330       if ($this->useObjects()) {
331         return new Google_ObjectAccessControl($data);
332       } else {
333         return $data;
334       }
335     }
336     /**
337      * Creates a new default object ACL entry on the specified bucket.
338      * (defaultObjectAccessControls.insert)
339      *
340      * @param string $bucket Name of a bucket.
341      * @param Google_ObjectAccessControl $postBody
342      * @param array $optParams Optional parameters.
343      * @return Google_ObjectAccessControl
344      */
345     public function insert($bucket, Google_ObjectAccessControl $postBody, $optParams = array()) {
346       $params = array('bucket' => $bucket, 'postBody' => $postBody);
347       $params = array_merge($params, $optParams);
348       $data = $this->__call('insert', array($params));
349       if ($this->useObjects()) {
350         return new Google_ObjectAccessControl($data);
351       } else {
352         return $data;
353       }
354     }
355     /**
356      * Retrieves default object ACL entries on the specified bucket. (defaultObjectAccessControls.list)
357      *
358      * @param string $bucket Name of a bucket.
359      * @param array $optParams Optional parameters.
360      * @return Google_ObjectAccessControls
361      */
362     public function listDefaultObjectAccessControls($bucket, $optParams = array()) {
363       $params = array('bucket' => $bucket);
364       $params = array_merge($params, $optParams);
365       $data = $this->__call('list', array($params));
366       if ($this->useObjects()) {
367         return new Google_ObjectAccessControls($data);
368       } else {
369         return $data;
370       }
371     }
372     /**
373      * Updates a default object ACL entry on the specified bucket. This method supports patch semantics.
374      * (defaultObjectAccessControls.patch)
375      *
376      * @param string $bucket Name of a bucket.
377      * @param string $entity The entity holding the permission. Can be user-userId, group-groupId, allUsers, or allAuthenticatedUsers.
378      * @param Google_ObjectAccessControl $postBody
379      * @param array $optParams Optional parameters.
380      * @return Google_ObjectAccessControl
381      */
382     public function patch($bucket, $entity, Google_ObjectAccessControl $postBody, $optParams = array()) {
383       $params = array('bucket' => $bucket, 'entity' => $entity, 'postBody' => $postBody);
384       $params = array_merge($params, $optParams);
385       $data = $this->__call('patch', array($params));
386       if ($this->useObjects()) {
387         return new Google_ObjectAccessControl($data);
388       } else {
389         return $data;
390       }
391     }
392     /**
393      * Updates a default object ACL entry on the specified bucket. (defaultObjectAccessControls.update)
394      *
395      * @param string $bucket Name of a bucket.
396      * @param string $entity The entity holding the permission. Can be user-userId, group-groupId, allUsers, or allAuthenticatedUsers.
397      * @param Google_ObjectAccessControl $postBody
398      * @param array $optParams Optional parameters.
399      * @return Google_ObjectAccessControl
400      */
401     public function update($bucket, $entity, Google_ObjectAccessControl $postBody, $optParams = array()) {
402       $params = array('bucket' => $bucket, 'entity' => $entity, 'postBody' => $postBody);
403       $params = array_merge($params, $optParams);
404       $data = $this->__call('update', array($params));
405       if ($this->useObjects()) {
406         return new Google_ObjectAccessControl($data);
407       } else {
408         return $data;
409       }
410     }
411   }
412 
413   /**
414    * The "objectAccessControls" collection of methods.
415    * Typical usage is:
416    *  <code>
417    *   $storageService = new Google_StorageService(...);
418    *   $objectAccessControls = $storageService->objectAccessControls;
419    *  </code>
420    */
421   class Google_ObjectAccessControlsServiceResource extends Google_ServiceResource {
422 
423     /**
424      * Permanently deletes the ACL entry for the specified entity on the specified object.
425      * (objectAccessControls.delete)
426      *
427      * @param string $bucket Name of a bucket.
428      * @param string $object Name of the object.
429      * @param string $entity The entity holding the permission. Can be user-userId, group-groupId, allUsers, or allAuthenticatedUsers.
430      * @param array $optParams Optional parameters.
431      *
432      * @opt_param string generation If present, selects a specific revision of this object (as opposed to the latest version, the default).
433      */
434     public function delete($bucket, $object, $entity, $optParams = array()) {
435       $params = array('bucket' => $bucket, 'object' => $object, 'entity' => $entity);
436       $params = array_merge($params, $optParams);
437       $data = $this->__call('delete', array($params));
438       return $data;
439     }
440     /**
441      * Returns the ACL entry for the specified entity on the specified object.
442      * (objectAccessControls.get)
443      *
444      * @param string $bucket Name of a bucket.
445      * @param string $object Name of the object.
446      * @param string $entity The entity holding the permission. Can be user-userId, group-groupId, allUsers, or allAuthenticatedUsers.
447      * @param array $optParams Optional parameters.
448      *
449      * @opt_param string generation If present, selects a specific revision of this object (as opposed to the latest version, the default).
450      * @return Google_ObjectAccessControl
451      */
452     public function get($bucket, $object, $entity, $optParams = array()) {
453       $params = array('bucket' => $bucket, 'object' => $object, 'entity' => $entity);
454       $params = array_merge($params, $optParams);
455       $data = $this->__call('get', array($params));
456       if ($this->useObjects()) {
457         return new Google_ObjectAccessControl($data);
458       } else {
459         return $data;
460       }
461     }
462     /**
463      * Creates a new ACL entry on the specified object. (objectAccessControls.insert)
464      *
465      * @param string $bucket Name of a bucket.
466      * @param string $object Name of the object.
467      * @param Google_ObjectAccessControl $postBody
468      * @param array $optParams Optional parameters.
469      *
470      * @opt_param string generation If present, selects a specific revision of this object (as opposed to the latest version, the default).
471      * @return Google_ObjectAccessControl
472      */
473     public function insert($bucket, $object, Google_ObjectAccessControl $postBody, $optParams = array()) {
474       $params = array('bucket' => $bucket, 'object' => $object, 'postBody' => $postBody);
475       $params = array_merge($params, $optParams);
476       $data = $this->__call('insert', array($params));
477       if ($this->useObjects()) {
478         return new Google_ObjectAccessControl($data);
479       } else {
480         return $data;
481       }
482     }
483     /**
484      * Retrieves ACL entries on the specified object. (objectAccessControls.list)
485      *
486      * @param string $bucket Name of a bucket.
487      * @param string $object Name of the object.
488      * @param array $optParams Optional parameters.
489      *
490      * @opt_param string generation If present, selects a specific revision of this object (as opposed to the latest version, the default).
491      * @return Google_ObjectAccessControls
492      */
493     public function listObjectAccessControls($bucket, $object, $optParams = array()) {
494       $params = array('bucket' => $bucket, 'object' => $object);
495       $params = array_merge($params, $optParams);
496       $data = $this->__call('list', array($params));
497       if ($this->useObjects()) {
498         return new Google_ObjectAccessControls($data);
499       } else {
500         return $data;
501       }
502     }
503     /**
504      * Updates an ACL entry on the specified object. This method supports patch semantics.
505      * (objectAccessControls.patch)
506      *
507      * @param string $bucket Name of a bucket.
508      * @param string $object Name of the object.
509      * @param string $entity The entity holding the permission. Can be user-userId, group-groupId, allUsers, or allAuthenticatedUsers.
510      * @param Google_ObjectAccessControl $postBody
511      * @param array $optParams Optional parameters.
512      *
513      * @opt_param string generation If present, selects a specific revision of this object (as opposed to the latest version, the default).
514      * @return Google_ObjectAccessControl
515      */
516     public function patch($bucket, $object, $entity, Google_ObjectAccessControl $postBody, $optParams = array()) {
517       $params = array('bucket' => $bucket, 'object' => $object, 'entity' => $entity, 'postBody' => $postBody);
518       $params = array_merge($params, $optParams);
519       $data = $this->__call('patch', array($params));
520       if ($this->useObjects()) {
521         return new Google_ObjectAccessControl($data);
522       } else {
523         return $data;
524       }
525     }
526     /**
527      * Updates an ACL entry on the specified object. (objectAccessControls.update)
528      *
529      * @param string $bucket Name of a bucket.
530      * @param string $object Name of the object.
531      * @param string $entity The entity holding the permission. Can be user-userId, group-groupId, allUsers, or allAuthenticatedUsers.
532      * @param Google_ObjectAccessControl $postBody
533      * @param array $optParams Optional parameters.
534      *
535      * @opt_param string generation If present, selects a specific revision of this object (as opposed to the latest version, the default).
536      * @return Google_ObjectAccessControl
537      */
538     public function update($bucket, $object, $entity, Google_ObjectAccessControl $postBody, $optParams = array()) {
539       $params = array('bucket' => $bucket, 'object' => $object, 'entity' => $entity, 'postBody' => $postBody);
540       $params = array_merge($params, $optParams);
541       $data = $this->__call('update', array($params));
542       if ($this->useObjects()) {
543         return new Google_ObjectAccessControl($data);
544       } else {
545         return $data;
546       }
547     }
548   }
549 
550   /**
551    * The "objects" collection of methods.
552    * Typical usage is:
553    *  <code>
554    *   $storageService = new Google_StorageService(...);
555    *   $objects = $storageService->objects;
556    *  </code>
557    */
558   class Google_ObjectsServiceResource extends Google_ServiceResource {
559 
560     /**
561      * Concatenates a list of existing objects into a new object in the same bucket. (objects.compose)
562      *
563      * @param string $destinationBucket Name of the bucket in which to store the new object.
564      * @param string $destinationObject Name of the new object.
565      * @param Google_ComposeRequest $postBody
566      * @param array $optParams Optional parameters.
567      *
568      * @opt_param string ifGenerationMatch Makes the operation conditional on whether the object's current generation matches the given value.
569      * @opt_param string ifMetagenerationMatch Makes the operation conditional on whether the object's current metageneration matches the given value.
570      * @return Google_StorageObject
571      */
572     public function compose($destinationBucket, $destinationObject, Google_ComposeRequest $postBody, $optParams = array()) {
573       $params = array('destinationBucket' => $destinationBucket, 'destinationObject' => $destinationObject, 'postBody' => $postBody);
574       $params = array_merge($params, $optParams);
575       $data = $this->__call('compose', array($params));
576       if ($this->useObjects()) {
577         return new Google_StorageObject($data);
578       } else {
579         return $data;
580       }
581     }
582     /**
583      * Copies an object to a destination in the same location. Optionally overrides metadata.
584      * (objects.copy)
585      *
586      * @param string $sourceBucket Name of the bucket in which to find the source object.
587      * @param string $sourceObject Name of the source object.
588      * @param string $destinationBucket Name of the bucket in which to store the new object. Overrides the provided object metadata's bucket value, if any.
589      * @param string $destinationObject Name of the new object. Required when the object metadata is not otherwise provided. Overrides the object metadata's name value, if any.
590      * @param Google_StorageObject $postBody
591      * @param array $optParams Optional parameters.
592      *
593      * @opt_param string ifGenerationMatch Makes the operation conditional on whether the destination object's current generation matches the given value.
594      * @opt_param string ifGenerationNotMatch Makes the operation conditional on whether the destination object's current generation does not match the given value.
595      * @opt_param string ifMetagenerationMatch Makes the operation conditional on whether the destination object's current metageneration matches the given value.
596      * @opt_param string ifMetagenerationNotMatch Makes the operation conditional on whether the destination object's current metageneration does not match the given value.
597      * @opt_param string ifSourceGenerationMatch Makes the operation conditional on whether the source object's generation matches the given value.
598      * @opt_param string ifSourceGenerationNotMatch Makes the operation conditional on whether the source object's generation does not match the given value.
599      * @opt_param string ifSourceMetagenerationMatch Makes the operation conditional on whether the source object's current metageneration matches the given value.
600      * @opt_param string ifSourceMetagenerationNotMatch Makes the operation conditional on whether the source object's current metageneration does not match the given value.
601      * @opt_param string projection Set of properties to return. Defaults to noAcl, unless the object resource specifies the acl property, when it defaults to full.
602      * @opt_param string sourceGeneration If present, selects a specific revision of the source object (as opposed to the latest version, the default).
603      * @return Google_StorageObject
604      */
605     public function copy($sourceBucket, $sourceObject, $destinationBucket, $destinationObject, Google_StorageObject $postBody, $optParams = array()) {
606       $params = array('sourceBucket' => $sourceBucket, 'sourceObject' => $sourceObject, 'destinationBucket' => $destinationBucket, 'destinationObject' => $destinationObject, 'postBody' => $postBody);
607       $params = array_merge($params, $optParams);
608       $data = $this->__call('copy', array($params));
609       if ($this->useObjects()) {
610         return new Google_StorageObject($data);
611       } else {
612         return $data;
613       }
614     }
615     /**
616      * Deletes data blobs and associated metadata. Deletions are permanent if versioning is not enabled
617      * for the bucket, or if the generation parameter is used. (objects.delete)
618      *
619      * @param string $bucket Name of the bucket in which the object resides.
620      * @param string $object Name of the object.
621      * @param array $optParams Optional parameters.
622      *
623      * @opt_param string generation If present, permanently deletes a specific revision of this object (as opposed to the latest version, the default).
624      * @opt_param string ifGenerationMatch Makes the operation conditional on whether the object's current generation matches the given value.
625      * @opt_param string ifGenerationNotMatch Makes the operation conditional on whether the object's current generation does not match the given value.
626      * @opt_param string ifMetagenerationMatch Makes the operation conditional on whether the object's current metageneration matches the given value.
627      * @opt_param string ifMetagenerationNotMatch Makes the operation conditional on whether the object's current metageneration does not match the given value.
628      */
629     public function delete($bucket, $object, $optParams = array()) {
630       $params = array('bucket' => $bucket, 'object' => $object);
631       $params = array_merge($params, $optParams);
632       $data = $this->__call('delete', array($params));
633       return $data;
634     }
635     /**
636      * Retrieves objects or their associated metadata. (objects.get)
637      *
638      * @param string $bucket Name of the bucket in which the object resides.
639      * @param string $object Name of the object.
640      * @param array $optParams Optional parameters.
641      *
642      * @opt_param string generation If present, selects a specific revision of this object (as opposed to the latest version, the default).
643      * @opt_param string ifGenerationMatch Makes the operation conditional on whether the object's generation matches the given value.
644      * @opt_param string ifGenerationNotMatch Makes the operation conditional on whether the object's generation does not match the given value.
645      * @opt_param string ifMetagenerationMatch Makes the operation conditional on whether the object's current metageneration matches the given value.
646      * @opt_param string ifMetagenerationNotMatch Makes the operation conditional on whether the object's current metageneration does not match the given value.
647      * @opt_param string projection Set of properties to return. Defaults to noAcl.
648      * @return Google_StorageObject
649      */
650     public function get($bucket, $object, $optParams = array()) {
651       $params = array('bucket' => $bucket, 'object' => $object);
652       $params = array_merge($params, $optParams);
653       $data = $this->__call('get', array($params));
654       if ($this->useObjects()) {
655         return new Google_StorageObject($data);
656       } else {
657         return $data;
658       }
659     }
660     /**
661      * Stores new data blobs and associated metadata. (objects.insert)
662      *
663      * @param string $bucket Name of the bucket in which to store the new object. Overrides the provided object metadata's bucket value, if any.
664      * @param Google_StorageObject $postBody
665      * @param array $optParams Optional parameters.
666      *
667      * @opt_param string ifGenerationMatch Makes the operation conditional on whether the object's current generation matches the given value.
668      * @opt_param string ifGenerationNotMatch Makes the operation conditional on whether the object's current generation does not match the given value.
669      * @opt_param string ifMetagenerationMatch Makes the operation conditional on whether the object's current metageneration matches the given value.
670      * @opt_param string ifMetagenerationNotMatch Makes the operation conditional on whether the object's current metageneration does not match the given value.
671      * @opt_param string name Name of the object. Required when the object metadata is not otherwise provided. Overrides the object metadata's name value, if any.
672      * @opt_param string projection Set of properties to return. Defaults to noAcl, unless the object resource specifies the acl property, when it defaults to full.
673      * @return Google_StorageObject
674      */
675     public function insert($bucket, Google_StorageObject $postBody, $optParams = array()) {
676       $params = array('bucket' => $bucket, 'postBody' => $postBody);
677       $params = array_merge($params, $optParams);
678       $data = $this->__call('insert', array($params));
679       if ($this->useObjects()) {
680         return new Google_StorageObject($data);
681       } else {
682         return $data;
683       }
684     }
685     /**
686      * Retrieves a list of objects matching the criteria. (objects.list)
687      *
688      * @param string $bucket Name of the bucket in which to look for objects.
689      * @param array $optParams Optional parameters.
690      *
691      * @opt_param string delimiter Returns results in a directory-like mode. items will contain only objects whose names, aside from the prefix, do not contain delimiter. Objects whose names, aside from the prefix, contain delimiter will have their name, truncated after the delimiter, returned in prefixes. Duplicate prefixes are omitted.
692      * @opt_param string maxResults Maximum number of items plus prefixes to return. As duplicate prefixes are omitted, fewer total results may be returned than requested.
693      * @opt_param string pageToken A previously-returned page token representing part of the larger set of results to view.
694      * @opt_param string prefix Filter results to objects whose names begin with this prefix.
695      * @opt_param string projection Set of properties to return. Defaults to noAcl.
696      * @opt_param bool versions If true, lists all versions of a file as distinct results.
697      * @return Google_Objects
698      */
699     public function listObjects($bucket, $optParams = array()) {
700       $params = array('bucket' => $bucket);
701       $params = array_merge($params, $optParams);
702       $data = $this->__call('list', array($params));
703       if ($this->useObjects()) {
704         return new Google_Objects($data);
705       } else {
706         return $data;
707       }
708     }
709     /**
710      * Updates a data blob's associated metadata. This method supports patch semantics. (objects.patch)
711      *
712      * @param string $bucket Name of the bucket in which the object resides.
713      * @param string $object Name of the object.
714      * @param Google_StorageObject $postBody
715      * @param array $optParams Optional parameters.
716      *
717      * @opt_param string generation If present, selects a specific revision of this object (as opposed to the latest version, the default).
718      * @opt_param string ifGenerationMatch Makes the operation conditional on whether the object's current generation matches the given value.
719      * @opt_param string ifGenerationNotMatch Makes the operation conditional on whether the object's current generation does not match the given value.
720      * @opt_param string ifMetagenerationMatch Makes the operation conditional on whether the object's current metageneration matches the given value.
721      * @opt_param string ifMetagenerationNotMatch Makes the operation conditional on whether the object's current metageneration does not match the given value.
722      * @opt_param string projection Set of properties to return. Defaults to full.
723      * @return Google_StorageObject
724      */
725     public function patch($bucket, $object, Google_StorageObject $postBody, $optParams = array()) {
726       $params = array('bucket' => $bucket, 'object' => $object, 'postBody' => $postBody);
727       $params = array_merge($params, $optParams);
728       $data = $this->__call('patch', array($params));
729       if ($this->useObjects()) {
730         return new Google_StorageObject($data);
731       } else {
732         return $data;
733       }
734     }
735     /**
736      * Updates a data blob's associated metadata. (objects.update)
737      *
738      * @param string $bucket Name of the bucket in which the object resides.
739      * @param string $object Name of the object.
740      * @param Google_StorageObject $postBody
741      * @param array $optParams Optional parameters.
742      *
743      * @opt_param string generation If present, selects a specific revision of this object (as opposed to the latest version, the default).
744      * @opt_param string ifGenerationMatch Makes the operation conditional on whether the object's current generation matches the given value.
745      * @opt_param string ifGenerationNotMatch Makes the operation conditional on whether the object's current generation does not match the given value.
746      * @opt_param string ifMetagenerationMatch Makes the operation conditional on whether the object's current metageneration matches the given value.
747      * @opt_param string ifMetagenerationNotMatch Makes the operation conditional on whether the object's current metageneration does not match the given value.
748      * @opt_param string projection Set of properties to return. Defaults to full.
749      * @return Google_StorageObject
750      */
751     public function update($bucket, $object, Google_StorageObject $postBody, $optParams = array()) {
752       $params = array('bucket' => $bucket, 'object' => $object, 'postBody' => $postBody);
753       $params = array_merge($params, $optParams);
754       $data = $this->__call('update', array($params));
755       if ($this->useObjects()) {
756         return new Google_StorageObject($data);
757       } else {
758         return $data;
759       }
760     }
761     /**
762      * Watch for changes on all objects in a bucket. (objects.watchAll)
763      *
764      * @param string $bucket Name of the bucket in which to look for objects.
765      * @param Google_Channel $postBody
766      * @param array $optParams Optional parameters.
767      *
768      * @opt_param string delimiter Returns results in a directory-like mode. items will contain only objects whose names, aside from the prefix, do not contain delimiter. Objects whose names, aside from the prefix, contain delimiter will have their name, truncated after the delimiter, returned in prefixes. Duplicate prefixes are omitted.
769      * @opt_param string maxResults Maximum number of items plus prefixes to return. As duplicate prefixes are omitted, fewer total results may be returned than requested.
770      * @opt_param string pageToken A previously-returned page token representing part of the larger set of results to view.
771      * @opt_param string prefix Filter results to objects whose names begin with this prefix.
772      * @opt_param string projection Set of properties to return. Defaults to noAcl.
773      * @opt_param bool versions If true, lists all versions of a file as distinct results.
774      * @return Google_Channel
775      */
776     public function watchAll($bucket, Google_Channel $postBody, $optParams = array()) {
777       $params = array('bucket' => $bucket, 'postBody' => $postBody);
778       $params = array_merge($params, $optParams);
779       $data = $this->__call('watchAll', array($params));
780       if ($this->useObjects()) {
781         return new Google_Channel($data);
782       } else {
783         return $data;
784       }
785     }
786   }
787 
788 /**
789  * Service definition for Google_Storage (v1beta2).
790  *
791  * <p>
792  * Lets you store and retrieve potentially-large, immutable data objects.
793  * </p>
794  *
795  * <p>
796  * For more information about this service, see the
797  * <a href="https://developers.google.com/storage/docs/json_api/" target="_blank">API Documentation</a>
798  * </p>
799  *
800  * @author Google, Inc.
801  */
802 class Google_StorageService extends Google_Service {
803   public $bucketAccessControls;
804   public $buckets;
805   public $channels;
806   public $defaultObjectAccessControls;
807   public $objectAccessControls;
808   public $objects;
809   /**
810    * Constructs the internal representation of the Storage service.
811    *
812    * @param Google_Client $client
813    */
814   public function __construct(Google_Client $client) {
815     $this->servicePath = 'storage/v1beta2/';
816     $this->version = 'v1beta2';
817     $this->serviceName = 'storage';
818 
819     $client->addService($this->serviceName, $this->version);
820     $this->bucketAccessControls = new Google_BucketAccessControlsServiceResource($this, $this->serviceName, 'bucketAccessControls', json_decode('{"methods": {"delete": {"id": "storage.bucketAccessControls.delete", "path": "b/{bucket}/acl/{entity}", "httpMethod": "DELETE", "parameters": {"bucket": {"type": "string", "required": true, "location": "path"}, "entity": {"type": "string", "required": true, "location": "path"}}, "scopes": ["https://www.googleapis.com/auth/devstorage.full_control"]}, "get": {"id": "storage.bucketAccessControls.get", "path": "b/{bucket}/acl/{entity}", "httpMethod": "GET", "parameters": {"bucket": {"type": "string", "required": true, "location": "path"}, "entity": {"type": "string", "required": true, "location": "path"}}, "response": {"$ref": "BucketAccessControl"}, "scopes": ["https://www.googleapis.com/auth/devstorage.full_control"]}, "insert": {"id": "storage.bucketAccessControls.insert", "path": "b/{bucket}/acl", "httpMethod": "POST", "parameters": {"bucket": {"type": "string", "required": true, "location": "path"}}, "request": {"$ref": "BucketAccessControl"}, "response": {"$ref": "BucketAccessControl"}, "scopes": ["https://www.googleapis.com/auth/devstorage.full_control"]}, "list": {"id": "storage.bucketAccessControls.list", "path": "b/{bucket}/acl", "httpMethod": "GET", "parameters": {"bucket": {"type": "string", "required": true, "location": "path"}}, "response": {"$ref": "BucketAccessControls"}, "scopes": ["https://www.googleapis.com/auth/devstorage.full_control"]}, "patch": {"id": "storage.bucketAccessControls.patch", "path": "b/{bucket}/acl/{entity}", "httpMethod": "PATCH", "parameters": {"bucket": {"type": "string", "required": true, "location": "path"}, "entity": {"type": "string", "required": true, "location": "path"}}, "request": {"$ref": "BucketAccessControl"}, "response": {"$ref": "BucketAccessControl"}, "scopes": ["https://www.googleapis.com/auth/devstorage.full_control"]}, "update": {"id": "storage.bucketAccessControls.update", "path": "b/{bucket}/acl/{entity}", "httpMethod": "PUT", "parameters": {"bucket": {"type": "string", "required": true, "location": "path"}, "entity": {"type": "string", "required": true, "location": "path"}}, "request": {"$ref": "BucketAccessControl"}, "response": {"$ref": "BucketAccessControl"}, "scopes": ["https://www.googleapis.com/auth/devstorage.full_control"]}}}', true));
821     $this->buckets = new Google_BucketsServiceResource($this, $this->serviceName, 'buckets', json_decode('{"methods": {"delete": {"id": "storage.buckets.delete", "path": "b/{bucket}", "httpMethod": "DELETE", "parameters": {"bucket": {"type": "string", "required": true, "location": "path"}, "ifMetagenerationMatch": {"type": "string", "format": "uint64", "location": "query"}, "ifMetagenerationNotMatch": {"type": "string", "format": "uint64", "location": "query"}}, "scopes": ["https://www.googleapis.com/auth/devstorage.full_control", "https://www.googleapis.com/auth/devstorage.read_write"]}, "get": {"id": "storage.buckets.get", "path": "b/{bucket}", "httpMethod": "GET", "parameters": {"bucket": {"type": "string", "required": true, "location": "path"}, "ifMetagenerationMatch": {"type": "string", "format": "uint64", "location": "query"}, "ifMetagenerationNotMatch": {"type": "string", "format": "uint64", "location": "query"}, "projection": {"type": "string", "enum": ["full", "noAcl"], "location": "query"}}, "response": {"$ref": "Bucket"}, "scopes": ["https://www.googleapis.com/auth/devstorage.full_control", "https://www.googleapis.com/auth/devstorage.read_only", "https://www.googleapis.com/auth/devstorage.read_write"]}, "insert": {"id": "storage.buckets.insert", "path": "b", "httpMethod": "POST", "parameters": {"project": {"type": "string", "required": true, "location": "query"}, "projection": {"type": "string", "enum": ["full", "noAcl"], "location": "query"}}, "request": {"$ref": "Bucket"}, "response": {"$ref": "Bucket"}, "scopes": ["https://www.googleapis.com/auth/devstorage.full_control", "https://www.googleapis.com/auth/devstorage.read_write"]}, "list": {"id": "storage.buckets.list", "path": "b", "httpMethod": "GET", "parameters": {"maxResults": {"type": "integer", "format": "uint32", "minimum": "0", "location": "query"}, "pageToken": {"type": "string", "location": "query"}, "project": {"type": "string", "required": true, "location": "query"}, "projection": {"type": "string", "enum": ["full", "noAcl"], "location": "query"}}, "response": {"$ref": "Buckets"}, "scopes": ["https://www.googleapis.com/auth/devstorage.full_control", "https://www.googleapis.com/auth/devstorage.read_only", "https://www.googleapis.com/auth/devstorage.read_write"]}, "patch": {"id": "storage.buckets.patch", "path": "b/{bucket}", "httpMethod": "PATCH", "parameters": {"bucket": {"type": "string", "required": true, "location": "path"}, "ifMetagenerationMatch": {"type": "string", "format": "uint64", "location": "query"}, "ifMetagenerationNotMatch": {"type": "string", "format": "uint64", "location": "query"}, "projection": {"type": "string", "enum": ["full", "noAcl"], "location": "query"}}, "request": {"$ref": "Bucket"}, "response": {"$ref": "Bucket"}, "scopes": ["https://www.googleapis.com/auth/devstorage.full_control", "https://www.googleapis.com/auth/devstorage.read_write"]}, "update": {"id": "storage.buckets.update", "path": "b/{bucket}", "httpMethod": "PUT", "parameters": {"bucket": {"type": "string", "required": true, "location": "path"}, "ifMetagenerationMatch": {"type": "string", "format": "uint64", "location": "query"}, "ifMetagenerationNotMatch": {"type": "string", "format": "uint64", "location": "query"}, "projection": {"type": "string", "enum": ["full", "noAcl"], "location": "query"}}, "request": {"$ref": "Bucket"}, "response": {"$ref": "Bucket"}, "scopes": ["https://www.googleapis.com/auth/devstorage.full_control", "https://www.googleapis.com/auth/devstorage.read_write"]}}}', true));
822     $this->channels = new Google_ChannelsServiceResource($this, $this->serviceName, 'channels', json_decode('{"methods": {"stop": {"id": "storage.channels.stop", "path": "channels/stop", "httpMethod": "POST", "request": {"$ref": "Channel"}, "scopes": ["https://www.googleapis.com/auth/devstorage.full_control", "https://www.googleapis.com/auth/devstorage.read_only", "https://www.googleapis.com/auth/devstorage.read_write"]}}}', true));
823     $this->defaultObjectAccessControls = new Google_DefaultObjectAccessControlsServiceResource($this, $this->serviceName, 'defaultObjectAccessControls', json_decode('{"methods": {"delete": {"id": "storage.defaultObjectAccessControls.delete", "path": "b/{bucket}/defaultObjectAcl/{entity}", "httpMethod": "DELETE", "parameters": {"bucket": {"type": "string", "required": true, "location": "path"}, "entity": {"type": "string", "required": true, "location": "path"}}, "scopes": ["https://www.googleapis.com/auth/devstorage.full_control"]}, "get": {"id": "storage.defaultObjectAccessControls.get", "path": "b/{bucket}/defaultObjectAcl/{entity}", "httpMethod": "GET", "parameters": {"bucket": {"type": "string", "required": true, "location": "path"}, "entity": {"type": "string", "required": true, "location": "path"}}, "response": {"$ref": "ObjectAccessControl"}, "scopes": ["https://www.googleapis.com/auth/devstorage.full_control"]}, "insert": {"id": "storage.defaultObjectAccessControls.insert", "path": "b/{bucket}/defaultObjectAcl", "httpMethod": "POST", "parameters": {"bucket": {"type": "string", "required": true, "location": "path"}}, "request": {"$ref": "ObjectAccessControl"}, "response": {"$ref": "ObjectAccessControl"}, "scopes": ["https://www.googleapis.com/auth/devstorage.full_control"]}, "list": {"id": "storage.defaultObjectAccessControls.list", "path": "b/{bucket}/defaultObjectAcl", "httpMethod": "GET", "parameters": {"bucket": {"type": "string", "required": true, "location": "path"}}, "response": {"$ref": "ObjectAccessControls"}, "scopes": ["https://www.googleapis.com/auth/devstorage.full_control"]}, "patch": {"id": "storage.defaultObjectAccessControls.patch", "path": "b/{bucket}/defaultObjectAcl/{entity}", "httpMethod": "PATCH", "parameters": {"bucket": {"type": "string", "required": true, "location": "path"}, "entity": {"type": "string", "required": true, "location": "path"}}, "request": {"$ref": "ObjectAccessControl"}, "response": {"$ref": "ObjectAccessControl"}, "scopes": ["https://www.googleapis.com/auth/devstorage.full_control"]}, "update": {"id": "storage.defaultObjectAccessControls.update", "path": "b/{bucket}/defaultObjectAcl/{entity}", "httpMethod": "PUT", "parameters": {"bucket": {"type": "string", "required": true, "location": "path"}, "entity": {"type": "string", "required": true, "location": "path"}}, "request": {"$ref": "ObjectAccessControl"}, "response": {"$ref": "ObjectAccessControl"}, "scopes": ["https://www.googleapis.com/auth/devstorage.full_control"]}}}', true));
824     $this->objectAccessControls = new Google_ObjectAccessControlsServiceResource($this, $this->serviceName, 'objectAccessControls', json_decode('{"methods": {"delete": {"id": "storage.objectAccessControls.delete", "path": "b/{bucket}/o/{object}/acl/{entity}", "httpMethod": "DELETE", "parameters": {"bucket": {"type": "string", "required": true, "location": "path"}, "entity": {"type": "string", "required": true, "location": "path"}, "generation": {"type": "string", "format": "uint64", "location": "query"}, "object": {"type": "string", "required": true, "location": "path"}}, "scopes": ["https://www.googleapis.com/auth/devstorage.full_control"]}, "get": {"id": "storage.objectAccessControls.get", "path": "b/{bucket}/o/{object}/acl/{entity}", "httpMethod": "GET", "parameters": {"bucket": {"type": "string", "required": true, "location": "path"}, "entity": {"type": "string", "required": true, "location": "path"}, "generation": {"type": "string", "format": "uint64", "location": "query"}, "object": {"type": "string", "required": true, "location": "path"}}, "response": {"$ref": "ObjectAccessControl"}, "scopes": ["https://www.googleapis.com/auth/devstorage.full_control"]}, "insert": {"id": "storage.objectAccessControls.insert", "path": "b/{bucket}/o/{object}/acl", "httpMethod": "POST", "parameters": {"bucket": {"type": "string", "required": true, "location": "path"}, "generation": {"type": "string", "format": "uint64", "location": "query"}, "object": {"type": "string", "required": true, "location": "path"}}, "request": {"$ref": "ObjectAccessControl"}, "response": {"$ref": "ObjectAccessControl"}, "scopes": ["https://www.googleapis.com/auth/devstorage.full_control"]}, "list": {"id": "storage.objectAccessControls.list", "path": "b/{bucket}/o/{object}/acl", "httpMethod": "GET", "parameters": {"bucket": {"type": "string", "required": true, "location": "path"}, "generation": {"type": "string", "format": "uint64", "location": "query"}, "object": {"type": "string", "required": true, "location": "path"}}, "response": {"$ref": "ObjectAccessControls"}, "scopes": ["https://www.googleapis.com/auth/devstorage.full_control"]}, "patch": {"id": "storage.objectAccessControls.patch", "path": "b/{bucket}/o/{object}/acl/{entity}", "httpMethod": "PATCH", "parameters": {"bucket": {"type": "string", "required": true, "location": "path"}, "entity": {"type": "string", "required": true, "location": "path"}, "generation": {"type": "string", "format": "uint64", "location": "query"}, "object": {"type": "string", "required": true, "location": "path"}}, "request": {"$ref": "ObjectAccessControl"}, "response": {"$ref": "ObjectAccessControl"}, "scopes": ["https://www.googleapis.com/auth/devstorage.full_control"]}, "update": {"id": "storage.objectAccessControls.update", "path": "b/{bucket}/o/{object}/acl/{entity}", "httpMethod": "PUT", "parameters": {"bucket": {"type": "string", "required": true, "location": "path"}, "entity": {"type": "string", "required": true, "location": "path"}, "generation": {"type": "string", "format": "uint64", "location": "query"}, "object": {"type": "string", "required": true, "location": "path"}}, "request": {"$ref": "ObjectAccessControl"}, "response": {"$ref": "ObjectAccessControl"}, "scopes": ["https://www.googleapis.com/auth/devstorage.full_control"]}}}', true));
825     $this->objects = new Google_ObjectsServiceResource($this, $this->serviceName, 'objects', json_decode('{"methods": {"compose": {"id": "storage.objects.compose", "path": "b/{destinationBucket}/o/{destinationObject}/compose", "httpMethod": "POST", "parameters": {"destinationBucket": {"type": "string", "required": true, "location": "path"}, "destinationObject": {"type": "string", "required": true, "location": "path"}, "ifGenerationMatch": {"type": "string", "format": "uint64", "location": "query"}, "ifMetagenerationMatch": {"type": "string", "format": "uint64", "location": "query"}}, "request": {"$ref": "ComposeRequest"}, "response": {"$ref": "Object"}, "scopes": ["https://www.googleapis.com/auth/devstorage.full_control", "https://www.googleapis.com/auth/devstorage.read_write"], "supportsMediaDownload": true}, "copy": {"id": "storage.objects.copy", "path": "b/{sourceBucket}/o/{sourceObject}/copyTo/b/{destinationBucket}/o/{destinationObject}", "httpMethod": "POST", "parameters": {"destinationBucket": {"type": "string", "required": true, "location": "path"}, "destinationObject": {"type": "string", "required": true, "location": "path"}, "ifGenerationMatch": {"type": "string", "format": "uint64", "location": "query"}, "ifGenerationNotMatch": {"type": "string", "format": "uint64", "location": "query"}, "ifMetagenerationMatch": {"type": "string", "format": "uint64", "location": "query"}, "ifMetagenerationNotMatch": {"type": "string", "format": "uint64", "location": "query"}, "ifSourceGenerationMatch": {"type": "string", "format": "uint64", "location": "query"}, "ifSourceGenerationNotMatch": {"type": "string", "format": "uint64", "location": "query"}, "ifSourceMetagenerationMatch": {"type": "string", "format": "uint64", "location": "query"}, "ifSourceMetagenerationNotMatch": {"type": "string", "format": "uint64", "location": "query"}, "projection": {"type": "string", "enum": ["full", "noAcl"], "location": "query"}, "sourceBucket": {"type": "string", "required": true, "location": "path"}, "sourceGeneration": {"type": "string", "format": "uint64", "location": "query"}, "sourceObject": {"type": "string", "required": true, "location": "path"}}, "request": {"$ref": "Object"}, "response": {"$ref": "Object"}, "scopes": ["https://www.googleapis.com/auth/devstorage.full_control", "https://www.googleapis.com/auth/devstorage.read_write"], "supportsMediaDownload": true}, "delete": {"id": "storage.objects.delete", "path": "b/{bucket}/o/{object}", "httpMethod": "DELETE", "parameters": {"bucket": {"type": "string", "required": true, "location": "path"}, "generation": {"type": "string", "format": "uint64", "location": "query"}, "ifGenerationMatch": {"type": "string", "format": "uint64", "location": "query"}, "ifGenerationNotMatch": {"type": "string", "format": "uint64", "location": "query"}, "ifMetagenerationMatch": {"type": "string", "format": "uint64", "location": "query"}, "ifMetagenerationNotMatch": {"type": "string", "format": "uint64", "location": "query"}, "object": {"type": "string", "required": true, "location": "path"}}, "scopes": ["https://www.googleapis.com/auth/devstorage.full_control", "https://www.googleapis.com/auth/devstorage.read_write"]}, "get": {"id": "storage.objects.get", "path": "b/{bucket}/o/{object}", "httpMethod": "GET", "parameters": {"bucket": {"type": "string", "required": true, "location": "path"}, "generation": {"type": "string", "format": "uint64", "location": "query"}, "ifGenerationMatch": {"type": "string", "format": "uint64", "location": "query"}, "ifGenerationNotMatch": {"type": "string", "format": "uint64", "location": "query"}, "ifMetagenerationMatch": {"type": "string", "format": "uint64", "location": "query"}, "ifMetagenerationNotMatch": {"type": "string", "format": "uint64", "location": "query"}, "object": {"type": "string", "required": true, "location": "path"}, "projection": {"type": "string", "enum": ["full", "noAcl"], "location": "query"}}, "response": {"$ref": "Object"}, "scopes": ["https://www.googleapis.com/auth/devstorage.full_control", "https://www.googleapis.com/auth/devstorage.read_only", "https://www.googleapis.com/auth/devstorage.read_write"], "supportsMediaDownload": true}, "insert": {"id": "storage.objects.insert", "path": "b/{bucket}/o", "httpMethod": "POST", "parameters": {"bucket": {"type": "string", "required": true, "location": "path"}, "ifGenerationMatch": {"type": "string", "format": "uint64", "location": "query"}, "ifGenerationNotMatch": {"type": "string", "format": "uint64", "location": "query"}, "ifMetagenerationMatch": {"type": "string", "format": "uint64", "location": "query"}, "ifMetagenerationNotMatch": {"type": "string", "format": "uint64", "location": "query"}, "name": {"type": "string", "location": "query"}, "projection": {"type": "string", "enum": ["full", "noAcl"], "location": "query"}}, "request": {"$ref": "Object"}, "response": {"$ref": "Object"}, "scopes": ["https://www.googleapis.com/auth/devstorage.full_control", "https://www.googleapis.com/auth/devstorage.read_write"], "supportsMediaDownload": true, "supportsMediaUpload": true, "mediaUpload": {"accept": ["*/*"], "protocols": {"simple": {"multipart": true, "path": "/upload/storage/v1beta2/b/{bucket}/o"}, "resumable": {"multipart": true, "path": "/resumable/upload/storage/v1beta2/b/{bucket}/o"}}}}, "list": {"id": "storage.objects.list", "path": "b/{bucket}/o", "httpMethod": "GET", "parameters": {"bucket": {"type": "string", "required": true, "location": "path"}, "delimiter": {"type": "string", "location": "query"}, "maxResults": {"type": "integer", "format": "uint32", "minimum": "0", "location": "query"}, "pageToken": {"type": "string", "location": "query"}, "prefix": {"type": "string", "location": "query"}, "projection": {"type": "string", "enum": ["full", "noAcl"], "location": "query"}, "versions": {"type": "boolean", "location": "query"}}, "response": {"$ref": "Objects"}, "scopes": ["https://www.googleapis.com/auth/devstorage.full_control", "https://www.googleapis.com/auth/devstorage.read_only", "https://www.googleapis.com/auth/devstorage.read_write"], "supportsSubscription": true}, "patch": {"id": "storage.objects.patch", "path": "b/{bucket}/o/{object}", "httpMethod": "PATCH", "parameters": {"bucket": {"type": "string", "required": true, "location": "path"}, "generation": {"type": "string", "format": "uint64", "location": "query"}, "ifGenerationMatch": {"type": "string", "format": "uint64", "location": "query"}, "ifGenerationNotMatch": {"type": "string", "format": "uint64", "location": "query"}, "ifMetagenerationMatch": {"type": "string", "format": "uint64", "location": "query"}, "ifMetagenerationNotMatch": {"type": "string", "format": "uint64", "location": "query"}, "object": {"type": "string", "required": true, "location": "path"}, "projection": {"type": "string", "enum": ["full", "noAcl"], "location": "query"}}, "request": {"$ref": "Object"}, "response": {"$ref": "Object"}, "scopes": ["https://www.googleapis.com/auth/devstorage.full_control", "https://www.googleapis.com/auth/devstorage.read_write"]}, "update": {"id": "storage.objects.update", "path": "b/{bucket}/o/{object}", "httpMethod": "PUT", "parameters": {"bucket": {"type": "string", "required": true, "location": "path"}, "generation": {"type": "string", "format": "uint64", "location": "query"}, "ifGenerationMatch": {"type": "string", "format": "uint64", "location": "query"}, "ifGenerationNotMatch": {"type": "string", "format": "uint64", "location": "query"}, "ifMetagenerationMatch": {"type": "string", "format": "uint64", "location": "query"}, "ifMetagenerationNotMatch": {"type": "string", "format": "uint64", "location": "query"}, "object": {"type": "string", "required": true, "location": "path"}, "projection": {"type": "string", "enum": ["full", "noAcl"], "location": "query"}}, "request": {"$ref": "Object"}, "response": {"$ref": "Object"}, "scopes": ["https://www.googleapis.com/auth/devstorage.full_control", "https://www.googleapis.com/auth/devstorage.read_write"], "supportsMediaDownload": true}, "watchAll": {"id": "storage.objects.watchAll", "path": "b/{bucket}/o/watch", "httpMethod": "POST", "parameters": {"bucket": {"type": "string", "required": true, "location": "path"}, "delimiter": {"type": "string", "location": "query"}, "maxResults": {"type": "integer", "format": "uint32", "minimum": "0", "location": "query"}, "pageToken": {"type": "string", "location": "query"}, "prefix": {"type": "string", "location": "query"}, "projection": {"type": "string", "enum": ["full", "noAcl"], "location": "query"}, "versions": {"type": "boolean", "location": "query"}}, "request": {"$ref": "Channel"}, "response": {"$ref": "Channel"}, "scopes": ["https://www.googleapis.com/auth/devstorage.full_control", "https://www.googleapis.com/auth/devstorage.read_only", "https://www.googleapis.com/auth/devstorage.read_write"], "supportsSubscription": true}}}', true));
826 
827   }
828 }
829 
830 
831 
832 class Google_Bucket extends Google_Model {
833   protected $__aclType = 'Google_BucketAccessControl';
834   protected $__aclDataType = 'array';
835   public $acl;
836   protected $__corsType = 'Google_BucketCors';
837   protected $__corsDataType = 'array';
838   public $cors;
839   protected $__defaultObjectAclType = 'Google_ObjectAccessControl';
840   protected $__defaultObjectAclDataType = 'array';
841   public $defaultObjectAcl;
842   public $etag;
843   public $id;
844   public $kind;
845   protected $__lifecycleType = 'Google_BucketLifecycle';
846   protected $__lifecycleDataType = '';
847   public $lifecycle;
848   public $location;
849   protected $__loggingType = 'Google_BucketLogging';
850   protected $__loggingDataType = '';
851   public $logging;
852   public $metageneration;
853   public $name;
854   protected $__ownerType = 'Google_BucketOwner';
855   protected $__ownerDataType = '';
856   public $owner;
857   public $selfLink;
858   public $storageClass;
859   public $timeCreated;
860   protected $__versioningType = 'Google_BucketVersioning';
861   protected $__versioningDataType = '';
862   public $versioning;
863   protected $__websiteType = 'Google_BucketWebsite';
864   protected $__websiteDataType = '';
865   public $website;
866   public function setAcl(/* array(Google_BucketAccessControl) */ $acl) {
867     $this->assertIsArray($acl, 'Google_BucketAccessControl', __METHOD__);
868     $this->acl = $acl;
869   }
870   public function getAcl() {
871     return $this->acl;
872   }
873   public function setCors(/* array(Google_BucketCors) */ $cors) {
874     $this->assertIsArray($cors, 'Google_BucketCors', __METHOD__);
875     $this->cors = $cors;
876   }
877   public function getCors() {
878     return $this->cors;
879   }
880   public function setDefaultObjectAcl(/* array(Google_ObjectAccessControl) */ $defaultObjectAcl) {
881     $this->assertIsArray($defaultObjectAcl, 'Google_ObjectAccessControl', __METHOD__);
882     $this->defaultObjectAcl = $defaultObjectAcl;
883   }
884   public function getDefaultObjectAcl() {
885     return $this->defaultObjectAcl;
886   }
887   public function setEtag( $etag) {
888     $this->etag = $etag;
889   }
890   public function getEtag() {
891     return $this->etag;
892   }
893   public function setId( $id) {
894     $this->id = $id;
895   }
896   public function getId() {
897     return $this->id;
898   }
899   public function setKind( $kind) {
900     $this->kind = $kind;
901   }
902   public function getKind() {
903     return $this->kind;
904   }
905   public function setLifecycle(Google_BucketLifecycle $lifecycle) {
906     $this->lifecycle = $lifecycle;
907   }
908   public function getLifecycle() {
909     return $this->lifecycle;
910   }
911   public function setLocation( $location) {
912     $this->location = $location;
913   }
914   public function getLocation() {
915     return $this->location;
916   }
917   public function setLogging(Google_BucketLogging $logging) {
918     $this->logging = $logging;
919   }
920   public function getLogging() {
921     return $this->logging;
922   }
923   public function setMetageneration( $metageneration) {
924     $this->metageneration = $metageneration;
925   }
926   public function getMetageneration() {
927     return $this->metageneration;
928   }
929   public function setName( $name) {
930     $this->name = $name;
931   }
932   public function getName() {
933     return $this->name;
934   }
935   public function setOwner(Google_BucketOwner $owner) {
936     $this->owner = $owner;
937   }
938   public function getOwner() {
939     return $this->owner;
940   }
941   public function setSelfLink( $selfLink) {
942     $this->selfLink = $selfLink;
943   }
944   public function getSelfLink() {
945     return $this->selfLink;
946   }
947   public function setStorageClass( $storageClass) {
948     $this->storageClass = $storageClass;
949   }
950   public function getStorageClass() {
951     return $this->storageClass;
952   }
953   public function setTimeCreated( $timeCreated) {
954     $this->timeCreated = $timeCreated;
955   }
956   public function getTimeCreated() {
957     return $this->timeCreated;
958   }
959   public function setVersioning(Google_BucketVersioning $versioning) {
960     $this->versioning = $versioning;
961   }
962   public function getVersioning() {
963     return $this->versioning;
964   }
965   public function setWebsite(Google_BucketWebsite $website) {
966     $this->website = $website;
967   }
968   public function getWebsite() {
969     return $this->website;
970   }
971 }
972 
973 class Google_BucketAccessControl extends Google_Model {
974   public $bucket;
975   public $domain;
976   public $email;
977   public $entity;
978   public $entityId;
979   public $etag;
980   public $id;
981   public $kind;
982   public $role;
983   public $selfLink;
984   public function setBucket( $bucket) {
985     $this->bucket = $bucket;
986   }
987   public function getBucket() {
988     return $this->bucket;
989   }
990   public function setDomain( $domain) {
991     $this->domain = $domain;
992   }
993   public function getDomain() {
994     return $this->domain;
995   }
996   public function setEmail( $email) {
997     $this->email = $email;
998   }
999   public function getEmail() {
1000     return $this->email;
1001   }
1002   public function setEntity( $entity) {
1003     $this->entity = $entity;
1004   }
1005   public function getEntity() {
1006     return $this->entity;
1007   }
1008   public function setEntityId( $entityId) {
1009     $this->entityId = $entityId;
1010   }
1011   public function getEntityId() {
1012     return $this->entityId;
1013   }
1014   public function setEtag( $etag) {
1015     $this->etag = $etag;
1016   }
1017   public function getEtag() {
1018     return $this->etag;
1019   }
1020   public function setId( $id) {
1021     $this->id = $id;
1022   }
1023   public function getId() {
1024     return $this->id;
1025   }
1026   public function setKind( $kind) {
1027     $this->kind = $kind;
1028   }
1029   public function getKind() {
1030     return $this->kind;
1031   }
1032   public function setRole( $role) {
1033     $this->role = $role;
1034   }
1035   public function getRole() {
1036     return $this->role;
1037   }
1038   public function setSelfLink( $selfLink) {
1039     $this->selfLink = $selfLink;
1040   }
1041   public function getSelfLink() {
1042     return $this->selfLink;
1043   }
1044 }
1045 
1046 class Google_BucketAccessControls extends Google_Model {
1047   protected $__itemsType = 'Google_BucketAccessControl';
1048   protected $__itemsDataType = 'array';
1049   public $items;
1050   public $kind;
1051   public function setItems(/* array(Google_BucketAccessControl) */ $items) {
1052     $this->assertIsArray($items, 'Google_BucketAccessControl', __METHOD__);
1053     $this->items = $items;
1054   }
1055   public function getItems() {
1056     return $this->items;
1057   }
1058   public function setKind( $kind) {
1059     $this->kind = $kind;
1060   }
1061   public function getKind() {
1062     return $this->kind;
1063   }
1064 }
1065 
1066 class Google_BucketCors extends Google_Model {
1067   public $maxAgeSeconds;
1068   public $method;
1069   public $origin;
1070   public $responseHeader;
1071   public function setMaxAgeSeconds( $maxAgeSeconds) {
1072     $this->maxAgeSeconds = $maxAgeSeconds;
1073   }
1074   public function getMaxAgeSeconds() {
1075     return $this->maxAgeSeconds;
1076   }
1077   public function setMethod(/* array(Google_string) */ $method) {
1078     $this->assertIsArray($method, 'Google_string', __METHOD__);
1079     $this->method = $method;
1080   }
1081   public function getMethod() {
1082     return $this->method;
1083   }
1084   public function setOrigin(/* array(Google_string) */ $origin) {
1085     $this->assertIsArray($origin, 'Google_string', __METHOD__);
1086     $this->origin = $origin;
1087   }
1088   public function getOrigin() {
1089     return $this->origin;
1090   }
1091   public function setResponseHeader(/* array(Google_string) */ $responseHeader) {
1092     $this->assertIsArray($responseHeader, 'Google_string', __METHOD__);
1093     $this->responseHeader = $responseHeader;
1094   }
1095   public function getResponseHeader() {
1096     return $this->responseHeader;
1097   }
1098 }
1099 
1100 class Google_BucketLifecycle extends Google_Model {
1101   protected $__ruleType = 'Google_BucketLifecycleRule';
1102   protected $__ruleDataType = 'array';
1103   public $rule;
1104   public function setRule(/* array(Google_BucketLifecycleRule) */ $rule) {
1105     $this->assertIsArray($rule, 'Google_BucketLifecycleRule', __METHOD__);
1106     $this->rule = $rule;
1107   }
1108   public function getRule() {
1109     return $this->rule;
1110   }
1111 }
1112 
1113 class Google_BucketLifecycleRule extends Google_Model {
1114   protected $__actionType = 'Google_BucketLifecycleRuleAction';
1115   protected $__actionDataType = '';
1116   public $action;
1117   protected $__conditionType = 'Google_BucketLifecycleRuleCondition';
1118   protected $__conditionDataType = '';
1119   public $condition;
1120   public function setAction(Google_BucketLifecycleRuleAction $action) {
1121     $this->action = $action;
1122   }
1123   public function getAction() {
1124     return $this->action;
1125   }
1126   public function setCondition(Google_BucketLifecycleRuleCondition $condition) {
1127     $this->condition = $condition;
1128   }
1129   public function getCondition() {
1130     return $this->condition;
1131   }
1132 }
1133 
1134 class Google_BucketLifecycleRuleAction extends Google_Model {
1135   public $type;
1136   public function setType( $type) {
1137     $this->type = $type;
1138   }
1139   public function getType() {
1140     return $this->type;
1141   }
1142 }
1143 
1144 class Google_BucketLifecycleRuleCondition extends Google_Model {
1145   public $age;
1146   public $createdBefore;
1147   public $isLive;
1148   public $numNewerVersions;
1149   public function setAge( $age) {
1150     $this->age = $age;
1151   }
1152   public function getAge() {
1153     return $this->age;
1154   }
1155   public function setCreatedBefore( $createdBefore) {
1156     $this->createdBefore = $createdBefore;
1157   }
1158   public function getCreatedBefore() {
1159     return $this->createdBefore;
1160   }
1161   public function setIsLive( $isLive) {
1162     $this->isLive = $isLive;
1163   }
1164   public function getIsLive() {
1165     return $this->isLive;
1166   }
1167   public function setNumNewerVersions( $numNewerVersions) {
1168     $this->numNewerVersions = $numNewerVersions;
1169   }
1170   public function getNumNewerVersions() {
1171     return $this->numNewerVersions;
1172   }
1173 }
1174 
1175 class Google_BucketLogging extends Google_Model {
1176   public $logBucket;
1177   public $logObjectPrefix;
1178   public function setLogBucket( $logBucket) {
1179     $this->logBucket = $logBucket;
1180   }
1181   public function getLogBucket() {
1182     return $this->logBucket;
1183   }
1184   public function setLogObjectPrefix( $logObjectPrefix) {
1185     $this->logObjectPrefix = $logObjectPrefix;
1186   }
1187   public function getLogObjectPrefix() {
1188     return $this->logObjectPrefix;
1189   }
1190 }
1191 
1192 class Google_BucketOwner extends Google_Model {
1193   public $entity;
1194   public $entityId;
1195   public function setEntity( $entity) {
1196     $this->entity = $entity;
1197   }
1198   public function getEntity() {
1199     return $this->entity;
1200   }
1201   public function setEntityId( $entityId) {
1202     $this->entityId = $entityId;
1203   }
1204   public function getEntityId() {
1205     return $this->entityId;
1206   }
1207 }
1208 
1209 class Google_BucketVersioning extends Google_Model {
1210   public $enabled;
1211   public function setEnabled( $enabled) {
1212     $this->enabled = $enabled;
1213   }
1214   public function getEnabled() {
1215     return $this->enabled;
1216   }
1217 }
1218 
1219 class Google_BucketWebsite extends Google_Model {
1220   public $mainPageSuffix;
1221   public $notFoundPage;
1222   public function setMainPageSuffix( $mainPageSuffix) {
1223     $this->mainPageSuffix = $mainPageSuffix;
1224   }
1225   public function getMainPageSuffix() {
1226     return $this->mainPageSuffix;
1227   }
1228   public function setNotFoundPage( $notFoundPage) {
1229     $this->notFoundPage = $notFoundPage;
1230   }
1231   public function getNotFoundPage() {
1232     return $this->notFoundPage;
1233   }
1234 }
1235 
1236 class Google_Buckets extends Google_Model {
1237   protected $__itemsType = 'Google_Bucket';
1238   protected $__itemsDataType = 'array';
1239   public $items;
1240   public $kind;
1241   public $nextPageToken;
1242   public function setItems(/* array(Google_Bucket) */ $items) {
1243     $this->assertIsArray($items, 'Google_Bucket', __METHOD__);
1244     $this->items = $items;
1245   }
1246   public function getItems() {
1247     return $this->items;
1248   }
1249   public function setKind( $kind) {
1250     $this->kind = $kind;
1251   }
1252   public function getKind() {
1253     return $this->kind;
1254   }
1255   public function setNextPageToken( $nextPageToken) {
1256     $this->nextPageToken = $nextPageToken;
1257   }
1258   public function getNextPageToken() {
1259     return $this->nextPageToken;
1260   }
1261 }
1262 
1263 class Google_Channel extends Google_Model {
1264   public $address;
1265   public $expiration;
1266   public $id;
1267   public $kind;
1268   public $params;
1269   public $resourceId;
1270   public $resourceUri;
1271   public $token;
1272   public $type;
1273   public function setAddress( $address) {
1274     $this->address = $address;
1275   }
1276   public function getAddress() {
1277     return $this->address;
1278   }
1279   public function setExpiration( $expiration) {
1280     $this->expiration = $expiration;
1281   }
1282   public function getExpiration() {
1283     return $this->expiration;
1284   }
1285   public function setId( $id) {
1286     $this->id = $id;
1287   }
1288   public function getId() {
1289     return $this->id;
1290   }
1291   public function setKind( $kind) {
1292     $this->kind = $kind;
1293   }
1294   public function getKind() {
1295     return $this->kind;
1296   }
1297   public function setParams( $params) {
1298     $this->params = $params;
1299   }
1300   public function getParams() {
1301     return $this->params;
1302   }
1303   public function setResourceId( $resourceId) {
1304     $this->resourceId = $resourceId;
1305   }
1306   public function getResourceId() {
1307     return $this->resourceId;
1308   }
1309   public function setResourceUri( $resourceUri) {
1310     $this->resourceUri = $resourceUri;
1311   }
1312   public function getResourceUri() {
1313     return $this->resourceUri;
1314   }
1315   public function setToken( $token) {
1316     $this->token = $token;
1317   }
1318   public function getToken() {
1319     return $this->token;
1320   }
1321   public function setType( $type) {
1322     $this->type = $type;
1323   }
1324   public function getType() {
1325     return $this->type;
1326   }
1327 }
1328 
1329 class Google_ComposeRequest extends Google_Model {
1330   protected $__destinationType = 'Google_StorageObject';
1331   protected $__destinationDataType = '';
1332   public $destination;
1333   public $kind;
1334   protected $__sourceObjectsType = 'Google_ComposeRequestSourceObjects';
1335   protected $__sourceObjectsDataType = 'array';
1336   public $sourceObjects;
1337   public function setDestination(Google_StorageObject $destination) {
1338     $this->destination = $destination;
1339   }
1340   public function getDestination() {
1341     return $this->destination;
1342   }
1343   public function setKind( $kind) {
1344     $this->kind = $kind;
1345   }
1346   public function getKind() {
1347     return $this->kind;
1348   }
1349   public function setSourceObjects(/* array(Google_ComposeRequestSourceObjects) */ $sourceObjects) {
1350     $this->assertIsArray($sourceObjects, 'Google_ComposeRequestSourceObjects', __METHOD__);
1351     $this->sourceObjects = $sourceObjects;
1352   }
1353   public function getSourceObjects() {
1354     return $this->sourceObjects;
1355   }
1356 }
1357 
1358 class Google_ComposeRequestSourceObjects extends Google_Model {
1359   public $generation;
1360   public $name;
1361   protected $__objectPreconditionsType = 'Google_ComposeRequestSourceObjectsObjectPreconditions';
1362   protected $__objectPreconditionsDataType = '';
1363   public $objectPreconditions;
1364   public function setGeneration( $generation) {
1365     $this->generation = $generation;
1366   }
1367   public function getGeneration() {
1368     return $this->generation;
1369   }
1370   public function setName( $name) {
1371     $this->name = $name;
1372   }
1373   public function getName() {
1374     return $this->name;
1375   }
1376   public function setObjectPreconditions(Google_ComposeRequestSourceObjectsObjectPreconditions $objectPreconditions) {
1377     $this->objectPreconditions = $objectPreconditions;
1378   }
1379   public function getObjectPreconditions() {
1380     return $this->objectPreconditions;
1381   }
1382 }
1383 
1384 class Google_ComposeRequestSourceObjectsObjectPreconditions extends Google_Model {
1385   public $ifGenerationMatch;
1386   public function setIfGenerationMatch( $ifGenerationMatch) {
1387     $this->ifGenerationMatch = $ifGenerationMatch;
1388   }
1389   public function getIfGenerationMatch() {
1390     return $this->ifGenerationMatch;
1391   }
1392 }
1393 
1394 class Google_ObjectAccessControl extends Google_Model {
1395   public $bucket;
1396   public $domain;
1397   public $email;
1398   public $entity;
1399   public $entityId;
1400   public $etag;
1401   public $generation;
1402   public $id;
1403   public $kind;
1404   public $object;
1405   public $role;
1406   public $selfLink;
1407   public function setBucket( $bucket) {
1408     $this->bucket = $bucket;
1409   }
1410   public function getBucket() {
1411     return $this->bucket;
1412   }
1413   public function setDomain( $domain) {
1414     $this->domain = $domain;
1415   }
1416   public function getDomain() {
1417     return $this->domain;
1418   }
1419   public function setEmail( $email) {
1420     $this->email = $email;
1421   }
1422   public function getEmail() {
1423     return $this->email;
1424   }
1425   public function setEntity( $entity) {
1426     $this->entity = $entity;
1427   }
1428   public function getEntity() {
1429     return $this->entity;
1430   }
1431   public function setEntityId( $entityId) {
1432     $this->entityId = $entityId;
1433   }
1434   public function getEntityId() {
1435     return $this->entityId;
1436   }
1437   public function setEtag( $etag) {
1438     $this->etag = $etag;
1439   }
1440   public function getEtag() {
1441     return $this->etag;
1442   }
1443   public function setGeneration( $generation) {
1444     $this->generation = $generation;
1445   }
1446   public function getGeneration() {
1447     return $this->generation;
1448   }
1449   public function setId( $id) {
1450     $this->id = $id;
1451   }
1452   public function getId() {
1453     return $this->id;
1454   }
1455   public function setKind( $kind) {
1456     $this->kind = $kind;
1457   }
1458   public function getKind() {
1459     return $this->kind;
1460   }
1461   public function setObject( $object) {
1462     $this->object = $object;
1463   }
1464   public function getObject() {
1465     return $this->object;
1466   }
1467   public function setRole( $role) {
1468     $this->role = $role;
1469   }
1470   public function getRole() {
1471     return $this->role;
1472   }
1473   public function setSelfLink( $selfLink) {
1474     $this->selfLink = $selfLink;
1475   }
1476   public function getSelfLink() {
1477     return $this->selfLink;
1478   }
1479 }
1480 
1481 class Google_ObjectAccessControls extends Google_Model {
1482   public $items;
1483   public $kind;
1484   public function setItems(/* array(Google_object) */ $items) {
1485     $this->assertIsArray($items, 'Google_object', __METHOD__);
1486     $this->items = $items;
1487   }
1488   public function getItems() {
1489     return $this->items;
1490   }
1491   public function setKind( $kind) {
1492     $this->kind = $kind;
1493   }
1494   public function getKind() {
1495     return $this->kind;
1496   }
1497 }
1498 
1499 class Google_Objects extends Google_Model {
1500   protected $__itemsType = 'Google_StorageObject';
1501   protected $__itemsDataType = 'array';
1502   public $items;
1503   public $kind;
1504   public $nextPageToken;
1505   public $prefixes;
1506   public function setItems(/* array(Google_StorageObject) */ $items) {
1507     $this->assertIsArray($items, 'Google_StorageObject', __METHOD__);
1508     $this->items = $items;
1509   }
1510   public function getItems() {
1511     return $this->items;
1512   }
1513   public function setKind( $kind) {
1514     $this->kind = $kind;
1515   }
1516   public function getKind() {
1517     return $this->kind;
1518   }
1519   public function setNextPageToken( $nextPageToken) {
1520     $this->nextPageToken = $nextPageToken;
1521   }
1522   public function getNextPageToken() {
1523     return $this->nextPageToken;
1524   }
1525   public function setPrefixes(/* array(Google_string) */ $prefixes) {
1526     $this->assertIsArray($prefixes, 'Google_string', __METHOD__);
1527     $this->prefixes = $prefixes;
1528   }
1529   public function getPrefixes() {
1530     return $this->prefixes;
1531   }
1532 }
1533 
1534 class Google_StorageObject extends Google_Model {
1535   protected $__aclType = 'Google_ObjectAccessControl';
1536   protected $__aclDataType = 'array';
1537   public $acl;
1538   public $bucket;
1539   public $cacheControl;
1540   public $componentCount;
1541   public $contentDisposition;
1542   public $contentEncoding;
1543   public $contentLanguage;
1544   public $contentType;
1545   public $crc32c;
1546   public $etag;
1547   public $generation;
1548   public $id;
1549   public $kind;
1550   public $md5Hash;
1551   public $mediaLink;
1552   public $metadata;
1553   public $metageneration;
1554   public $name;
1555   protected $__ownerType = 'Google_StorageObjectOwner';
1556   protected $__ownerDataType = '';
1557   public $owner;
1558   public $selfLink;
1559   public $size;
1560   public $timeDeleted;
1561   public $updated;
1562   public function setAcl(/* array(Google_ObjectAccessControl) */ $acl) {
1563     $this->assertIsArray($acl, 'Google_ObjectAccessControl', __METHOD__);
1564     $this->acl = $acl;
1565   }
1566   public function getAcl() {
1567     return $this->acl;
1568   }
1569   public function setBucket( $bucket) {
1570     $this->bucket = $bucket;
1571   }
1572   public function getBucket() {
1573     return $this->bucket;
1574   }
1575   public function setCacheControl( $cacheControl) {
1576     $this->cacheControl = $cacheControl;
1577   }
1578   public function getCacheControl() {
1579     return $this->cacheControl;
1580   }
1581   public function setComponentCount( $componentCount) {
1582     $this->componentCount = $componentCount;
1583   }
1584   public function getComponentCount() {
1585     return $this->componentCount;
1586   }
1587   public function setContentDisposition( $contentDisposition) {
1588     $this->contentDisposition = $contentDisposition;
1589   }
1590   public function getContentDisposition() {
1591     return $this->contentDisposition;
1592   }
1593   public function setContentEncoding( $contentEncoding) {
1594     $this->contentEncoding = $contentEncoding;
1595   }
1596   public function getContentEncoding() {
1597     return $this->contentEncoding;
1598   }
1599   public function setContentLanguage( $contentLanguage) {
1600     $this->contentLanguage = $contentLanguage;
1601   }
1602   public function getContentLanguage() {
1603     return $this->contentLanguage;
1604   }
1605   public function setContentType( $contentType) {
1606     $this->contentType = $contentType;
1607   }
1608   public function getContentType() {
1609     return $this->contentType;
1610   }
1611   public function setCrc32c( $crc32c) {
1612     $this->crc32c = $crc32c;
1613   }
1614   public function getCrc32c() {
1615     return $this->crc32c;
1616   }
1617   public function setEtag( $etag) {
1618     $this->etag = $etag;
1619   }
1620   public function getEtag() {
1621     return $this->etag;
1622   }
1623   public function setGeneration( $generation) {
1624     $this->generation = $generation;
1625   }
1626   public function getGeneration() {
1627     return $this->generation;
1628   }
1629   public function setId( $id) {
1630     $this->id = $id;
1631   }
1632   public function getId() {
1633     return $this->id;
1634   }
1635   public function setKind( $kind) {
1636     $this->kind = $kind;
1637   }
1638   public function getKind() {
1639     return $this->kind;
1640   }
1641   public function setMd5Hash( $md5Hash) {
1642     $this->md5Hash = $md5Hash;
1643   }
1644   public function getMd5Hash() {
1645     return $this->md5Hash;
1646   }
1647   public function setMediaLink( $mediaLink) {
1648     $this->mediaLink = $mediaLink;
1649   }
1650   public function getMediaLink() {
1651     return $this->mediaLink;
1652   }
1653   public function setMetadata( $metadata) {
1654     $this->metadata = $metadata;
1655   }
1656   public function getMetadata() {
1657     return $this->metadata;
1658   }
1659   public function setMetageneration( $metageneration) {
1660     $this->metageneration = $metageneration;
1661   }
1662   public function getMetageneration() {
1663     return $this->metageneration;
1664   }
1665   public function setName( $name) {
1666     $this->name = $name;
1667   }
1668   public function getName() {
1669     return $this->name;
1670   }
1671   public function setOwner(Google_StorageObjectOwner $owner) {
1672     $this->owner = $owner;
1673   }
1674   public function getOwner() {
1675     return $this->owner;
1676   }
1677   public function setSelfLink( $selfLink) {
1678     $this->selfLink = $selfLink;
1679   }
1680   public function getSelfLink() {
1681     return $this->selfLink;
1682   }
1683   public function setSize( $size) {
1684     $this->size = $size;
1685   }
1686   public function getSize() {
1687     return $this->size;
1688   }
1689   public function setTimeDeleted( $timeDeleted) {
1690     $this->timeDeleted = $timeDeleted;
1691   }
1692   public function getTimeDeleted() {
1693     return $this->timeDeleted;
1694   }
1695   public function setUpdated( $updated) {
1696     $this->updated = $updated;
1697   }
1698   public function getUpdated() {
1699     return $this->updated;
1700   }
1701 }
1702 
1703 class Google_StorageObjectOwner extends Google_Model {
1704   public $entity;
1705   public $entityId;
1706   public function setEntity( $entity) {
1707     $this->entity = $entity;
1708   }
1709   public function getEntity() {
1710     return $this->entity;
1711   }
1712   public function setEntityId( $entityId) {
1713     $this->entityId = $entityId;
1714   }
1715   public function getEntityId() {
1716     return $this->entityId;
1717   }
1718 }
1719