Struct google_api_proto::google::cloud::deploy::v1::Automation
source · pub struct Automation {
pub name: String,
pub uid: String,
pub description: String,
pub create_time: Option<Timestamp>,
pub update_time: Option<Timestamp>,
pub annotations: BTreeMap<String, String>,
pub labels: BTreeMap<String, String>,
pub etag: String,
pub suspended: bool,
pub service_account: String,
pub selector: Option<AutomationResourceSelector>,
pub rules: Vec<AutomationRule>,
}
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.
Fields§
§name: String
Output only. Name of the Automation
. Format is
projects/{project}/locations/{location}/deliveryPipelines/{delivery_pipeline}/automations/{automation}
.
uid: String
Output only. Unique identifier of the Automation
.
description: String
Optional. Description of the Automation
. Max length is 255 characters.
create_time: Option<Timestamp>
Output only. Time at which the automation was created.
update_time: Option<Timestamp>
Output only. Time at which the automation was updated.
annotations: BTreeMap<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.
labels: BTreeMap<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.
etag: 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.
suspended: bool
Optional. When Suspended, automation is deactivated from execution.
service_account: String
Required. Email address of the user-managed IAM service account that creates Cloud Deploy release and rollout resources.
selector: Option<AutomationResourceSelector>
Required. Selected resources to which the automation will be applied.
rules: 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.
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§impl Message for Automation
impl Message for Automation
source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
source§fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
source§fn encode_to_vec(&self) -> Vec<u8>where
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8>where
Self: Sized,
source§fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
source§fn encode_length_delimited_to_vec(&self) -> Vec<u8>where
Self: Sized,
fn encode_length_delimited_to_vec(&self) -> Vec<u8>where
Self: Sized,
source§fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
source§fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
source§fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self
. Read moresource§fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self
.source§impl PartialEq for Automation
impl PartialEq for Automation
source§fn eq(&self, other: &Automation) -> bool
fn eq(&self, other: &Automation) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq 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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T
in a tonic::Request