pyvcloud.vcd.role module

class pyvcloud.vcd.role.Role(client, href=None, resource=None)

Bases: object

add_rights(rights, org)

Adds list of rights to a given role.

Parameters:
  • rights – (list): List of right names
  • org – (pyvcloud.vcd.org.Org): The Organization to which

the role belongs

:return A lxml.objectify.StringElement object representing the updated role resource.

Links the role to its template.

Returns:None
list_rights()

List rights associated with the role.

Returns:list of names of rights for a given role.
remove_rights(rights)

Removes list of rights from a given role.

Param:rights: (list): List of right names
Returns:A lxml.objectify.StringElement object representing the updated role resource.

Unlinks the role from its template.

Returns:None