Google Cloud Deploy V1 Client - Class AutomationRun (0.15.0)

Reference documentation and code samples for the Google Cloud Deploy V1 Client class AutomationRun.

An AutomationRun resource in the Cloud Deploy API.

An AutomationRun represents an execution instance of an automation rule.

Generated from protobuf message google.cloud.deploy.v1.AutomationRun

Namespace

Google \ Cloud \ Deploy \ V1

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ name string

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

↳ create_time Google\Protobuf\Timestamp

Output only. Time at which the AutomationRun was created.

↳ update_time Google\Protobuf\Timestamp

Output only. Time at which the automationRun was updated.

↳ 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.

↳ service_account string

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\Automation

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

↳ target_id 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 int

Output only. Current state of the AutomationRun.

↳ state_description string

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

↳ expire_time Google\Protobuf\Timestamp

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

↳ rule_id string

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

↳ automation_id string

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

↳ promote_release_operation Google\Cloud\Deploy\V1\PromoteReleaseOperation

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

↳ advance_rollout_operation Google\Cloud\Deploy\V1\AdvanceRolloutOperation

Output only. Advances a rollout to the next phase.

↳ repair_rollout_operation Google\Cloud\Deploy\V1\RepairRolloutOperation

Output only. Repairs a failed 'Rollout'.

↳ wait_until_time Google\Protobuf\Timestamp

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

getName

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

Returns
TypeDescription
string

setName

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

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getCreateTime

Output only. Time at which the AutomationRun was created.

Returns
TypeDescription
Google\Protobuf\Timestamp|null

hasCreateTime

clearCreateTime

setCreateTime

Output only. Time at which the AutomationRun was created.

Parameter
NameDescription
var Google\Protobuf\Timestamp
Returns
TypeDescription
$this

getUpdateTime

Output only. Time at which the automationRun was updated.

Returns
TypeDescription
Google\Protobuf\Timestamp|null

hasUpdateTime

clearUpdateTime

setUpdateTime

Output only. Time at which the automationRun was updated.

Parameter
NameDescription
var Google\Protobuf\Timestamp
Returns
TypeDescription
$this

getEtag

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.

Returns
TypeDescription
string

setEtag

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.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getServiceAccount

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

Returns
TypeDescription
string

setServiceAccount

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

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getAutomationSnapshot

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

Returns
TypeDescription
Google\Cloud\Deploy\V1\Automation|null

hasAutomationSnapshot

clearAutomationSnapshot

setAutomationSnapshot

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

Parameter
NameDescription
var Google\Cloud\Deploy\V1\Automation
Returns
TypeDescription
$this

getTargetId

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.

Returns
TypeDescription
string

setTargetId

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.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getState

Output only. Current state of the AutomationRun.

Returns
TypeDescription
int

setState

Output only. Current state of the AutomationRun.

Parameter
NameDescription
var int
Returns
TypeDescription
$this

getStateDescription

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

Returns
TypeDescription
string

setStateDescription

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

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getExpireTime

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

Returns
TypeDescription
Google\Protobuf\Timestamp|null

hasExpireTime

clearExpireTime

setExpireTime

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

Parameter
NameDescription
var Google\Protobuf\Timestamp
Returns
TypeDescription
$this

getRuleId

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

Returns
TypeDescription
string

setRuleId

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

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getAutomationId

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

Returns
TypeDescription
string

setAutomationId

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

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getPromoteReleaseOperation

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

Returns
TypeDescription
Google\Cloud\Deploy\V1\PromoteReleaseOperation|null

hasPromoteReleaseOperation

setPromoteReleaseOperation

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

Parameter
NameDescription
var Google\Cloud\Deploy\V1\PromoteReleaseOperation
Returns
TypeDescription
$this

getAdvanceRolloutOperation

Output only. Advances a rollout to the next phase.

Returns
TypeDescription
Google\Cloud\Deploy\V1\AdvanceRolloutOperation|null

hasAdvanceRolloutOperation

setAdvanceRolloutOperation

Output only. Advances a rollout to the next phase.

Parameter
NameDescription
var Google\Cloud\Deploy\V1\AdvanceRolloutOperation
Returns
TypeDescription
$this

getRepairRolloutOperation

Output only. Repairs a failed 'Rollout'.

Returns
TypeDescription
Google\Cloud\Deploy\V1\RepairRolloutOperation|null

hasRepairRolloutOperation

setRepairRolloutOperation

Output only. Repairs a failed 'Rollout'.

Parameter
NameDescription
var Google\Cloud\Deploy\V1\RepairRolloutOperation
Returns
TypeDescription
$this

getWaitUntilTime

Output only. Earliest time the AutomationRun will attempt to resume.

Wait-time is configured by wait in automation rule.

Returns
TypeDescription
Google\Protobuf\Timestamp|null

hasWaitUntilTime

clearWaitUntilTime

setWaitUntilTime

Output only. Earliest time the AutomationRun will attempt to resume.

Wait-time is configured by wait in automation rule.

Parameter
NameDescription
var Google\Protobuf\Timestamp
Returns
TypeDescription
$this

getOperation

Returns
TypeDescription
string