clusterplans#

async idem_vra.states.vra.cmx.clusterplans.present(hub, ctx, name: str, **kwargs)[source]#
Parameters:
  • cloudAccountSelfLinkId (string) – (optional in body)

  • createdMillis (integer) – (optional in body)

  • definition (object) – (optional in body) The definition varies depending on the type of cluster plan. Example shown below is for cluster plans of type TANZU_CLUSTER_PLAN. In that case the definition is equivalent to the spec of a Tanzu Kubernetes cluster in JSON format. Here is a documentation https://docs.vmware.com/en/VMware-vSphere/7.0/vmware-vsphere-with- tanzu/GUID-B1034373-8C38-4FE2-9517-345BF7271A1E.html example: {“spec”:{“distribution”:{“version”:”1.20”},”topology”:{“contr olPlane”:{“count”:1,”class”:”best-effort-xsmall”,”storageClass”:”vsan- default-storage-policy”},”workers”:{“count”:1,”class”:”best-effort- xsmall”,”storageClass”:”vsan-default-storage- policy”}},”settings”:{“storage”:{“defaultClass”:””,”classes”:[]}}}}

  • description (string) – (optional in body)

  • id (string) – (optional in body)

  • name (string) – (optional in body)

  • orgId (string) – (optional in body)

  • type (string) – (optional in body)

  • updatedMillis (integer) – (optional in body)

async idem_vra.states.vra.cmx.clusterplans.absent(hub, ctx, name: str, **kwargs)[source]#
Parameters:

p_id (string) – (required in path) id

async idem_vra.states.vra.cmx.clusterplans.describe(hub, ctx)[source]#
idem_vra.states.vra.cmx.clusterplans.is_pending(hub, ret: dict, state: str = None, **pending_kwargs)[source]#
class idem_vra.states.vra.cmx.clusterplans.ClusterplansState(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]#