models.acl_proto module

class models.acl_proto.ACLProto(common_acl=None, grant_vec=None, keystone_acl=None, swift_read_acl=None, swift_write_acl=None)[source]

Bases: object

Implementation of the ‘ACLProto’ model.

Protobuf that describes the access control list (ACL) permissions for a bucket or for an object.

Attributes:

common_acl (CommonACLProto): CommonACL of the Swift container. grant_vec (list of ACLProto_Grant): TODO: Type description here. keystone_acl (KeystoneACLProto): KeystoneACL of the Swift container. swift_read_acl (string): Swift ACL strings. swift_write_acl (TypeACLProtoEnum): TODO: Type description here.

classmethod from_dictionary(dictionary)[source]

Creates an instance of this model from a dictionary

Args:

dictionary (dictionary): A dictionary representation of the object as obtained from the deserialization of the server’s response. The keys MUST match property names in the API description.

Returns:

object: An instance of this structure class.