sasctl.services.relationships#
- class sasctl._services.relationships.Relationships[source]#
Bases:
Service
The Relationships API manages a repository of relationships.
A relationship describes how two resources are connected. A relationship contains a subject resource, the related resource, and the relationship type. A relationship type describes the nature of the relationship between two resources. The relationship type includes a name, label, and description.
- classmethod delete_relationship(item)#
Delete a relationship instance.
- Parameters:
item
- Returns:
None
- classmethod get_relationship(item, refresh=False)#
Return a relationship instance.
- Parameters:
- Returns:
RestObj or None – A dictionary containing the relationship attributes or None.
Notes
If item is a complete representation of the relationship it will be returned unless refresh is set. This prevents unnecessary REST calls when data is already available on the client.