/src/Google/Service/Storage.php
PHP | 3111 lines | 2154 code | 265 blank | 692 comment | 0 complexity | 8fc31e2b8a9b8c9c14e1fe821b1f8fc4 MD5 | raw file
Large files files are truncated, but you can click here to view the full file
- <?php
- /*
- * Copyright 2010 Google Inc.
- *
- * Licensed under the Apache License, Version 2.0 (the "License"); you may not
- * use this file except in compliance with the License. You may obtain a copy of
- * the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
- * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
- * License for the specific language governing permissions and limitations under
- * the License.
- */
- /**
- * Service definition for Storage (v1beta2).
- *
- * <p>
- * Lets you store and retrieve potentially-large, immutable data objects.
- * </p>
- *
- * <p>
- * For more information about this service, see the API
- * <a href="https://developers.google.com/storage/docs/json_api/" target="_blank">Documentation</a>
- * </p>
- *
- * @author Google, Inc.
- */
- class Google_Service_Storage extends Google_Service
- {
- /** Manage your data and permissions in Google Cloud Storage. */
- const DEVSTORAGE_FULL_CONTROL = "https://www.googleapis.com/auth/devstorage.full_control";
- /** View your data in Google Cloud Storage. */
- const DEVSTORAGE_READ_ONLY = "https://www.googleapis.com/auth/devstorage.read_only";
- /** Manage your data in Google Cloud Storage. */
- const DEVSTORAGE_READ_WRITE = "https://www.googleapis.com/auth/devstorage.read_write";
- public $bucketAccessControls;
- public $buckets;
- public $channels;
- public $defaultObjectAccessControls;
- public $objectAccessControls;
- public $objects;
-
- /**
- * Constructs the internal representation of the Storage service.
- *
- * @param Google_Client $client
- */
- public function __construct(Google_Client $client)
- {
- parent::__construct($client);
- $this->servicePath = 'storage/v1beta2/';
- $this->version = 'v1beta2';
- $this->serviceName = 'storage';
- $this->bucketAccessControls = new Google_Service_Storage_BucketAccessControls_Resource(
- $this,
- $this->serviceName,
- 'bucketAccessControls',
- array(
- 'methods' => array(
- 'delete' => array(
- 'path' => 'b/{bucket}/acl/{entity}',
- 'httpMethod' => 'DELETE',
- 'parameters' => array(
- 'bucket' => array(
- 'location' => 'path',
- 'type' => 'string',
- 'required' => true,
- ),
- 'entity' => array(
- 'location' => 'path',
- 'type' => 'string',
- 'required' => true,
- ),
- ),
- ),'get' => array(
- 'path' => 'b/{bucket}/acl/{entity}',
- 'httpMethod' => 'GET',
- 'parameters' => array(
- 'bucket' => array(
- 'location' => 'path',
- 'type' => 'string',
- 'required' => true,
- ),
- 'entity' => array(
- 'location' => 'path',
- 'type' => 'string',
- 'required' => true,
- ),
- ),
- ),'insert' => array(
- 'path' => 'b/{bucket}/acl',
- 'httpMethod' => 'POST',
- 'parameters' => array(
- 'bucket' => array(
- 'location' => 'path',
- 'type' => 'string',
- 'required' => true,
- ),
- ),
- ),'list' => array(
- 'path' => 'b/{bucket}/acl',
- 'httpMethod' => 'GET',
- 'parameters' => array(
- 'bucket' => array(
- 'location' => 'path',
- 'type' => 'string',
- 'required' => true,
- ),
- ),
- ),'patch' => array(
- 'path' => 'b/{bucket}/acl/{entity}',
- 'httpMethod' => 'PATCH',
- 'parameters' => array(
- 'bucket' => array(
- 'location' => 'path',
- 'type' => 'string',
- 'required' => true,
- ),
- 'entity' => array(
- 'location' => 'path',
- 'type' => 'string',
- 'required' => true,
- ),
- ),
- ),'update' => array(
- 'path' => 'b/{bucket}/acl/{entity}',
- 'httpMethod' => 'PUT',
- 'parameters' => array(
- 'bucket' => array(
- 'location' => 'path',
- 'type' => 'string',
- 'required' => true,
- ),
- 'entity' => array(
- 'location' => 'path',
- 'type' => 'string',
- 'required' => true,
- ),
- ),
- ),
- )
- )
- );
- $this->buckets = new Google_Service_Storage_Buckets_Resource(
- $this,
- $this->serviceName,
- 'buckets',
- array(
- 'methods' => array(
- 'delete' => array(
- 'path' => 'b/{bucket}',
- 'httpMethod' => 'DELETE',
- 'parameters' => array(
- 'bucket' => array(
- 'location' => 'path',
- 'type' => 'string',
- 'required' => true,
- ),
- 'ifMetagenerationMatch' => array(
- 'location' => 'query',
- 'type' => 'string',
- ),
- 'ifMetagenerationNotMatch' => array(
- 'location' => 'query',
- 'type' => 'string',
- ),
- ),
- ),'get' => array(
- 'path' => 'b/{bucket}',
- 'httpMethod' => 'GET',
- 'parameters' => array(
- 'bucket' => array(
- 'location' => 'path',
- 'type' => 'string',
- 'required' => true,
- ),
- 'ifMetagenerationMatch' => array(
- 'location' => 'query',
- 'type' => 'string',
- ),
- 'ifMetagenerationNotMatch' => array(
- 'location' => 'query',
- 'type' => 'string',
- ),
- 'projection' => array(
- 'location' => 'query',
- 'type' => 'string',
- ),
- ),
- ),'insert' => array(
- 'path' => 'b',
- 'httpMethod' => 'POST',
- 'parameters' => array(
- 'project' => array(
- 'location' => 'query',
- 'type' => 'string',
- 'required' => true,
- ),
- 'projection' => array(
- 'location' => 'query',
- 'type' => 'string',
- ),
- ),
- ),'list' => array(
- 'path' => 'b',
- 'httpMethod' => 'GET',
- 'parameters' => array(
- 'project' => array(
- 'location' => 'query',
- 'type' => 'string',
- 'required' => true,
- ),
- 'pageToken' => array(
- 'location' => 'query',
- 'type' => 'string',
- ),
- 'projection' => array(
- 'location' => 'query',
- 'type' => 'string',
- ),
- 'maxResults' => array(
- 'location' => 'query',
- 'type' => 'integer',
- ),
- ),
- ),'patch' => array(
- 'path' => 'b/{bucket}',
- 'httpMethod' => 'PATCH',
- 'parameters' => array(
- 'bucket' => array(
- 'location' => 'path',
- 'type' => 'string',
- 'required' => true,
- ),
- 'ifMetagenerationMatch' => array(
- 'location' => 'query',
- 'type' => 'string',
- ),
- 'ifMetagenerationNotMatch' => array(
- 'location' => 'query',
- 'type' => 'string',
- ),
- 'projection' => array(
- 'location' => 'query',
- 'type' => 'string',
- ),
- ),
- ),'update' => array(
- 'path' => 'b/{bucket}',
- 'httpMethod' => 'PUT',
- 'parameters' => array(
- 'bucket' => array(
- 'location' => 'path',
- 'type' => 'string',
- 'required' => true,
- ),
- 'ifMetagenerationMatch' => array(
- 'location' => 'query',
- 'type' => 'string',
- ),
- 'ifMetagenerationNotMatch' => array(
- 'location' => 'query',
- 'type' => 'string',
- ),
- 'projection' => array(
- 'location' => 'query',
- 'type' => 'string',
- ),
- ),
- ),
- )
- )
- );
- $this->channels = new Google_Service_Storage_Channels_Resource(
- $this,
- $this->serviceName,
- 'channels',
- array(
- 'methods' => array(
- 'stop' => array(
- 'path' => 'channels/stop',
- 'httpMethod' => 'POST',
- 'parameters' => array(),
- ),
- )
- )
- );
- $this->defaultObjectAccessControls = new Google_Service_Storage_DefaultObjectAccessControls_Resource(
- $this,
- $this->serviceName,
- 'defaultObjectAccessControls',
- array(
- 'methods' => array(
- 'delete' => array(
- 'path' => 'b/{bucket}/defaultObjectAcl/{entity}',
- 'httpMethod' => 'DELETE',
- 'parameters' => array(
- 'bucket' => array(
- 'location' => 'path',
- 'type' => 'string',
- 'required' => true,
- ),
- 'entity' => array(
- 'location' => 'path',
- 'type' => 'string',
- 'required' => true,
- ),
- ),
- ),'get' => array(
- 'path' => 'b/{bucket}/defaultObjectAcl/{entity}',
- 'httpMethod' => 'GET',
- 'parameters' => array(
- 'bucket' => array(
- 'location' => 'path',
- 'type' => 'string',
- 'required' => true,
- ),
- 'entity' => array(
- 'location' => 'path',
- 'type' => 'string',
- 'required' => true,
- ),
- ),
- ),'insert' => array(
- 'path' => 'b/{bucket}/defaultObjectAcl',
- 'httpMethod' => 'POST',
- 'parameters' => array(
- 'bucket' => array(
- 'location' => 'path',
- 'type' => 'string',
- 'required' => true,
- ),
- ),
- ),'list' => array(
- 'path' => 'b/{bucket}/defaultObjectAcl',
- 'httpMethod' => 'GET',
- 'parameters' => array(
- 'bucket' => array(
- 'location' => 'path',
- 'type' => 'string',
- 'required' => true,
- ),
- 'ifMetagenerationMatch' => array(
- 'location' => 'query',
- 'type' => 'string',
- ),
- 'ifMetagenerationNotMatch' => array(
- 'location' => 'query',
- 'type' => 'string',
- ),
- ),
- ),'patch' => array(
- 'path' => 'b/{bucket}/defaultObjectAcl/{entity}',
- 'httpMethod' => 'PATCH',
- 'parameters' => array(
- 'bucket' => array(
- 'location' => 'path',
- 'type' => 'string',
- 'required' => true,
- ),
- 'entity' => array(
- 'location' => 'path',
- 'type' => 'string',
- 'required' => true,
- ),
- ),
- ),'update' => array(
- 'path' => 'b/{bucket}/defaultObjectAcl/{entity}',
- 'httpMethod' => 'PUT',
- 'parameters' => array(
- 'bucket' => array(
- 'location' => 'path',
- 'type' => 'string',
- 'required' => true,
- ),
- 'entity' => array(
- 'location' => 'path',
- 'type' => 'string',
- 'required' => true,
- ),
- ),
- ),
- )
- )
- );
- $this->objectAccessControls = new Google_Service_Storage_ObjectAccessControls_Resource(
- $this,
- $this->serviceName,
- 'objectAccessControls',
- array(
- 'methods' => array(
- 'delete' => array(
- 'path' => 'b/{bucket}/o/{object}/acl/{entity}',
- 'httpMethod' => 'DELETE',
- 'parameters' => array(
- 'bucket' => array(
- 'location' => 'path',
- 'type' => 'string',
- 'required' => true,
- ),
- 'object' => array(
- 'location' => 'path',
- 'type' => 'string',
- 'required' => true,
- ),
- 'entity' => array(
- 'location' => 'path',
- 'type' => 'string',
- 'required' => true,
- ),
- 'generation' => array(
- 'location' => 'query',
- 'type' => 'string',
- ),
- ),
- ),'get' => array(
- 'path' => 'b/{bucket}/o/{object}/acl/{entity}',
- 'httpMethod' => 'GET',
- 'parameters' => array(
- 'bucket' => array(
- 'location' => 'path',
- 'type' => 'string',
- 'required' => true,
- ),
- 'object' => array(
- 'location' => 'path',
- 'type' => 'string',
- 'required' => true,
- ),
- 'entity' => array(
- 'location' => 'path',
- 'type' => 'string',
- 'required' => true,
- ),
- 'generation' => array(
- 'location' => 'query',
- 'type' => 'string',
- ),
- ),
- ),'insert' => array(
- 'path' => 'b/{bucket}/o/{object}/acl',
- 'httpMethod' => 'POST',
- 'parameters' => array(
- 'bucket' => array(
- 'location' => 'path',
- 'type' => 'string',
- 'required' => true,
- ),
- 'object' => array(
- 'location' => 'path',
- 'type' => 'string',
- 'required' => true,
- ),
- 'generation' => array(
- 'location' => 'query',
- 'type' => 'string',
- ),
- ),
- ),'list' => array(
- 'path' => 'b/{bucket}/o/{object}/acl',
- 'httpMethod' => 'GET',
- 'parameters' => array(
- 'bucket' => array(
- 'location' => 'path',
- 'type' => 'string',
- 'required' => true,
- ),
- 'object' => array(
- 'location' => 'path',
- 'type' => 'string',
- 'required' => true,
- ),
- 'generation' => array(
- 'location' => 'query',
- 'type' => 'string',
- ),
- ),
- ),'patch' => array(
- 'path' => 'b/{bucket}/o/{object}/acl/{entity}',
- 'httpMethod' => 'PATCH',
- 'parameters' => array(
- 'bucket' => array(
- 'location' => 'path',
- 'type' => 'string',
- 'required' => true,
- ),
- 'object' => array(
- 'location' => 'path',
- 'type' => 'string',
- 'required' => true,
- ),
- 'entity' => array(
- 'location' => 'path',
- 'type' => 'string',
- 'required' => true,
- ),
- 'generation' => array(
- 'location' => 'query',
- 'type' => 'string',
- ),
- ),
- ),'update' => array(
- 'path' => 'b/{bucket}/o/{object}/acl/{entity}',
- 'httpMethod' => 'PUT',
- 'parameters' => array(
- 'bucket' => array(
- 'location' => 'path',
- 'type' => 'string',
- 'required' => true,
- ),
- 'object' => array(
- 'location' => 'path',
- 'type' => 'string',
- 'required' => true,
- ),
- 'entity' => array(
- 'location' => 'path',
- 'type' => 'string',
- 'required' => true,
- ),
- 'generation' => array(
- 'location' => 'query',
- 'type' => 'string',
- ),
- ),
- ),
- )
- )
- );
- $this->objects = new Google_Service_Storage_Objects_Resource(
- $this,
- $this->serviceName,
- 'objects',
- array(
- 'methods' => array(
- 'compose' => array(
- 'path' => 'b/{destinationBucket}/o/{destinationObject}/compose',
- 'httpMethod' => 'POST',
- 'parameters' => array(
- 'destinationBucket' => array(
- 'location' => 'path',
- 'type' => 'string',
- 'required' => true,
- ),
- 'destinationObject' => array(
- 'location' => 'path',
- 'type' => 'string',
- 'required' => true,
- ),
- 'ifMetagenerationMatch' => array(
- 'location' => 'query',
- 'type' => 'string',
- ),
- 'ifGenerationMatch' => array(
- 'location' => 'query',
- 'type' => 'string',
- ),
- ),
- ),'copy' => array(
- 'path' => 'b/{sourceBucket}/o/{sourceObject}/copyTo/b/{destinationBucket}/o/{destinationObject}',
- 'httpMethod' => 'POST',
- 'parameters' => array(
- 'sourceBucket' => array(
- 'location' => 'path',
- 'type' => 'string',
- 'required' => true,
- ),
- 'sourceObject' => array(
- 'location' => 'path',
- 'type' => 'string',
- 'required' => true,
- ),
- 'destinationBucket' => array(
- 'location' => 'path',
- 'type' => 'string',
- 'required' => true,
- ),
- 'destinationObject' => array(
- 'location' => 'path',
- 'type' => 'string',
- 'required' => true,
- ),
- 'ifSourceGenerationNotMatch' => array(
- 'location' => 'query',
- 'type' => 'string',
- ),
- 'ifGenerationMatch' => array(
- 'location' => 'query',
- 'type' => 'string',
- ),
- 'ifGenerationNotMatch' => array(
- 'location' => 'query',
- 'type' => 'string',
- ),
- 'ifSourceMetagenerationNotMatch' => array(
- 'location' => 'query',
- 'type' => 'string',
- ),
- 'ifMetagenerationNotMatch' => array(
- 'location' => 'query',
- 'type' => 'string',
- ),
- 'sourceGeneration' => array(
- 'location' => 'query',
- 'type' => 'string',
- ),
- 'ifSourceGenerationMatch' => array(
- 'location' => 'query',
- 'type' => 'string',
- ),
- 'ifSourceMetagenerationMatch' => array(
- 'location' => 'query',
- 'type' => 'string',
- ),
- 'ifMetagenerationMatch' => array(
- 'location' => 'query',
- 'type' => 'string',
- ),
- 'projection' => array(
- 'location' => 'query',
- 'type' => 'string',
- ),
- ),
- ),'delete' => array(
- 'path' => 'b/{bucket}/o/{object}',
- 'httpMethod' => 'DELETE',
- 'parameters' => array(
- 'bucket' => array(
- 'location' => 'path',
- 'type' => 'string',
- 'required' => true,
- ),
- 'object' => array(
- 'location' => 'path',
- 'type' => 'string',
- 'required' => true,
- ),
- 'ifGenerationNotMatch' => array(
- 'location' => 'query',
- 'type' => 'string',
- ),
- 'generation' => array(
- 'location' => 'query',
- 'type' => 'string',
- ),
- 'ifMetagenerationMatch' => array(
- 'location' => 'query',
- 'type' => 'string',
- ),
- 'ifGenerationMatch' => array(
- 'location' => 'query',
- 'type' => 'string',
- ),
- 'ifMetagenerationNotMatch' => array(
- 'location' => 'query',
- 'type' => 'string',
- ),
- ),
- ),'get' => array(
- 'path' => 'b/{bucket}/o/{object}',
- 'httpMethod' => 'GET',
- 'parameters' => array(
- 'bucket' => array(
- 'location' => 'path',
- 'type' => 'string',
- 'required' => true,
- ),
- 'object' => array(
- 'location' => 'path',
- 'type' => 'string',
- 'required' => true,
- ),
- 'ifGenerationNotMatch' => array(
- 'location' => 'query',
- 'type' => 'string',
- ),
- 'generation' => array(
- 'location' => 'query',
- 'type' => 'string',
- ),
- 'ifMetagenerationMatch' => array(
- 'location' => 'query',
- 'type' => 'string',
- ),
- 'ifGenerationMatch' => array(
- 'location' => 'query',
- 'type' => 'string',
- ),
- 'ifMetagenerationNotMatch' => array(
- 'location' => 'query',
- 'type' => 'string',
- ),
- 'projection' => array(
- 'location' => 'query',
- 'type' => 'string',
- ),
- ),
- ),'insert' => array(
- 'path' => 'b/{bucket}/o',
- 'httpMethod' => 'POST',
- 'parameters' => array(
- 'bucket' => array(
- 'location' => 'path',
- 'type' => 'string',
- 'required' => true,
- ),
- 'projection' => array(
- 'location' => 'query',
- 'type' => 'string',
- ),
- 'ifGenerationNotMatch' => array(
- 'location' => 'query',
- 'type' => 'string',
- ),
- 'ifMetagenerationMatch' => array(
- 'location' => 'query',
- 'type' => 'string',
- ),
- 'ifGenerationMatch' => array(
- 'location' => 'query',
- 'type' => 'string',
- ),
- 'ifMetagenerationNotMatch' => array(
- 'location' => 'query',
- 'type' => 'string',
- ),
- 'name' => array(
- 'location' => 'query',
- 'type' => 'string',
- ),
- ),
- ),'list' => array(
- 'path' => 'b/{bucket}/o',
- 'httpMethod' => 'GET',
- 'parameters' => array(
- 'bucket' => array(
- 'location' => 'path',
- 'type' => 'string',
- 'required' => true,
- ),
- 'projection' => array(
- 'location' => 'query',
- 'type' => 'string',
- ),
- 'versions' => array(
- 'location' => 'query',
- 'type' => 'boolean',
- ),
- 'prefix' => array(
- 'location' => 'query',
- 'type' => 'string',
- ),
- 'maxResults' => array(
- 'location' => 'query',
- 'type' => 'integer',
- ),
- 'pageToken' => array(
- 'location' => 'query',
- 'type' => 'string',
- ),
- 'delimiter' => array(
- 'location' => 'query',
- 'type' => 'string',
- ),
- ),
- ),'patch' => array(
- 'path' => 'b/{bucket}/o/{object}',
- 'httpMethod' => 'PATCH',
- 'parameters' => array(
- 'bucket' => array(
- 'location' => 'path',
- 'type' => 'string',
- 'required' => true,
- ),
- 'object' => array(
- 'location' => 'path',
- 'type' => 'string',
- 'required' => true,
- ),
- 'ifGenerationNotMatch' => array(
- 'location' => 'query',
- 'type' => 'string',
- ),
- 'generation' => array(
- 'location' => 'query',
- 'type' => 'string',
- ),
- 'ifMetagenerationMatch' => array(
- 'location' => 'query',
- 'type' => 'string',
- ),
- 'ifGenerationMatch' => array(
- 'location' => 'query',
- 'type' => 'string',
- ),
- 'ifMetagenerationNotMatch' => array(
- 'location' => 'query',
- 'type' => 'string',
- ),
- 'projection' => array(
- 'location' => 'query',
- 'type' => 'string',
- ),
- ),
- ),'update' => array(
- 'path' => 'b/{bucket}/o/{object}',
- 'httpMethod' => 'PUT',
- 'parameters' => array(
- 'bucket' => array(
- 'location' => 'path',
- 'type' => 'string',
- 'required' => true,
- ),
- 'object' => array(
- 'location' => 'path',
- 'type' => 'string',
- 'required' => true,
- ),
- 'ifGenerationNotMatch' => array(
- 'location' => 'query',
- 'type' => 'string',
- ),
- 'generation' => array(
- 'location' => 'query',
- 'type' => 'string',
- ),
- 'ifMetagenerationMatch' => array(
- 'location' => 'query',
- 'type' => 'string',
- ),
- 'ifGenerationMatch' => array(
- 'location' => 'query',
- 'type' => 'string',
- ),
- 'ifMetagenerationNotMatch' => array(
- 'location' => 'query',
- 'type' => 'string',
- ),
- 'projection' => array(
- 'location' => 'query',
- 'type' => 'string',
- ),
- ),
- ),'watchAll' => array(
- 'path' => 'b/{bucket}/o/watch',
- 'httpMethod' => 'POST',
- 'parameters' => array(
- 'bucket' => array(
- 'location' => 'path',
- 'type' => 'string',
- 'required' => true,
- ),
- 'projection' => array(
- 'location' => 'query',
- 'type' => 'string',
- ),
- 'versions' => array(
- 'location' => 'query',
- 'type' => 'boolean',
- ),
- 'prefix' => array(
- 'location' => 'query',
- 'type' => 'string',
- ),
- 'maxResults' => array(
- 'location' => 'query',
- 'type' => 'integer',
- ),
- 'pageToken' => array(
- 'location' => 'query',
- 'type' => 'string',
- ),
- 'delimiter' => array(
- 'location' => 'query',
- 'type' => 'string',
- ),
- ),
- ),
- )
- )
- );
- }
- }
- /**
- * The "bucketAccessControls" collection of methods.
- * Typical usage is:
- * <code>
- * $storageService = new Google_Service_Storage(...);
- * $bucketAccessControls = $storageService->bucketAccessControls;
- * </code>
- */
- class Google_Service_Storage_BucketAccessControls_Resource extends Google_Service_Resource
- {
- /**
- * Permanently deletes the ACL entry for the specified entity on the specified
- * bucket. (bucketAccessControls.delete)
- *
- * @param string $bucket
- * Name of a bucket.
- * @param string $entity
- * The entity holding the permission. Can be user-userId, user-emailAddress, group-groupId, group-
- * emailAddress, allUsers, or allAuthenticatedUsers.
- * @param array $optParams Optional parameters.
- */
- public function delete($bucket, $entity, $optParams = array())
- {
- $params = array('bucket' => $bucket, 'entity' => $entity);
- $params = array_merge($params, $optParams);
- return $this->call('delete', array($params));
- }
- /**
- * Returns the ACL entry for the specified entity on the specified bucket.
- * (bucketAccessControls.get)
- *
- * @param string $bucket
- * Name of a bucket.
- * @param string $entity
- * The entity holding the permission. Can be user-userId, user-emailAddress, group-groupId, group-
- * emailAddress, allUsers, or allAuthenticatedUsers.
- * @param array $optParams Optional parameters.
- * @return Google_Service_Storage_BucketAccessControl
- */
- public function get($bucket, $entity, $optParams = array())
- {
- $params = array('bucket' => $bucket, 'entity' => $entity);
- $params = array_merge($params, $optParams);
- return $this->call('get', array($params), "Google_Service_Storage_BucketAccessControl");
- }
- /**
- * Creates a new ACL entry on the specified bucket.
- * (bucketAccessControls.insert)
- *
- * @param string $bucket
- * Name of a bucket.
- * @param Google_BucketAccessControl $postBody
- * @param array $optParams Optional parameters.
- * @return Google_Service_Storage_BucketAccessControl
- */
- public function insert($bucket, Google_Service_Storage_BucketAccessControl $postBody, $optParams = array())
- {
- $params = array('bucket' => $bucket, 'postBody' => $postBody);
- $params = array_merge($params, $optParams);
- return $this->call('insert', array($params), "Google_Service_Storage_BucketAccessControl");
- }
- /**
- * Retrieves ACL entries on the specified bucket.
- * (bucketAccessControls.listBucketAccessControls)
- *
- * @param string $bucket
- * Name of a bucket.
- * @param array $optParams Optional parameters.
- * @return Google_Service_Storage_BucketAccessControls
- */
- public function listBucketAccessControls($bucket, $optParams = array())
- {
- $params = array('bucket' => $bucket);
- $params = array_merge($params, $optParams);
- return $this->call('list', array($params), "Google_Service_Storage_BucketAccessControls");
- }
- /**
- * Updates an ACL entry on the specified bucket. This method supports patch
- * semantics. (bucketAccessControls.patch)
- *
- * @param string $bucket
- * Name of a bucket.
- * @param string $entity
- * The entity holding the permission. Can be user-userId, user-emailAddress, group-groupId, group-
- * emailAddress, allUsers, or allAuthenticatedUsers.
- * @param Google_BucketAccessControl $postBody
- * @param array $optParams Optional parameters.
- * @return Google_Service_Storage_BucketAccessControl
- */
- public function patch($bucket, $entity, Google_Service_Storage_BucketAccessControl $postBody, $optParams = array())
- {
- $params = array('bucket' => $bucket, 'entity' => $entity, 'postBody' => $postBody);
- $params = array_merge($params, $optParams);
- return $this->call('patch', array($params), "Google_Service_Storage_BucketAccessControl");
- }
- /**
- * Updates an ACL entry on the specified bucket. (bucketAccessControls.update)
- *
- * @param string $bucket
- * Name of a bucket.
- * @param string $entity
- * The entity holding the permission. Can be user-userId, user-emailAddress, group-groupId, group-
- * emailAddress, allUsers, or allAuthenticatedUsers.
- * @param Google_BucketAccessControl $postBody
- * @param array $optParams Optional parameters.
- * @return Google_Service_Storage_BucketAccessControl
- */
- public function update($bucket, $entity, Google_Service_Storage_BucketAccessControl $postBody, $optParams = array())
- {
- $params = array('bucket' => $bucket, 'entity' => $entity, 'postBody' => $postBody);
- $params = array_merge($params, $optParams);
- return $this->call('update', array($params), "Google_Service_Storage_BucketAccessControl");
- }
- }
- /**
- * The "buckets" collection of methods.
- * Typical usage is:
- * <code>
- * $storageService = new Google_Service_Storage(...);
- * $buckets = $storageService->buckets;
- * </code>
- */
- class Google_Service_Storage_Buckets_Resource extends Google_Service_Resource
- {
- /**
- * Permanently deletes an empty bucket. (buckets.delete)
- *
- * @param string $bucket
- * Name of a bucket.
- * @param array $optParams Optional parameters.
- *
- * @opt_param string ifMetagenerationMatch
- * Makes the return of the bucket metadata conditional on whether the bucket's current
- * metageneration matches the given value.
- * @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.
- */
- public function delete($bucket, $optParams = array())
- {
- $params = array('bucket' => $bucket);
- $params = array_merge($params, $optParams);
- return $this->call('delete', array($params));
- }
- /**
- * Returns metadata for the specified bucket. (buckets.get)
- *
- * @param string $bucket
- * Name of a bucket.
- * @param array $optParams Optional parameters.
- *
- * @opt_param string ifMetagenerationMatch
- * Makes the return of the bucket metadata conditional on whether the bucket's current
- * metageneration matches the given value.
- * @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.
- * @opt_param string projection
- * Set of properties to return. Defaults to noAcl.
- * @return Google_Service_Storage_Bucket
- */
- public function get($bucket, $optParams = array())
- {
- $params = array('bucket' => $bucket);
- $params = array_merge($params, $optParams);
- return $this->call('get', array($params), "Google_Service_Storage_Bucket");
- }
- /**
- * Creates a new bucket. (buckets.insert)
- *
- * @param string $project
- * A valid API project identifier.
- * @param Google_Bucket $postBody
- * @param array $optParams Optional parameters.
- *
- * @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.
- * @return Google_Service_Storage_Bucket
- */
- public function insert($project, Google_Service_Storage_Bucket $postBody, $optParams = array())
- {
- $params = array('project' => $project, 'postBody' => $postBody);
- $params = array_merge($params, $optParams);
- return $this->call('insert', array($params), "Google_Service_Storage_Bucket");
- }
- /**
- * Retrieves a list of buckets for a given project. (buckets.listBuckets)
- *
- * @param string $project
- * A valid API project identifier.
- * @param array $optParams Optional parameters.
- *
- * @opt_param string pageToken
- * A previously-returned page token representing part of the larger set of results to view.
- * @opt_param string projection
- * Set of properties to return. Defaults to noAcl.
- * @opt_param string maxResults
- * Maximum number of buckets to return.
- * @return Google_Service_Storage_Buckets
- */
- public function listBuckets($project, $optParams = array())
- {
- $params = array('project' => $project);
- $params = array_merge($params, $optParams);
- return $this->call('list', array($params), "Google_Service_Storage_Buckets");
- }
- /**
- * Updates a bucket. This method supports patch semantics. (buckets.patch)
- *
- * @param string $bucket
- * Name of a bucket.
- * @param Google_Bucket $postBody
- * @param array $optParams Optional parameters.
- *
- * @opt_param string ifMetagenerationMatch
- * Makes the return of the bucket metadata conditional on whether the bucket's current
- * metageneration matches the given value.
- * @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.
- * @opt_param string projection
- * Set of properties to return. Defaults to full.
- * @return Google_Service_Storage_Bucket
- */
- public function patch($bucket, Google_Service_Storage_Bucket $postBody, $optParams = array())
- {
- $params = array('bucket' => $bucket, 'postBody' => $postBody);
- $params = array_merge($params, $optParams);
- return $this->call('patch', array($params), "Google_Service_Storage_Bucket");
- }
- /**
- * Updates a bucket. (buckets.update)
- *
- * @param string $bucket
- * Name of a bucket.
- * @param Google_Bucket $postBody
- * @param array $optParams Optional parameters.
- *
- * @opt_param string ifMetagenerationMatch
- * Makes the return of the bucket metadata conditional on whether the bucket's current
- * metageneration matches the given value.
- * @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.
- * @opt_param string projection
- * Set of properties to return. Defaults to full.
- * @return Google_Service_Storage_Bucket
- */
- public function update($bucket, Google_Service_Storage_Bucket $postBody, $optParams = array())
- {
- $params = array('bucket' => $bucket, 'postBody' => $postBody);
- $params = array_merge($params, $optParams);
- return $this->call('update', array($params), "Google_Service_Storage_Bucket");
- }
- }
- /**
- * The "channels" collection of methods.
- * Typical usage is:
- * <code>
- * $storageService = new Google_Service_Storage(...);
- * $channels = $storageService->channels;
- * </code>
- */
- class Google_Service_Storage_Channels_Resource extends Google_Service_Resource
- {
- /**
- * Stop watching resources through this channel (channels.stop)
- *
- * @param Google_Channel $postBody
- * @param array $optParams Optional parameters.
- */
- public function stop(Google_Service_Storage_Channel $postBody, $optParams = array())
- {
- $params = array('postBody' => $postBody);
- $params = array_merge($params, $optParams);
- return $this->call('stop', array($params));
- }
- }
- /**
- * The "defaultObjectAccessControls" collection of methods.
- * Typical usage is:
- * <code>
- * $storageService = new Google_Service_Storage(...);
- * $defaultObjectAccessControls = $storageService->defaultObjectAccessControls;
- * </code>
- */
- class Google_Service_Storage_DefaultObjectAccessControls_Resource extends Google_Service_Resource
- {
- /**
- * Permanently deletes the default object ACL entry for the specified entity on
- * the specified bucket. (defaultObjectAccessControls.delete)
- *
- * @param string $bucket
- * Name of a bucket.
- * @param string $entity
- * The entity holding the permission. Can be user-userId, user-emailAddress, group-groupId, group-
- * emailAddress, allUsers, or allAuthenticatedUsers.
- * @param array $optParams Optional parameters.
- */
- public function delete($bucket, $entity, $optParams = array())
- {
- $params = array('bucket' => $bucket, 'entity' => $entity);
- $params = array_merge($params, $optParams);
- return $this->call('delete', array($params));
- }
- /**
- * Returns the default object ACL entry for the specified entity on the
- * specified bucket. (defaultObjectAccessControls.get)
- *
- * @param string $bucket
- * Name of a bucket.
- * @param string $entity
- * The entity holding the permission. Can be user-userId, user-emailAddress, group-groupId, group-
- * emailAddress, allUsers, or allAuthenticatedUsers.
- * @param array $optParams Optional parameters.
- * @return Google_Service_Storage_ObjectAccessControl
- */
- public function get($bucket, $entity, $optParams = array())
- {
- $params = array('bucket' => $bucket, 'entity' => $entity);
- $params = array_merge($params, $optParams);
- return $this->call('get', array($params), "Google_Service_Storage_ObjectAccessControl");
- }
- /**
- * Creates a new default object ACL entry on the specified bucket.
- * (defaultObjectAccessControls.insert)
- *
- * @param string $bucket
- * Name of a bucket.
- * @param Google_ObjectAccessControl $postBody
- * @param array $optParams Optional parameters.
- * @return Google_Service_Storage_ObjectAccessControl
- */
- public function insert($bucket, Google_Service_Storage_ObjectAccessControl $postBody, $optParams = array())
- {
- $params = array('bucket' => $bucket, 'postBody' => $postBody);
- $params = array_merge($params, $optParams);
- return $this->call('insert', array($params), "Google_Service_Storage_ObjectAccessControl");
- }
- /**
- * Retrieves default object ACL entries on the specified bucket.
- * (defaultObjectAccessControls.listDefaultObjectAccessControls)
- *
- * @param string $bucket
- * Name of a bucket.
- * @param array $optParams Optional parameters.
- *
- * @opt_param string ifMetagenerationMatch
- * Makes the operation conditional on whether the destination object's current metageneration
- * matches the given value.
- * @opt_param string ifMetagenerationNotMatch
- * Makes the operation conditional on whether the destination object's current metageneration does
- * not match the given value.
- * @return Google_Service_Storage_ObjectAccessControls
- */
- public function listDefaultObjectAccessControls($bucket, $optParams = array())
- {
- $params = array('bucket' => $bucket);
- $params = array_merge($params, $optParams);
- return $this->call('list', array($params), "Google_Service_Storage_ObjectAccessControls");
- }
- /**
- * Updates a default object ACL entry on the specified bucket. This method
- * supports patch semantics. (defaultObjectAccessControls.patch)
- *
- * @param string $bucket
- * Name of a bucket.
- * @param string $entity
- * The entity holding the permission. Can be user-userId, user-emailAddress, group-groupId, group-
- * emailAddress, allUsers, or allAuthenticatedUsers.
- * @param Google_ObjectAccessControl $postBody
- * @param array $optParams Optional parameters.
- * @return Google_Service_Storage_ObjectAccessControl
- */
- public function patch($bucket, $entity, Google_Service_Storage_ObjectAccessControl $postBody, $optParams = array())
- {
- $params = array('bucket' => $bucket, 'entity' => $entity, 'postBody' => $postBody);
- $params = array_merge($params, $optParams);
- return $this->call('patch', array($params), "Google_Service_Storage_ObjectAccessControl");
- }
- /**
- * Updates a default object ACL entry on the specified bucket.
- * (defaultObjectAccessControls.update)
- *
- * @param string $bucket
- * Name of a bucket.
- * @param string $entity
- * The entity holding the permission. Can be user-userId, user-emailAddress, group-groupId, group-
- * emailAddress, allUsers, or allAuthenticatedUsers.
- * @param Google_ObjectAccessControl $postBody
- * @param array $optParams Optional parameters.
- * @return Google_Service_Storage_ObjectAccessControl
- */
- public function update($bucket, $entity, Google_Service_Storage_ObjectAccessControl $postBody, $optParams = array())
- {
- $params = array('bucket' => $bucket, 'entity' => $entity, 'postBody' => $postBody);
- $params = array_merge($params, $optParams);
- return $this->call('update', array($params), "Google_Service_Storage_ObjectAccessControl");
- }
- }
- /**
- * The "objectAccessControls" collection of methods.
- * Typical usage is:
- * <code>
- * $storageService = new Google_Service_Storage(...);
- * $objectAccessControls = $storageService->objectAccessControls;
- * </code>
- */
- class Google_Service_Storage_ObjectAccessControls_Resource extends Google_Service_Resource
- {
- /**
- * Permanently deletes the ACL entry for the specified entity on the specified
- * object. (objectAccessControls.delete)
- *
- * @param string $bucket
- * Name of a bucket.
- * @param string $object
- * Name of the object.
- * @param string $entity
- * The entity holding the permission. Can be user-userId, user-emailAddress, group-groupId, group-
- * emailAddress, allUsers, or allAuthenticatedUsers.
- * @param array $optParams Optional parameters.
- *
- * @opt_param string generation
- * If present, selects a specific revision of this object (as opposed to the latest version, the
- * default).
- */
- public function delete($bucket, $object, $entity, $optParams = array())
- {
- $params = array('bucket' => $bucket, 'object' => $object, 'entity' => $entity);
- $params = array_merge($params, $optParams);
- return $this->call('delete', array($params));
- }
- /**
- * Returns the ACL entry for the specified entity on the specified object.
- * (objectAccessControls.get)
- *
- * @param string $bucket
- * Name of a bucket.
- * @param string $object
- * Name of the object.
- * @param string $entity
- * The entity holding the permission. Can be user-userId, user-emailAddress, group-groupId, group-
- * emailAddress, allUsers, or allAuthenticatedUsers.
- * @param array $optParams Optional parameters.
- *
- * @opt_param string generation
- * If present, selects a specific revision of this object (as opposed to the latest version, the
- * default).
- * @return Google_Service_Storage_ObjectAccessControl
- */
- public function get($bucket, $object, $entity, $optParams = array())
- {
- $params = array('bucket' => $bucket, 'object' => $object, 'entity' => $entity);
- $params = array_merge($params, $optParams);
- return $this->call('get', array($params), "Google_Service_Storage_ObjectAccessControl");
- }
- /**
- * Creates a new ACL entry on the specified object.
- * (objectAccessControls.insert)
- *
- * @param string $bucket
- * Name of a bucket.
- * @param string $object
- * Name of the object.
- * @param Google_ObjectAccessControl $postBody
- * @param array $optParams Optional parameters.
- *
- * @opt_param string generation
- * If present, selects a specific revision of this object (as opposed to the latest version, the
- * default).
- * @return Google_Service_Storage_ObjectAccessControl
- */
- public function insert($bucket, $object, Google_Service_Storage_ObjectAccessControl $postBody, $optParams = array())
- {
- $params = array('bucket' => $bucket, 'object' => $object, 'postBody' => $postBody);
- $params = array_merge($params, $optParams);
- return $this->call('insert', array($params), "Google_Service_Storage_ObjectAccessControl");
- }
- /**
- * Retrieves ACL entries on the specified object.
- * (objectAccessControls.listObjectAccessControls)
- *
- * @param string $bucket
- * Name of a bucket.
- * @param string $object
- * Name of the object.
- * @param array $optParams Optional parameters.
- *
- * @opt_param string generation
- * If present, selects a specific revision of this object (as opposed to the latest version, the
- * default).
- * @return Google_Service_Storage_ObjectAccessControls
- */
- public function listObjectAccessControls($bucket, $object, $optParams = array())
- {
- $params = array('bucket' => $…
Large files files are truncated, but you can click here to view the full file