UpdateNodePoolDetails

class oci.container_engine.models.UpdateNodePoolDetails(**kwargs)

Bases: object

The properties that define a request to update a node pool.

__init__(**kwargs)

Initializes a new UpdateNodePoolDetails object with values from keyword arguments. The following keyword arguments are supported (corresponding to the getters/setters of this class):

Parameters:
  • name (str) -- The value to assign to the name property of this UpdateNodePoolDetails.
  • kubernetes_version (str) -- The value to assign to the kubernetes_version property of this UpdateNodePoolDetails.
  • initial_node_labels (list[KeyValue]) -- The value to assign to the initial_node_labels property of this UpdateNodePoolDetails.
  • quantity_per_subnet (int) -- The value to assign to the quantity_per_subnet property of this UpdateNodePoolDetails.
  • subnet_ids (list[str]) -- The value to assign to the subnet_ids property of this UpdateNodePoolDetails.
  • node_config_details (UpdateNodePoolNodeConfigDetails) -- The value to assign to the node_config_details property of this UpdateNodePoolDetails.
initial_node_labels

Gets the initial_node_labels of this UpdateNodePoolDetails. A list of key/value pairs to add to nodes after they join the Kubernetes cluster.

Returns:The initial_node_labels of this UpdateNodePoolDetails.
Return type:list[KeyValue]
kubernetes_version

Gets the kubernetes_version of this UpdateNodePoolDetails. The version of Kubernetes to which the nodes in the node pool should be upgraded.

Returns:The kubernetes_version of this UpdateNodePoolDetails.
Return type:str
name

Gets the name of this UpdateNodePoolDetails. The new name for the cluster. Avoid entering confidential information.

Returns:The name of this UpdateNodePoolDetails.
Return type:str
node_config_details

Gets the node_config_details of this UpdateNodePoolDetails. The configuration of nodes in the node pool. Only one of the subnetIds or nodeConfigDetails properties should be specified. If the current value of quantityPerSubnet is greater than 0, the node pool may still be scaled using quantityPerSubnet. Before you can use nodeConfigDetails, you must first scale the node pool to 0 nodes using quantityPerSubnet.

Returns:The node_config_details of this UpdateNodePoolDetails.
Return type:UpdateNodePoolNodeConfigDetails
quantity_per_subnet

Gets the quantity_per_subnet of this UpdateNodePoolDetails. The number of nodes to have in each subnet specified in the subnetIds property. This property is deprecated, use nodeConfigDetails instead. If the current value of quantityPerSubnet is greater than 0, you can only use quantityPerSubnet to scale the node pool. If the current value of quantityPerSubnet is equal to 0 and the current value of size in nodeConfigDetails is greater than 0, before you can use quantityPerSubnet, you must first scale the node pool to 0 nodes using nodeConfigDetails.

Returns:The quantity_per_subnet of this UpdateNodePoolDetails.
Return type:int
subnet_ids

Gets the subnet_ids of this UpdateNodePoolDetails. The OCIDs of the subnets in which to place nodes for this node pool. This property is deprecated, use nodeConfigDetails instead. Only one of the subnetIds or nodeConfigDetails properties can be specified.

Returns:The subnet_ids of this UpdateNodePoolDetails.
Return type:list[str]