models.grantee_proto module

class models.grantee_proto.GranteeProto(email_address=None, group=None, mtype=None, user_id=None)[source]

Bases: object

Implementation of the ‘GranteeProto’ model.

Message to define a grantee to which ACL permissions can be granted.

Attributes:
email_address (string): If grantee is of type ‘kEmailUser’, this

field will contain the email address of the user.

group (int): If grantee is of type ‘kGroup’, this field will contain

the group to which permission is granted.

mtype (int): TODO: Type description here. user_id (string): If grantee is of type ‘kRegisteredUser’, this field

will contain the canonical id of the user.

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.