Google_Service_Storage_Resource_Buckets
extends Google_Service_Resource
in package
The "buckets" collection of methods.
Typical usage is:
$storageService = new Google_Service_Storage(...);
$buckets = $storageService->buckets;
Table of Contents
- $client : Google_Client
- $methods : array<string|int, mixed>
- $resourceName : string
- $rootUrl : string
- $serviceName : string
- $servicePath : string
- $stackParameters : mixed
- __construct() : mixed
- call() : Google_Http_Request|expectedClass
- TODO: This function needs simplifying.
- createRequestUri() : string
- Parse/expand request parameters and create a fully qualified request uri.
- delete() : mixed
- Permanently deletes an empty bucket. (buckets.delete)
- get() : Google_Service_Storage_Bucket
- Returns metadata for the specified bucket. (buckets.get)
- getIamPolicy() : Google_Service_Storage_Policy
- Returns an IAM policy for the specified bucket. (buckets.getIamPolicy)
- insert() : Google_Service_Storage_Bucket
- Creates a new bucket. (buckets.insert)
- listBuckets() : Google_Service_Storage_Buckets
- Retrieves a list of buckets for a given project. (buckets.listBuckets)
- lockRetentionPolicy() : Google_Service_Storage_Bucket
- Locks retention policy on a bucket. (buckets.lockRetentionPolicy)
- patch() : Google_Service_Storage_Bucket
- Patches a bucket. Changes to the bucket will be readable immediately after writing, but configuration changes may take time to propagate.
- setIamPolicy() : Google_Service_Storage_Policy
- Updates an IAM policy for the specified bucket. (buckets.setIamPolicy)
- testIamPermissions() : Google_Service_Storage_TestIamPermissionsResponse
- Tests a set of permissions on the given bucket to see which, if any, are held by the caller. (buckets.testIamPermissions)
- update() : Google_Service_Storage_Bucket
- Updates a bucket. Changes to the bucket will be readable immediately after writing, but configuration changes may take time to propagate.
- convertToArrayAndStripNulls() : mixed
Properties
$client
private
Google_Client
$client
$methods
private
array<string|int, mixed>
$methods
$resourceName
private
string
$resourceName
$rootUrl
private
string
$rootUrl
$serviceName
private
string
$serviceName
$servicePath
private
string
$servicePath
$stackParameters
private
mixed
$stackParameters
= array('alt' => array('type' => 'string', 'location' => 'query'), 'fields' => array('type' => 'string', 'location' => 'query'), 'trace' => array('type' => 'string', 'location' => 'query'), 'userIp' => array('type' => 'string', 'location' => 'query'), 'quotaUser' => array('type' => 'string', 'location' => 'query'), 'data' => array('type' => 'string', 'location' => 'body'), 'mimeType' => array('type' => 'string', 'location' => 'header'), 'uploadType' => array('type' => 'string', 'location' => 'query'), 'mediaUpload' => array('type' => 'complex', 'location' => 'query'), 'prettyPrint' => array('type' => 'string', 'location' => 'query'))
Methods
__construct()
public
__construct(mixed $service, mixed $serviceName, mixed $resourceName, mixed $resource) : mixed
Parameters
- $service : mixed
- $serviceName : mixed
- $resourceName : mixed
- $resource : mixed
Return values
mixed —call()
TODO: This function needs simplifying.
public
call( $name, $arguments[, $expectedClass = null ]) : Google_Http_Request|expectedClass
Parameters
Tags
Return values
Google_Http_Request|expectedClass —createRequestUri()
Parse/expand request parameters and create a fully qualified request uri.
public
createRequestUri(string $restPath, array<string|int, mixed> $params) : string
Parameters
- $restPath : string
- $params : array<string|int, mixed>
Tags
Return values
string —$requestUrl
delete()
Permanently deletes an empty bucket. (buckets.delete)
public
delete(string $bucket[, array<string|int, mixed> $optParams = array() ]) : mixed
Parameters
- $bucket : string
-
Name of a bucket.
- $optParams : array<string|int, mixed> = array()
-
Optional parameters.
Tags
Return values
mixed —get()
Returns metadata for the specified bucket. (buckets.get)
public
get(string $bucket[, array<string|int, mixed> $optParams = array() ]) : Google_Service_Storage_Bucket
Parameters
- $bucket : string
-
Name of a bucket.
- $optParams : array<string|int, mixed> = array()
-
Optional parameters.
Tags
Return values
Google_Service_Storage_Bucket —getIamPolicy()
Returns an IAM policy for the specified bucket. (buckets.getIamPolicy)
public
getIamPolicy(string $bucket[, array<string|int, mixed> $optParams = array() ]) : Google_Service_Storage_Policy
Parameters
- $bucket : string
-
Name of a bucket.
- $optParams : array<string|int, mixed> = array()
-
Optional parameters.
Tags
Return values
Google_Service_Storage_Policy —insert()
Creates a new bucket. (buckets.insert)
public
insert(string $project, Google_Service_Storage_Bucket $postBody[, array<string|int, mixed> $optParams = array() ]) : Google_Service_Storage_Bucket
Parameters
- $project : string
-
A valid API project identifier.
- $postBody : Google_Service_Storage_Bucket
- $optParams : array<string|int, mixed> = array()
-
Optional parameters.
Tags
Return values
Google_Service_Storage_Bucket —listBuckets()
Retrieves a list of buckets for a given project. (buckets.listBuckets)
public
listBuckets(string $project[, array<string|int, mixed> $optParams = array() ]) : Google_Service_Storage_Buckets
Parameters
- $project : string
-
A valid API project identifier.
- $optParams : array<string|int, mixed> = array()
-
Optional parameters.
Tags
Return values
Google_Service_Storage_Buckets —lockRetentionPolicy()
Locks retention policy on a bucket. (buckets.lockRetentionPolicy)
public
lockRetentionPolicy(string $bucket, string $ifMetagenerationMatch[, array<string|int, mixed> $optParams = array() ]) : Google_Service_Storage_Bucket
Parameters
- $bucket : string
-
Name of a bucket.
- $ifMetagenerationMatch : string
-
Makes the operation conditional on whether bucket's current metageneration matches the given value.
- $optParams : array<string|int, mixed> = array()
-
Optional parameters.
Tags
Return values
Google_Service_Storage_Bucket —patch()
Patches a bucket. Changes to the bucket will be readable immediately after writing, but configuration changes may take time to propagate.
public
patch(string $bucket, Google_Service_Storage_Bucket $postBody[, array<string|int, mixed> $optParams = array() ]) : Google_Service_Storage_Bucket
(buckets.patch)
Parameters
- $bucket : string
-
Name of a bucket.
- $postBody : Google_Service_Storage_Bucket
- $optParams : array<string|int, mixed> = array()
-
Optional parameters.
Tags
Return values
Google_Service_Storage_Bucket —setIamPolicy()
Updates an IAM policy for the specified bucket. (buckets.setIamPolicy)
public
setIamPolicy(string $bucket, Google_Service_Storage_Policy $postBody[, array<string|int, mixed> $optParams = array() ]) : Google_Service_Storage_Policy
Parameters
- $bucket : string
-
Name of a bucket.
- $postBody : Google_Service_Storage_Policy
- $optParams : array<string|int, mixed> = array()
-
Optional parameters.
Tags
Return values
Google_Service_Storage_Policy —testIamPermissions()
Tests a set of permissions on the given bucket to see which, if any, are held by the caller. (buckets.testIamPermissions)
public
testIamPermissions(string $bucket, string|array<string|int, mixed> $permissions[, array<string|int, mixed> $optParams = array() ]) : Google_Service_Storage_TestIamPermissionsResponse
Parameters
- $bucket : string
-
Name of a bucket.
- $permissions : string|array<string|int, mixed>
-
Permissions to test.
- $optParams : array<string|int, mixed> = array()
-
Optional parameters.
Tags
Return values
Google_Service_Storage_TestIamPermissionsResponse —update()
Updates a bucket. Changes to the bucket will be readable immediately after writing, but configuration changes may take time to propagate.
public
update(string $bucket, Google_Service_Storage_Bucket $postBody[, array<string|int, mixed> $optParams = array() ]) : Google_Service_Storage_Bucket
(buckets.update)
Parameters
- $bucket : string
-
Name of a bucket.
- $postBody : Google_Service_Storage_Bucket
- $optParams : array<string|int, mixed> = array()
-
Optional parameters.
Tags
Return values
Google_Service_Storage_Bucket —convertToArrayAndStripNulls()
protected
convertToArrayAndStripNulls(mixed $o) : mixed
Parameters
- $o : mixed