Struct google_api_proto::google::cloud::deploy::v1::PromoteReleaseRule
source · pub struct PromoteReleaseRule {
pub id: String,
pub wait: Option<Duration>,
pub destination_target_id: String,
pub condition: Option<AutomationRuleCondition>,
pub destination_phase: String,
}
Expand description
The PromoteRelease
rule will automatically promote a release from the
current target to a specified target.
Fields§
§id: String
Required. ID of the rule. This id must be unique in the Automation
resource to which this rule belongs. The format is
[a-z](\[a-z0-9-\]{0,61}\[a-z0-9\])?
.
wait: Option<Duration>
Optional. How long the release need to be paused until being promoted to the next target.
destination_target_id: String
Optional. The ID of the stage in the pipeline to which this Release
is
deploying. If unspecified, default it to the next stage in the promotion
flow. The value of this field could be one of the following:
- The last segment of a target name
- “@next”, the next target in the promotion sequence
condition: Option<AutomationRuleCondition>
Output only. Information around the state of the Automation rule.
destination_phase: String
Optional. The starting phase of the rollout created by this operation. Default to the first phase.
Trait Implementations§
source§impl Clone for PromoteReleaseRule
impl Clone for PromoteReleaseRule
source§fn clone(&self) -> PromoteReleaseRule
fn clone(&self) -> PromoteReleaseRule
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for PromoteReleaseRule
impl Debug for PromoteReleaseRule
source§impl Default for PromoteReleaseRule
impl Default for PromoteReleaseRule
source§impl Message for PromoteReleaseRule
impl Message for PromoteReleaseRule
source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
Returns the encoded length of the message without a length delimiter.
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,
Encodes the message to a buffer. Read more
source§fn encode_to_vec(&self) -> Vec<u8>where
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8>where
Self: Sized,
Encodes the message to a newly allocated buffer.
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,
Encodes the message with a length-delimiter to a buffer. Read more
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,
Encodes the message with a length-delimiter to a newly allocated buffer.
source§fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Decodes an instance of the message from a buffer. Read more
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,
Decodes a length-delimited instance of the message from the buffer.
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,
Decodes an instance of the message from a buffer, and merges it into
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,
Decodes a length-delimited instance of the message from buffer, and
merges it into
self
.source§impl PartialEq for PromoteReleaseRule
impl PartialEq for PromoteReleaseRule
source§fn eq(&self, other: &PromoteReleaseRule) -> bool
fn eq(&self, other: &PromoteReleaseRule) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for PromoteReleaseRule
Auto Trait Implementations§
impl Freeze for PromoteReleaseRule
impl RefUnwindSafe for PromoteReleaseRule
impl Send for PromoteReleaseRule
impl Sync for PromoteReleaseRule
impl Unpin for PromoteReleaseRule
impl UnwindSafe for PromoteReleaseRule
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
Mutably borrows from an owned value. Read more
§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>
Wrap the input message
T
in a tonic::Request