Project¶
- class geodesic.account.projects.Project(**project)[source]¶
Bases:
geodesic.bases._APIObject
The Project class to manage groups of nodes in a subgraph in entanglement
- Parameters
**project – metadata about a particular project
- uid¶
(str) - unique ID set by the system
Descriptor:
_StringDescr
- name¶
(str) - the name of this project, unique to the user
Descriptor:
_RegexDescr
- alias¶
(str) - a human readable name for this project/subgraph
Descriptor:
_StringDescr
- description¶
(str) - a description of this project/subgraph
Descriptor:
_StringDescr
- owner¶
(str) - the subject (user id) of this owner of this project
Descriptor:
_StringDescr
- update_permissions(user, permissions)[source]¶
Updates the read/write access for a user on this project.
- Parameters
user (Union[geodesic.account.user.User, str]) – The User (or subject) to update permissions for
permissions (dict) – a dictionary of the read/write for the user
Example: >>> p.update_permissions(user, {‘read’: True, ‘write’: False})
- update_permission(user, permissions)¶
Deprecated in v1.0.0
Updates the read/write access for a user on this project.
- Parameters
user (Union[geodesic.account.user.User, str]) – The User (or subject) to update permissions for
permissions (dict) – a dictionary of the read/write for the user
Example: >>> p.update_permissions(user, {‘read’: True, ‘write’: False})
- get_permissions(user)[source]¶
Gets the read/write permissions of a user on this project
- Parameters
user (Union[geodesic.account.user.User, str]) – The user (or subject) to check permissions for.
- permission(user)¶
Deprecated in v1.0.0
Gets the read/write permissions of a user on this project
- Parameters
user (Union[geodesic.account.user.User, str]) – The user (or subject) to check permissions for.
- property keywords¶
Keywords related to this project