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 d� 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.� �Zejd/d.� �Zed0d1� �Zejd2d1� �Zed3d4� �Zejd5d4� �Zed6d7� �Zejd8d7� �Zed9d:� �Z e jd;d:� �Z ed<d=� �Z!e!jd>d=� �Z!ed?d@� �Z"e"jdAd@� �Z"edBdC� �Z#e#jdDdC� �Z#edEdF� �Z$e$jdGdF� �Z$edHdI� �Z%e%jdJdI� �Z%edKdL� �Z&e&jdMdL� �Z&edNdO� �Z'e'jdPdO� �Z'edQdR� �Z(e(jdSdR� �Z(edTdU� �Z)e)jdVdU� �Z)edWdX� �Z*e*jdYdX� �Z*dZd[� Z+d\d]� Z,d^d_� Z-d`S )a� DbNodeSummarya A server where Oracle Database software is running. To use any of the API operations, you must be authorized in an IAM policy. If you're not authorized, talk to an administrator. If you're an administrator who needs to write policies to give users access, see `Getting Started with Policies`__. **Warning:** Oracle recommends that you avoid using any confidential information when you supply string values using the API. __ https://docs.cloud.oracle.com/Content/Identity/Concepts/policygetstarted.htm �PROVISIONING� AVAILABLE�UPDATING�STOPPING�STOPPED�STARTING�TERMINATING� TERMINATED�FAILED�VMDB_REBOOT_MIGRATION�EXADBXS_REBOOT_MIGRATIONc K s dddddddddddddddddddddddddd�| _ ddd d ddd 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 S )!a! Initializes a new DbNodeSummary 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 DbNodeSummary. :type id: str :param db_system_id: The value to assign to the db_system_id property of this DbNodeSummary. :type db_system_id: str :param vnic_id: The value to assign to the vnic_id property of this DbNodeSummary. :type vnic_id: str :param backup_vnic_id: The value to assign to the backup_vnic_id property of this DbNodeSummary. :type backup_vnic_id: str :param host_ip_id: The value to assign to the host_ip_id property of this DbNodeSummary. :type host_ip_id: str :param backup_ip_id: The value to assign to the backup_ip_id property of this DbNodeSummary. :type backup_ip_id: str :param vnic2_id: The value to assign to the vnic2_id property of this DbNodeSummary. :type vnic2_id: str :param backup_vnic2_id: The value to assign to the backup_vnic2_id property of this DbNodeSummary. :type backup_vnic2_id: str :param lifecycle_state: The value to assign to the lifecycle_state property of this DbNodeSummary. Allowed values for this property are: "PROVISIONING", "AVAILABLE", "UPDATING", "STOPPING", "STOPPED", "STARTING", "TERMINATING", "TERMINATED", "FAILED", 'UNKNOWN_ENUM_VALUE'. Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. :type lifecycle_state: str :param hostname: The value to assign to the hostname property of this DbNodeSummary. :type hostname: str :param fault_domain: The value to assign to the fault_domain property of this DbNodeSummary. :type fault_domain: str :param time_created: The value to assign to the time_created property of this DbNodeSummary. :type time_created: datetime :param software_storage_size_in_gb: The value to assign to the software_storage_size_in_gb property of this DbNodeSummary. :type software_storage_size_in_gb: int :param maintenance_type: The value to assign to the maintenance_type property of this DbNodeSummary. Allowed values for this property are: "VMDB_REBOOT_MIGRATION", "EXADBXS_REBOOT_MIGRATION", 'UNKNOWN_ENUM_VALUE'. Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. :type maintenance_type: str :param time_maintenance_window_start: The value to assign to the time_maintenance_window_start property of this DbNodeSummary. :type time_maintenance_window_start: datetime :param time_maintenance_window_end: The value to assign to the time_maintenance_window_end property of this DbNodeSummary. :type time_maintenance_window_end: datetime :param additional_details: The value to assign to the additional_details property of this DbNodeSummary. :type additional_details: str :param freeform_tags: The value to assign to the freeform_tags property of this DbNodeSummary. :type freeform_tags: dict(str, str) :param defined_tags: The value to assign to the defined_tags property of this DbNodeSummary. :type defined_tags: dict(str, dict(str, object)) :param lifecycle_details: The value to assign to the lifecycle_details property of this DbNodeSummary. :type lifecycle_details: str :param cpu_core_count: The value to assign to the cpu_core_count property of this DbNodeSummary. :type cpu_core_count: int :param memory_size_in_gbs: The value to assign to the memory_size_in_gbs property of this DbNodeSummary. :type memory_size_in_gbs: int :param db_node_storage_size_in_gbs: The value to assign to the db_node_storage_size_in_gbs property of this DbNodeSummary. :type db_node_storage_size_in_gbs: int :param total_cpu_core_count: The value to assign to the total_cpu_core_count property of this DbNodeSummary. :type total_cpu_core_count: int :param db_server_id: The value to assign to the db_server_id property of this DbNodeSummary. :type db_server_id: str �strZdatetime�intzdict(str, str)zdict(str, dict(str, object)))�id�db_system_id�vnic_id�backup_vnic_id� host_ip_id�backup_ip_id�vnic2_id�backup_vnic2_id�lifecycle_state�hostname�fault_domain�time_created�software_storage_size_in_gb�maintenance_type�time_maintenance_window_start�time_maintenance_window_end�additional_details� freeform_tags�defined_tags�lifecycle_details�cpu_core_count�memory_size_in_gbs�db_node_storage_size_in_gbs�total_cpu_core_count�db_server_idr Z dbSystemIdZvnicIdZbackupVnicIdZhostIpIdZ backupIpIdZvnic2IdZ backupVnic2IdZlifecycleStater ZfaultDomainZtimeCreatedZsoftwareStorageSizeInGBZmaintenanceTypeZtimeMaintenanceWindowStartZtimeMaintenanceWindowEndZadditionalDetailsZfreeformTagsZdefinedTagsZlifecycleDetailsZcpuCoreCountZmemorySizeInGBsZdbNodeStorageSizeInGBsZtotalCpuCoreCountZ dbServerIdN)Z swagger_typesZ attribute_map�_id� _db_system_id�_vnic_id�_backup_vnic_id�_host_ip_id� _backup_ip_id� _vnic2_id�_backup_vnic2_id�_lifecycle_state� _hostname� _fault_domain� _time_created�_software_storage_size_in_gb�_maintenance_type�_time_maintenance_window_start�_time_maintenance_window_end�_additional_details�_freeform_tags� _defined_tags�_lifecycle_details�_cpu_core_count�_memory_size_in_gbs�_db_node_storage_size_in_gbs�_total_cpu_core_count� _db_server_id)�self�kwargs� rH �G/usr/lib/python3.9/site-packages/oci/database/models/db_node_summary.py�__init__D s� o��zDbNodeSummary.__init__c C s | j S )a **[Required]** Gets the id of this DbNodeSummary. The `OCID`__ of the database node. __ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm :return: The id of this DbNodeSummary. :rtype: str �r- �rF rH rH rI r s zDbNodeSummary.idc C s || _ dS )z� Sets the id of this DbNodeSummary. The `OCID`__ of the database node. __ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm :param id: The id of this DbNodeSummary. :type: str NrK )rF r rH rH rI r s c C s | j S )a **[Required]** Gets the db_system_id of this DbNodeSummary. The `OCID`__ of the DB system. __ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm :return: The db_system_id of this DbNodeSummary. :rtype: str �r. rL rH rH rI r s zDbNodeSummary.db_system_idc C s || _ dS )a Sets the db_system_id of this DbNodeSummary. The `OCID`__ of the DB system. __ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm :param db_system_id: The db_system_id of this DbNodeSummary. :type: str NrM )rF r rH rH rI r . s c C s | j S )a **[Required]** Gets the vnic_id of this DbNodeSummary. The `OCID`__ of the VNIC. __ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm :return: The vnic_id of this DbNodeSummary. :rtype: str �r/ rL rH rH rI r < s zDbNodeSummary.vnic_idc C s || _ dS )z� Sets the vnic_id of this DbNodeSummary. The `OCID`__ of the VNIC. __ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm :param vnic_id: The vnic_id of this DbNodeSummary. :type: str NrN )rF r rH rH rI r J s c C s | j S )a Gets the backup_vnic_id of this DbNodeSummary. The `OCID`__ of the backup VNIC. __ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm :return: The backup_vnic_id of this DbNodeSummary. :rtype: str �r0 rL rH rH rI r X s zDbNodeSummary.backup_vnic_idc C s || _ dS )a Sets the backup_vnic_id of this DbNodeSummary. The `OCID`__ of the backup VNIC. __ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm :param backup_vnic_id: The backup_vnic_id of this DbNodeSummary. :type: str NrO )rF r rH rH rI r f s c C s | j S )a Gets the host_ip_id of this DbNodeSummary. The `OCID`__ of the host IP address associated with the database node. Use this OCID with either the :func:`get_private_ip` or the :func:`get_public_ip_by_private_ip_id` API to get the IP address needed to make a database connection. **Note:** Applies only to Exadata Cloud Service. __ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm :return: The host_ip_id of this DbNodeSummary. :rtype: str �r1 rL rH rH rI r t s zDbNodeSummary.host_ip_idc C s || _ dS )a! Sets the host_ip_id of this DbNodeSummary. The `OCID`__ of the host IP address associated with the database node. Use this OCID with either the :func:`get_private_ip` or the :func:`get_public_ip_by_private_ip_id` API to get the IP address needed to make a database connection. **Note:** Applies only to Exadata Cloud Service. __ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm :param host_ip_id: The host_ip_id of this DbNodeSummary. :type: str NrP )rF r rH rH rI r � s c C s | j S )a Gets the backup_ip_id of this DbNodeSummary. The `OCID`__ of the backup IP address associated with the database node. Use this OCID with either the :func:`get_private_ip` or the :func:`get_public_ip_by_private_ip_id` API to get the IP address needed to make a database connection. **Note:** Applies only to Exadata Cloud Service. __ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm :return: The backup_ip_id of this DbNodeSummary. :rtype: str �r2 rL rH rH rI r � s zDbNodeSummary.backup_ip_idc C s || _ dS )a) Sets the backup_ip_id of this DbNodeSummary. The `OCID`__ of the backup IP address associated with the database node. Use this OCID with either the :func:`get_private_ip` or the :func:`get_public_ip_by_private_ip_id` API to get the IP address needed to make a database connection. **Note:** Applies only to Exadata Cloud Service. __ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm :param backup_ip_id: The backup_ip_id of this DbNodeSummary. :type: str NrQ )rF r rH rH rI r � s c C s | j S )a; Gets the vnic2_id of this DbNodeSummary. The `OCID`__ of the second VNIC. **Note:** Applies only to Exadata Cloud Service. __ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm :return: The vnic2_id of this DbNodeSummary. :rtype: str �r3 rL rH rH rI r � s zDbNodeSummary.vnic2_idc C s || _ dS )aB Sets the vnic2_id of this DbNodeSummary. The `OCID`__ of the second VNIC. **Note:** Applies only to Exadata Cloud Service. __ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm :param vnic2_id: The vnic2_id of this DbNodeSummary. :type: str NrR )rF r rH rH rI r � s c C s | j S )aP Gets the backup_vnic2_id of this DbNodeSummary. The `OCID`__ of the second backup VNIC. **Note:** Applies only to Exadata Cloud Service. __ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm :return: The backup_vnic2_id of this DbNodeSummary. :rtype: str �r4 rL rH rH rI r � s zDbNodeSummary.backup_vnic2_idc C s || _ dS )a^ Sets the backup_vnic2_id of this DbNodeSummary. The `OCID`__ of the second backup VNIC. **Note:** Applies only to Exadata Cloud Service. __ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm :param backup_vnic2_id: The backup_vnic2_id of this DbNodeSummary. :type: str NrS )rF r rH rH rI r � s c C s | j S )a� **[Required]** Gets the lifecycle_state of this DbNodeSummary. The current state of the database node. Allowed values for this property are: "PROVISIONING", "AVAILABLE", "UPDATING", "STOPPING", "STOPPED", "STARTING", "TERMINATING", "TERMINATED", "FAILED", 'UNKNOWN_ENUM_VALUE'. Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. :return: The lifecycle_state of this DbNodeSummary. :rtype: str )r5 rL rH rH rI r � s zDbNodeSummary.lifecycle_statec C s g d�}t ||�sd}|| _dS )z� Sets the lifecycle_state of this DbNodeSummary. The current state of the database node. :param lifecycle_state: The lifecycle_state of this DbNodeSummary. :type: str ) r r r r r r r r r �UNKNOWN_ENUM_VALUEN)r r5 )rF r �allowed_valuesrH rH rI r s c C s | j S )z� Gets the hostname of this DbNodeSummary. The host name for the database node. :return: The hostname of this DbNodeSummary. :rtype: str �r6 rL rH rH rI r s zDbNodeSummary.hostnamec C s || _ dS )z� Sets the hostname of this DbNodeSummary. The host name for the database node. :param hostname: The hostname of this DbNodeSummary. :type: str NrV )rF r rH rH rI r & s c C s | j S )z� Gets the fault_domain of this DbNodeSummary. The name of the Fault Domain the instance is contained in. :return: The fault_domain of this DbNodeSummary. :rtype: str �r7 rL rH rH rI r 2 s zDbNodeSummary.fault_domainc C s || _ dS )z� Sets the fault_domain of this DbNodeSummary. The name of the Fault Domain the instance is contained in. :param fault_domain: The fault_domain of this DbNodeSummary. :type: str NrW )rF r rH rH rI r > s c C s | j S )z� **[Required]** Gets the time_created of this DbNodeSummary. The date and time that the database node was created. :return: The time_created of this DbNodeSummary. :rtype: datetime �r8 rL rH rH rI r J s zDbNodeSummary.time_createdc C s || _ dS )z� Sets the time_created of this DbNodeSummary. The date and time that the database node was created. :param time_created: The time_created of this DbNodeSummary. :type: datetime NrX )rF r rH rH rI r V s c C s | j S )a: Gets the software_storage_size_in_gb of this DbNodeSummary. The size (in GB) of the block storage volume allocation for the DB system. This attribute applies only for virtual machine DB systems. :return: The software_storage_size_in_gb of this DbNodeSummary. :rtype: int �r9 rL rH rH rI r b s z)DbNodeSummary.software_storage_size_in_gbc C s || _ dS )aT Sets the software_storage_size_in_gb of this DbNodeSummary. The size (in GB) of the block storage volume allocation for the DB system. This attribute applies only for virtual machine DB systems. :param software_storage_size_in_gb: The software_storage_size_in_gb of this DbNodeSummary. :type: int NrY )rF r rH rH rI r n s c C s | j S )a� Gets the maintenance_type of this DbNodeSummary. The type of database node maintenance. Allowed values for this property are: "VMDB_REBOOT_MIGRATION", "EXADBXS_REBOOT_MIGRATION", 'UNKNOWN_ENUM_VALUE'. Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. :return: The maintenance_type of this DbNodeSummary. :rtype: str )r: rL rH rH rI r! z s zDbNodeSummary.maintenance_typec C s ddg}t ||�sd}|| _dS )z� Sets the maintenance_type of this DbNodeSummary. The type of database node maintenance. :param maintenance_type: The maintenance_type of this DbNodeSummary. :type: str r r rT N)r r: )rF r! rU rH rH rI r! � s c C s | j S )z� Gets the time_maintenance_window_start of this DbNodeSummary. Start date and time of maintenance window. :return: The time_maintenance_window_start of this DbNodeSummary. :rtype: datetime �r; rL rH rH rI r"