ruạṛ
a N��f�e � @ 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 @ sR e Zd ZdZdZdZdZdZdZdZ dZ d Zd ZdZ dZd ZdZdd� Zedd� �Zejdd� �Zedd� �Zejdd� �Zedd� �Zejdd� �Zedd� �Zejdd� �Zedd� �Zejdd� �Zed d!� �Zejd"d!� �Zed#d$� �Zejd%d$� �Zed&d'� �Zejd(d'� �Zed)d*� �Zejd+d*� �Zed,d-� �Zejd.d-� �Zed/d0� �Zejd1d0� �Zed2d3� �Zejd4d3� �Zed5d6� �Z e jd7d6� �Z ed8d9� �Z!e!jd:d9� �Z!ed;d<� �Z"e"jd=d<� �Z"ed>d?� �Z#e#jd@d?� �Z#edAdB� �Z$e$jdCdB� �Z$edDdE� �Z%e%jdFdE� �Z%edGdH� �Z&e&jdIdH� �Z&dJdK� Z'dLdM� Z(dNdO� Z)dPS )Q�ExternalDatabaseBasez� A resource that allows you to manage an Oracle Database located outside of Oracle Cloud using Oracle Cloud Infrastructure's Console and APIs. �PROVISIONING� NOT_CONNECTED� AVAILABLE�UPDATING�TERMINATING� TERMINATED�FAILED�STANDARD_EDITION�ENTERPRISE_EDITION�#ENTERPRISE_EDITION_HIGH_PERFORMANCE�&ENTERPRISE_EDITION_EXTREME_PERFORMANCE�RAC�SINGLE_INSTANCEc K s� dddddddddddddddddddd�| _ dd d ddd dddddddddddddd�| _d| _d| _d| _d| _d| _d| _d| _d| _ d| _ d| _d| _d| _ d| _d| _d| _d| _d| _d| _d| _dS )a� Initializes a new ExternalDatabaseBase object with values from keyword arguments. The following keyword arguments are supported (corresponding to the getters/setters of this class): :param compartment_id: The value to assign to the compartment_id property of this ExternalDatabaseBase. :type compartment_id: str :param freeform_tags: The value to assign to the freeform_tags property of this ExternalDatabaseBase. :type freeform_tags: dict(str, str) :param defined_tags: The value to assign to the defined_tags property of this ExternalDatabaseBase. :type defined_tags: dict(str, dict(str, object)) :param display_name: The value to assign to the display_name property of this ExternalDatabaseBase. :type display_name: str :param id: The value to assign to the id property of this ExternalDatabaseBase. :type id: str :param lifecycle_details: The value to assign to the lifecycle_details property of this ExternalDatabaseBase. :type lifecycle_details: str :param lifecycle_state: The value to assign to the lifecycle_state property of this ExternalDatabaseBase. Allowed values for this property are: "PROVISIONING", "NOT_CONNECTED", "AVAILABLE", "UPDATING", "TERMINATING", "TERMINATED", "FAILED" :type lifecycle_state: str :param time_created: The value to assign to the time_created property of this ExternalDatabaseBase. :type time_created: datetime :param db_unique_name: The value to assign to the db_unique_name property of this ExternalDatabaseBase. :type db_unique_name: str :param db_id: The value to assign to the db_id property of this ExternalDatabaseBase. :type db_id: str :param database_version: The value to assign to the database_version property of this ExternalDatabaseBase. :type database_version: str :param database_edition: The value to assign to the database_edition property of this ExternalDatabaseBase. Allowed values for this property are: "STANDARD_EDITION", "ENTERPRISE_EDITION", "ENTERPRISE_EDITION_HIGH_PERFORMANCE", "ENTERPRISE_EDITION_EXTREME_PERFORMANCE" :type database_edition: str :param time_zone: The value to assign to the time_zone property of this ExternalDatabaseBase. :type time_zone: str :param character_set: The value to assign to the character_set property of this ExternalDatabaseBase. :type character_set: str :param ncharacter_set: The value to assign to the ncharacter_set property of this ExternalDatabaseBase. :type ncharacter_set: str :param db_packs: The value to assign to the db_packs property of this ExternalDatabaseBase. :type db_packs: str :param database_configuration: The value to assign to the database_configuration property of this ExternalDatabaseBase. Allowed values for this property are: "RAC", "SINGLE_INSTANCE" :type database_configuration: str :param database_management_config: The value to assign to the database_management_config property of this ExternalDatabaseBase. :type database_management_config: oci.database.models.DatabaseManagementConfig :param stack_monitoring_config: The value to assign to the stack_monitoring_config property of this ExternalDatabaseBase. :type stack_monitoring_config: oci.database.models.StackMonitoringConfig �strzdict(str, str)zdict(str, dict(str, object))�datetime�DatabaseManagementConfig�StackMonitoringConfig)�compartment_id� freeform_tags�defined_tags�display_name�id�lifecycle_details�lifecycle_state�time_created�db_unique_name�db_id�database_version�database_edition� time_zone� character_set�ncharacter_set�db_packs�database_configuration�database_management_config�stack_monitoring_config� compartmentId�freeformTags�definedTags�displayNamer �lifecycleDetails�lifecycleState�timeCreated�dbUniqueName�dbId�databaseVersion�databaseEdition�timeZone�characterSet� ncharacterSet�dbPacks�databaseConfiguration�databaseManagementConfig�stackMonitoringConfigN)� swagger_types� attribute_map�_compartment_id�_freeform_tags� _defined_tags� _display_name�_id�_lifecycle_details�_lifecycle_state� _time_created�_db_unique_name�_db_id�_database_version�_database_edition� _time_zone�_character_set�_ncharacter_set� _db_packs�_database_configuration�_database_management_config�_stack_monitoring_config)�self�kwargs� rT ��/sparta/input/_build_configuration/image_build+validate/lib/bmcenv/lib64/python3.9/site-packages/oci/database/models/external_database_base.py�__init__D sv V��zExternalDatabaseBase.__init__c C s | j S )a* **[Required]** Gets the compartment_id of this ExternalDatabaseBase. The `OCID`__ of the compartment. __ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm :return: The compartment_id of this ExternalDatabaseBase. :rtype: str �r? �rR rT rT rU r � s z#ExternalDatabaseBase.compartment_idc C s || _ dS )a( Sets the compartment_id of this ExternalDatabaseBase. The `OCID`__ of the compartment. __ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm :param compartment_id: The compartment_id of this ExternalDatabaseBase. :type: str NrW )rR r rT rT rU r � s c C s | j S )a� Gets the freeform_tags of this ExternalDatabaseBase. Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see `Resource Tags`__. Example: `{"Department": "Finance"}` __ https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm :return: The freeform_tags of this ExternalDatabaseBase. :rtype: dict(str, str) �r@ rX rT rT rU r � s z"ExternalDatabaseBase.freeform_tagsc C s || _ dS )a� Sets the freeform_tags of this ExternalDatabaseBase. Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see `Resource Tags`__. Example: `{"Department": "Finance"}` __ https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm :param freeform_tags: The freeform_tags of this ExternalDatabaseBase. :type: dict(str, str) NrY )rR r rT rT rU r s c C s | j S )a� Gets the defined_tags of this ExternalDatabaseBase. Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see `Resource Tags`__. __ https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm :return: The defined_tags of this ExternalDatabaseBase. :rtype: dict(str, dict(str, object)) �rA rX rT rT rU r s z!ExternalDatabaseBase.defined_tagsc C s || _ dS )a� Sets the defined_tags of this ExternalDatabaseBase. Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see `Resource Tags`__. __ https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm :param defined_tags: The defined_tags of this ExternalDatabaseBase. :type: dict(str, dict(str, object)) NrZ )rR r rT rT rU r & s c C s | j S )a **[Required]** Gets the display_name of this ExternalDatabaseBase. The user-friendly name for the external database. The name does not have to be unique. :return: The display_name of this ExternalDatabaseBase. :rtype: str �rB rX rT rT rU r 5 s z!ExternalDatabaseBase.display_namec C s || _ dS )a Sets the display_name of this ExternalDatabaseBase. The user-friendly name for the external database. The name does not have to be unique. :param display_name: The display_name of this ExternalDatabaseBase. :type: str Nr[ )rR r rT rT rU r A s c C s | j S )a= **[Required]** Gets the id of this ExternalDatabaseBase. The `OCID`__ of the Oracle Cloud Infrastructure external database resource. __ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm :return: The id of this ExternalDatabaseBase. :rtype: str �rC rX rT rT rU r M s zExternalDatabaseBase.idc C s || _ dS )a/ Sets the id of this ExternalDatabaseBase. The `OCID`__ of the Oracle Cloud Infrastructure external database resource. __ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm :param id: The id of this ExternalDatabaseBase. :type: str Nr\ )rR r rT rT rU r [ s c C s | j S )z� Gets the lifecycle_details of this ExternalDatabaseBase. Additional information about the current lifecycle state. :return: The lifecycle_details of this ExternalDatabaseBase. :rtype: str �rD rX rT rT rU r i s z&ExternalDatabaseBase.lifecycle_detailsc C s || _ dS )z� Sets the lifecycle_details of this ExternalDatabaseBase. Additional information about the current lifecycle state. :param lifecycle_details: The lifecycle_details of this ExternalDatabaseBase. :type: str Nr] )rR r rT rT rU r u s c C s | j S )a� **[Required]** Gets the lifecycle_state of this ExternalDatabaseBase. The current state of the Oracle Cloud Infrastructure external database resource. Allowed values for this property are: "PROVISIONING", "NOT_CONNECTED", "AVAILABLE", "UPDATING", "TERMINATING", "TERMINATED", "FAILED" :return: The lifecycle_state of this ExternalDatabaseBase. :rtype: str )rE rX rT rT rU r � s z$ExternalDatabaseBase.lifecycle_statec C s* g d�}t ||�s td�|���|| _dS )a Sets the lifecycle_state of this ExternalDatabaseBase. The current state of the Oracle Cloud Infrastructure external database resource. :param lifecycle_state: The lifecycle_state of this ExternalDatabaseBase. :type: str )r r r r r r r z?Invalid value for `lifecycle_state`, must be None or one of {0}N)r � ValueError�formatrE )rR r �allowed_valuesrT rT rU r � s ��c C s | j S )z� **[Required]** Gets the time_created of this ExternalDatabaseBase. The date and time the database was created. :return: The time_created of this ExternalDatabaseBase. :rtype: datetime �rF rX rT rT rU r � s z!ExternalDatabaseBase.time_createdc C s || _ dS )z� Sets the time_created of this ExternalDatabaseBase. The date and time the database was created. :param time_created: The time_created of this ExternalDatabaseBase. :type: datetime Nra )rR r rT rT rU r � s c C s | j S )z� Gets the db_unique_name of this ExternalDatabaseBase. The `DB_UNIQUE_NAME` of the external database. :return: The db_unique_name of this ExternalDatabaseBase. :rtype: str �rG rX rT rT rU r � s z#ExternalDatabaseBase.db_unique_namec C s || _ dS )z� Sets the db_unique_name of this ExternalDatabaseBase. The `DB_UNIQUE_NAME` of the external database. :param db_unique_name: The db_unique_name of this ExternalDatabaseBase. :type: str Nrb )rR r rT rT rU r � s c C s | j S )z� Gets the db_id of this ExternalDatabaseBase. The Oracle Database ID, which identifies an Oracle Database located outside of Oracle Cloud. :return: The db_id of this ExternalDatabaseBase. :rtype: str �rH rX rT rT rU r! � s zExternalDatabaseBase.db_idc C s || _ dS )z� Sets the db_id of this ExternalDatabaseBase. The Oracle Database ID, which identifies an Oracle Database located outside of Oracle Cloud. :param db_id: The db_id of this ExternalDatabaseBase. :type: str Nrc )rR r! rT rT rU r! � s c C s | j S )z� Gets the database_version of this ExternalDatabaseBase. The Oracle Database version. :return: The database_version of this ExternalDatabaseBase. :rtype: str �rI rX rT rT rU r"