#[non_exhaustive]pub struct CreateNodeGroupRequest {
pub parent: String,
pub node_group: Option<NodeGroup>,
pub node_group_id: String,
pub request_id: String,
/* private fields */
}Expand description
A request to create 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.parent: StringRequired. The parent resource where this node group will be created.
Format: projects/{project}/regions/{region}/clusters/{cluster}
node_group: Option<NodeGroup>Required. The node group to create.
node_group_id: StringOptional. An optional node group ID. Generated if not specified.
The ID must contain only letters (a-z, A-Z), numbers (0-9), underscores (_), and hyphens (-). Cannot begin or end with underscore or hyphen. Must consist of from 3 to 33 characters.
request_id: StringOptional. A unique ID used to identify the request. If the server receives two CreateNodeGroupRequest 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.
Implementations§
Source§impl CreateNodeGroupRequest
impl CreateNodeGroupRequest
Sourcepub fn set_parent<T: Into<String>>(self, v: T) -> Self
pub fn set_parent<T: Into<String>>(self, v: T) -> Self
Sourcepub fn set_node_group<T>(self, v: T) -> Self
pub fn set_node_group<T>(self, v: T) -> Self
Sets the value of node_group.
§Example
use google_cloud_dataproc_v1::model::NodeGroup;
let x = CreateNodeGroupRequest::new().set_node_group(NodeGroup::default()/* use setters */);Sourcepub fn set_or_clear_node_group<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_node_group<T>(self, v: Option<T>) -> Self
Sets or clears the value of node_group.
§Example
use google_cloud_dataproc_v1::model::NodeGroup;
let x = CreateNodeGroupRequest::new().set_or_clear_node_group(Some(NodeGroup::default()/* use setters */));
let x = CreateNodeGroupRequest::new().set_or_clear_node_group(None::<NodeGroup>);Sourcepub fn set_node_group_id<T: Into<String>>(self, v: T) -> Self
pub fn set_node_group_id<T: Into<String>>(self, v: T) -> Self
Sets the value of node_group_id.
§Example
let x = CreateNodeGroupRequest::new().set_node_group_id("example");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.
§Example
let x = CreateNodeGroupRequest::new().set_request_id("example");Trait Implementations§
Source§impl Clone for CreateNodeGroupRequest
impl Clone for CreateNodeGroupRequest
Source§fn clone(&self) -> CreateNodeGroupRequest
fn clone(&self) -> CreateNodeGroupRequest
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for CreateNodeGroupRequest
impl Debug for CreateNodeGroupRequest
Source§impl Default for CreateNodeGroupRequest
impl Default for CreateNodeGroupRequest
Source§fn default() -> CreateNodeGroupRequest
fn default() -> CreateNodeGroupRequest
Source§impl Message for CreateNodeGroupRequest
impl Message for CreateNodeGroupRequest
Source§impl PartialEq for CreateNodeGroupRequest
impl PartialEq for CreateNodeGroupRequest
impl StructuralPartialEq for CreateNodeGroupRequest
Auto Trait Implementations§
impl Freeze for CreateNodeGroupRequest
impl RefUnwindSafe for CreateNodeGroupRequest
impl Send for CreateNodeGroupRequest
impl Sync for CreateNodeGroupRequest
impl Unpin for CreateNodeGroupRequest
impl UnsafeUnpin for CreateNodeGroupRequest
impl UnwindSafe for CreateNodeGroupRequest
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<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<T> FutureExt for T
impl<T> FutureExt for T
Source§fn with_context(self, otel_cx: Context) -> WithContext<Self>
fn with_context(self, otel_cx: Context) -> WithContext<Self>
Source§fn with_current_context(self) -> WithContext<Self>
fn with_current_context(self) -> WithContext<Self>
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§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