ÿØÿà JFIF ÿÛ „ ( %"1"%)+...383,7(-.-
![]() Server : Apache/2.4.6 (CentOS) OpenSSL/1.0.2k-fips PHP/7.4.20 System : Linux st2.domain.com 3.10.0-1127.10.1.el7.x86_64 #1 SMP Wed Jun 3 14:28:03 UTC 2020 x86_64 User : apache ( 48) PHP Version : 7.4.20 Disable Function : NONE Directory : /proc/self/root/usr/share/mysqlsh/oci_sdk/oci/container_engine/models/ |
# coding: utf-8 # Copyright (c) 2016, 2020, Oracle and/or its affiliates. All rights reserved. from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 from oci.decorators import init_model_state_from_kwargs @init_model_state_from_kwargs class NodePool(object): """ A pool of compute nodes attached to a cluster. Avoid entering confidential information. """ def __init__(self, **kwargs): """ 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 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_source: The value to assign to the node_source property of this NodePool. :type node_source: NodeSourceOption :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[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[Node] :param node_config_details: The value to assign to the node_config_details property of this NodePool. :type node_config_details: NodePoolNodeConfigDetails """ self.swagger_types = { 'id': 'str', 'compartment_id': 'str', 'cluster_id': 'str', 'name': 'str', 'kubernetes_version': 'str', 'node_metadata': 'dict(str, str)', 'node_image_id': 'str', 'node_image_name': 'str', 'node_source': 'NodeSourceOption', 'node_shape': 'str', 'initial_node_labels': 'list[KeyValue]', 'ssh_public_key': 'str', 'quantity_per_subnet': 'int', 'subnet_ids': 'list[str]', 'nodes': 'list[Node]', 'node_config_details': 'NodePoolNodeConfigDetails' } self.attribute_map = { 'id': 'id', 'compartment_id': 'compartmentId', 'cluster_id': 'clusterId', 'name': 'name', 'kubernetes_version': 'kubernetesVersion', 'node_metadata': 'nodeMetadata', 'node_image_id': 'nodeImageId', 'node_image_name': 'nodeImageName', 'node_source': 'nodeSource', 'node_shape': 'nodeShape', 'initial_node_labels': 'initialNodeLabels', 'ssh_public_key': 'sshPublicKey', 'quantity_per_subnet': 'quantityPerSubnet', 'subnet_ids': 'subnetIds', 'nodes': 'nodes', 'node_config_details': 'nodeConfigDetails' } self._id = None self._compartment_id = None self._cluster_id = None self._name = None self._kubernetes_version = None self._node_metadata = None self._node_image_id = None self._node_image_name = None self._node_source = None self._node_shape = None self._initial_node_labels = None self._ssh_public_key = None self._quantity_per_subnet = None self._subnet_ids = None self._nodes = None self._node_config_details = None @property def id(self): """ Gets the id of this NodePool. The OCID of the node pool. :return: The id of this NodePool. :rtype: str """ return self._id @id.setter def id(self, id): """ Sets the id of this NodePool. The OCID of the node pool. :param id: The id of this NodePool. :type: str """ self._id = id @property def compartment_id(self): """ 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 """ return self._compartment_id @compartment_id.setter def compartment_id(self, compartment_id): """ 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 """ self._compartment_id = compartment_id @property def cluster_id(self): """ 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 """ return self._cluster_id @cluster_id.setter def cluster_id(self, cluster_id): """ 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 """ self._cluster_id = cluster_id @property def name(self): """ Gets the name of this NodePool. The name of the node pool. :return: The name of this NodePool. :rtype: str """ return self._name @name.setter def name(self, name): """ Sets the name of this NodePool. The name of the node pool. :param name: The name of this NodePool. :type: str """ self._name = name @property def kubernetes_version(self): """ 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 """ return self._kubernetes_version @kubernetes_version.setter def kubernetes_version(self, kubernetes_version): """ 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 """ self._kubernetes_version = kubernetes_version @property def node_metadata(self): """ Gets the node_metadata of this NodePool. A list of key/value pairs to add to each underlying OCI instance in the node pool. :return: The node_metadata of this NodePool. :rtype: dict(str, str) """ return self._node_metadata @node_metadata.setter def node_metadata(self, node_metadata): """ Sets the node_metadata of this NodePool. A list of key/value pairs to add to each underlying OCI instance in the node pool. :param node_metadata: The node_metadata of this NodePool. :type: dict(str, str) """ self._node_metadata = node_metadata @property def node_image_id(self): """ 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 """ return self._node_image_id @node_image_id.setter def node_image_id(self, node_image_id): """ 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 """ self._node_image_id = node_image_id @property def node_image_name(self): """ 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 """ return self._node_image_name @node_image_name.setter def node_image_name(self, node_image_name): """ 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 """ self._node_image_name = node_image_name @property def node_source(self): """ Gets the node_source of this NodePool. Source running on the nodes in the node pool. :return: The node_source of this NodePool. :rtype: NodeSourceOption """ return self._node_source @node_source.setter def node_source(self, node_source): """ Sets the node_source of this NodePool. Source running on the nodes in the node pool. :param node_source: The node_source of this NodePool. :type: NodeSourceOption """ self._node_source = node_source @property def node_shape(self): """ 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 """ return self._node_shape @node_shape.setter def node_shape(self, node_shape): """ 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 """ self._node_shape = node_shape @property def initial_node_labels(self): """ 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[KeyValue] """ return self._initial_node_labels @initial_node_labels.setter def initial_node_labels(self, initial_node_labels): """ 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[KeyValue] """ self._initial_node_labels = initial_node_labels @property def ssh_public_key(self): """ Gets the ssh_public_key of this NodePool. The SSH public key on each node in the node pool. :return: The ssh_public_key of this NodePool. :rtype: str """ return self._ssh_public_key @ssh_public_key.setter def ssh_public_key(self, ssh_public_key): """ Sets the ssh_public_key of this NodePool. The SSH public key on each node in the node pool. :param ssh_public_key: The ssh_public_key of this NodePool. :type: str """ self._ssh_public_key = ssh_public_key @property def quantity_per_subnet(self): """ 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 """ return self._quantity_per_subnet @quantity_per_subnet.setter def quantity_per_subnet(self, quantity_per_subnet): """ 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 """ self._quantity_per_subnet = quantity_per_subnet @property def subnet_ids(self): """ 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] """ return self._subnet_ids @subnet_ids.setter def subnet_ids(self, subnet_ids): """ Sets the subnet_ids of this NodePool. The OCIDs of the subnets in which to place nodes for this node pool. :param subnet_ids: The subnet_ids of this NodePool. :type: list[str] """ self._subnet_ids = subnet_ids @property def nodes(self): """ Gets the nodes of this NodePool. The nodes in the node pool. :return: The nodes of this NodePool. :rtype: list[Node] """ return self._nodes @nodes.setter def nodes(self, nodes): """ Sets the nodes of this NodePool. The nodes in the node pool. :param nodes: The nodes of this NodePool. :type: list[Node] """ self._nodes = nodes @property def node_config_details(self): """ Gets the node_config_details of this NodePool. The configuration of nodes in the node pool. :return: The node_config_details of this NodePool. :rtype: NodePoolNodeConfigDetails """ return self._node_config_details @node_config_details.setter def node_config_details(self, node_config_details): """ Sets the node_config_details of this NodePool. The configuration of nodes in the node pool. :param node_config_details: The node_config_details of this NodePool. :type: NodePoolNodeConfigDetails """ self._node_config_details = node_config_details def __repr__(self): return formatted_flat_dict(self) def __eq__(self, other): if other is None: return False return self.__dict__ == other.__dict__ def __ne__(self, other): return not self == other