#[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: StringRequired. The DeliveryPipeline for which the rollback Rollout must be
created. The format is
projects/{project_id}/locations/{location_name}/deliveryPipelines/{pipeline_name}.
target_id: StringRequired. ID of the Target that is being rolled back.
rollout_id: StringRequired. ID of the rollback Rollout to create.
release_id: StringOptional. 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: StringOptional. 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: boolOptional. 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
Sourcepub fn set_target_id<T: Into<String>>(self, v: T) -> Self
pub fn set_target_id<T: Into<String>>(self, v: T) -> Self
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.
§Example
let x = RollbackTargetRequest::new().set_rollout_id("example");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.
§Example
let x = RollbackTargetRequest::new().set_release_id("example");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.
§Example
let x = RollbackTargetRequest::new().set_rollout_to_roll_back("example");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.
§Example
use google_cloud_deploy_v1::model::RollbackTargetConfig;
let x = RollbackTargetRequest::new().set_rollback_config(RollbackTargetConfig::default()/* use setters */);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.
§Example
use google_cloud_deploy_v1::model::RollbackTargetConfig;
let x = RollbackTargetRequest::new().set_or_clear_rollback_config(Some(RollbackTargetConfig::default()/* use setters */));
let x = RollbackTargetRequest::new().set_or_clear_rollback_config(None::<RollbackTargetConfig>);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.
§Example
let x = RollbackTargetRequest::new().set_validate_only(true);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.
§Example
let x = RollbackTargetRequest::new().set_override_deploy_policy(["a", "b", "c"]);Trait Implementations§
Source§impl Clone for RollbackTargetRequest
impl Clone for RollbackTargetRequest
Source§fn clone(&self) -> RollbackTargetRequest
fn clone(&self) -> RollbackTargetRequest
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for RollbackTargetRequest
impl Debug for RollbackTargetRequest
Source§impl Default for RollbackTargetRequest
impl Default for RollbackTargetRequest
Source§fn default() -> RollbackTargetRequest
fn default() -> RollbackTargetRequest
Source§impl Message for RollbackTargetRequest
impl Message for RollbackTargetRequest
Source§impl PartialEq for RollbackTargetRequest
impl PartialEq for RollbackTargetRequest
impl StructuralPartialEq for RollbackTargetRequest
Auto Trait Implementations§
impl Freeze for RollbackTargetRequest
impl RefUnwindSafe for RollbackTargetRequest
impl Send for RollbackTargetRequest
impl Sync for RollbackTargetRequest
impl Unpin for RollbackTargetRequest
impl UnsafeUnpin for RollbackTargetRequest
impl UnwindSafe for RollbackTargetRequest
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<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<T> FutureExt for T
impl<T> FutureExt for T
Source§fn with_context(self, otel_cx: Context) -> WithContext<Self>
fn with_context(self, otel_cx: Context) -> WithContext<Self>
Source§fn with_current_context(self) -> WithContext<Self>
fn with_current_context(self) -> WithContext<Self>
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> 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