pub struct PromoteReleaseRule {
pub condition: Option<AutomationRuleCondition>,
pub destination_phase: Option<String>,
pub destination_target_id: Option<String>,
pub id: Option<String>,
pub wait: Option<Duration>,
}
Expand description
PromoteRelease
rule will automatically promote a release from the current target to a specified target.
This type is not used in any activity, and only used as part of another schema.
Fields§
§condition: Option<AutomationRuleCondition>
Output only. Information around the state of the Automation rule.
destination_phase: Option<String>
Optional. The starting phase of the rollout created by this operation. Default to the first phase.
destination_target_id: Option<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. It only needs the ID to determine if the target is one of the stages in the promotion sequence defined in the pipeline. * “@next”, the next target in the promotion sequence.
id: Option<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.
Trait Implementations§
Source§impl Clone for PromoteReleaseRule
impl Clone for PromoteReleaseRule
Source§fn clone(&self) -> PromoteReleaseRule
fn clone(&self) -> PromoteReleaseRule
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for PromoteReleaseRule
impl Debug for PromoteReleaseRule
Source§impl Default for PromoteReleaseRule
impl Default for PromoteReleaseRule
Source§fn default() -> PromoteReleaseRule
fn default() -> PromoteReleaseRule
Source§impl<'de> Deserialize<'de> for PromoteReleaseRule
impl<'de> Deserialize<'de> for PromoteReleaseRule
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 PromoteReleaseRule
impl Serialize for PromoteReleaseRule
impl Part 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
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