pub struct UpdateNodePoolRequest {
Show 31 fields pub project_id: String, pub zone: String, pub cluster_id: String, pub node_pool_id: String, pub node_version: String, pub image_type: String, pub locations: Vec<String>, pub workload_metadata_config: Option<WorkloadMetadataConfig>, pub name: String, pub upgrade_settings: Option<UpgradeSettings>, pub tags: Option<NetworkTags>, pub taints: Option<NodeTaints>, pub labels: Option<NodeLabels>, pub linux_node_config: Option<LinuxNodeConfig>, pub kubelet_config: Option<NodeKubeletConfig>, pub node_network_config: Option<NodeNetworkConfig>, pub gcfs_config: Option<GcfsConfig>, pub confidential_nodes: Option<ConfidentialNodes>, pub gvnic: Option<VirtualNic>, pub etag: String, pub fast_socket: Option<FastSocket>, pub logging_config: Option<NodePoolLoggingConfig>, pub resource_labels: Option<ResourceLabels>, pub windows_node_config: Option<WindowsNodeConfig>, pub accelerators: Vec<AcceleratorConfig>, pub machine_type: String, pub disk_type: String, pub disk_size_gb: i64, pub resource_manager_tags: Option<ResourceManagerTags>, pub containerd_config: Option<ContainerdConfig>, pub queued_provisioning: Option<QueuedProvisioning>,
}
Expand description

SetNodePoolVersionRequest updates the version of a node pool.

Fields§

§project_id: String
👎Deprecated

Required. Deprecated. The Google Developers Console project ID or project number. This field has been deprecated and replaced by the name field.

§zone: String
👎Deprecated

Required. Deprecated. The name of the Google Compute Engine zone in which the cluster resides. This field has been deprecated and replaced by the name field.

§cluster_id: String
👎Deprecated

Required. Deprecated. The name of the cluster to upgrade. This field has been deprecated and replaced by the name field.

§node_pool_id: String
👎Deprecated

Required. Deprecated. The name of the node pool to upgrade. This field has been deprecated and replaced by the name field.

§node_version: String

Required. The Kubernetes version to change the nodes to (typically an upgrade).

Users may specify either explicit versions offered by Kubernetes Engine or version aliases, which have the following behavior:

  • “latest”: picks the highest valid Kubernetes version
  • “1.X”: picks the highest valid patch+gke.N patch in the 1.X version
  • “1.X.Y”: picks the highest valid gke.N patch in the 1.X.Y version
  • “1.X.Y-gke.N”: picks an explicit Kubernetes version
  • “-”: picks the Kubernetes master version
§image_type: String

Required. The desired image type for the node pool. Please see https://cloud.google.com/kubernetes-engine/docs/concepts/node-images for available image types.

§locations: Vec<String>

The desired list of Google Compute Engine zones in which the node pool’s nodes should be located. Changing the locations for a node pool will result in nodes being either created or removed from the node pool, depending on whether locations are being added or removed.

§workload_metadata_config: Option<WorkloadMetadataConfig>

The desired workload metadata config for the node pool.

§name: String

