- Resource: AutomationRun
- State
- PolicyViolation
- PolicyViolationDetails
- PromoteReleaseOperation
- AdvanceRolloutOperation
- RepairRolloutOperation
- RepairPhase
- RetryPhase
- RetryAttempt
- RepairState
- RollbackAttempt
- TimedPromoteReleaseOperation
- Methods
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 ( | 
| Fields | |
|---|---|
| name | 
 Output only. Name of the  | 
| createTime | 
 Output only. Time at which the  Uses RFC 3339, where generated output will always be Z-normalized and use 0, 3, 6 or 9 fractional digits. Offsets other than "Z" are also accepted. Examples:  | 
| updateTime | 
 Output only. Time at which the automationRun was updated. Uses RFC 3339, where generated output will always be Z-normalized and use 0, 3, 6 or 9 fractional digits. Offsets other than "Z" are also accepted. Examples:  | 
| etag | 
 Output only. The weak etag of the  | 
| serviceAccount | 
 Output only. Email address of the user-managed IAM service account that performs the operations against Cloud Deploy resources. | 
| automationSnapshot | 
 Output only. Snapshot of the Automation taken at AutomationRun creation time. | 
| targetId | 
 Output only. The ID of the source target that initiates the  | 
| state | 
 Output only. Current state of the  | 
| stateDescription | 
 Output only. Explains the current state of the  | 
| policyViolation | 
 Output only. Contains information about what policies prevented the  | 
| expireTime | 
 Output only. Time the  Uses RFC 3339, where generated output will always be Z-normalized and use 0, 3, 6 or 9 fractional digits. Offsets other than "Z" are also accepted. Examples:  | 
| ruleId | 
 Output only. The ID of the automation rule that initiated the operation. | 
| automationId | 
 Output only. The ID of the automation that initiated the operation. | 
| waitUntilTime | 
 Output only. Earliest time the  Uses RFC 3339, where generated output will always be Z-normalized and use 0, 3, 6 or 9 fractional digits. Offsets other than "Z" are also accepted. Examples:  | 
| Union field operation. The operation that theAutomationRunwill perform.operationcan be only one of the following: | |
| promoteReleaseOperation | 
 Output only. Promotes a release to a specified 'Target'. | 
| advanceRolloutOperation | 
 Output only. Advances a rollout to the next phase. | 
| repairRolloutOperation | 
 Output only. Repairs a failed 'Rollout'. | 
| timedPromoteReleaseOperation | 
 Output only. Promotes a release to a specified 'Target' as defined in a Timed Promote Release rule. | 
State
Valid state of an AutomationRun.
| Enums | |
|---|---|
| STATE_UNSPECIFIED | The AutomationRunhas an unspecified state. | 
| SUCCEEDED | The AutomationRunhas succeeded. | 
| CANCELLED | The AutomationRunwas cancelled. | 
| FAILED | The AutomationRunhas failed. | 
| IN_PROGRESS | The AutomationRunis in progress. | 
| PENDING | The AutomationRunis pending. | 
| ABORTED | The AutomationRunwas aborted. | 
PolicyViolation
Returned from an action if one or more policies were violated, and therefore the action was prevented. Contains information about what policies were violated and why.
| JSON representation | 
|---|
| {
  "policyViolationDetails": [
    {
      object ( | 
| Fields | |
|---|---|
| policyViolationDetails[] | 
 Policy violation details. | 
PolicyViolationDetails
Policy violation details.
| JSON representation | 
|---|
| { "policy": string, "ruleId": string, "failureMessage": string } | 
| Fields | |
|---|---|
| policy | 
 Name of the policy that was violated. Policy resource will be in the format of  | 
| ruleId | 
 Id of the rule that triggered the policy violation. | 
| failureMessage | 
 User readable message about why the request violated a policy. This is not intended for machine parsing. | 
PromoteReleaseOperation
Contains the information of an automated promote-release operation.
| JSON representation | 
|---|
| { "targetId": string, "wait": string, "rollout": string, "phase": string } | 
| Fields | |
|---|---|
| targetId | 
 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 | 
 Output only. How long the operation will be paused. A duration in seconds with up to nine fractional digits, ending with ' | 
| rollout | 
 Output only. The name of the rollout that initiates the  | 
| phase | 
 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 | 
 Output only. The phase of a deployment that initiated the operation. | 
| wait | 
 Output only. How long the operation will be paused. A duration in seconds with up to nine fractional digits, ending with ' | 
| rollout | 
 Output only. The name of the rollout that initiates the  | 
| destinationPhase | 
 Output only. The phase the rollout will be advanced to. | 
RepairRolloutOperation
Contains the information for an automated repair rollout operation.
| JSON representation | 
|---|
| {
  "rollout": string,
  "currentRepairPhaseIndex": string,
  "repairPhases": [
    {
      object ( | 
| Fields | |
|---|---|
| rollout | 
 Output only. The name of the rollout that initiates the  | 
| currentRepairPhaseIndex | 
 Output only. The index of the current repair action in the repair sequence. | 
| repairPhases[] | 
 Output only. Records of the repair attempts. Each repair phase may have multiple retry attempts or single rollback attempt. | 
| phaseId | 
 Output only. The phase ID of the phase that includes the job being repaired. | 
| jobId | 
 Output only. The job ID for the Job to repair. | 
RepairPhase
RepairPhase tracks the repair attempts that have been made for each RepairPhaseConfig specified in the Automation resource.
| JSON representation | 
|---|
| { // Union field | 
| Fields | |
|---|---|
| Union field repair_phase. TheRepairPhasetype and the information for that type.repair_phasecan be only one of the following: | |
| retry | 
 Output only. Records of the retry attempts for retry repair mode. | 
| rollback | 
 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 ( | 
| Fields | |
|---|---|
| totalAttempts | 
 Output only. The number of attempts that have been made. | 
| backoffMode | 
 Output only. The pattern of how the wait time of the retry attempt is calculated. | 
| attempts[] | 
 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 ( | 
| Fields | |
|---|---|
| attempt | 
 Output only. The index of this retry attempt. | 
| wait | 
 Output only. How long the operation will be paused. A duration in seconds with up to nine fractional digits, ending with ' | 
| state | 
 Output only. Valid state of this retry action. | 
| stateDesc | 
 Output only. Description of the state of the Retry. | 
RepairState
Valid state of a repair attempt.
| Enums | |
|---|---|
| REPAIR_STATE_UNSPECIFIED | The repairhas an unspecified state. | 
| REPAIR_STATE_SUCCEEDED | The repairaction has succeeded. | 
| REPAIR_STATE_CANCELLED | The repairaction was cancelled. | 
| REPAIR_STATE_FAILED | The repairaction has failed. | 
| REPAIR_STATE_IN_PROGRESS | The repairaction is in progress. | 
| REPAIR_STATE_PENDING | The repairaction is pending. | 
| REPAIR_STATE_ABORTED | The repairaction was aborted. | 
RollbackAttempt
RollbackAttempt represents an action of rolling back a Cloud Deploy 'Target'.
| JSON representation | 
|---|
| {
  "destinationPhase": string,
  "rolloutId": string,
  "state": enum ( | 
| Fields | |
|---|---|
| destinationPhase | 
 Output only. The phase to which the rollout will be rolled back to. | 
| rolloutId | 
 Output only. ID of the rollback  | 
| state | 
 Output only. Valid state of this rollback action. | 
| stateDesc | 
 Output only. Description of the state of the Rollback. | 
| disableRollbackIfRolloutPending | 
 Output only. If active rollout exists on the target, abort this rollback. | 
TimedPromoteReleaseOperation
Contains the information of an automated timed promote-release operation.
| JSON representation | 
|---|
| { "targetId": string, "release": string, "phase": string } | 
| Fields | |
|---|---|
| targetId | 
 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. | 
| release | 
 Output only. The name of the release to be promoted. | 
| phase | 
 Output only. The starting phase of the rollout created by this operation. | 
| Methods | |
|---|---|
| 
 | Cancels an AutomationRun. | 
| 
 | Gets details of a single AutomationRun. | 
| 
 | Lists AutomationRuns in a given project and location. |