# Class AutomationRun (2.11.0)

2.11.0 (latest) 2.10.0 2.9.0 2.8.0 2.7.1 2.6.3 2.5.0 2.4.1 2.3.0 2.2.0 2.1.0 2.0.0 1.19.1 1.18.1 1.17.3 1.16.0 1.15.0 1.14.0 1.13.0 1.12.0 1.11.1 1.10.1 1.9.0 1.8.0 1.7.0 1.6.1 1.5.0 1.4.1 1.3.1 1.2.1 1.1.1 1.0.0 0.3.2 0.2.0 0.1.1

    AutomationRun(mapping=None, *, ignore_unknown_fields=False, **kwargs)

An `AutomationRun` resource in the Cloud Deploy API.

An `AutomationRun` represents an execution instance of an
automation rule.

This message has `oneof`_ fields (mutually exclusive fields).
For each oneof, at most one member field can be set at the same time.
Setting any member of the oneof automatically clears all other
members.

.. _oneof: <https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields>

| ## Attributes ||
|---|---|
| **Name** | **Description** |
| `name` | `str` Output only. Name of the `AutomationRun`. Format is `projects/{project}/locations/{location}/deliveryPipelines/{delivery_pipeline}/automationRuns/{automation_run}`. |
| `create_time` | `google.protobuf.timestamp_pb2.Timestamp` Output only. Time at which the `AutomationRun` was created. |
| `update_time` | `google.protobuf.timestamp_pb2.Timestamp` Output only. Time at which the automationRun was updated. |
| `etag` | `str` 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. |
| `service_account` | `str` Output only. Email address of the user-managed IAM service account that performs the operations against Cloud Deploy resources. |
| `automation_snapshot` | `google.cloud.deploy_v1.types.Automation` Output only. Snapshot of the Automation taken at AutomationRun creation time. |
| `target_id` | `str` Output only. The ID of the source target that initiates the `AutomationRun`. The value of this field is the last segment of a target name. |
| `state` | `https://docs.cloud.google.com/python/docs/reference/clouddeploy/latest/google.cloud.deploy_v1.types.AutomationRun.State` Output only. Current state of the `AutomationRun`. |
| `state_description` | `str` Output only. Explains the current state of the `AutomationRun`. Present only when an explanation is needed. |
| `policy_violation` | `https://docs.cloud.google.com/python/docs/reference/clouddeploy/latest/google.cloud.deploy_v1.types.PolicyViolation` Output only. Contains information about what policies prevented the `AutomationRun` from proceeding. |
| `expire_time` | `google.protobuf.timestamp_pb2.Timestamp` Output only. Time the `AutomationRun` expires. An `AutomationRun` expires after 14 days from its creation date. |
| `rule_id` | `str` Output only. The ID of the automation rule that initiated the operation. |
| `automation_id` | `str` Output only. The ID of the automation that initiated the operation. |
| `promote_release_operation` | `https://docs.cloud.google.com/python/docs/reference/clouddeploy/latest/google.cloud.deploy_v1.types.PromoteReleaseOperation` Output only. Promotes a release to a specified 'Target'. This field is a member of `oneof`_ `operation`. |
| `advance_rollout_operation` | `https://docs.cloud.google.com/python/docs/reference/clouddeploy/latest/google.cloud.deploy_v1.types.AdvanceRolloutOperation` Output only. Advances a rollout to the next phase. This field is a member of `oneof`_ `operation`. |
| `repair_rollout_operation` | `https://docs.cloud.google.com/python/docs/reference/clouddeploy/latest/google.cloud.deploy_v1.types.RepairRolloutOperation` Output only. Repairs a failed 'Rollout'. This field is a member of `oneof`_ `operation`. |
| `timed_promote_release_operation` | `https://docs.cloud.google.com/python/docs/reference/clouddeploy/latest/google.cloud.deploy_v1.types.TimedPromoteReleaseOperation` Output only. Promotes a release to a specified 'Target' as defined in a Timed Promote Release rule. This field is a member of `oneof`_ `operation`. |
| `wait_until_time` | `google.protobuf.timestamp_pb2.Timestamp` Output only. Earliest time the `AutomationRun` will attempt to resume. Wait-time is configured by `wait` in automation rule. |

## Classes

### State

    State(value)

Valid state of an `AutomationRun`.