gerrittriggers#

async idem_vra.states.vra.pipeline.gerrittriggers.present(hub, ctx, name: str, branch: Any, description: Any, gerritProject: Any, listener: Any, **kwargs)[source]#
Parameters:
  • branch (string) – (required in body) Gerrit Project Branch on which the change has to be monitored.

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

  • gerritProject (string) – (required in body) Gerrit Project which is to be monitored for the change.

  • listener (string) – (required in body) Gerrit Listener which will receive the events for this trigger.

  • 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 please refer to /codestream/api/about

  • Authorization (string) – (optional in header) Bearer token

  • configurations (array) – (optional in body) The configuration of an Gerrit Event.

  • enabled (boolean) – (optional in body) Indicates that this trigger will be addressed on receiving respective events.

  • exclusions (array) – (optional in body) Provide file exclusions as conditions for the trigger.

  • inclusions (array) – (optional in body) Provide file inclusions as conditions for the trigger.

  • prioritizeExclusion (boolean) – (optional in body) Prioritize Exclusion ensures that pipelines are not triggered even if any of the files in a commit match the specified files in the exclusion paths or regex.

  • project (string) – (optional in body) The project this entity belongs to.

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

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

  • Authorization (string) – (optional in header) Bearer token

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

Bases: object

async present(hub, ctx, name: str, branch: Any, description: Any, gerritProject: Any, listener: 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]#
class idem_vra.states.vra.pipeline.gerrittriggers.GerrittriggersStateImpl(hub, ctx)[source]#

Bases: GerrittriggersState

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