pub struct Automation {
pub annotations: Option<HashMap<String, String>>,
pub create_time: Option<DateTime<Utc>>,
pub description: Option<String>,
pub etag: Option<String>,
pub labels: Option<HashMap<String, String>>,
pub name: Option<String>,
pub rules: Option<Vec<AutomationRule>>,
pub selector: Option<AutomationResourceSelector>,
pub service_account: Option<String>,
pub suspended: Option<bool>,
pub uid: Option<String>,
pub update_time: Option<DateTime<Utc>>,
}
Expand description
An Automation
resource in the Cloud Deploy API. An Automation
enables the automation of manually driven actions for a Delivery Pipeline, which includes Release promotion among Targets, Rollout repair and Rollout deployment strategy advancement. The intention of Automation is to reduce manual intervention in the continuous delivery process.
§Activities
This type is used in activities, which are methods you may call on this type or where this type is involved in. The list links the activity name, along with information about where it is used (one of request and response).
Fields§
§annotations: Option<HashMap<String, String>>
Optional. User annotations. These attributes can only be set and used by the user, and not by Cloud Deploy. Annotations must meet the following constraints: * Annotations are key/value pairs. * Valid annotation keys have two segments: an optional prefix and name, separated by a slash (/
). * The name segment is required and must be 63 characters or less, beginning and ending with an alphanumeric character ([a-z0-9A-Z]
) with dashes (-
), underscores (_
), dots (.
), and alphanumerics between. * The prefix is optional. If specified, the prefix must be a DNS subdomain: a series of DNS labels separated by dots(.
), not longer than 253 characters in total, followed by a slash (/
). See https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations/#syntax-and-character-set for more details.
create_time: Option<DateTime<Utc>>
Output only. Time at which the automation was created.
description: Option<String>
Optional. Description of the Automation
. Max length is 255 characters.
etag: Option<String>
Optional. The weak etag of the Automation
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.
labels: Option<HashMap<String, String>>
Optional. Labels are attributes that can be set and used by both the user and by Cloud Deploy. Labels must meet the following constraints: * Keys and values can contain only lowercase letters, numeric characters, underscores, and dashes. * All characters must use UTF-8 encoding, and international characters are allowed. * Keys must start with a lowercase letter or international character. * Each resource is limited to a maximum of 64 labels. Both keys and values are additionally constrained to be <= 63 characters.
name: Option<String>
Output only. Name of the Automation
. Format is projects/{project}/locations/{location}/deliveryPipelines/{delivery_pipeline}/automations/{automation}
.
rules: Option<Vec<AutomationRule>>
Required. List of Automation rules associated with the Automation resource. Must have at least one rule and limited to 250 rules per Delivery Pipeline. Note: the order of the rules here is not the same as the order of execution.
selector: Option<AutomationResourceSelector>
Required. Selected resources to which the automation will be applied.
service_account: Option<String>
Required. Email address of the user-managed IAM service account that creates Cloud Deploy release and rollout resources.
suspended: Option<bool>
Optional. When Suspended, automation is deactivated from execution.
uid: Option<String>
Output only. Unique identifier of the Automation
.
update_time: Option<DateTime<Utc>>
Output only. Time at which the automation was updated.
Trait Implementations§
Source§impl Clone for Automation
impl Clone for Automation
Source§fn clone(&self) -> Automation
fn clone(&self) -> Automation
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for Automation
impl Debug for Automation
Source§impl Default for Automation
impl Default for Automation
Source§fn default() -> Automation
fn default() -> Automation
Source§impl<'de> Deserialize<'de> for Automation
impl<'de> Deserialize<'de> for Automation
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Source§impl Serialize for Automation
impl Serialize for Automation
impl RequestValue for Automation
impl ResponseResult for Automation
Auto Trait Implementations§
impl Freeze for Automation
impl RefUnwindSafe for Automation
impl Send for Automation
impl Sync for Automation
impl Unpin for Automation
impl UnwindSafe for Automation
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more