REST Resource: projects.locations.deliveryPipelines.automationRuns

Resource: AutomationRun

An AutomationRun resource in the Cloud Deploy API.

An AutomationRun represents an execution instance of an automation rule.

JSON representation
{
  "name": string,
  "createTime": string,
  "updateTime": string,
  "etag": string,
  "serviceAccount": string,
  "automationSnapshot": {
    object (Automation)
  },
  "targetId": string,
  "state": enum (State),
  "stateDescription": string,
  "expireTime": string,
  "ruleId": string,
  "automationId": string,
  "waitUntilTime": string,

  // Union field operation can be only one of the following:
  "promoteReleaseOperation": {
    object (PromoteReleaseOperation)
  },
  "advanceRolloutOperation": {
    object (AdvanceRolloutOperation)
  },
  "repairRolloutOperation": {
    object (RepairRolloutOperation)
  }
  // End of list of possible types for union field operation.
}
Fields
name

string

Output only. Name of the AutomationRun. Format is projects/{project}/locations/{location}/deliveryPipelines/{deliveryPipeline}/automationRuns/{automationRun}.

createTime

string (Timestamp format)

Output only. Time at which the AutomationRun was created.

A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. Examples: "2014-10-02T15:01:23Z" and "2014-10-02T15:01:23.045123456Z".

updateTime

string (Timestamp format)

Output only. Time at which the automationRun was updated.

A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. Examples: "2014-10-02T15:01:23Z" and "2014-10-02T15:01:23.045123456Z".

etag

string

Output only. The weak etag of the AutomationRun resource. This checksum is computed by the server based on the value of other fields, and may be sent on update and delete requests to ensure the client has an up-to-date value before proceeding.

serviceAccount

string

Output only. Email address of the user-managed IAM service account that performs the operations against Cloud Deploy resources.

automationSnapshot

object (Automation)

Output only. Snapshot of the Automation taken at AutomationRun creation time.

targetId

string

Output only. The ID of the target that represents the promotion stage that initiates the AutomationRun. The value of this field is the last segment of a target name.

state

enum (State)

Output only. Current state of the AutomationRun.

stateDescription

string

Output only. Explains the current state of the AutomationRun. Present only when an explanation is needed.

expireTime

string (Timestamp format)

Output only. Time the AutomationRun expires. An AutomationRun expires after 14 days from its creation date.

A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. Examples: "2014-10-02T15:01:23Z" and "2014-10-02T15:01:23.045123456Z".

ruleId

string

Output only. The ID of the automation rule that initiated the operation.

automationId

string

Output only. The ID of the automation that initiated the operation.

waitUntilTime

string (Timestamp format)

Output only. Earliest time the AutomationRun will attempt to resume. Wait-time is configured by wait in automation rule.

A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. Examples: "2014-10-02T15:01:23Z" and "2014-10-02T15:01:23.045123456Z".

Union field operation. The operation that the AutomationRun will perform. operation can be only one of the following:
promoteReleaseOperation

object (PromoteReleaseOperation)

Output only. Promotes a release to a specified 'Target'.

advanceRolloutOperation

object (AdvanceRolloutOperation)

Output only. Advances a rollout to the next phase.

repairRolloutOperation

object (RepairRolloutOperation)

Output only. Repairs a failed 'Rollout'.

State

Valid state of an AutomationRun.

Enums
STATE_UNSPECIFIED The AutomationRun has an unspecified state.
SUCCEEDED The AutomationRun has succeeded.
CANCELLED The AutomationRun was cancelled.
FAILED The AutomationRun has failed.
IN_PROGRESS The AutomationRun is in progress.
PENDING The AutomationRun is pending.
ABORTED The AutomationRun was aborted.

PromoteReleaseOperation

Contains the information of an automated promote-release operation.

JSON representation
{
  "targetId": string,
  "wait": string,
  "rollout": string,
  "phase": string
}
Fields
targetId

string

Output only. The ID of the target that represents the promotion stage to which the release will be promoted. The value of this field is the last segment of a target name.

wait

string (Duration format)

Output only. How long the operation will be paused.

A duration in seconds with up to nine fractional digits, ending with 's'. Example: "3.5s".

rollout

string

Output only. The name of the rollout that initiates the AutomationRun.

phase

string

Output only. The starting phase of the rollout created by this operation.

AdvanceRolloutOperation

Contains the information of an automated advance-rollout operation.

