class BucketAccessControls extends Resource (View source)

The "bucketAccessControls" collection of methods.

Typical usage is:

 $storageService = new Google\Service\Storage(...);
 $bucketAccessControls = $storageService->bucketAccessControls;

Methods

delete(string $bucket, string $entity, array $optParams = [])

Permanently deletes the ACL entry for the specified entity on the specified bucket. (bucketAccessControls.delete)

get(string $bucket, string $entity, array $optParams = [])

Returns the ACL entry for the specified entity on the specified bucket.

insert(string $bucket, BucketAccessControl $postBody, array $optParams = [])

Creates a new ACL entry on the specified bucket.

listBucketAccessControls(string $bucket, array $optParams = [])

Retrieves ACL entries on the specified bucket.

patch(string $bucket, string $entity, BucketAccessControl $postBody, array $optParams = [])

Patches an ACL entry on the specified bucket. (bucketAccessControls.patch)

update(string $bucket, string $entity, BucketAccessControl $postBody, array $optParams = [])

Updates an ACL entry on the specified bucket. (bucketAccessControls.update)

Details

delete(string $bucket, string $entity, array $optParams = [])

Permanently deletes the ACL entry for the specified entity on the specified bucket. (bucketAccessControls.delete)

Parameters

string $bucket

Name of a bucket.

string $entity

The entity holding the permission. Can be user-userId, user-emailAddress, group-groupId, group-emailAddress, allUsers, or allAuthenticatedUsers.

array $optParams

Optional parameters.

Exceptions

Exception

BucketAccessControl get(string $bucket, string $entity, array $optParams = [])

Returns the ACL entry for the specified entity on the specified bucket.

(bucketAccessControls.get)

Parameters

string $bucket

Name of a bucket.

string $entity

The entity holding the permission. Can be user-userId, user-emailAddress, group-groupId, group-emailAddress, allUsers, or allAuthenticatedUsers.

array $optParams

Optional parameters.

Return Value

BucketAccessControl

Exceptions

Exception

BucketAccessControl insert(string $bucket, BucketAccessControl $postBody, array $optParams = [])

Creates a new ACL entry on the specified bucket.

(bucketAccessControls.insert)

Parameters

string $bucket

Name of a bucket.

BucketAccessControl $postBody
array $optParams

Optional parameters.

Return Value

BucketAccessControl

Exceptions

Exception

BucketAccessControls listBucketAccessControls(string $bucket, array $optParams = [])

Retrieves ACL entries on the specified bucket.

(bucketAccessControls.listBucketAccessControls)

Parameters

string $bucket

Name of a bucket.

array $optParams

Optional parameters.

Return Value

BucketAccessControls

Exceptions

Exception

BucketAccessControl patch(string $bucket, string $entity, BucketAccessControl $postBody, array $optParams = [])

Patches an ACL entry on the specified bucket. (bucketAccessControls.patch)

Parameters

string $bucket

Name of a bucket.

string $entity

The entity holding the permission. Can be user-userId, user-emailAddress, group-groupId, group-emailAddress, allUsers, or allAuthenticatedUsers.

BucketAccessControl $postBody
array $optParams

Optional parameters.

Return Value

BucketAccessControl

Exceptions

Exception

BucketAccessControl update(string $bucket, string $entity, BucketAccessControl $postBody, array $optParams = [])

Updates an ACL entry on the specified bucket. (bucketAccessControls.update)

Parameters

string $bucket

Name of a bucket.

string $entity

The entity holding the permission. Can be user-userId, user-emailAddress, group-groupId, group-emailAddress, allUsers, or allAuthenticatedUsers.

BucketAccessControl $postBody
array $optParams

Optional parameters.

Return Value

BucketAccessControl

Exceptions

Exception