ruạṛ
a ���f�l � @ 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%dQdR� Z&dSdT� Z'dUdV� Z(dWS )X�NodePoolSummaryz9 The properties that define a node pool summary. �DELETED�CREATING�ACTIVE�UPDATING�DELETING�FAILED�INACTIVE�NEEDS_ATTENTIONc K s� ddddddddddddddddddd d d ddd �| _ ddddddddddddddddddd 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 NodePoolSummary 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 NodePoolSummary. :type id: str :param lifecycle_state: The value to assign to the lifecycle_state property of this NodePoolSummary. 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 NodePoolSummary. :type lifecycle_details: str :param compartment_id: The value to assign to the compartment_id property of this NodePoolSummary. :type compartment_id: str :param cluster_id: The value to assign to the cluster_id property of this NodePoolSummary. :type cluster_id: str :param name: The value to assign to the name property of this NodePoolSummary. :type name: str :param kubernetes_version: The value to assign to the kubernetes_version property of this NodePoolSummary. :type kubernetes_version: str :param node_image_id: The value to assign to the node_image_id property of this NodePoolSummary. :type node_image_id: str :param node_image_name: The value to assign to the node_image_name property of this NodePoolSummary. :type node_image_name: str :param node_shape_config: The value to assign to the node_shape_config property of this NodePoolSummary. :type node_shape_config: oci.container_engine.models.NodeShapeConfig :param node_source: The value to assign to the node_source property of this NodePoolSummary. :type node_source: oci.container_engine.models.NodeSourceOption :param node_source_details: The value to assign to the node_source_details property of this NodePoolSummary. :type node_source_details: oci.container_engine.models.NodeSourceDetails :param node_shape: The value to assign to the node_shape property of this NodePoolSummary. :type node_shape: str :param initial_node_labels: The value to assign to the initial_node_labels property of this NodePoolSummary. :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 NodePoolSummary. :type ssh_public_key: str :param quantity_per_subnet: The value to assign to the quantity_per_subnet property of this NodePoolSummary. :type quantity_per_subnet: int :param subnet_ids: The value to assign to the subnet_ids property of this NodePoolSummary. :type subnet_ids: list[str] :param node_config_details: The value to assign to the node_config_details property of this NodePoolSummary. :type node_config_details: oci.container_engine.models.NodePoolNodeConfigDetails :param freeform_tags: The value to assign to the freeform_tags property of this NodePoolSummary. :type freeform_tags: dict(str, str) :param defined_tags: The value to assign to the defined_tags property of this NodePoolSummary. :type defined_tags: dict(str, dict(str, object)) :param system_tags: The value to assign to the system_tags property of this NodePoolSummary. :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 NodePoolSummary. :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 NodePoolSummary. :type node_pool_cycling_details: oci.container_engine.models.NodePoolCyclingDetails �strZNodeShapeConfigZNodeSourceOptionZNodeSourceDetailszlist[KeyValue]�intz list[str]ZNodePoolNodeConfigDetailszdict(str, str)zdict(str, dict(str, object))ZNodeEvictionNodePoolSettingsZNodePoolCyclingDetails)�id�lifecycle_state�lifecycle_details�compartment_id� cluster_id�name�kubernetes_version� 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�node_config_details� freeform_tags�defined_tags�system_tags� node_eviction_node_pool_settings�node_pool_cycling_detailsr ZlifecycleStateZlifecycleDetailsZ compartmentIdZ clusterIdr ZkubernetesVersionZnodeImageIdZ nodeImageNameZnodeShapeConfigZ nodeSourceZnodeSourceDetailsZ nodeShapeZinitialNodeLabelsZsshPublicKeyZquantityPerSubnetZ subnetIdsZnodeConfigDetailsZfreeformTagsZdefinedTagsZ systemTagsZnodeEvictionNodePoolSettingsZnodePoolCyclingDetailsN)Z swagger_typesZ attribute_map�_id�_lifecycle_state�_lifecycle_details�_compartment_id�_cluster_id�_name�_kubernetes_version�_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�_node_config_details�_freeform_tags� _defined_tags�_system_tags�!_node_eviction_node_pool_settings�_node_pool_cycling_details)�self�kwargs� rA �Q/usr/lib/python3.9/site-packages/oci/container_engine/models/node_pool_summary.py�__init__2 s� e��zNodePoolSummary.__init__c C s | j S )z� Gets the id of this NodePoolSummary. The OCID of the node pool. :return: The id of this NodePoolSummary. :rtype: str �r( �r? rA rA rB r � s zNodePoolSummary.idc C s || _ dS )z� Sets the id of this NodePoolSummary. The OCID of the node pool. :param id: The id of this NodePoolSummary. :type: str NrD )r? r rA rA rB r � s c C s | j S )a� Gets the lifecycle_state of this NodePoolSummary. 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 NodePoolSummary. :rtype: str )r) rE rA rA rB r � s zNodePoolSummary.lifecycle_statec C s g d�}t ||�sd}|| _dS )z� Sets the lifecycle_state of this NodePoolSummary. The state of the nodepool. :param lifecycle_state: The lifecycle_state of this NodePoolSummary. :type: str )r r r r r r r r ZUNKNOWN_ENUM_VALUEN)r r) )r? r Zallowed_valuesrA rA rB r s c C s | j S )z� Gets the lifecycle_details of this NodePoolSummary. Details about the state of the nodepool. :return: The lifecycle_details of this NodePoolSummary. :rtype: str �r* rE rA rA rB r s z!NodePoolSummary.lifecycle_detailsc C s || _ dS )z� Sets the lifecycle_details of this NodePoolSummary. Details about the state of the nodepool. :param lifecycle_details: The lifecycle_details of this NodePoolSummary. :type: str NrF )r? r rA rA rB r $ s c C s | j S )z� Gets the compartment_id of this NodePoolSummary. The OCID of the compartment in which the node pool exists. :return: The compartment_id of this NodePoolSummary. :rtype: str �r+ rE rA rA rB r 0 s zNodePoolSummary.compartment_idc C s || _ dS )z� Sets the compartment_id of this NodePoolSummary. The OCID of the compartment in which the node pool exists. :param compartment_id: The compartment_id of this NodePoolSummary. :type: str NrG )r? r rA rA rB r < s c C s | j S )z� Gets the cluster_id of this NodePoolSummary. The OCID of the cluster to which this node pool is attached. :return: The cluster_id of this NodePoolSummary. :rtype: str �r, rE rA rA rB r H s zNodePoolSummary.cluster_idc C s || _ dS )z� Sets the cluster_id of this NodePoolSummary. The OCID of the cluster to which this node pool is attached. :param cluster_id: The cluster_id of this NodePoolSummary. :type: str NrH )r? r rA rA rB r T s c C s | j S )z� Gets the name of this NodePoolSummary. The name of the node pool. :return: The name of this NodePoolSummary. :rtype: str �r- rE rA rA rB r ` s zNodePoolSummary.namec C s || _ dS )z� Sets the name of this NodePoolSummary. The name of the node pool. :param name: The name of this NodePoolSummary. :type: str NrI )r? r rA rA rB r l s c C s | j S )z� Gets the kubernetes_version of this NodePoolSummary. The version of Kubernetes running on the nodes in the node pool. :return: The kubernetes_version of this NodePoolSummary. :rtype: str �r. rE rA rA rB r x s z"NodePoolSummary.kubernetes_versionc C s || _ dS )z� Sets the kubernetes_version of this NodePoolSummary. The version of Kubernetes running on the nodes in the node pool. :param kubernetes_version: The kubernetes_version of this NodePoolSummary. :type: str NrJ )r? r rA rA rB r � s c C s | j S )z� Gets the node_image_id of this NodePoolSummary. Deprecated. see `nodeSource`. The OCID of the image running on the nodes in the node pool. :return: The node_image_id of this NodePoolSummary. :rtype: str �r/ rE rA rA rB r � s zNodePoolSummary.node_image_idc C s || _ dS )a Sets the node_image_id of this NodePoolSummary. 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 NodePoolSummary. :type: str NrK )r? r rA rA rB r � s c C s | j S )z� Gets the node_image_name of this NodePoolSummary. Deprecated. see `nodeSource`. The name of the image running on the nodes in the node pool. :return: The node_image_name of this NodePoolSummary. :rtype: str �r0 rE rA rA rB r � s zNodePoolSummary.node_image_namec C s || _ dS )a Sets the node_image_name of this NodePoolSummary. 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 NodePoolSummary. :type: str NrL )r? r rA rA rB r � s c C s | j S )z� Gets the node_shape_config of this NodePoolSummary. The shape configuration of the nodes. :return: The node_shape_config of this NodePoolSummary. :rtype: oci.container_engine.models.NodeShapeConfig �r1 rE rA rA rB r � s z!NodePoolSummary.node_shape_configc C s || _ dS )a Sets the node_shape_config of this NodePoolSummary. The shape configuration of the nodes. :param node_shape_config: The node_shape_config of this NodePoolSummary. :type: oci.container_engine.models.NodeShapeConfig NrM )r? r rA rA rB r � s c C s | j S )a Gets the node_source of this NodePoolSummary. Deprecated. see `nodeSourceDetails`. Source running on the nodes in the node pool. :return: The node_source of this NodePoolSummary. :rtype: oci.container_engine.models.NodeSourceOption �r2 rE rA rA rB r � s zNodePoolSummary.node_sourcec C s || _ dS )a Sets the node_source of this NodePoolSummary. Deprecated. see `nodeSourceDetails`. Source running on the nodes in the node pool. :param node_source: The node_source of this NodePoolSummary. :type: oci.container_engine.models.NodeSourceOption NrN )r? r rA rA rB r � s c C s | j S )z� Gets the node_source_details of this NodePoolSummary. Source running on the nodes in the node pool. :return: The node_source_details of this NodePoolSummary. :rtype: oci.container_engine.models.NodeSourceDetails �r3 rE rA rA rB r � s z#NodePoolSummary.node_source_detailsc C s || _ dS )a Sets the node_source_details of this NodePoolSummary. Source running on the nodes in the node pool. :param node_source_details: The node_source_details of this NodePoolSummary. :type: oci.container_engine.models.NodeSourceDetails NrO )r? r rA rA rB r � s c C s | j S )z� Gets the node_shape of this NodePoolSummary. The name of the node shape of the nodes in the node pool. :return: The node_shape of this NodePoolSummary. :rtype: str �r4 rE rA rA rB r s zNodePoolSummary.node_shapec C s || _ dS )z� Sets the node_shape of this NodePoolSummary. The name of the node shape of the nodes in the node pool. :param node_shape: The node_shape of this NodePoolSummary. :type: str NrP )r? r rA rA rB r s c C s | j S )a Gets the initial_node_labels of this NodePoolSummary. A list of key/value pairs to add to nodes after they join the Kubernetes cluster. :return: The initial_node_labels of this NodePoolSummary. :rtype: list[oci.container_engine.models.KeyValue] �r5 rE rA rA rB r s z#NodePoolSummary.initial_node_labelsc C s || _ dS )a2 Sets the initial_node_labels of this NodePoolSummary. 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 NodePoolSummary. :type: list[oci.container_engine.models.KeyValue] NrQ )r? r rA rA rB r , s c C s | j S )z� Gets the ssh_public_key of this NodePoolSummary. The SSH public key on each node in the node pool on launch. :return: The ssh_public_key of this NodePoolSummary. :rtype: str �r6 rE rA rA rB r 8 s zNodePoolSummary.ssh_public_keyc C s || _ dS )z� Sets the ssh_public_key of this NodePoolSummary. The SSH public key on each node in the node pool on launch. :param ssh_public_key: The ssh_public_key of this NodePoolSummary. :type: str NrR )r? r rA rA rB r D s c C s | j S )z� Gets the quantity_per_subnet of this NodePoolSummary. The number of nodes in each subnet. :return: The quantity_per_subnet of this NodePoolSummary. :rtype: int �r7 rE rA rA rB r P s z#NodePoolSummary.quantity_per_subnetc C s || _ dS )z� Sets the quantity_per_subnet of this NodePoolSummary. The number of nodes in each subnet. :param quantity_per_subnet: The quantity_per_subnet of this NodePoolSummary. :type: int NrS )r? r rA rA rB r \ s c C s | j S )z� Gets the subnet_ids of this NodePoolSummary. The OCIDs of the subnets in which to place nodes for this node pool. :return: The subnet_ids of this NodePoolSummary. :rtype: list[str] �r8 rE rA rA rB r! h s zNodePoolSummary.subnet_idsc C s || _ dS )z� Sets the subnet_ids of this NodePoolSummary. The OCIDs of the subnets in which to place nodes for this node pool. :param subnet_ids: The subnet_ids of this NodePoolSummary. :type: list[str] NrT )r? r! rA rA rB r! t s c C s | j S )a Gets the node_config_details of this NodePoolSummary. The configuration of nodes in the node pool. :return: The node_config_details of this NodePoolSummary. :rtype: oci.container_engine.models.NodePoolNodeConfigDetails �r9 rE rA rA rB r"