#[non_exhaustive]pub struct ApplyUpdatesToInstancesRequest {
pub instance_group_manager: String,
pub project: String,
pub zone: String,
pub body: Option<InstanceGroupManagersApplyUpdatesRequest>,
/* private fields */
}Available on crate feature
instance-group-managers only.Expand description
Synthetic request message for the applyUpdatesToInstances() 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, should conform to RFC1035.
project: StringProject ID for this request.
zone: StringThe name of thezone where the managed instance group is located. Should conform to RFC1035.
body: Option<InstanceGroupManagersApplyUpdatesRequest>Synthetic request body field for the applyUpdatesToInstances() method.
Implementations§
Source§impl ApplyUpdatesToInstancesRequest
impl ApplyUpdatesToInstancesRequest
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 = ApplyUpdatesToInstancesRequest::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_body<T>(self, v: T) -> Selfwhere
T: Into<InstanceGroupManagersApplyUpdatesRequest>,
pub fn set_body<T>(self, v: T) -> Selfwhere
T: Into<InstanceGroupManagersApplyUpdatesRequest>,
Sourcepub fn set_or_clear_body<T>(self, v: Option<T>) -> Selfwhere
T: Into<InstanceGroupManagersApplyUpdatesRequest>,
pub fn set_or_clear_body<T>(self, v: Option<T>) -> Selfwhere
T: Into<InstanceGroupManagersApplyUpdatesRequest>,
Sets or clears the value of body.
§Example
ⓘ
use google_cloud_compute_v1::model::InstanceGroupManagersApplyUpdatesRequest;
let x = ApplyUpdatesToInstancesRequest::new().set_or_clear_body(Some(InstanceGroupManagersApplyUpdatesRequest::default()/* use setters */));
let x = ApplyUpdatesToInstancesRequest::new().set_or_clear_body(None::<InstanceGroupManagersApplyUpdatesRequest>);Trait Implementations§
Source§impl Clone for ApplyUpdatesToInstancesRequest
impl Clone for ApplyUpdatesToInstancesRequest
Source§fn clone(&self) -> ApplyUpdatesToInstancesRequest
fn clone(&self) -> ApplyUpdatesToInstancesRequest
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 ApplyUpdatesToInstancesRequest
impl Default for ApplyUpdatesToInstancesRequest
Source§fn default() -> ApplyUpdatesToInstancesRequest
fn default() -> ApplyUpdatesToInstancesRequest
Returns the “default value” for a type. Read more
Source§impl PartialEq for ApplyUpdatesToInstancesRequest
impl PartialEq for ApplyUpdatesToInstancesRequest
Source§fn eq(&self, other: &ApplyUpdatesToInstancesRequest) -> bool
fn eq(&self, other: &ApplyUpdatesToInstancesRequest) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for ApplyUpdatesToInstancesRequest
Auto Trait Implementations§
impl Freeze for ApplyUpdatesToInstancesRequest
impl RefUnwindSafe for ApplyUpdatesToInstancesRequest
impl Send for ApplyUpdatesToInstancesRequest
impl Sync for ApplyUpdatesToInstancesRequest
impl Unpin for ApplyUpdatesToInstancesRequest
impl UnwindSafe for ApplyUpdatesToInstancesRequest
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