google.cloud.forseti.common.gcp_type.bucket_access_controls module

A Bucket ACL Resource.

class BucketAccessControls(project_id, bucket, full_name, entity, email, domain, role, raw_json)[source]

Bases: object

Bucket ACL Resource.

__hash__()[source]

Return hash of properties.

Returns:The hash of the class properties.
Return type:hash
classmethod from_dict(project_id, full_name, acl)[source]

Returns a new BucketAccessControls object from dict.

Parameters:
  • project_id (str) – The project id.
  • full_name (str) – The full resource name and ancestory.
  • acl (dict) – The Bucket ACL.
Returns:

A new BucketAccessControls object.

Return type:

BucketAccessControls

static from_json(project_id, full_name, acls)[source]

Yields a new BucketAccessControls object from for each acl.

Parameters:
  • project_id (str) – the project id.
  • full_name (str) – The full resource name and ancestory.
  • acls (str) – The json bucket acl list.
Yields:

BucketAccessControls

A new BucketAccessControls object for

each acl in acls.

static from_list(project_id, full_name, acls)[source]

Yields a new BucketAccessControls object from for each acl.

Parameters:
  • project_id (str) – the project id.
  • full_name (str) – The full resource name and ancestory.
  • acls (list) – The bucket acl list.
Yields:

BucketAccessControls

A new BucketAccessControls object for

each acl in acls.