* 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
* 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
* Service definition for Storage (v1).
* Lets you store and retrieve potentially-large, immutable data objects.</p>
* For more information about this service, see the API
* <a href="https://developers.google.com/storage/docs/json_api/" target="_blank">Documentation</a>
class UDP_Google_Service_Storage extends UDP_Google_Service
/** View and manage your data across Google Cloud Platform services. */
"https://www.googleapis.com/auth/cloud-platform";
/** 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 $defaultObjectAccessControls;
public $objectAccessControls;
* Constructs the internal representation of the Storage service.
* @param UDP_Google_Client $client
public function __construct(UDP_Google_Client $client)
parent::__construct($client);
$this->servicePath = 'storage/v1/';
$this->serviceName = 'storage';
$this->bucketAccessControls = new Google_Service_Storage_BucketAccessControls_Resource(
'path' => 'b/{bucket}/acl/{entity}',
'httpMethod' => 'DELETE',
'path' => 'b/{bucket}/acl/{entity}',
'path' => 'b/{bucket}/acl',
'path' => 'b/{bucket}/acl',
'path' => 'b/{bucket}/acl/{entity}',
'path' => 'b/{bucket}/acl/{entity}',
$this->buckets = new Google_Service_Storage_Buckets_Resource(
'httpMethod' => 'DELETE',
'ifMetagenerationMatch' => array(
'ifMetagenerationNotMatch' => array(
'ifMetagenerationMatch' => array(
'ifMetagenerationNotMatch' => array(
'predefinedAcl' => array(
'predefinedDefaultObjectAcl' => array(
'ifMetagenerationMatch' => array(
'predefinedDefaultObjectAcl' => array(
'predefinedAcl' => array(
'ifMetagenerationNotMatch' => array(
'ifMetagenerationMatch' => array(
'predefinedDefaultObjectAcl' => array(
'predefinedAcl' => array(
'ifMetagenerationNotMatch' => array(
$this->channels = new Google_Service_Storage_Channels_Resource(
'path' => 'channels/stop',
$this->defaultObjectAccessControls = new Google_Service_Storage_DefaultObjectAccessControls_Resource(
'defaultObjectAccessControls',
'path' => 'b/{bucket}/defaultObjectAcl/{entity}',
'httpMethod' => 'DELETE',
'path' => 'b/{bucket}/defaultObjectAcl/{entity}',
'path' => 'b/{bucket}/defaultObjectAcl',
'path' => 'b/{bucket}/defaultObjectAcl',
'ifMetagenerationMatch' => array(
'ifMetagenerationNotMatch' => array(
'path' => 'b/{bucket}/defaultObjectAcl/{entity}',
'path' => 'b/{bucket}/defaultObjectAcl/{entity}',
$this->objectAccessControls = new Google_Service_Storage_ObjectAccessControls_Resource(
'path' => 'b/{bucket}/o/{object}/acl/{entity}',
'httpMethod' => 'DELETE',
'path' => 'b/{bucket}/o/{object}/acl/{entity}',
'path' => 'b/{bucket}/o/{object}/acl',
'path' => 'b/{bucket}/o/{object}/acl',