The name (project, location, cluster, node pool) of the node pool to update. Specified in the format projects/*/locations/*/clusters/*/nodePools/*.

§upgrade_settings: Option<UpgradeSettings>

Upgrade settings control disruption and speed of the upgrade.

§tags: Option<NetworkTags>

The desired network tags to be applied to all nodes in the node pool. If this field is not present, the tags will not be changed. Otherwise, the existing network tags will be replaced with the provided tags.

§taints: Option<NodeTaints>

The desired node taints to be applied to all nodes in the node pool. If this field is not present, the taints will not be changed. Otherwise, the existing node taints will be replaced with the provided taints.

§labels: Option<NodeLabels>

The desired node labels to be applied to all nodes in the node pool. If this field is not present, the labels will not be changed. Otherwise, the existing node labels will be replaced with the provided labels.

§linux_node_config: Option<LinuxNodeConfig>

Parameters that can be configured on Linux nodes.

§kubelet_config: Option<NodeKubeletConfig>

Node kubelet configs.

§node_network_config: Option<NodeNetworkConfig>

Node network config.

§gcfs_config: Option<GcfsConfig>

GCFS config.

§confidential_nodes: Option<ConfidentialNodes>

Confidential nodes config. All the nodes in the node pool will be Confidential VM once enabled.

§gvnic: Option<VirtualNic>

Enable or disable gvnic on the node pool.

§etag: String

The current etag of the node pool. If an etag is provided and does not match the current etag of the node pool, update will be blocked and an ABORTED error will be returned.

§fast_socket: Option<FastSocket>

Enable or disable NCCL fast socket for the node pool.

§logging_config: Option<NodePoolLoggingConfig>

Logging configuration.

§resource_labels: Option<ResourceLabels>

The resource labels for the node pool to use to annotate any related Google Compute Engine resources.

§windows_node_config: Option<WindowsNodeConfig>

Parameters that can be configured on Windows nodes.

§accelerators: Vec<AcceleratorConfig>

A list of hardware accelerators to be attached to each node. See https://cloud.google.com/compute/docs/gpus for more information about support for GPUs.

§machine_type: String

Optional. The desired machine type for nodes in the node pool. Initiates an upgrade operation that migrates the nodes in the node pool to the specified machine type.

§disk_type: String

Optional. The desired disk type for nodes in the node pool. Initiates an upgrade operation that migrates the nodes in the node pool to the specified disk type.

§disk_size_gb: i64

Optional. The desired disk size for nodes in the node pool. Initiates an upgrade operation that migrates the nodes in the node pool to the specified disk size.

§resource_manager_tags: Option<ResourceManagerTags>

Desired resource manager tag keys and values to be attached to the nodes for managing Compute Engine firewalls using Network Firewall Policies. Existing tags will be replaced with new values.

§containerd_config: Option<ContainerdConfig>

The desired containerd config for nodes in the node pool. Initiates an upgrade operation that recreates the nodes with the new config.

§queued_provisioning: Option<QueuedProvisioning>

Specifies the configuration of queued provisioning.

Trait Implementations§

source§

impl Clone for UpdateNodePoolRequest

source§

fn clone(&self) -> UpdateNodePoolRequest

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for UpdateNodePoolRequest

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Default for UpdateNodePoolRequest

source§

fn default() -> Self

Returns the “default value” for a type. Read more
source§

impl Message for UpdateNodePoolRequest

source§

fn encoded_len(&self) -> usize

Returns the encoded length of the message without a length delimiter.
source§

fn clear(&mut self)

Clears the message, resetting all fields to their default.
source§

fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>
where Self: Sized,

Encodes the message to a buffer. Read more
source§

fn encode_to_vec(&self) -> Vec<u8>
where Self: Sized,

Encodes the message to a newly allocated buffer.
source§

fn encode_length_delimited( &self, buf: &mut impl BufMut, ) -> Result<(), EncodeError>
where Self: Sized,

Encodes the message with a length-delimiter to a buffer. Read more
source§

fn encode_length_delimited_to_vec(&self) -> Vec<u8>
where Self: Sized,

Encodes the message with a length-delimiter to a newly allocated buffer.
source§

fn decode(buf: impl Buf) -> Result<Self, DecodeError>
where Self: Default,

Decodes an instance of the message from a buffer. Read more
source§

fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>
where Self: Default,

Decodes a length-delimited instance of the message from the buffer.
source§

fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>
where Self: Sized,

Decodes an instance of the message from a buffer, and merges it into self. Read more
source§

fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>
where Self: Sized,

Decodes a length-delimited instance of the message from buffer, and merges it into self.
source§

impl PartialEq for UpdateNodePoolRequest

source§

fn eq(&self, other: &UpdateNodePoolRequest) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl StructuralPartialEq for UpdateNodePoolRequest

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

§

impl<T> FromRef<T> for T
where T: Clone,

§

fn from_ref(input: &T) -> T

Converts to this type from a reference to the input type.
§

impl<T> Instrument for T

§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided [Span], returning an Instrumented wrapper. Read more
§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T> IntoRequest<T> for T

source§

fn into_request(self) -> Request<T>

Wrap the input message T in a tonic::Request
source§

impl<T> ToOwned for T
where T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

§

fn vzip(self) -> V

§

impl<T> WithSubscriber for T

§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a [WithDispatch] wrapper. Read more
§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a [WithDispatch] wrapper. Read more