Skip to content

Latest commit

 

History

History
34 lines (25 loc) · 1.95 KB

ResourceRights.md

File metadata and controls

34 lines (25 loc) · 1.95 KB

ResourceRights

The rights of the current user on a score or collection

Properties

Name Type Description Notes
acl_read bool `True` if the current user can read the current document [default to False]
acl_write bool `True` if the current user can modify the current document. If this is a right of a Collection, the capabilities of the associated user can be lower than this permission, check out the `capabilities` property as the end-user to have the complete possibilities with the collection. [default to False]
acl_admin bool `True` if the current user can manage the current document (i.e. share, delete) If this is a right of a Collection, the capabilities of the associated user can be lower than this permission, check out the `capabilities` property as the end-user to have the complete possibilities with the collection. [default to False]
is_collaborator bool `True` if the current user is a collaborator of the current document (direct or via group). [default to False]
collaborator_type str The type of the collaborator for the resource [optional]

Example

from flat_api.models.resource_rights import ResourceRights

# TODO update the JSON string below
json = "{}"
# create an instance of ResourceRights from a JSON string
resource_rights_instance = ResourceRights.from_json(json)
# print the JSON string representation of the object
print ResourceRights.to_json()

# convert the object into a dict
resource_rights_dict = resource_rights_instance.to_dict()
# create an instance of ResourceRights from a dict
resource_rights_form_dict = resource_rights.from_dict(resource_rights_dict)

[Back to Model list] [Back to API list] [Back to README]