ruạṛ
a N��f&T � @ 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 ZdZdd� Zedd� �Zejdd� �Zedd� �Zejd d� �Zed d� �Z e jdd� �Z ed d� �Z e jdd� �Z edd� �Zejdd� �Zedd� �Zejdd� �Zedd� �Z e jdd� �Z edd� �Zejdd� �Zedd� �Zejdd� �Zedd � �Zejd!d � �Zed"d#� �Zejd$d#� �Zed%d&� �Zejd'd&� �Zed(d)� �Zejd*d)� �Zed+d,� �Zejd-d,� �Zed.d/� �Zejd0d/� �Zed1d2� �Zejd3d2� �Zed4d5� �Zejd6d5� �Zd7d8� Zd9d:� Zd;d<� Zd=S )>�CreateNodePoolDetailszE The properties that define a request to create a node pool. c K s� dddddddddddddddd d d�| _ dd dddddddddddddddd�| _d| _d| _d| _d| _d| _d| _d| _d| _ d| _ d| _d| _d| _ d| _d| _d| _d| _d| _dS )a� Initializes a new CreateNodePoolDetails object with values from keyword arguments. The following keyword arguments are supported (corresponding to the getters/setters of this class): :param compartment_id: The value to assign to the compartment_id property of this CreateNodePoolDetails. :type compartment_id: str :param cluster_id: The value to assign to the cluster_id property of this CreateNodePoolDetails. :type cluster_id: str :param name: The value to assign to the name property of this CreateNodePoolDetails. :type name: str :param kubernetes_version: The value to assign to the kubernetes_version property of this CreateNodePoolDetails. :type kubernetes_version: str :param node_metadata: The value to assign to the node_metadata property of this CreateNodePoolDetails. :type node_metadata: dict(str, str) :param node_image_name: The value to assign to the node_image_name property of this CreateNodePoolDetails. :type node_image_name: str :param node_source_details: The value to assign to the node_source_details property of this CreateNodePoolDetails. :type node_source_details: oci.container_engine.models.NodeSourceDetails :param node_shape: The value to assign to the node_shape property of this CreateNodePoolDetails. :type node_shape: str :param node_shape_config: The value to assign to the node_shape_config property of this CreateNodePoolDetails. :type node_shape_config: oci.container_engine.models.CreateNodeShapeConfigDetails :param initial_node_labels: The value to assign to the initial_node_labels property of this CreateNodePoolDetails. :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 CreateNodePoolDetails. :type ssh_public_key: str :param quantity_per_subnet: The value to assign to the quantity_per_subnet property of this CreateNodePoolDetails. :type quantity_per_subnet: int :param subnet_ids: The value to assign to the subnet_ids property of this CreateNodePoolDetails. :type subnet_ids: list[str] :param node_config_details: The value to assign to the node_config_details property of this CreateNodePoolDetails. :type node_config_details: oci.container_engine.models.CreateNodePoolNodeConfigDetails :param freeform_tags: The value to assign to the freeform_tags property of this CreateNodePoolDetails. :type freeform_tags: dict(str, str) :param defined_tags: The value to assign to the defined_tags property of this CreateNodePoolDetails. :type defined_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 CreateNodePoolDetails. :type node_eviction_node_pool_settings: oci.container_engine.models.NodeEvictionNodePoolSettings �strzdict(str, str)�NodeSourceDetails�CreateNodeShapeConfigDetailszlist[KeyValue]�intz list[str]�CreateNodePoolNodeConfigDetailszdict(str, dict(str, object))�NodeEvictionNodePoolSettings)�compartment_id� cluster_id�name�kubernetes_version� node_metadata�node_image_name�node_source_details� node_shape�node_shape_config�initial_node_labels�ssh_public_key�quantity_per_subnet� subnet_ids�node_config_details� freeform_tags�defined_tags� node_eviction_node_pool_settings� compartmentId� clusterIdr �kubernetesVersion�nodeMetadata� nodeImageName�nodeSourceDetails� nodeShape�nodeShapeConfig�initialNodeLabels�sshPublicKey�quantityPerSubnet� subnetIds�nodeConfigDetails�freeformTags�definedTags�nodeEvictionNodePoolSettingsN)� swagger_types� attribute_map�_compartment_id�_cluster_id�_name�_kubernetes_version�_node_metadata�_node_image_name�_node_source_details�_node_shape�_node_shape_config�_initial_node_labels�_ssh_public_key�_quantity_per_subnet�_subnet_ids�_node_config_details�_freeform_tags� _defined_tags�!_node_eviction_node_pool_settings)�self�kwargs� rC ��/sparta/input/_build_configuration/image_build+validate/lib/bmcenv/lib64/python3.9/site-packages/oci/container_engine/models/create_node_pool_details.py�__init__ sj K��zCreateNodePoolDetails.__init__c C s | j S )z� **[Required]** Gets the compartment_id of this CreateNodePoolDetails. The OCID of the compartment in which the node pool exists. :return: The compartment_id of this CreateNodePoolDetails. :rtype: str �r0 �rA rC rC rD r � s z$CreateNodePoolDetails.compartment_idc C s || _ dS )z� Sets the compartment_id of this CreateNodePoolDetails. The OCID of the compartment in which the node pool exists. :param compartment_id: The compartment_id of this CreateNodePoolDetails. :type: str NrF )rA r rC rC rD r � s c C s | j S )z� **[Required]** Gets the cluster_id of this CreateNodePoolDetails. The OCID of the cluster to which this node pool is attached. :return: The cluster_id of this CreateNodePoolDetails. :rtype: str �r1 rG rC rC rD r � s z CreateNodePoolDetails.cluster_idc C s || _ dS )z� Sets the cluster_id of this CreateNodePoolDetails. The OCID of the cluster to which this node pool is attached. :param cluster_id: The cluster_id of this CreateNodePoolDetails. :type: str NrH )rA r rC rC rD r � s c C s | j S )z� **[Required]** Gets the name of this CreateNodePoolDetails. The name of the node pool. Avoid entering confidential information. :return: The name of this CreateNodePoolDetails. :rtype: str �r2 rG rC rC rD r � s zCreateNodePoolDetails.namec C s || _ dS )z� Sets the name of this CreateNodePoolDetails. The name of the node pool. Avoid entering confidential information. :param name: The name of this CreateNodePoolDetails. :type: str NrI )rA r rC rC rD r � s c C s | j S )z� Gets the kubernetes_version of this CreateNodePoolDetails. The version of Kubernetes to install on the nodes in the node pool. :return: The kubernetes_version of this CreateNodePoolDetails. :rtype: str �r3 rG rC rC rD r � s z(CreateNodePoolDetails.kubernetes_versionc C s || _ dS )a Sets the kubernetes_version of this CreateNodePoolDetails. The version of Kubernetes to install on the nodes in the node pool. :param kubernetes_version: The kubernetes_version of this CreateNodePoolDetails. :type: str NrJ )rA r rC rC rD r � s c C s | j S )a Gets the node_metadata of this CreateNodePoolDetails. 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 CreateNodePoolDetails. :rtype: dict(str, str) �r4 rG rC rC rD r � s z#CreateNodePoolDetails.node_metadatac C s || _ dS )a Sets the node_metadata of this CreateNodePoolDetails. 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 CreateNodePoolDetails. :type: dict(str, str) NrK )rA r rC rC rD r s c C s | j S )a\ Gets the node_image_name of this CreateNodePoolDetails. Deprecated. Use `nodeSourceDetails` instead. If you specify values for both, this value is ignored. The name of the image running on the nodes in the node pool. :return: The node_image_name of this CreateNodePoolDetails. :rtype: str �r5 rG rC rC rD r s z%CreateNodePoolDetails.node_image_namec C s || _ dS )aj Sets the node_image_name of this CreateNodePoolDetails. Deprecated. Use `nodeSourceDetails` instead. If you specify values for both, this value is ignored. The name of the image running on the nodes in the node pool. :param node_image_name: The node_image_name of this CreateNodePoolDetails. :type: str NrL )rA r rC rC rD r s c C s | j S )aH Gets the node_source_details of this CreateNodePoolDetails. Specify the source to use to launch nodes in the node pool. Currently, image is the only supported source. :return: The node_source_details of this CreateNodePoolDetails. :rtype: oci.container_engine.models.NodeSourceDetails �r6 rG rC rC rD r ( s z)CreateNodePoolDetails.node_source_detailsc C s || _ dS )aZ Sets the node_source_details of this CreateNodePoolDetails. Specify the source to use to launch nodes in the node pool. Currently, image is the only supported source. :param node_source_details: The node_source_details of this CreateNodePoolDetails. :type: oci.container_engine.models.NodeSourceDetails NrM )rA r rC rC rD r 4 s c C s | j S )z� **[Required]** Gets the node_shape of this CreateNodePoolDetails. The name of the node shape of the nodes in the node pool. :return: The node_shape of this CreateNodePoolDetails. :rtype: str �r7 rG rC rC rD r @ s z CreateNodePoolDetails.node_shapec C s || _ dS )z� Sets the node_shape of this CreateNodePoolDetails. The name of the node shape of the nodes in the node pool. :param node_shape: The node_shape of this CreateNodePoolDetails. :type: str NrN )rA r rC rC rD r L s c C s | j S )a- Gets the node_shape_config of this CreateNodePoolDetails. Specify the configuration of the shape to launch nodes in the node pool. :return: The node_shape_config of this CreateNodePoolDetails. :rtype: oci.container_engine.models.CreateNodeShapeConfigDetails �r8 rG rC rC rD r X s z'CreateNodePoolDetails.node_shape_configc C s || _ dS )a= Sets the node_shape_config of this CreateNodePoolDetails. Specify the configuration of the shape to launch nodes in the node pool. :param node_shape_config: The node_shape_config of this CreateNodePoolDetails. :type: oci.container_engine.models.CreateNodeShapeConfigDetails NrO )rA r rC rC rD r d s c C s | j S )a, Gets the initial_node_labels of this CreateNodePoolDetails. A list of key/value pairs to add to nodes after they join the Kubernetes cluster. :return: The initial_node_labels of this CreateNodePoolDetails. :rtype: list[oci.container_engine.models.KeyValue] �r9 rG rC rC rD r p s z)CreateNodePoolDetails.initial_node_labelsc C s || _ dS )a> Sets the initial_node_labels of this CreateNodePoolDetails. 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 CreateNodePoolDetails. :type: list[oci.container_engine.models.KeyValue] NrP )rA r rC rC rD r | s c C s | j S )z� Gets the ssh_public_key of this CreateNodePoolDetails. The SSH public key on each node in the node pool on launch. :return: The ssh_public_key of this CreateNodePoolDetails. :rtype: str �r: rG rC rC rD r � s z$CreateNodePoolDetails.ssh_public_keyc C s || _ dS )z� Sets the ssh_public_key of this CreateNodePoolDetails. The SSH public key on each node in the node pool on launch. :param ssh_public_key: The ssh_public_key of this CreateNodePoolDetails. :type: str NrQ )rA r rC rC rD r � s c C s | j S )a Gets the quantity_per_subnet of this CreateNodePoolDetails. Optional, default to 1. The number of nodes to create in each subnet specified in subnetIds property. When used, subnetIds is required. This property is deprecated, use nodeConfigDetails instead. :return: The quantity_per_subnet of this CreateNodePoolDetails. :rtype: int �r; rG rC rC rD r � s z)CreateNodePoolDetails.quantity_per_subnetc C s || _ dS )a� Sets the quantity_per_subnet of this CreateNodePoolDetails. Optional, default to 1. The number of nodes to create in each subnet specified in subnetIds property. When used, subnetIds is required. This property is deprecated, use nodeConfigDetails instead. :param quantity_per_subnet: The quantity_per_subnet of this CreateNodePoolDetails. :type: int NrR )rA r rC rC rD r � s c C s | j S )a� Gets the subnet_ids of this CreateNodePoolDetails. The OCIDs of the subnets in which to place nodes for this node pool. When used, quantityPerSubnet can be provided. This property is deprecated, use nodeConfigDetails. Exactly one of the subnetIds or nodeConfigDetails properties must be specified. :return: The subnet_ids of this CreateNodePoolDetails. :rtype: list[str] �r<