#[non_exhaustive]pub struct ResizeNodeGroupRequest {
pub name: String,
pub size: i32,
pub request_id: String,
pub graceful_decommission_timeout: Option<Duration>,
/* private fields */
}
Expand description
A request to resize a node group.
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: String
Required. The name of the node group to resize.
Format:
projects/{project}/regions/{region}/clusters/{cluster}/nodeGroups/{nodeGroup}
size: i32
Required. The number of running instances for the node group to maintain. The group adds or removes instances to maintain the number of instances specified by this parameter.
request_id: String
Optional. A unique ID used to identify the request. If the server receives two ResizeNodeGroupRequest with the same ID, the second request is ignored and the first google.longrunning.Operation created and stored in the backend is returned.
Recommendation: Set this value to a UUID.
The ID must contain only letters (a-z, A-Z), numbers (0-9), underscores (_), and hyphens (-). The maximum length is 40 characters.
graceful_decommission_timeout: Option<Duration>
Optional. Timeout for graceful YARN decommissioning. [Graceful decommissioning] (https://cloud.google.com/dataproc/docs/concepts/configuring-clusters/scaling-clusters#graceful_decommissioning) allows the removal of nodes from the Compute Engine node group without interrupting jobs in progress. This timeout specifies how long to wait for jobs in progress to finish before forcefully removing nodes (and potentially interrupting jobs). Default timeout is 0 (for forceful decommission), and the maximum allowed timeout is 1 day. (see JSON representation of Duration).
Only supported on Dataproc image versions 1.2 and higher.
Implementations§
Source§impl ResizeNodeGroupRequest
impl ResizeNodeGroupRequest
pub fn new() -> Self
Sourcepub fn set_request_id<T: Into<String>>(self, v: T) -> Self
pub fn set_request_id<T: Into<String>>(self, v: T) -> Self
Sets the value of request_id.
Sourcepub fn set_graceful_decommission_timeout<T>(self, v: T) -> Self
pub fn set_graceful_decommission_timeout<T>(self, v: T) -> Self
Sets the value of graceful_decommission_timeout.
Sourcepub fn set_or_clear_graceful_decommission_timeout<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_graceful_decommission_timeout<T>(self, v: Option<T>) -> Self
Sets or clears the value of graceful_decommission_timeout.
Trait Implementations§
Source§impl Clone for ResizeNodeGroupRequest
impl Clone for ResizeNodeGroupRequest
Source§fn clone(&self) -> ResizeNodeGroupRequest
fn clone(&self) -> ResizeNodeGroupRequest
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more