#[non_exhaustive]pub struct RollbackTargetRequest {
pub name: String,
pub target_id: String,
pub rollout_id: String,
pub release_id: String,
pub rollout_to_roll_back: String,
pub rollback_config: Option<RollbackTargetConfig>,
pub validate_only: bool,
pub override_deploy_policy: Vec<String>,
/* private fields */
}
Expand description
The request object for RollbackTarget
.
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.name: String
Required. The DeliveryPipeline
for which the rollback Rollout
must be
created. The format is
projects/{project_id}/locations/{location_name}/deliveryPipelines/{pipeline_name}
.
target_id: String
Required. ID of the Target
that is being rolled back.
rollout_id: String
Required. ID of the rollback Rollout
to create.
release_id: String
Optional. ID of the Release
to roll back to. If this isn’t specified, the
previous successful Rollout
to the specified target will be used to
determine the Release
.
rollout_to_roll_back: String
Optional. If provided, this must be the latest Rollout
that is on the
Target
.
rollback_config: Option<RollbackTargetConfig>
Optional. Configs for the rollback Rollout
.
validate_only: bool
Optional. If set to true, the request is validated and the user is provided
with a RollbackTargetResponse
.
override_deploy_policy: Vec<String>
Optional. Deploy policies to override. Format is
projects/{project}/locations/{location}/deployPolicies/{deploy_policy}
.
Implementations§
Source§impl RollbackTargetRequest
impl RollbackTargetRequest
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_rollout_id<T: Into<String>>(self, v: T) -> Self
pub fn set_rollout_id<T: Into<String>>(self, v: T) -> Self
Sets the value of rollout_id.
Sourcepub fn set_release_id<T: Into<String>>(self, v: T) -> Self
pub fn set_release_id<T: Into<String>>(self, v: T) -> Self
Sets the value of release_id.
Sourcepub fn set_rollout_to_roll_back<T: Into<String>>(self, v: T) -> Self
pub fn set_rollout_to_roll_back<T: Into<String>>(self, v: T) -> Self
Sets the value of rollout_to_roll_back.
Sourcepub fn set_rollback_config<T>(self, v: T) -> Selfwhere
T: Into<RollbackTargetConfig>,
pub fn set_rollback_config<T>(self, v: T) -> Selfwhere
T: Into<RollbackTargetConfig>,
Sets the value of rollback_config.
Sourcepub fn set_or_clear_rollback_config<T>(self, v: Option<T>) -> Selfwhere
T: Into<RollbackTargetConfig>,
pub fn set_or_clear_rollback_config<T>(self, v: Option<T>) -> Selfwhere
T: Into<RollbackTargetConfig>,
Sets or clears the value of rollback_config.
Sourcepub fn set_validate_only<T: Into<bool>>(self, v: T) -> Self
pub fn set_validate_only<T: Into<bool>>(self, v: T) -> Self
Sets the value of validate_only.
Sourcepub fn set_override_deploy_policy<T, V>(self, v: T) -> Self
pub fn set_override_deploy_policy<T, V>(self, v: T) -> Self
Sets the value of override_deploy_policy.
Trait Implementations§
Source§impl Clone for RollbackTargetRequest
impl Clone for RollbackTargetRequest
Source§fn clone(&self) -> RollbackTargetRequest
fn clone(&self) -> RollbackTargetRequest
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more