Buckets
class Buckets extends Resource (View source)
The "buckets" collection of methods.
Typical usage is:
$storageService = new Google\Service\Storage(...);
$buckets = $storageService->buckets;
Methods
Deletes an empty bucket. Deletions are permanent unless soft delete is enabled on the bucket. (buckets.delete)
Returns metadata for the specified bucket. (buckets.get)
Returns an IAM policy for the specified bucket. (buckets.getIamPolicy)
Returns the storage layout configuration for the specified bucket. Note that this operation requires storage.objects.list permission.
Retrieves a list of buckets for a given project. (buckets.listBuckets)
Locks retention policy on a bucket. (buckets.lockRetentionPolicy)
Restores a soft-deleted bucket. (buckets.restore)
Updates an IAM policy for the specified bucket. (buckets.setIamPolicy)
Tests a set of permissions on the given bucket to see which, if any, are held by the caller. (buckets.testIamPermissions)
Details
delete(string $bucket, array $optParams = [])
Deletes an empty bucket. Deletions are permanent unless soft delete is enabled on the bucket. (buckets.delete)
Bucket
get(string $bucket, array $optParams = [])
Returns metadata for the specified bucket. (buckets.get)
Policy
getIamPolicy(string $bucket, array $optParams = [])
Returns an IAM policy for the specified bucket. (buckets.getIamPolicy)
BucketStorageLayout
getStorageLayout(string $bucket, array $optParams = [])
Returns the storage layout configuration for the specified bucket. Note that this operation requires storage.objects.list permission.
(buckets.getStorageLayout)
Bucket
insert(string $project, Bucket $postBody, array $optParams = [])
Creates a new bucket. (buckets.insert)
Buckets
listBuckets(string $project, array $optParams = [])
Retrieves a list of buckets for a given project. (buckets.listBuckets)
Bucket
lockRetentionPolicy(string $bucket, string $ifMetagenerationMatch, array $optParams = [])
Locks retention policy on a bucket. (buckets.lockRetentionPolicy)
Bucket
patch(string $bucket, Bucket $postBody, array $optParams = [])
Patches a bucket. Changes to the bucket will be readable immediately after writing, but configuration changes may take time to propagate.
(buckets.patch)
restore(string $bucket, string $generation, array $optParams = [])
Restores a soft-deleted bucket. (buckets.restore)
Policy
setIamPolicy(string $bucket, Policy $postBody, array $optParams = [])
Updates an IAM policy for the specified bucket. (buckets.setIamPolicy)
TestIamPermissionsResponse
testIamPermissions(string $bucket, string|array $permissions, array $optParams = [])
Tests a set of permissions on the given bucket to see which, if any, are held by the caller. (buckets.testIamPermissions)