HEX
Server: Apache
System: Linux scp1.abinfocom.com 5.4.0-216-generic #236-Ubuntu SMP Fri Apr 11 19:53:21 UTC 2025 x86_64
User: confeduphaar (1010)
PHP: 8.1.33
Disabled: exec,passthru,shell_exec,system
Upload Files
File: //lib/mysqlsh/lib/python3.8/site-packages/oci/container_engine/models/cluster_create_options.py
# coding: utf-8
# Copyright (c) 2016, 2025, Oracle and/or its affiliates.  All rights reserved.
# This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license.

# NOTE: This class is auto generated by OracleSDKGenerator. DO NOT EDIT. API Version: 20180222


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 ClusterCreateOptions(object):
    """
    The properties that define extra options for a cluster.
    """

    #: A constant which can be used with the ip_families property of a ClusterCreateOptions.
    #: This constant has a value of "IPv4"
    IP_FAMILIES_I_PV4 = "IPv4"

    #: A constant which can be used with the ip_families property of a ClusterCreateOptions.
    #: This constant has a value of "IPv6"
    IP_FAMILIES_I_PV6 = "IPv6"

    def __init__(self, **kwargs):
        """
        Initializes a new ClusterCreateOptions object with values from keyword arguments.
        The following keyword arguments are supported (corresponding to the getters/setters of this class):

        :param service_lb_subnet_ids:
            The value to assign to the service_lb_subnet_ids property of this ClusterCreateOptions.
        :type service_lb_subnet_ids: list[str]

        :param ip_families:
            The value to assign to the ip_families property of this ClusterCreateOptions.
            Allowed values for items in this list are: "IPv4", "IPv6", 'UNKNOWN_ENUM_VALUE'.
            Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'.
        :type ip_families: list[str]

        :param kubernetes_network_config:
            The value to assign to the kubernetes_network_config property of this ClusterCreateOptions.
        :type kubernetes_network_config: oci.container_engine.models.KubernetesNetworkConfig

        :param add_ons:
            The value to assign to the add_ons property of this ClusterCreateOptions.
        :type add_ons: oci.container_engine.models.AddOnOptions

        :param admission_controller_options:
            The value to assign to the admission_controller_options property of this ClusterCreateOptions.
        :type admission_controller_options: oci.container_engine.models.AdmissionControllerOptions

        :param persistent_volume_config:
            The value to assign to the persistent_volume_config property of this ClusterCreateOptions.
        :type persistent_volume_config: oci.container_engine.models.PersistentVolumeConfigDetails

        :param service_lb_config:
            The value to assign to the service_lb_config property of this ClusterCreateOptions.
        :type service_lb_config: oci.container_engine.models.ServiceLbConfigDetails

        :param open_id_connect_token_authentication_config:
            The value to assign to the open_id_connect_token_authentication_config property of this ClusterCreateOptions.
        :type open_id_connect_token_authentication_config: oci.container_engine.models.OpenIdConnectTokenAuthenticationConfig

        :param open_id_connect_discovery:
            The value to assign to the open_id_connect_discovery property of this ClusterCreateOptions.
        :type open_id_connect_discovery: oci.container_engine.models.OpenIdConnectDiscovery

        """
        self.swagger_types = {
            'service_lb_subnet_ids': 'list[str]',
            'ip_families': 'list[str]',
            'kubernetes_network_config': 'KubernetesNetworkConfig',
            'add_ons': 'AddOnOptions',
            'admission_controller_options': 'AdmissionControllerOptions',
            'persistent_volume_config': 'PersistentVolumeConfigDetails',
            'service_lb_config': 'ServiceLbConfigDetails',
            'open_id_connect_token_authentication_config': 'OpenIdConnectTokenAuthenticationConfig',
            'open_id_connect_discovery': 'OpenIdConnectDiscovery'
        }
        self.attribute_map = {
            'service_lb_subnet_ids': 'serviceLbSubnetIds',
            'ip_families': 'ipFamilies',
            'kubernetes_network_config': 'kubernetesNetworkConfig',
            'add_ons': 'addOns',
            'admission_controller_options': 'admissionControllerOptions',
            'persistent_volume_config': 'persistentVolumeConfig',
            'service_lb_config': 'serviceLbConfig',
            'open_id_connect_token_authentication_config': 'openIdConnectTokenAuthenticationConfig',
            'open_id_connect_discovery': 'openIdConnectDiscovery'
        }
        self._service_lb_subnet_ids = None
        self._ip_families = None
        self._kubernetes_network_config = None
        self._add_ons = None
        self._admission_controller_options = None
        self._persistent_volume_config = None
        self._service_lb_config = None
        self._open_id_connect_token_authentication_config = None
        self._open_id_connect_discovery = None

    @property
    def service_lb_subnet_ids(self):
        """
        Gets the service_lb_subnet_ids of this ClusterCreateOptions.
        The OCIDs of the subnets used for Kubernetes services load balancers.


        :return: The service_lb_subnet_ids of this ClusterCreateOptions.
        :rtype: list[str]
        """
        return self._service_lb_subnet_ids

    @service_lb_subnet_ids.setter
    def service_lb_subnet_ids(self, service_lb_subnet_ids):
        """
        Sets the service_lb_subnet_ids of this ClusterCreateOptions.
        The OCIDs of the subnets used for Kubernetes services load balancers.


        :param service_lb_subnet_ids: The service_lb_subnet_ids of this ClusterCreateOptions.
        :type: list[str]
        """
        self._service_lb_subnet_ids = service_lb_subnet_ids

    @property
    def ip_families(self):
        """
        Gets the ip_families of this ClusterCreateOptions.
        IP family to use for single stack or define the order of IP families for dual-stack

        Allowed values for items in this list are: "IPv4", "IPv6", 'UNKNOWN_ENUM_VALUE'.
        Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'.


        :return: The ip_families of this ClusterCreateOptions.
        :rtype: list[str]
        """
        return self._ip_families

    @ip_families.setter
    def ip_families(self, ip_families):
        """
        Sets the ip_families of this ClusterCreateOptions.
        IP family to use for single stack or define the order of IP families for dual-stack


        :param ip_families: The ip_families of this ClusterCreateOptions.
        :type: list[str]
        """
        allowed_values = ["IPv4", "IPv6"]
        if ip_families:
            ip_families[:] = ['UNKNOWN_ENUM_VALUE' if not value_allowed_none_or_none_sentinel(x, allowed_values) else x for x in ip_families]
        self._ip_families = ip_families

    @property
    def kubernetes_network_config(self):
        """
        Gets the kubernetes_network_config of this ClusterCreateOptions.
        Network configuration for Kubernetes.


        :return: The kubernetes_network_config of this ClusterCreateOptions.
        :rtype: oci.container_engine.models.KubernetesNetworkConfig
        """
        return self._kubernetes_network_config

    @kubernetes_network_config.setter
    def kubernetes_network_config(self, kubernetes_network_config):
        """
        Sets the kubernetes_network_config of this ClusterCreateOptions.
        Network configuration for Kubernetes.


        :param kubernetes_network_config: The kubernetes_network_config of this ClusterCreateOptions.
        :type: oci.container_engine.models.KubernetesNetworkConfig
        """
        self._kubernetes_network_config = kubernetes_network_config

    @property
    def add_ons(self):
        """
        Gets the add_ons of this ClusterCreateOptions.
        Configurable cluster add-ons


        :return: The add_ons of this ClusterCreateOptions.
        :rtype: oci.container_engine.models.AddOnOptions
        """
        return self._add_ons

    @add_ons.setter
    def add_ons(self, add_ons):
        """
        Sets the add_ons of this ClusterCreateOptions.
        Configurable cluster add-ons


        :param add_ons: The add_ons of this ClusterCreateOptions.
        :type: oci.container_engine.models.AddOnOptions
        """
        self._add_ons = add_ons

    @property
    def admission_controller_options(self):
        """
        Gets the admission_controller_options of this ClusterCreateOptions.
        Configurable cluster admission controllers


        :return: The admission_controller_options of this ClusterCreateOptions.
        :rtype: oci.container_engine.models.AdmissionControllerOptions
        """
        return self._admission_controller_options

    @admission_controller_options.setter
    def admission_controller_options(self, admission_controller_options):
        """
        Sets the admission_controller_options of this ClusterCreateOptions.
        Configurable cluster admission controllers


        :param admission_controller_options: The admission_controller_options of this ClusterCreateOptions.
        :type: oci.container_engine.models.AdmissionControllerOptions
        """
        self._admission_controller_options = admission_controller_options

    @property
    def persistent_volume_config(self):
        """
        Gets the persistent_volume_config of this ClusterCreateOptions.

        :return: The persistent_volume_config of this ClusterCreateOptions.
        :rtype: oci.container_engine.models.PersistentVolumeConfigDetails
        """
        return self._persistent_volume_config

    @persistent_volume_config.setter
    def persistent_volume_config(self, persistent_volume_config):
        """
        Sets the persistent_volume_config of this ClusterCreateOptions.

        :param persistent_volume_config: The persistent_volume_config of this ClusterCreateOptions.
        :type: oci.container_engine.models.PersistentVolumeConfigDetails
        """
        self._persistent_volume_config = persistent_volume_config

    @property
    def service_lb_config(self):
        """
        Gets the service_lb_config of this ClusterCreateOptions.

        :return: The service_lb_config of this ClusterCreateOptions.
        :rtype: oci.container_engine.models.ServiceLbConfigDetails
        """
        return self._service_lb_config

    @service_lb_config.setter
    def service_lb_config(self, service_lb_config):
        """
        Sets the service_lb_config of this ClusterCreateOptions.

        :param service_lb_config: The service_lb_config of this ClusterCreateOptions.
        :type: oci.container_engine.models.ServiceLbConfigDetails
        """
        self._service_lb_config = service_lb_config

    @property
    def open_id_connect_token_authentication_config(self):
        """
        Gets the open_id_connect_token_authentication_config of this ClusterCreateOptions.

        :return: The open_id_connect_token_authentication_config of this ClusterCreateOptions.
        :rtype: oci.container_engine.models.OpenIdConnectTokenAuthenticationConfig
        """
        return self._open_id_connect_token_authentication_config

    @open_id_connect_token_authentication_config.setter
    def open_id_connect_token_authentication_config(self, open_id_connect_token_authentication_config):
        """
        Sets the open_id_connect_token_authentication_config of this ClusterCreateOptions.

        :param open_id_connect_token_authentication_config: The open_id_connect_token_authentication_config of this ClusterCreateOptions.
        :type: oci.container_engine.models.OpenIdConnectTokenAuthenticationConfig
        """
        self._open_id_connect_token_authentication_config = open_id_connect_token_authentication_config

    @property
    def open_id_connect_discovery(self):
        """
        Gets the open_id_connect_discovery of this ClusterCreateOptions.

        :return: The open_id_connect_discovery of this ClusterCreateOptions.
        :rtype: oci.container_engine.models.OpenIdConnectDiscovery
        """
        return self._open_id_connect_discovery

    @open_id_connect_discovery.setter
    def open_id_connect_discovery(self, open_id_connect_discovery):
        """
        Sets the open_id_connect_discovery of this ClusterCreateOptions.

        :param open_id_connect_discovery: The open_id_connect_discovery of this ClusterCreateOptions.
        :type: oci.container_engine.models.OpenIdConnectDiscovery
        """
        self._open_id_connect_discovery = open_id_connect_discovery

    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