JSON representation
{
  "sourcePhase": string,
  "wait": string,
  "rollout": string,
  "destinationPhase": string
}
Fields
sourcePhase

string

Output only. The phase of a deployment that initiated the operation.

wait

string (Duration format)

Output only. How long the operation will be paused.

A duration in seconds with up to nine fractional digits, ending with 's'. Example: "3.5s".

rollout

string

Output only. The name of the rollout that initiates the AutomationRun.

destinationPhase

string

Output only. The phase the rollout will be advanced to.

RepairRolloutOperation

Contains the information for an automated repair rollout operation.

JSON representation
{
  "rollout": string,
  "currentRepairModeIndex": string,
  "repairPhases": [
    {
      object (RepairPhase)
    }
  ],
  "phaseId": string,
  "jobId": string
}
Fields
rollout

string

Output only. The name of the rollout that initiates the AutomationRun.

currentRepairModeIndex

string (int64 format)

Output only. The index of the current repair action in the repair sequence.

repairPhases[]

object (RepairPhase)

Output only. Records of the repair attempts. Each repair phase may have multiple retry attempts or single rollback attempt.

phaseId

string

Output only. The phase ID of the phase that includes the job being repaired.

jobId

string

Output only. The job ID for the Job to repair.

RepairPhase

RepairPhase tracks the repair attempts that have been made for each RepairMode specified in the Automation resource.

JSON representation
{

  // Union field repair_phase can be only one of the following:
  "retry": {
    object (RetryPhase)
  },
  "rollback": {
    object (RollbackAttempt)
  }
  // End of list of possible types for union field repair_phase.
}
Fields

Union field repair_phase.

repair_phase can be only one of the following:

retry

object (RetryPhase)

Output only. Records of the retry attempts for retry repair mode.

rollback

object (RollbackAttempt)

Output only. Rollback attempt for rollback repair mode .

RetryPhase

RetryPhase contains the retry attempts and the metadata for initiating a new attempt.

JSON representation
{
  "totalAttempts": string,
  "backoffMode": enum (BackoffMode),
  "phaseId": string,
  "jobId": string,
  "attempts": [
    {
      object (RetryAttempt)
    }
  ]
}
Fields
totalAttempts

string (int64 format)

Output only. The number of attempts that have been made.

backoffMode

enum (BackoffMode)

Output only. The pattern of how the wait time of the retry attempt is calculated.

phaseId
(deprecated)

string

Output only. The phase ID of the phase that includes the job being retried.

jobId
(deprecated)

string

Output only. The job ID for the Job to retry.

attempts[]

object (RetryAttempt)

Output only. Detail of a retry action.

RetryAttempt

RetryAttempt represents an action of retrying the failed Cloud Deploy job.

JSON representation
{
  "attempt": string,
  "wait": string,
  "state": enum (RepairState),
  "stateDesc": string
}
Fields
attempt

string (int64 format)

Output only. The index of this retry attempt.

wait

string (Duration format)

Output only. How long the operation will be paused.

A duration in seconds with up to nine fractional digits, ending with 's'. Example: "3.5s".

state

enum (RepairState)

Output only. Valid state of this retry action.

stateDesc

string

Output only. Description of the state of the Retry.

RepairState

Valid state of a repair attempt.

Enums
REPAIR_STATE_UNSPECIFIED The repair has an unspecified state.
REPAIR_STATE_SUCCEEDED The repair action has succeeded.
REPAIR_STATE_CANCELLED The repair action was cancelled.
REPAIR_STATE_FAILED The repair action has failed.
REPAIR_STATE_IN_PROGRESS The repair action is in progress.
REPAIR_STATE_PENDING The repair action is pending.
REPAIR_STATE_SKIPPED The repair action was skipped.
REPAIR_STATE_ABORTED The repair action was aborted.

RollbackAttempt

RollbackAttempt represents an action of rolling back a Cloud Deploy 'Target'.

JSON representation
{
  "destinationPhase": string,
  "rolloutId": string,
  "state": enum (RepairState),
  "stateDesc": string
}
Fields
destinationPhase

string

Output only. The phase to which the rollout will be rolled back to.

rolloutId

string

Output only. ID of the rollback Rollout to create.

state

enum (RepairState)

Output only. Valid state of this rollback action.

stateDesc

string

Output only. Description of the state of the Rollback.

Methods

cancel

Cancels an AutomationRun.

get

Gets details of a single AutomationRun.

list

Lists AutomationRuns in a given project and location.