Struct google_api_proto::google::cloud::dataproc::v1::ResizeNodeGroupRequest
source · pub struct ResizeNodeGroupRequest {
pub name: String,
pub size: i32,
pub request_id: String,
pub graceful_decommission_timeout: Option<Duration>,
}
Expand description
A request to resize a node group.
Fields§
§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][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.
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 moresource§impl Debug for ResizeNodeGroupRequest
impl Debug for ResizeNodeGroupRequest
source§impl Default for ResizeNodeGroupRequest
impl Default for ResizeNodeGroupRequest
source§impl Message for ResizeNodeGroupRequest
impl Message for ResizeNodeGroupRequest
source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
source§fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
source§fn encode_to_vec(&self) -> Vec<u8>where
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8>where
Self: Sized,
source§fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
source§fn encode_length_delimited_to_vec(&self) -> Vec<u8>where
Self: Sized,
fn encode_length_delimited_to_vec(&self) -> Vec<u8>where
Self: Sized,
source§fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
source§fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
source§fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self
. Read moresource§fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self
.source§impl PartialEq for ResizeNodeGroupRequest
impl PartialEq for ResizeNodeGroupRequest
source§fn eq(&self, other: &ResizeNodeGroupRequest) -> bool
fn eq(&self, other: &ResizeNodeGroupRequest) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for ResizeNodeGroupRequest
Auto Trait Implementations§
impl Freeze for ResizeNodeGroupRequest
impl RefUnwindSafe for ResizeNodeGroupRequest
impl Send for ResizeNodeGroupRequest
impl Sync for ResizeNodeGroupRequest
impl Unpin for ResizeNodeGroupRequest
impl UnwindSafe for ResizeNodeGroupRequest
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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T
in a tonic::Request