catalogsources#

async idem_vra.states.vra.catalog.catalogsources.present(hub, ctx, name: str, config: Any, id: Any, typeId: Any, **kwargs)[source]#
Parameters:
  • config (object) – (required in body) Source custom configuration

  • id (string) – (required in body) Catalog Source id

  • name (string) – (required in body) Catalog Source name

  • typeId (string) – (required in body) Type of source, e.g. blueprint, CFT… etc

  • apiVersion (string) – (optional in query) The version of the API in yyyy-MM-dd format (UTC). If you do not specify explicitly an exact version, you will be calling the latest supported API version.

  • validationOnly (boolean) – (optional in query) If true, the source will not be created. It returns the number of items belonging to the source. The request will still return an error code if the source is invalid.

  • createdAt (string) – (optional in body) Creation time

  • createdBy (string) – (optional in body) Created By

  • description (string) – (optional in body) Catalog Source description

  • global (boolean) – (optional in body) Global flag indicating that all the items can be requested across all projects.

  • iconId (string) – (optional in body) Default Icon Id

  • itemsFound (integer) – (optional in body) Number of items found

  • itemsImported (integer) – (optional in body) Number of items imported.

  • lastImportCompletedAt (string) – (optional in body) Last import completion time

  • lastImportErrors (array) – (optional in body) Last import error(s)

  • lastImportStartedAt (string) – (optional in body) Last import start time

  • lastUpdatedAt (string) – (optional in body) Update time

  • lastUpdatedBy (string) – (optional in body) Updated By

  • projectId (string) – (optional in body) Project id where the source belongs

async idem_vra.states.vra.catalog.catalogsources.absent(hub, ctx, name: str, **kwargs)[source]#
Parameters:
  • p_sourceId (string) – (required in path) Catalog source ID

  • apiVersion (string) – (optional in query) The version of the API in yyyy-MM-dd format (UTC). If you do not specify explicitly an exact version, you will be calling the latest supported API version.

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

Bases: object

async present(hub, ctx, name: str, config: Any, id: Any, typeId: 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]#