class DefaultObjectAccessControls extends Resource (View source)

The "defaultObjectAccessControls" collection of methods.

Typical usage is:

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

Methods

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

Permanently deletes the default object ACL entry for the specified entity on the specified bucket. (defaultObjectAccessControls.delete)

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

Returns the default object ACL entry for the specified entity on the specified bucket. (defaultObjectAccessControls.get)

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

Creates a new default object ACL entry on the specified bucket.

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

Retrieves default object ACL entries on the specified bucket.

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

Patches a default object ACL entry on the specified bucket.

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

Updates a default object ACL entry on the specified bucket.

Details

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

Permanently deletes the default object ACL entry for the specified entity on the specified bucket. (defaultObjectAccessControls.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

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

Returns the default object ACL entry for the specified entity on the specified bucket. (defaultObjectAccessControls.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

ObjectAccessControl

Exceptions

Exception

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

Creates a new default object ACL entry on the specified bucket.

(defaultObjectAccessControls.insert)

Parameters

string $bucket

Name of a bucket.

ObjectAccessControl $postBody
array $optParams

Optional parameters.

Return Value

ObjectAccessControl

Exceptions

Exception

ObjectAccessControls listDefaultObjectAccessControls(string $bucket, array $optParams = [])

Retrieves default object ACL entries on the specified bucket.

(defaultObjectAccessControls.listDefaultObjectAccessControls)

Parameters

string $bucket

Name of a bucket.

array $optParams

Optional parameters.

Return Value

ObjectAccessControls

Exceptions

Exception

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

Patches a default object ACL entry on the specified bucket.

(defaultObjectAccessControls.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.

ObjectAccessControl $postBody
array $optParams

Optional parameters.

Return Value

ObjectAccessControl

Exceptions

Exception

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

Updates a default object ACL entry on the specified bucket.

(defaultObjectAccessControls.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.

ObjectAccessControl $postBody
array $optParams

Optional parameters.

Return Value

ObjectAccessControl

Exceptions

Exception