dragon.infrastructure.group_desc
A class that uniquely defines properties of a managed Group of resources for infrastructure communication.
Classes
The group descriptor holds a list of tuples of puids, muids, cuids or huids. |
- class GroupDescriptor
The group descriptor holds a list of tuples of puids, muids, cuids or huids.
- class State
Current state of a group’s member.
- class GroupMember
The GroupMember class holds information about each object that is a member of the group.
- class Errors
An enumeration.
- SUCCESS = 0
Resource was created
- FAIL = 1
Resource was not created
- ALREADY = 2
Resource exists already
- classmethod from_sdict(d)
Returns the launched group member object.
- Parameters
d (Dictionary) – dictionary with all key-value pairs of the available information of the group’s member
- Raises
ValueError – when there is an error during deserialization
- Returns
the GroupMember object
- Return type
- get_sdict()
Collects the entire information of a member of the group.
- Returns
A dictionary with all key-value pairs of the available information of the group’s member.
- Return type
Dictionary
- classmethod from_sdict(d)
Returns the descriptor of the launched group of resources.
- Parameters
d (Dictionary) – dictionary with all key-value pairs of the available information of the group
- Raises
ValueError – when there is an error during deserialization
- Returns
the GroupDescriptor object
- Return type
- get_sdict()
Collects the entire information of the group.
- Returns
A dictionary with all key-value pairs of the available information of the group.
- Return type
Dictionary