ruạṛ
a ���fzQ � @ 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 dd � Z ed d� �Zej dd� �Zed d� �Zej dd� �Zedd� �Zej dd� �Zedd� �Zej dd� �Zedd� �Zej dd� �Zedd� �Zej dd� �Zedd� �Zej dd� �Zedd � �Zej d!d � �Zed"d#� �Zej d$d#� �Zed%d&� �Zej d'd&� �Zed(d)� �Zej d*d)� �Zed+d,� �Zej d-d,� �Zed.d/� �Zej d0d/� �Zd1d2� Zd3d4� Zd5d6� Zd7S )8�InitialClusterConfigurationz1 Details of the initial Cluster of SDDC. � MANAGEMENT�WORKLOAD�HOUR�MONTH�ONE_YEAR�THREE_YEARSc K s� dddddddddddddd� | _ dd d ddd dddddddd� | _d| _d| _d| _d| _d| _d| _d| _d| _ d| _ d| _d| _d| _ d| _dS )a Initializes a new InitialClusterConfiguration object with values from keyword arguments. The following keyword arguments are supported (corresponding to the getters/setters of this class): :param vsphere_type: The value to assign to the vsphere_type property of this InitialClusterConfiguration. Allowed values for this property are: "MANAGEMENT", "WORKLOAD", 'UNKNOWN_ENUM_VALUE'. Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. :type vsphere_type: str :param compute_availability_domain: The value to assign to the compute_availability_domain property of this InitialClusterConfiguration. :type compute_availability_domain: str :param display_name: The value to assign to the display_name property of this InitialClusterConfiguration. :type display_name: str :param instance_display_name_prefix: The value to assign to the instance_display_name_prefix property of this InitialClusterConfiguration. :type instance_display_name_prefix: str :param esxi_hosts_count: The value to assign to the esxi_hosts_count property of this InitialClusterConfiguration. :type esxi_hosts_count: int :param network_configuration: The value to assign to the network_configuration property of this InitialClusterConfiguration. :type network_configuration: oci.ocvp.models.NetworkConfiguration :param initial_commitment: The value to assign to the initial_commitment property of this InitialClusterConfiguration. Allowed values for this property are: "HOUR", "MONTH", "ONE_YEAR", "THREE_YEARS", 'UNKNOWN_ENUM_VALUE'. Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. :type initial_commitment: str :param workload_network_cidr: The value to assign to the workload_network_cidr property of this InitialClusterConfiguration. :type workload_network_cidr: str :param initial_host_shape_name: The value to assign to the initial_host_shape_name property of this InitialClusterConfiguration. :type initial_host_shape_name: str :param initial_host_ocpu_count: The value to assign to the initial_host_ocpu_count property of this InitialClusterConfiguration. :type initial_host_ocpu_count: float :param is_shielded_instance_enabled: The value to assign to the is_shielded_instance_enabled property of this InitialClusterConfiguration. :type is_shielded_instance_enabled: bool :param capacity_reservation_id: The value to assign to the capacity_reservation_id property of this InitialClusterConfiguration. :type capacity_reservation_id: str :param datastores: The value to assign to the datastores property of this InitialClusterConfiguration. :type datastores: list[oci.ocvp.models.DatastoreInfo] �str�intZNetworkConfiguration�float�boolzlist[DatastoreInfo]) �vsphere_type�compute_availability_domain�display_name�instance_display_name_prefix�esxi_hosts_count�network_configuration�initial_commitment�workload_network_cidr�initial_host_shape_name�initial_host_ocpu_count�is_shielded_instance_enabled�capacity_reservation_id� datastoresZvsphereTypeZcomputeAvailabilityDomainZdisplayNameZinstanceDisplayNamePrefixZesxiHostsCountZnetworkConfigurationZinitialCommitmentZworkloadNetworkCidrZinitialHostShapeNameZinitialHostOcpuCountZisShieldedInstanceEnabledZcapacityReservationIdr N)Z swagger_typesZ attribute_map� _vsphere_type�_compute_availability_domain� _display_name�_instance_display_name_prefix�_esxi_hosts_count�_network_configuration�_initial_commitment�_workload_network_cidr�_initial_host_shape_name�_initial_host_ocpu_count�_is_shielded_instance_enabled�_capacity_reservation_id�_datastores)�self�kwargs� r- �Q/usr/lib/python3.9/site-packages/oci/ocvp/models/initial_cluster_configuration.py�__init__* sR ?��z$InitialClusterConfiguration.__init__c C s | j S )a� **[Required]** Gets the vsphere_type of this InitialClusterConfiguration. vSphere Cluster types. Allowed values for this property are: "MANAGEMENT", "WORKLOAD", 'UNKNOWN_ENUM_VALUE'. Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. :return: The vsphere_type of this InitialClusterConfiguration. :rtype: str )r �r+ r- r- r. r � s z(InitialClusterConfiguration.vsphere_typec C s ddg}t ||�sd}|| _dS )z� Sets the vsphere_type of this InitialClusterConfiguration. vSphere Cluster types. :param vsphere_type: The vsphere_type of this InitialClusterConfiguration. :type: str r r �UNKNOWN_ENUM_VALUEN)r r )r+ r �allowed_valuesr- r- r. r � s c C s | j S )aQ **[Required]** Gets the compute_availability_domain of this InitialClusterConfiguration. The availability domain to create the Cluster's ESXi hosts in. For multi-AD Cluster deployment, set to `multi-AD`. :return: The compute_availability_domain of this InitialClusterConfiguration. :rtype: str �r r0 r- r- r. r � s z7InitialClusterConfiguration.compute_availability_domainc C s || _ dS )a\ Sets the compute_availability_domain of this InitialClusterConfiguration. The availability domain to create the Cluster's ESXi hosts in. For multi-AD Cluster deployment, set to `multi-AD`. :param compute_availability_domain: The compute_availability_domain of this InitialClusterConfiguration. :type: str Nr3 )r+ r r- r- r. r � s c C s | j S )a� Gets the display_name of this InitialClusterConfiguration. A descriptive name for the Cluster. Cluster name requirements are 1-16 character length limit, Must start with a letter, Must be English letters, numbers, - only, No repeating hyphens, Must be unique within the region. Avoid entering confidential information. :return: The display_name of this InitialClusterConfiguration. :rtype: str �r r0 r- r- r. r � s z(InitialClusterConfiguration.display_namec C s || _ dS )a� Sets the display_name of this InitialClusterConfiguration. A descriptive name for the Cluster. Cluster name requirements are 1-16 character length limit, Must start with a letter, Must be English letters, numbers, - only, No repeating hyphens, Must be unique within the region. Avoid entering confidential information. :param display_name: The display_name of this InitialClusterConfiguration. :type: str Nr4 )r+ r r- r- r. r � s c C s | j S )a� Gets the instance_display_name_prefix of this InitialClusterConfiguration. A prefix used in the name of each ESXi host and Compute instance in the Cluster. If this isn't set, the Cluster's `displayName` is used as the prefix. For example, if the value is `myCluster`, the ESXi hosts are named `myCluster-1`, `myCluster-2`, and so on. :return: The instance_display_name_prefix of this InitialClusterConfiguration. :rtype: str �r! r0 r- r- r. r � s z8InitialClusterConfiguration.instance_display_name_prefixc C s || _ dS )a Sets the instance_display_name_prefix of this InitialClusterConfiguration. A prefix used in the name of each ESXi host and Compute instance in the Cluster. If this isn't set, the Cluster's `displayName` is used as the prefix. For example, if the value is `myCluster`, the ESXi hosts are named `myCluster-1`, `myCluster-2`, and so on. :param instance_display_name_prefix: The instance_display_name_prefix of this InitialClusterConfiguration. :type: str Nr5 )r+ r r- r- r. r � s c C s | j S )a� **[Required]** Gets the esxi_hosts_count of this InitialClusterConfiguration. The number of ESXi hosts to create in the Cluster. You can add more hosts later (see :func:`create_esxi_host`). Creating a Cluster with a ESXi host count of 1 will be considered a single ESXi host Cluster. **Note:** If you later delete EXSi hosts from a production Cluster to total less than 3, you are still billed for the 3 minimum recommended ESXi hosts. Also, you cannot add more VMware workloads to the Cluster until it again has at least 3 ESXi hosts. :return: The esxi_hosts_count of this InitialClusterConfiguration. :rtype: int �r"