- Resource: AutomationRun
- State
- PolicyViolation
- PolicyViolationDetails
- PromoteReleaseOperation
- AdvanceRolloutOperation
- RepairRolloutOperation
- RepairPhase
- RetryPhase
- RetryAttempt
- RepairState
- RollbackAttempt
- 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 |
create |
Output only. Time at which the A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. Examples: |
update |
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: |
etag |
Output only. The weak etag of the |
service |
Output only. Email address of the user-managed IAM service account that performs the operations against Cloud Deploy resources. |
automation |
Output only. Snapshot of the Automation taken at AutomationRun creation time. |
target |
Output only. The ID of the target that represents the promotion stage that initiates the |
state |
Output only. Current state of the |
state |
Output only. Explains the current state of the |
policy |
Output only. Contains information about what policies prevented the |
expire |
Output only. Time the A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. Examples: |
rule |
Output only. The ID of the automation rule that initiated the operation. |
automation |
Output only. The ID of the automation that initiated the operation. |
wait |
Output only. Earliest time the A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. Examples: |
Union field operation . The operation that the AutomationRun will perform. operation can be only one of the following: |
|
promote |
Output only. Promotes a release to a specified 'Target'. |
advance |
Output only. Advances a rollout to the next phase. |
repair |
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. |
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 | |
---|---|
policy |
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 |
rule |
Id of the rule that triggered the policy violation. |
failure |
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 | |
---|---|
target |
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 | |
---|---|
source |
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 |
destination |
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 |
current |
Output only. The index of the current repair action in the repair sequence. |
repair |
Output only. Records of the repair attempts. Each repair phase may have multiple retry attempts or single rollback attempt. |
phase |
Output only. The phase ID of the phase that includes the job being repaired. |
job |
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 . The RepairPhase type and the information for that type. repair_phase can 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 | |
---|---|
total |
Output only. The number of attempts that have been made. |
backoff |
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. |
state |
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_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 ( |
Fields | |
---|---|
destination |
Output only. The phase to which the rollout will be rolled back to. |
rollout |
Output only. ID of the rollback |
state |
Output only. Valid state of this rollback action. |
state |
Output only. Description of the state of the Rollback. |
disable |
Output only. If active rollout exists on the target, abort this rollback. |
Methods |
|
---|---|
|
Cancels an AutomationRun. |
|
Gets details of a single AutomationRun. |
|
Lists AutomationRuns in a given project and location. |