cloudmesh-cloud.cloudmesh.group.Group
¶
Module Contents¶
Classes¶
Groups are used to store the names of services that are part of the |
-
class
cloudmesh-cloud.cloudmesh.group.Group.
Group
¶ Bases:
object
Groups are used to store the names of services that are part of the group. Members are identified by their name and the kind (such as vm).
The data of a group is managed via a dict. Here is a simple example
- cm:
name: test cloud: local kind: group
members: - name: vm-1
kind: vm
name: vm-2 kind: vm
name: vm-3 kind: vm
-
update_list
(self, d)¶
-
abstract
delete_group
(self, name=None)¶
-
abstract
delete_member
(self, name=None, member=None)¶ delete the member from the group
- Parameters
name – name of the group
member – name of the member
- Returns
-
abstract
copy_group
(self, source, destination)¶ copies the group source to destination
- Parameters
source – name of the source
destination – name of the destination
- Returns
-
abstract
merge
(self, destination, *groups)¶ merge the members of the groups into the destination group
- Parameters
destination –
groups –
- Returns
-
members
(self, name=None)¶
-
list
(self, name=None)¶
-
add
(self, name=None, services=None, category=None)¶