ruạṛ
a ���f�� � @ 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 ZdZ dZd Zdd� Zedd� �Zejdd� �Zedd� �Zejdd� �Zedd� �Zejdd� �Zedd� �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� �Zed7d8� �Z e jd9d8� �Z ed:d;� �Z!e!jd<d;� �Z!ed=d>� �Z"e"jd?d>� �Z"ed@dA� �Z#e#jdBdA� �Z#edCdD� �Z$e$jdEdD� �Z$edFdG� �Z%e%jdHdG� �Z%edIdJ� �Z&e&jdKdJ� �Z&edLdM� �Z'e'jdNdM� �Z'edOdP� �Z(e(jdQdP� �Z(edRdS� �Z)e)jdTdS� �Z)edUdV� �Z*e*jdWdV� �Z*edXdY� �Z+e+jdZdY� �Z+ed[d\� �Z,e,jd]d\� �Z,d^d_� Z-d`da� Z.dbdc� Z/ddS )e�Clustera� An `Oracle Cloud VMware Solution`__ Cluster contains the resources required for a functional VMware environment. Instances in a Cluster (see :class:`EsxiHost`) run in a virtual cloud network (VCN) and are preconfigured with VMware and storage. Use the vCenter utility to manage and deploy VMware virtual machines (VMs) in the Cluster. The Cluster uses a single management subnet for provisioning the Cluster. It also uses a set of VLANs for various components of the VMware environment (vSphere, vMotion, vSAN, and so on). See the Core Services API for information about VCN subnets and VLANs. __ https://docs.cloud.oracle.com/iaas/Content/VMware/Concepts/ocvsoverview.htm �HOUR�MONTH�ONE_YEAR�THREE_YEARS�CREATING�UPDATING�ACTIVE�DELETING�DELETED�FAILED� MANAGEMENT�WORKLOADc K s dddddddddddddddddddddd dd ddd�| _ d 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'| _d'| _d'| _d'| _d'| _d'S )(a� Initializes a new Cluster 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 Cluster. :type id: str :param compute_availability_domain: The value to assign to the compute_availability_domain property of this Cluster. :type compute_availability_domain: str :param display_name: The value to assign to the display_name property of this Cluster. :type display_name: str :param instance_display_name_prefix: The value to assign to the instance_display_name_prefix property of this Cluster. :type instance_display_name_prefix: str :param vmware_software_version: The value to assign to the vmware_software_version property of this Cluster. :type vmware_software_version: str :param esxi_software_version: The value to assign to the esxi_software_version property of this Cluster. :type esxi_software_version: str :param compartment_id: The value to assign to the compartment_id property of this Cluster. :type compartment_id: str :param sddc_id: The value to assign to the sddc_id property of this Cluster. :type sddc_id: str :param esxi_hosts_count: The value to assign to the esxi_hosts_count property of this Cluster. :type esxi_hosts_count: int :param initial_commitment: The value to assign to the initial_commitment property of this Cluster. 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 Cluster. :type workload_network_cidr: str :param network_configuration: The value to assign to the network_configuration property of this Cluster. :type network_configuration: oci.ocvp.models.NetworkConfiguration :param time_created: The value to assign to the time_created property of this Cluster. :type time_created: datetime :param time_updated: The value to assign to the time_updated property of this Cluster. :type time_updated: datetime :param lifecycle_state: The value to assign to the lifecycle_state property of this Cluster. Allowed values for this property are: "CREATING", "UPDATING", "ACTIVE", "DELETING", "DELETED", "FAILED", 'UNKNOWN_ENUM_VALUE'. Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. :type lifecycle_state: str :param upgrade_licenses: The value to assign to the upgrade_licenses property of this Cluster. :type upgrade_licenses: list[oci.ocvp.models.VsphereLicense] :param vsphere_upgrade_objects: The value to assign to the vsphere_upgrade_objects property of this Cluster. :type vsphere_upgrade_objects: list[oci.ocvp.models.VsphereUpgradeObject] :param initial_host_shape_name: The value to assign to the initial_host_shape_name property of this Cluster. :type initial_host_shape_name: str :param initial_host_ocpu_count: The value to assign to the initial_host_ocpu_count property of this Cluster. :type initial_host_ocpu_count: float :param is_shielded_instance_enabled: The value to assign to the is_shielded_instance_enabled property of this Cluster. :type is_shielded_instance_enabled: bool :param capacity_reservation_id: The value to assign to the capacity_reservation_id property of this Cluster. :type capacity_reservation_id: str :param datastores: The value to assign to the datastores property of this Cluster. :type datastores: list[oci.ocvp.models.DatastoreDetails] :param vsphere_type: The value to assign to the vsphere_type property of this Cluster. 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 freeform_tags: The value to assign to the freeform_tags property of this Cluster. :type freeform_tags: dict(str, str) :param defined_tags: The value to assign to the defined_tags property of this Cluster. :type defined_tags: dict(str, dict(str, object)) :param system_tags: The value to assign to the system_tags property of this Cluster. :type system_tags: dict(str, dict(str, object)) �str�intZNetworkConfigurationZdatetimezlist[VsphereLicense]zlist[VsphereUpgradeObject]�float�boolzlist[DatastoreDetails]zdict(str, str)zdict(str, dict(str, object)))�id�compute_availability_domain�display_name�instance_display_name_prefix�vmware_software_version�esxi_software_version�compartment_id�sddc_id�esxi_hosts_count�initial_commitment�workload_network_cidr�network_configuration�time_created�time_updated�lifecycle_state�upgrade_licenses�vsphere_upgrade_objects�initial_host_shape_name�initial_host_ocpu_count�is_shielded_instance_enabled�capacity_reservation_id� datastores�vsphere_type� freeform_tags�defined_tags�system_tagsr ZcomputeAvailabilityDomainZdisplayNameZinstanceDisplayNamePrefixZvmwareSoftwareVersionZesxiSoftwareVersionZ compartmentIdZsddcIdZesxiHostsCountZinitialCommitmentZworkloadNetworkCidrZnetworkConfigurationZtimeCreatedZtimeUpdatedZlifecycleStateZupgradeLicensesZvsphereUpgradeObjectsZinitialHostShapeNameZinitialHostOcpuCountZisShieldedInstanceEnabledZcapacityReservationIdr, ZvsphereTypeZfreeformTagsZdefinedTagsZ systemTagsN)Z swagger_typesZ attribute_map�_id�_compute_availability_domain� _display_name�_instance_display_name_prefix�_vmware_software_version�_esxi_software_version�_compartment_id�_sddc_id�_esxi_hosts_count�_initial_commitment�_workload_network_cidr�_network_configuration� _time_created� _time_updated�_lifecycle_state�_upgrade_licenses�_vsphere_upgrade_objects�_initial_host_shape_name�_initial_host_ocpu_count�_is_shielded_instance_enabled�_capacity_reservation_id�_datastores� _vsphere_type�_freeform_tags� _defined_tags�_system_tags)�self�kwargs� rM �;/usr/lib/python3.9/site-packages/oci/ocvp/models/cluster.py�__init__L s� u��zCluster.__init__c C s | j S )z� **[Required]** Gets the id of this Cluster. The `OCID`__ of the Cluster. __ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm :return: The id of this Cluster. :rtype: str �r1 �rK rM rM rN r s z Cluster.idc C s || _ dS )z� Sets the id of this Cluster. The `OCID`__ of the Cluster. __ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm :param id: The id of this Cluster. :type: str NrP )rK r rM rM rN r # s c C s | j S )aC **[Required]** Gets the compute_availability_domain of this Cluster. The availability domain the ESXi hosts are running in. For Multi-AD Cluster, it is `multi-AD`. Example: `Uocm:PHX-AD-1`, `multi-AD` :return: The compute_availability_domain of this Cluster. :rtype: str �r2 rQ rM rM rN r 1 s z#Cluster.compute_availability_domainc C s || _ dS )aN Sets the compute_availability_domain of this Cluster. The availability domain the ESXi hosts are running in. For Multi-AD Cluster, it is `multi-AD`. Example: `Uocm:PHX-AD-1`, `multi-AD` :param compute_availability_domain: The compute_availability_domain of this Cluster. :type: str NrR )rK r rM rM rN r ? s c C s | j S )ad **[Required]** Gets the display_name of this Cluster. A descriptive name for the Cluster. It must be unique, start with a letter, and contain only letters, digits, whitespaces, dashes and underscores. Avoid entering confidential information. :return: The display_name of this Cluster. :rtype: str �r3 rQ rM rM rN r M s zCluster.display_namec C s || _ dS )a` Sets the display_name of this Cluster. A descriptive name for the Cluster. It must be unique, start with a letter, and contain only letters, digits, whitespaces, dashes and underscores. Avoid entering confidential information. :param display_name: The display_name of this Cluster. :type: str NrS )rK r rM rM rN r [ s c C s | j S )a� Gets the instance_display_name_prefix of this Cluster. 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 Cluster. :rtype: str �r4 rQ rM rM rN r i s z$Cluster.instance_display_name_prefixc C s || _ dS )a� Sets the instance_display_name_prefix of this Cluster. 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 Cluster. :type: str NrT )rK r rM rM rN r y s c C s | j S )a **[Required]** Gets the vmware_software_version of this Cluster. In general, this is a specific version of bundled VMware software supported by Oracle Cloud VMware Solution (see :func:`list_supported_vmware_software_versions`). This attribute is not guaranteed to reflect the version of software currently installed on the ESXi hosts in the Cluster. The purpose of this attribute is to show the version of software that the Oracle Cloud VMware Solution will install on any new ESXi hosts that you *add to this Cluster in the future* with :func:`create_esxi_host`. Therefore, if you upgrade the existing ESXi hosts in the Cluster to use a newer version of bundled VMware software supported by the Oracle Cloud VMware Solution, you should use :func:`update_cluster` to update the Cluster's `vmwareSoftwareVersion` with that new version. :return: The vmware_software_version of this Cluster. :rtype: str �r5 rQ rM rM rN r � s zCluster.vmware_software_versionc C s || _ dS )a Sets the vmware_software_version of this Cluster. In general, this is a specific version of bundled VMware software supported by Oracle Cloud VMware Solution (see :func:`list_supported_vmware_software_versions`). This attribute is not guaranteed to reflect the version of software currently installed on the ESXi hosts in the Cluster. The purpose of this attribute is to show the version of software that the Oracle Cloud VMware Solution will install on any new ESXi hosts that you *add to this Cluster in the future* with :func:`create_esxi_host`. Therefore, if you upgrade the existing ESXi hosts in the Cluster to use a newer version of bundled VMware software supported by the Oracle Cloud VMware Solution, you should use :func:`update_cluster` to update the Cluster's `vmwareSoftwareVersion` with that new version. :param vmware_software_version: The vmware_software_version of this Cluster. :type: str NrU )rK r rM rM rN r � s c C s | j S )a3 Gets the esxi_software_version of this Cluster. In general, this is a specific version of bundled ESXi software supported by Oracle Cloud VMware Solution (see :func:`list_supported_vmware_software_versions`). This attribute is not guaranteed to reflect the version of software currently installed on the ESXi hosts in the SDDC. The purpose of this attribute is to show the version of software that the Oracle Cloud VMware Solution will install on any new ESXi hosts that you *add to this SDDC in the future* with :func:`create_esxi_host` unless a different version is configured on the ESXi host level. Therefore, if you upgrade the existing ESXi hosts in the Cluster to use a newer version of bundled ESXi software supported by the Oracle Cloud VMware Solution, you should use :func:`update_cluster` to update the Cluster's `esxiSoftwareVersion` with that new version. :return: The esxi_software_version of this Cluster. :rtype: str �r6 rQ rM rM rN r � s zCluster.esxi_software_versionc C s || _ dS )aG Sets the esxi_software_version of this Cluster. In general, this is a specific version of bundled ESXi software supported by Oracle Cloud VMware Solution (see :func:`list_supported_vmware_software_versions`). This attribute is not guaranteed to reflect the version of software currently installed on the ESXi hosts in the SDDC. The purpose of this attribute is to show the version of software that the Oracle Cloud VMware Solution will install on any new ESXi hosts that you *add to this SDDC in the future* with :func:`create_esxi_host` unless a different version is configured on the ESXi host level. Therefore, if you upgrade the existing ESXi hosts in the Cluster to use a newer version of bundled ESXi software supported by the Oracle Cloud VMware Solution, you should use :func:`update_cluster` to update the Cluster's `esxiSoftwareVersion` with that new version. :param esxi_software_version: The esxi_software_version of this Cluster. :type: str NrV )rK r rM rM rN r � s c C s | j S )a2 **[Required]** Gets the compartment_id of this Cluster. The `OCID`__ of the compartment that contains the Cluster. __ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm :return: The compartment_id of this Cluster. :rtype: str �r7 rQ rM rM rN r � s zCluster.compartment_idc C s || _ dS )a0 Sets the compartment_id of this Cluster. The `OCID`__ of the compartment that contains the Cluster. __ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm :param compartment_id: The compartment_id of this Cluster. :type: str NrW )rK r rM rM rN r � s c C s | j S )a **[Required]** Gets the sddc_id of this Cluster. The `OCID`__ of the SDDC that the Cluster belongs to. __ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm :return: The sddc_id of this Cluster. :rtype: str �r8 rQ rM rM rN r s zCluster.sddc_idc C s || _ dS )a Sets the sddc_id of this Cluster. The `OCID`__ of the SDDC that the Cluster belongs to. __ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm :param sddc_id: The sddc_id of this Cluster. :type: str NrX )rK r rM rM rN r s c C s | j S )z� **[Required]** Gets the esxi_hosts_count of this Cluster. The number of ESXi hosts in the Cluster. :return: The esxi_hosts_count of this Cluster. :rtype: int �r9 rQ rM rM rN r + s zCluster.esxi_hosts_countc C s || _ dS )z� Sets the esxi_hosts_count of this Cluster. The number of ESXi hosts in the Cluster. :param esxi_hosts_count: The esxi_hosts_count of this Cluster. :type: int NrY )rK r rM rM rN r 7 s c C s | j S )a� Gets the initial_commitment of this Cluster. The billing option selected during Cluster creation. :func:`list_supported_commitments`. 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'. :return: The initial_commitment of this Cluster. :rtype: str )r: rQ rM rM rN r C s zCluster.initial_commitmentc C s g d�}t ||�sd}|| _dS )a Sets the initial_commitment of this Cluster. The billing option selected during Cluster creation. :func:`list_supported_commitments`. :param initial_commitment: The initial_commitment of this Cluster. :type: str )r r r r �UNKNOWN_ENUM_VALUEN)r r: )rK r �allowed_valuesrM rM rN r S s c C s | j S )a Gets the workload_network_cidr of this Cluster. The CIDR block for the IP addresses that VMware VMs in the SDDC use to run application workloads. :return: The workload_network_cidr of this Cluster. :rtype: str �r; rQ rM rM rN r! c s zCluster.workload_network_cidrc C s || _ dS )a Sets the workload_network_cidr of this Cluster. The CIDR block for the IP addresses that VMware VMs in the SDDC use to run application workloads. :param workload_network_cidr: The workload_network_cidr of this Cluster. :type: str Nr\ )rK r! rM rM rN r! p s c C s | j S )z� **[Required]** Gets the network_configuration of this Cluster. :return: The network_configuration of this Cluster. :rtype: oci.ocvp.models.NetworkConfiguration �r<