#[non_exhaustive]pub struct DeletePerInstanceConfigsRequest {
pub instance_group_manager: String,
pub project: String,
pub region: String,
pub body: Option<RegionInstanceGroupManagerDeleteInstanceConfigReq>,
/* private fields */
}Available on crate feature
region-instance-group-managers only.Expand description
Synthetic request message for the deletePerInstanceConfigs() method.
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.instance_group_manager: StringThe name of the managed instance group. It should conform to RFC1035.
project: StringProject ID for this request.
region: StringName of the region scoping this request, should conform to RFC1035.
body: Option<RegionInstanceGroupManagerDeleteInstanceConfigReq>Synthetic request body field for the deletePerInstanceConfigs() method.
Implementations§
Source§impl DeletePerInstanceConfigsRequest
impl DeletePerInstanceConfigsRequest
pub fn new() -> Self
Sourcepub fn set_instance_group_manager<T: Into<String>>(self, v: T) -> Self
pub fn set_instance_group_manager<T: Into<String>>(self, v: T) -> Self
Sets the value of instance_group_manager.
§Example
ⓘ
let x = DeletePerInstanceConfigsRequest::new().set_instance_group_manager("example");Sourcepub fn set_project<T: Into<String>>(self, v: T) -> Self
pub fn set_project<T: Into<String>>(self, v: T) -> Self
Sourcepub fn set_region<T: Into<String>>(self, v: T) -> Self
pub fn set_region<T: Into<String>>(self, v: T) -> Self
Sourcepub fn set_or_clear_body<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_body<T>(self, v: Option<T>) -> Self
Sets or clears the value of body.
§Example
ⓘ
use google_cloud_compute_v1::model::RegionInstanceGroupManagerDeleteInstanceConfigReq;
let x = DeletePerInstanceConfigsRequest::new().set_or_clear_body(Some(RegionInstanceGroupManagerDeleteInstanceConfigReq::default()/* use setters */));
let x = DeletePerInstanceConfigsRequest::new().set_or_clear_body(None::<RegionInstanceGroupManagerDeleteInstanceConfigReq>);Trait Implementations§
Source§impl Clone for DeletePerInstanceConfigsRequest
impl Clone for DeletePerInstanceConfigsRequest
Source§fn clone(&self) -> DeletePerInstanceConfigsRequest
fn clone(&self) -> DeletePerInstanceConfigsRequest
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Default for DeletePerInstanceConfigsRequest
impl Default for DeletePerInstanceConfigsRequest
Source§fn default() -> DeletePerInstanceConfigsRequest
fn default() -> DeletePerInstanceConfigsRequest
Returns the “default value” for a type. Read more
Source§impl PartialEq for DeletePerInstanceConfigsRequest
impl PartialEq for DeletePerInstanceConfigsRequest
Source§fn eq(&self, other: &DeletePerInstanceConfigsRequest) -> bool
fn eq(&self, other: &DeletePerInstanceConfigsRequest) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for DeletePerInstanceConfigsRequest
Auto Trait Implementations§
impl Freeze for DeletePerInstanceConfigsRequest
impl RefUnwindSafe for DeletePerInstanceConfigsRequest
impl Send for DeletePerInstanceConfigsRequest
impl Sync for DeletePerInstanceConfigsRequest
impl Unpin for DeletePerInstanceConfigsRequest
impl UnwindSafe for DeletePerInstanceConfigsRequest
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