sightline.simon.trust
— Trust API¶
Attributes¶
Class Methods¶
- Trust.create(name, *capabilities[, description=''][, tags=None][, discoverable=False])[source]¶
Creates a new Trust. Trusts grant Capabilities on Trust contents to Trust members. Trustees are allowed to add contents and members to a Trust, and must have the Capabilities on the content they are adding to be able to delegate that Capability to members.
A discoverable Trust is a flag that allows users who are not members to see that the Trust exists.
- Classmethod
- Parameters
name (Optional[str]) – The name of the Trust
description (str) – A description of the Trust
tags (Optional[List[str]]) – Tags for the Trust
capabilities (
Capability
) – The Capabilities that should be delegated from all contents to all members.discoverable (bool) – Whether or not to make this Trust Discoverable to all users.
- Return type
Methods¶
- Trust.list_content()¶
Lists objects in the Trust contents.
- Return type
List[V1Resource]
- Trust.update([name=None][, description=None][, tags=None])[source]¶
Updates the Trust metadata with whichever fields are set.
- Parameters
name (Optional[str]) – Changes the name of the Trust
description (Optional[str]) – Changes the description of the Trust
tags (Optional[List[str]]) – Changes the tags of the Trust