ruạṛ
a ���fJp � @ s8 d dl mZmZmZ d dlmZ eG dd� de��ZdS )� )�formatted_flat_dict� NONE_SENTINEL�#value_allowed_none_or_none_sentinel)�init_model_state_from_kwargsc @ s� e Zd ZdZdZdZdZdZdZdZ dZ d Zd d� Ze dd � �Zejdd � �Ze dd� �Zejdd� �Ze dd� �Zejdd� �Ze dd� �Zejdd� �Ze dd� �Zejdd� �Ze dd� �Zejdd� �Ze dd� �Zejd d� �Ze d!d"� �Zejd#d"� �Ze d$d%� �Zejd&d%� �Ze d'd(� �Zejd)d(� �Ze d*d+� �Zejd,d+� �Ze d-d.� �Zejd/d.� �Ze d0d1� �Zejd2d1� �Ze d3d4� �Zejd5d4� �Ze d6d7� �Zejd8d7� �Ze d9d:� �Zejd;d:� �Ze d<d=� �Zejd>d=� �Ze d?d@� �Z e jdAd@� �Z e dBdC� �Z!e!jdDdC� �Z!e dEdF� �Z"e"jdGdF� �Z"e dHdI� �Z#e#jdJdI� �Z#e dKdL� �Z$e$jdMdL� �Z$e dNdO� �Z%e%jdPdO� �Z%e dQdR� �Z&e&jdSdR� �Z&e dTdU� �Z'e'jdVdU� �Z'dWdX� Z(dYdZ� Z)d[d\� Z*d]S )^�NodePoolza A pool of compute nodes attached to a cluster. Avoid entering confidential information. �DELETED�CREATING�ACTIVE�UPDATING�DELETING�FAILED�INACTIVE�NEEDS_ATTENTIONc K s ddddddddddddddddddd d ddddd d�| _ dddddddddddddddddd d!d"d#d$d%d&d'd�| _d(| _d(| _d(| _d(| _d(| _d(| _d(| _d(| _ d(| _ d(| _d(| _d(| _ d(| _d(| _d(| _d(| _d(| _d(| _d(| _d(| _d(| _d(| _d(| _d(| _d(| _d(S ))a� Initializes a new NodePool object with values from keyword arguments. The following keyword arguments are supported (corresponding to the getters/setters of this class): :param id: The value to assign to the id property of this NodePool. :type id: str :param lifecycle_state: The value to assign to the lifecycle_state property of this NodePool. Allowed values for this property are: "DELETED", "CREATING", "ACTIVE", "UPDATING", "DELETING", "FAILED", "INACTIVE", "NEEDS_ATTENTION", 'UNKNOWN_ENUM_VALUE'. Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. :type lifecycle_state: str :param lifecycle_details: The value to assign to the lifecycle_details property of this NodePool. :type lifecycle_details: str :param compartment_id: The value to assign to the compartment_id property of this NodePool. :type compartment_id: str :param cluster_id: The value to assign to the cluster_id property of this NodePool. :type cluster_id: str :param name: The value to assign to the name property of this NodePool. :type name: str :param kubernetes_version: The value to assign to the kubernetes_version property of this NodePool. :type kubernetes_version: str :param node_metadata: The value to assign to the node_metadata property of this NodePool. :type node_metadata: dict(str, str) :param node_image_id: The value to assign to the node_image_id property of this NodePool. :type node_image_id: str :param node_image_name: The value to assign to the node_image_name property of this NodePool. :type node_image_name: str :param node_shape_config: The value to assign to the node_shape_config property of this NodePool. :type node_shape_config: oci.container_engine.models.NodeShapeConfig :param node_source: The value to assign to the node_source property of this NodePool. :type node_source: oci.container_engine.models.NodeSourceOption :param node_source_details: The value to assign to the node_source_details property of this NodePool. :type node_source_details: oci.container_engine.models.NodeSourceDetails :param node_shape: The value to assign to the node_shape property of this NodePool. :type node_shape: str :param initial_node_labels: The value to assign to the initial_node_labels property of this NodePool. :type initial_node_labels: list[oci.container_engine.models.KeyValue] :param ssh_public_key: The value to assign to the ssh_public_key property of this NodePool. :type ssh_public_key: str :param quantity_per_subnet: The value to assign to the quantity_per_subnet property of this NodePool. :type quantity_per_subnet: int :param subnet_ids: The value to assign to the subnet_ids property of this NodePool. :type subnet_ids: list[str] :param nodes: The value to assign to the nodes property of this NodePool. :type nodes: list[oci.container_engine.models.Node] :param node_config_details: The value to assign to the node_config_details property of this NodePool. :type node_config_details: oci.container_engine.models.NodePoolNodeConfigDetails :param freeform_tags: The value to assign to the freeform_tags property of this NodePool. :type freeform_tags: dict(str, str) :param defined_tags: The value to assign to the defined_tags property of this NodePool. :type defined_tags: dict(str, dict(str, object)) :param system_tags: The value to assign to the system_tags property of this NodePool. :type system_tags: dict(str, dict(str, object)) :param node_eviction_node_pool_settings: The value to assign to the node_eviction_node_pool_settings property of this NodePool. :type node_eviction_node_pool_settings: oci.container_engine.models.NodeEvictionNodePoolSettings :param node_pool_cycling_details: The value to assign to the node_pool_cycling_details property of this NodePool. :type node_pool_cycling_details: oci.container_engine.models.NodePoolCyclingDetails �strzdict(str, str)ZNodeShapeConfigZNodeSourceOptionZNodeSourceDetailszlist[KeyValue]�intz list[str]z list[Node]ZNodePoolNodeConfigDetailszdict(str, dict(str, object))ZNodeEvictionNodePoolSettingsZNodePoolCyclingDetails)�id�lifecycle_state�lifecycle_details�compartment_id� cluster_id�name�kubernetes_version� node_metadata� node_image_id�node_image_name�node_shape_config�node_source�node_source_details� node_shape�initial_node_labels�ssh_public_key�quantity_per_subnet� subnet_ids�nodes�node_config_details� freeform_tags�defined_tags�system_tags� node_eviction_node_pool_settings�node_pool_cycling_detailsr ZlifecycleStateZlifecycleDetailsZ compartmentIdZ clusterIdr ZkubernetesVersionZnodeMetadataZnodeImageIdZ nodeImageNameZnodeShapeConfigZ nodeSourceZnodeSourceDetailsZ nodeShapeZinitialNodeLabelsZsshPublicKeyZquantityPerSubnetZ subnetIdsr# ZnodeConfigDetailsZfreeformTagsZdefinedTagsZ systemTagsZnodeEvictionNodePoolSettingsZnodePoolCyclingDetailsN)Z swagger_typesZ attribute_map�_id�_lifecycle_state�_lifecycle_details�_compartment_id�_cluster_id�_name�_kubernetes_version�_node_metadata�_node_image_id�_node_image_name�_node_shape_config�_node_source�_node_source_details�_node_shape�_initial_node_labels�_ssh_public_key�_quantity_per_subnet�_subnet_ids�_nodes�_node_config_details�_freeform_tags� _defined_tags�_system_tags�!_node_eviction_node_pool_settings�_node_pool_cycling_details)�self�kwargs� rE �I/usr/lib/python3.9/site-packages/oci/container_engine/models/node_pool.py�__init__2 s� m��zNodePool.__init__c C s | j S )z� Gets the id of this NodePool. The OCID of the node pool. :return: The id of this NodePool. :rtype: str �r* �rC rE rE rF r � s zNodePool.idc C s || _ dS )z� Sets the id of this NodePool. The OCID of the node pool. :param id: The id of this NodePool. :type: str NrH )rC r rE rE rF r � s c C s | j S )a� Gets the lifecycle_state of this NodePool. The state of the nodepool. Allowed values for this property are: "DELETED", "CREATING", "ACTIVE", "UPDATING", "DELETING", "FAILED", "INACTIVE", "NEEDS_ATTENTION", 'UNKNOWN_ENUM_VALUE'. Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. :return: The lifecycle_state of this NodePool. :rtype: str )r+ rI rE rE rF r s zNodePool.lifecycle_statec C s g d�}t ||�sd}|| _dS )z� Sets the lifecycle_state of this NodePool. The state of the nodepool. :param lifecycle_state: The lifecycle_state of this NodePool. :type: str )r r r r r r r r ZUNKNOWN_ENUM_VALUEN)r r+ )rC r Zallowed_valuesrE rE rF r s c C s | j S )z� Gets the lifecycle_details of this NodePool. Details about the state of the nodepool. :return: The lifecycle_details of this NodePool. :rtype: str �r, rI rE rE rF r & s zNodePool.lifecycle_detailsc C s || _ dS )z� Sets the lifecycle_details of this NodePool. Details about the state of the nodepool. :param lifecycle_details: The lifecycle_details of this NodePool. :type: str NrJ )rC r rE rE rF r 2 s c C s | j S )z� Gets the compartment_id of this NodePool. The OCID of the compartment in which the node pool exists. :return: The compartment_id of this NodePool. :rtype: str �r- rI rE rE rF r > s zNodePool.compartment_idc C s || _ dS )z� Sets the compartment_id of this NodePool. The OCID of the compartment in which the node pool exists. :param compartment_id: The compartment_id of this NodePool. :type: str NrK )rC r rE rE rF r J s c C s | j S )z� Gets the cluster_id of this NodePool. The OCID of the cluster to which this node pool is attached. :return: The cluster_id of this NodePool. :rtype: str �r. rI rE rE rF r V s zNodePool.cluster_idc C s || _ dS )z� Sets the cluster_id of this NodePool. The OCID of the cluster to which this node pool is attached. :param cluster_id: The cluster_id of this NodePool. :type: str NrL )rC r rE rE rF r b s c C s | j S )z� Gets the name of this NodePool. The name of the node pool. :return: The name of this NodePool. :rtype: str �r/ rI rE rE rF r n s z NodePool.namec C s || _ dS )z� Sets the name of this NodePool. The name of the node pool. :param name: The name of this NodePool. :type: str NrM )rC r rE rE rF r z s c C s | j S )z� Gets the kubernetes_version of this NodePool. The version of Kubernetes running on the nodes in the node pool. :return: The kubernetes_version of this NodePool. :rtype: str �r0 rI rE rE rF r � s zNodePool.kubernetes_versionc C s || _ dS )z� Sets the kubernetes_version of this NodePool. The version of Kubernetes running on the nodes in the node pool. :param kubernetes_version: The kubernetes_version of this NodePool. :type: str NrN )rC r rE rE rF r � s c C s | j S )z� Gets the node_metadata of this NodePool. A list of key/value pairs to add to each underlying OCI instance in the node pool on launch. :return: The node_metadata of this NodePool. :rtype: dict(str, str) �r1 rI rE rE rF r � s zNodePool.node_metadatac C s || _ dS )a Sets the node_metadata of this NodePool. A list of key/value pairs to add to each underlying OCI instance in the node pool on launch. :param node_metadata: The node_metadata of this NodePool. :type: dict(str, str) NrO )rC r rE rE rF r � s c C s | j S )z� Gets the node_image_id of this NodePool. Deprecated. see `nodeSource`. The OCID of the image running on the nodes in the node pool. :return: The node_image_id of this NodePool. :rtype: str �r2 rI rE rE rF r � s zNodePool.node_image_idc C s || _ dS )z� Sets the node_image_id of this NodePool. Deprecated. see `nodeSource`. The OCID of the image running on the nodes in the node pool. :param node_image_id: The node_image_id of this NodePool. :type: str NrP )rC r rE rE rF r � s c C s | j S )z� Gets the node_image_name of this NodePool. Deprecated. see `nodeSource`. The name of the image running on the nodes in the node pool. :return: The node_image_name of this NodePool. :rtype: str �r3 rI rE rE rF r � s zNodePool.node_image_namec C s || _ dS )z� Sets the node_image_name of this NodePool. Deprecated. see `nodeSource`. The name of the image running on the nodes in the node pool. :param node_image_name: The node_image_name of this NodePool. :type: str NrQ )rC r rE rE rF r � s c C s | j S )z� Gets the node_shape_config of this NodePool. The shape configuration of the nodes. :return: The node_shape_config of this NodePool. :rtype: oci.container_engine.models.NodeShapeConfig �r4 rI rE rE rF r � s zNodePool.node_shape_configc C s || _ dS )z� Sets the node_shape_config of this NodePool. The shape configuration of the nodes. :param node_shape_config: The node_shape_config of this NodePool. :type: oci.container_engine.models.NodeShapeConfig NrR )rC r rE rE rF r � s c C s | j S )a Gets the node_source of this NodePool. Deprecated. see `nodeSourceDetails`. Source running on the nodes in the node pool. :return: The node_source of this NodePool. :rtype: oci.container_engine.models.NodeSourceOption �r5 rI rE rE rF r � s zNodePool.node_sourcec C s || _ dS )a Sets the node_source of this NodePool. Deprecated. see `nodeSourceDetails`. Source running on the nodes in the node pool. :param node_source: The node_source of this NodePool. :type: oci.container_engine.models.NodeSourceOption NrS )rC r rE rE rF r s c C s | j S )z� Gets the node_source_details of this NodePool. Source running on the nodes in the node pool. :return: The node_source_details of this NodePool. :rtype: oci.container_engine.models.NodeSourceDetails �r6 rI rE rE rF r s zNodePool.node_source_detailsc C s || _ dS )a Sets the node_source_details of this NodePool. Source running on the nodes in the node pool. :param node_source_details: The node_source_details of this NodePool. :type: oci.container_engine.models.NodeSourceDetails NrT )rC r rE rE rF r " s c C s | j S )z� Gets the node_shape of this NodePool. The name of the node shape of the nodes in the node pool. :return: The node_shape of this NodePool. :rtype: str �r7 rI rE rE rF r . s zNodePool.node_shapec C s || _ dS )z� Sets the node_shape of this NodePool. The name of the node shape of the nodes in the node pool. :param node_shape: The node_shape of this NodePool. :type: str NrU )rC r rE rE rF r : s c C s | j S )a Gets the initial_node_labels of this NodePool. A list of key/value pairs to add to nodes after they join the Kubernetes cluster. :return: The initial_node_labels of this NodePool. :rtype: list[oci.container_engine.models.KeyValue] �r8 rI rE rE rF r F s zNodePool.initial_node_labelsc C s || _ dS )a$ Sets the initial_node_labels of this NodePool. A list of key/value pairs to add to nodes after they join the Kubernetes cluster. :param initial_node_labels: The initial_node_labels of this NodePool. :type: list[oci.container_engine.models.KeyValue] NrV )rC r rE rE rF r R s c C s | j S )z� Gets the ssh_public_key of this NodePool. The SSH public key on each node in the node pool on launch. :return: The ssh_public_key of this NodePool. :rtype: str �r9 rI rE rE rF r ^ s zNodePool.ssh_public_keyc C s || _ dS )z� Sets the ssh_public_key of this NodePool. The SSH public key on each node in the node pool on launch. :param ssh_public_key: The ssh_public_key of this NodePool. :type: str NrW )rC r rE rE rF r j s c C s | j S )z� Gets the quantity_per_subnet of this NodePool. The number of nodes in each subnet. :return: The quantity_per_subnet of this NodePool. :rtype: int �r: rI rE rE rF r! v s zNodePool.quantity_per_subnetc C s || _ dS )z� Sets the quantity_per_subnet of this NodePool. The number of nodes in each subnet. :param quantity_per_subnet: The quantity_per_subnet of this NodePool. :type: int NrX )rC r! rE rE rF r! � s c C s | j S )z� Gets the subnet_ids of this NodePool. The OCIDs of the subnets in which to place nodes for this node pool. :return: The subnet_ids of this NodePool. :rtype: list[str] �r; rI rE rE rF r"