#[non_exhaustive]pub struct CreateBlueGreenDeploymentRequest {
pub parent: String,
pub blue_green_deployment_id: String,
pub blue_green_deployment: Option<BlueGreenDeployment>,
/* private fields */
}Expand description
The request message for creating a BlueGreenDeployment resource.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.parent: StringRequired. The parent resource where this blue-green deployment will be created. Format: projects/{project}/locations/{location}
blue_green_deployment_id: StringRequired. The ID to use for the blue-green deployment, which will become the final component of the deployment’s resource name. The ID must be unique within the given project and location and between 2-63 characters.
blue_green_deployment: Option<BlueGreenDeployment>Required. The BlueGreenDeployment resource to create.
Implementations§
Source§impl CreateBlueGreenDeploymentRequest
impl CreateBlueGreenDeploymentRequest
Sourcepub fn set_parent<T: Into<String>>(self, v: T) -> Self
pub fn set_parent<T: Into<String>>(self, v: T) -> Self
Sourcepub fn set_blue_green_deployment_id<T: Into<String>>(self, v: T) -> Self
pub fn set_blue_green_deployment_id<T: Into<String>>(self, v: T) -> Self
Sets the value of blue_green_deployment_id.
§Example
ⓘ
let x = CreateBlueGreenDeploymentRequest::new().set_blue_green_deployment_id("example");Sourcepub fn set_blue_green_deployment<T>(self, v: T) -> Selfwhere
T: Into<BlueGreenDeployment>,
pub fn set_blue_green_deployment<T>(self, v: T) -> Selfwhere
T: Into<BlueGreenDeployment>,
Sets the value of blue_green_deployment.
§Example
ⓘ
use google_cloud_sql_v1::model::BlueGreenDeployment;
let x = CreateBlueGreenDeploymentRequest::new().set_blue_green_deployment(BlueGreenDeployment::default()/* use setters */);Sourcepub fn set_or_clear_blue_green_deployment<T>(self, v: Option<T>) -> Selfwhere
T: Into<BlueGreenDeployment>,
pub fn set_or_clear_blue_green_deployment<T>(self, v: Option<T>) -> Selfwhere
T: Into<BlueGreenDeployment>,
Sets or clears the value of blue_green_deployment.
§Example
ⓘ
use google_cloud_sql_v1::model::BlueGreenDeployment;
let x = CreateBlueGreenDeploymentRequest::new().set_or_clear_blue_green_deployment(Some(BlueGreenDeployment::default()/* use setters */));
let x = CreateBlueGreenDeploymentRequest::new().set_or_clear_blue_green_deployment(None::<BlueGreenDeployment>);Trait Implementations§
impl StructuralPartialEq for CreateBlueGreenDeploymentRequest
Auto Trait Implementations§
impl Freeze for CreateBlueGreenDeploymentRequest
impl RefUnwindSafe for CreateBlueGreenDeploymentRequest
impl Send for CreateBlueGreenDeploymentRequest
impl Sync for CreateBlueGreenDeploymentRequest
impl Unpin for CreateBlueGreenDeploymentRequest
impl UnsafeUnpin for CreateBlueGreenDeploymentRequest
impl UnwindSafe for CreateBlueGreenDeploymentRequest
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