#[non_exhaustive]pub struct InstanceGroupManagersDeleteInstancesRequest {
pub instances: Vec<String>,
pub skip_instances_on_validation_error: Option<bool>,
/* private fields */
}instance-group-managers only.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.instances: Vec<String>The URLs of one or more instances to delete. This can be a full URL or a partial URL, such as zones/[ZONE]/instances/[INSTANCE_NAME]. Queued instances do not have URL and can be deleted only by name. One cannot specify both URLs and names in a single request.
skip_instances_on_validation_error: Option<bool>Specifies whether the request should proceed despite the inclusion of
instances that are not members of the group or that are already in the
process of being deleted or abandoned. If this field is set to false and
such an instance is specified in the request, the operation fails. The
operation always fails if the request contains a malformed instance URL or
a reference to an instance that exists in a zone or region other than the
group’s zone or region.
Implementations§
Source§impl InstanceGroupManagersDeleteInstancesRequest
impl InstanceGroupManagersDeleteInstancesRequest
pub fn new() -> Self
Sourcepub fn set_instances<T, V>(self, v: T) -> Self
pub fn set_instances<T, V>(self, v: T) -> Self
Sourcepub fn set_skip_instances_on_validation_error<T>(self, v: T) -> Self
pub fn set_skip_instances_on_validation_error<T>(self, v: T) -> Self
Sets the value of skip_instances_on_validation_error.
§Example
let x = InstanceGroupManagersDeleteInstancesRequest::new().set_skip_instances_on_validation_error(true);Sourcepub fn set_or_clear_skip_instances_on_validation_error<T>(
self,
v: Option<T>,
) -> Self
pub fn set_or_clear_skip_instances_on_validation_error<T>( self, v: Option<T>, ) -> Self
Sets or clears the value of skip_instances_on_validation_error.
§Example
let x = InstanceGroupManagersDeleteInstancesRequest::new().set_or_clear_skip_instances_on_validation_error(Some(false));
let x = InstanceGroupManagersDeleteInstancesRequest::new().set_or_clear_skip_instances_on_validation_error(None::<bool>);Trait Implementations§
Source§impl Clone for InstanceGroupManagersDeleteInstancesRequest
impl Clone for InstanceGroupManagersDeleteInstancesRequest
Source§fn clone(&self) -> InstanceGroupManagersDeleteInstancesRequest
fn clone(&self) -> InstanceGroupManagersDeleteInstancesRequest
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Default for InstanceGroupManagersDeleteInstancesRequest
impl Default for InstanceGroupManagersDeleteInstancesRequest
Source§fn default() -> InstanceGroupManagersDeleteInstancesRequest
fn default() -> InstanceGroupManagersDeleteInstancesRequest
Source§impl PartialEq for InstanceGroupManagersDeleteInstancesRequest
impl PartialEq for InstanceGroupManagersDeleteInstancesRequest
Source§fn eq(&self, other: &InstanceGroupManagersDeleteInstancesRequest) -> bool
fn eq(&self, other: &InstanceGroupManagersDeleteInstancesRequest) -> bool
self and other values to be equal, and is used by ==.