project#

async idem_vra.states.vra.iaas.project.present(hub, ctx, name: str, **kwargs)[source]#
Parameters:
  • name (string) – (required in body) A human-friendly name used as an identifier in APIs that support this option.

  • apiVersion (string) – (optional in query) The version of the API in yyyy-MM-dd format (UTC). For versioning information refer to /iaas/api/about

  • viewers (array) – (optional in body) List of viewer users associated with the project.

  • machineNamingTemplate (string) – (optional in body) The naming template to be used for machines provisioned in this project

  • customProperties (object) – (optional in body) The project custom properties which are added to all requests in this project

  • sharedResources (boolean) – (optional in body) Specifies whether the resources in this projects are shared or not. If not set default will be used.

  • operationTimeout (integer) – (optional in body) The timeout that should be used for Blueprint operations and Provisioning tasks. The timeout is in seconds

  • members (array) – (optional in body) List of member users associated with the project.

  • zoneAssignmentConfigurations (array) – (optional in body) List of configurations for zone assignment to a project.

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

  • placementPolicy (string) – (optional in body) Placement policy for the project. Determines how a zone will be selected for provisioning. DEFAULT, SPREAD or SPREAD_MEMORY.

  • constraints (object) – (optional in body) List of storage, network and extensibility constraints to be applied when provisioning through this project.

  • administrators (array) – (optional in body) List of administrator users associated with the project. Only administrators can manage project’s configuration.

async idem_vra.states.vra.iaas.project.absent(hub, ctx, name: str, **kwargs)[source]#
Parameters:
  • p_id (string) – (required in path) The ID of the project.

  • apiVersion (string) – (optional in query) The version of the API in yyyy-MM-dd format (UTC). For versioning information refer to /iaas/api/about

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

Bases: object

async present(hub, ctx, name: str, **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]#
class idem_vra.states.vra.iaas.project.ProjectStateImpl(hub, ctx)[source]#

Bases: ProjectState

async absent(hub, ctx, name: str, **kwargs)[source]#