#[non_exhaustive]pub struct Stage {
pub target_id: String,
pub profiles: Vec<String>,
pub strategy: Option<Strategy>,
pub deploy_parameters: Vec<DeployParameters>,
/* private fields */
}
Expand description
Stage specifies a location to which to deploy.
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.target_id: String
Optional. The target_id to which this stage points. This field refers
exclusively to the last segment of a target name. For example, this field
would just be my-target
(rather than
projects/project/locations/location/targets/my-target
). The location of
the Target
is inferred to be the same as the location of the
DeliveryPipeline
that contains this Stage
.
profiles: Vec<String>
Optional. Skaffold profiles to use when rendering the manifest for this
stage’s Target
.
strategy: Option<Strategy>
Optional. The strategy to use for a Rollout
to this stage.
deploy_parameters: Vec<DeployParameters>
Optional. The deploy parameters to use for the target in this stage.
Implementations§
Source§impl Stage
impl Stage
pub fn new() -> Self
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_profiles<T, V>(self, v: T) -> Self
pub fn set_profiles<T, V>(self, v: T) -> Self
Sets the value of profiles.
Sourcepub fn set_strategy<T>(self, v: T) -> Self
pub fn set_strategy<T>(self, v: T) -> Self
Sets the value of strategy.
Sourcepub fn set_or_clear_strategy<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_strategy<T>(self, v: Option<T>) -> Self
Sets or clears the value of strategy.
Sourcepub fn set_deploy_parameters<T, V>(self, v: T) -> Self
pub fn set_deploy_parameters<T, V>(self, v: T) -> Self
Sets the value of deploy_parameters.