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[source]
Bases:
object
The group descriptor holds a list of tuples of puids, muids, cuids or huids.
- class State[source]
Bases:
IntEnum
Current state of a group’s member.
- PENDING = 0
- ACTIVE = 1
- DEAD = 2
- class GroupMember[source]
Bases:
object
The GroupMember class holds information about each object that is a member of the group.
- class Errors[source]
Bases:
Enum
- SUCCESS = 0
Resource was created
- FAIL = 1
Resource was not created
- ALREADY = 2
Resource exists already
- classmethod from_sdict(d)[source]
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:
- sets: []
- classmethod from_sdict(d)[source]
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: