#[non_exhaustive]pub struct CreateNodePoolRequest {
pub parent: String,
pub node_pool_id: String,
pub node_pool: Option<NodePool>,
pub request_id: String,
/* private fields */
}Expand description
Creates a node pool.
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.parent: StringRequired. The parent cluster where this node pool will be created.
node_pool_id: StringRequired. A client-specified unique identifier for the node pool.
node_pool: Option<NodePool>Required. The node pool to create.
request_id: StringA unique identifier for this request. Restricted to 36 ASCII characters. A
random UUID is recommended. This request is only idempotent if
request_id is provided.
Implementations§
Source§impl CreateNodePoolRequest
impl CreateNodePoolRequest
pub fn new() -> Self
Sourcepub fn set_parent<T: Into<String>>(self, v: T) -> Self
pub fn set_parent<T: Into<String>>(self, v: T) -> Self
Sets the value of parent.
Sourcepub fn set_node_pool_id<T: Into<String>>(self, v: T) -> Self
pub fn set_node_pool_id<T: Into<String>>(self, v: T) -> Self
Sets the value of node_pool_id.
Sourcepub fn set_node_pool<T>(self, v: T) -> Self
pub fn set_node_pool<T>(self, v: T) -> Self
Sets the value of node_pool.
Sourcepub fn set_or_clear_node_pool<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_node_pool<T>(self, v: Option<T>) -> Self
Sets or clears the value of node_pool.
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.
Trait Implementations§
Source§impl Clone for CreateNodePoolRequest
impl Clone for CreateNodePoolRequest
Source§fn clone(&self) -> CreateNodePoolRequest
fn clone(&self) -> CreateNodePoolRequest
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 Debug for CreateNodePoolRequest
impl Debug for CreateNodePoolRequest
Source§impl Default for CreateNodePoolRequest
impl Default for CreateNodePoolRequest
Source§fn default() -> CreateNodePoolRequest
fn default() -> CreateNodePoolRequest
Returns the “default value” for a type. Read more
Source§impl Message for CreateNodePoolRequest
impl Message for CreateNodePoolRequest
Source§impl PartialEq for CreateNodePoolRequest
impl PartialEq for CreateNodePoolRequest
impl StructuralPartialEq for CreateNodePoolRequest
Auto Trait Implementations§
impl Freeze for CreateNodePoolRequest
impl RefUnwindSafe for CreateNodePoolRequest
impl Send for CreateNodePoolRequest
impl Sync for CreateNodePoolRequest
impl Unpin for CreateNodePoolRequest
impl UnwindSafe for CreateNodePoolRequest
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