#[non_exhaustive]pub struct AutomationRun {Show 15 fields
pub name: String,
pub create_time: Option<Timestamp>,
pub update_time: Option<Timestamp>,
pub etag: String,
pub service_account: String,
pub automation_snapshot: Option<Automation>,
pub target_id: String,
pub state: State,
pub state_description: String,
pub policy_violation: Option<PolicyViolation>,
pub expire_time: Option<Timestamp>,
pub rule_id: String,
pub automation_id: String,
pub wait_until_time: Option<Timestamp>,
pub operation: Option<Operation>,
/* private fields */
}
Expand description
An AutomationRun
resource in the Cloud Deploy API.
An AutomationRun
represents an execution instance of an
automation rule.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.name: String
Output only. Name of the AutomationRun
. Format is
projects/{project}/locations/{location}/deliveryPipelines/{delivery_pipeline}/automationRuns/{automation_run}
.
create_time: Option<Timestamp>
Output only. Time at which the AutomationRun
was created.
update_time: Option<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: Option<Automation>
Output only. Snapshot of the Automation taken at AutomationRun creation time.
target_id: String
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: State
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.
policy_violation: Option<PolicyViolation>
Output only. Contains information about what policies prevented the
AutomationRun
from proceeding.
expire_time: Option<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.
wait_until_time: Option<Timestamp>
Output only. Earliest time the AutomationRun
will attempt to resume.
Wait-time is configured by wait
in automation rule.
operation: Option<Operation>
The operation that the AutomationRun
will perform.
Implementations§
Source§impl AutomationRun
impl AutomationRun
pub fn new() -> Self
Sourcepub fn set_create_time<T>(self, v: T) -> Self
pub fn set_create_time<T>(self, v: T) -> Self
Sets the value of create_time.
Sourcepub fn set_or_clear_create_time<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_create_time<T>(self, v: Option<T>) -> Self
Sets or clears the value of create_time.
Sourcepub fn set_update_time<T>(self, v: T) -> Self
pub fn set_update_time<T>(self, v: T) -> Self
Sets the value of update_time.
Sourcepub fn set_or_clear_update_time<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_update_time<T>(self, v: Option<T>) -> Self
Sets or clears the value of update_time.
Sourcepub fn set_service_account<T: Into<String>>(self, v: T) -> Self
pub fn set_service_account<T: Into<String>>(self, v: T) -> Self
Sets the value of service_account.
Sourcepub fn set_automation_snapshot<T>(self, v: T) -> Selfwhere
T: Into<Automation>,
pub fn set_automation_snapshot<T>(self, v: T) -> Selfwhere
T: Into<Automation>,
Sets the value of automation_snapshot.
Sourcepub fn set_or_clear_automation_snapshot<T>(self, v: Option<T>) -> Selfwhere
T: Into<Automation>,
pub fn set_or_clear_automation_snapshot<T>(self, v: Option<T>) -> Selfwhere
T: Into<Automation>,
Sets or clears the value of automation_snapshot.
Sourcepub fn set_target_id<T: Into<String>>(self, v: T) -> Self
pub fn set_target_id<T: Into<String>>(self, v: T) -> Self
Sets the value of target_id.
Sourcepub fn set_state_description<T: Into<String>>(self, v: T) -> Self
pub fn set_state_description<T: Into<String>>(self, v: T) -> Self
Sets the value of state_description.
Sourcepub fn set_policy_violation<T>(self, v: T) -> Selfwhere
T: Into<PolicyViolation>,
pub fn set_policy_violation<T>(self, v: T) -> Selfwhere
T: Into<PolicyViolation>,
Sets the value of policy_violation.
Sourcepub fn set_or_clear_policy_violation<T>(self, v: Option<T>) -> Selfwhere
T: Into<PolicyViolation>,
pub fn set_or_clear_policy_violation<T>(self, v: Option<T>) -> Selfwhere
T: Into<PolicyViolation>,
Sets or clears the value of policy_violation.
Sourcepub fn set_expire_time<T>(self, v: T) -> Self
pub fn set_expire_time<T>(self, v: T) -> Self
Sets the value of expire_time.
Sourcepub fn set_or_clear_expire_time<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_expire_time<T>(self, v: Option<T>) -> Self
Sets or clears the value of expire_time.
Sourcepub fn set_rule_id<T: Into<String>>(self, v: T) -> Self
pub fn set_rule_id<T: Into<String>>(self, v: T) -> Self
Sets the value of rule_id.
Sourcepub fn set_automation_id<T: Into<String>>(self, v: T) -> Self
pub fn set_automation_id<T: Into<String>>(self, v: T) -> Self
Sets the value of automation_id.
Sourcepub fn set_wait_until_time<T>(self, v: T) -> Self
pub fn set_wait_until_time<T>(self, v: T) -> Self
Sets the value of wait_until_time.
Sourcepub fn set_or_clear_wait_until_time<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_wait_until_time<T>(self, v: Option<T>) -> Self
Sets or clears the value of wait_until_time.
Sourcepub fn set_operation<T: Into<Option<Operation>>>(self, v: T) -> Self
pub fn set_operation<T: Into<Option<Operation>>>(self, v: T) -> Self
Sets the value of operation.
Note that all the setters affecting operation
are mutually
exclusive.
Sourcepub fn promote_release_operation(&self) -> Option<&Box<PromoteReleaseOperation>>
pub fn promote_release_operation(&self) -> Option<&Box<PromoteReleaseOperation>>
The value of operation
if it holds a PromoteReleaseOperation
, None
if the field is not set or
holds a different branch.
Sourcepub fn set_promote_release_operation<T: Into<Box<PromoteReleaseOperation>>>(
self,
v: T,
) -> Self
pub fn set_promote_release_operation<T: Into<Box<PromoteReleaseOperation>>>( self, v: T, ) -> Self
Sets the value of operation
to hold a PromoteReleaseOperation
.
Note that all the setters affecting operation
are
mutually exclusive.
Sourcepub fn advance_rollout_operation(&self) -> Option<&Box<AdvanceRolloutOperation>>
pub fn advance_rollout_operation(&self) -> Option<&Box<AdvanceRolloutOperation>>
The value of operation
if it holds a AdvanceRolloutOperation
, None
if the field is not set or
holds a different branch.
Sourcepub fn set_advance_rollout_operation<T: Into<Box<AdvanceRolloutOperation>>>(
self,
v: T,
) -> Self
pub fn set_advance_rollout_operation<T: Into<Box<AdvanceRolloutOperation>>>( self, v: T, ) -> Self
Sets the value of operation
to hold a AdvanceRolloutOperation
.
Note that all the setters affecting operation
are
mutually exclusive.
Sourcepub fn repair_rollout_operation(&self) -> Option<&Box<RepairRolloutOperation>>
pub fn repair_rollout_operation(&self) -> Option<&Box<RepairRolloutOperation>>
The value of operation
if it holds a RepairRolloutOperation
, None
if the field is not set or
holds a different branch.
Sourcepub fn set_repair_rollout_operation<T: Into<Box<RepairRolloutOperation>>>(
self,
v: T,
) -> Self
pub fn set_repair_rollout_operation<T: Into<Box<RepairRolloutOperation>>>( self, v: T, ) -> Self
Sets the value of operation
to hold a RepairRolloutOperation
.
Note that all the setters affecting operation
are
mutually exclusive.
Sourcepub fn timed_promote_release_operation(
&self,
) -> Option<&Box<TimedPromoteReleaseOperation>>
pub fn timed_promote_release_operation( &self, ) -> Option<&Box<TimedPromoteReleaseOperation>>
The value of operation
if it holds a TimedPromoteReleaseOperation
, None
if the field is not set or
holds a different branch.
Sourcepub fn set_timed_promote_release_operation<T: Into<Box<TimedPromoteReleaseOperation>>>(
self,
v: T,
) -> Self
pub fn set_timed_promote_release_operation<T: Into<Box<TimedPromoteReleaseOperation>>>( self, v: T, ) -> Self
Sets the value of operation
to hold a TimedPromoteReleaseOperation
.
Note that all the setters affecting operation
are
mutually exclusive.
Trait Implementations§
Source§impl Clone for AutomationRun
impl Clone for AutomationRun
Source§fn clone(&self) -> AutomationRun
fn clone(&self) -> AutomationRun
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more