role#

async idem_vra.states.vra.rbac.role.present(hub, ctx, name: str, permissions: Any, **kwargs)[source]#
Parameters:
  • name (string) – (required in body) Name of the role.

  • permissions (array) – (required in body) List of permissions that the role has.

  • apiVersion (string) – (optional in query)

  • description (string) – (optional in body) A human-friendly description.

  • hidden (boolean) – (optional in body) Specifies whether the role should be hidden (true) in the UI or not (false). The flag is used mainly for development purposes.

  • id (string) – (optional in body)

  • orgId (string) – (optional in body) The id of the org this role belongs to

  • projectScope (boolean) – (optional in body) Specifies whether the role is organization level role or it is project level.

async idem_vra.states.vra.rbac.role.absent(hub, ctx, name: str, **kwargs)[source]#
Parameters:
  • p_id (string) – (required in path) id

  • apiVersion (string) – (optional in query)

async idem_vra.states.vra.rbac.role.describe(hub, ctx)[source]#
idem_vra.states.vra.rbac.role.is_pending(hub, ret: dict, state: str = None, **pending_kwargs)[source]#
class idem_vra.states.vra.rbac.role.RoleState(hub, ctx)[source]#

Bases: object

async present(hub, ctx, name: str, permissions: Any, **kwargs)[source]#
async absent(hub, ctx, name: str, **kwargs)[source]#
async describe(hub, ctx)[source]#
async paginate_find(hub, ctx, **kwargs)[source]#

Paginate through all resources using their ‘find’ method.

is_pending(hub, ret: dict, state: str = None, **pending_kwargs)[source]#

State reconciliation

async remap_resource_structure(hub, ctx, obj: dict) dict[source]#