oca.group

class oca.Group(xml, client)

Bases: oca.pool.PoolElement

ELEMENT_NAME = 'GROUP'
METHODS = {'info': 'group.info', 'allocate': 'group.allocate', 'delete': 'group.delete'}
XML_TYPES = {'users': ['USERS', <function <lambda> at 0x7f855ed260c8>], 'id': <type 'int'>, 'template': ['TEMPLATE', <class 'oca.pool.Template'>], 'name': <type 'str'>}
static allocate(client, group_name)

Allocates a new group in OpenNebula

Arguments

client
oca.Client object
group
a string containing the group name
delete()

Deletes current object from the pool

info(*args)
classmethod new_with_id(client, element_id)

Retrives object which id equals `id`.

Arguments

`client`
oca.Client object.
`element_id
object id.
class oca.GroupPool(client)

Bases: oca.pool.Pool

METHODS = {'info': 'grouppool.info'}

Previous topic

oca.user

Next topic

oca.template

This Page