ruạṛ
a ���f=l � @ 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 Zdd� Z ed d� �Zejdd� �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� �Zejd9d8� �Zed:d;� �Zejd<d;� �Zed=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'dUdV� Z(dWdX� Z)dYdZ� Z*d[S )\�DbSystemz. Information about a database system. �CREATING�UPDATING�ACTIVE�INACTIVE�DELETING�DELETED�FAILED�NEEDS_ATTENTION�OCI_OPTIMIZED_STORAGEc K s ddddddddddddddddddddddd d d�| _ dd 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$S )%a� Initializes a new DbSystem 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 DbSystem. :type id: str :param display_name: The value to assign to the display_name property of this DbSystem. :type display_name: str :param description: The value to assign to the description property of this DbSystem. :type description: str :param compartment_id: The value to assign to the compartment_id property of this DbSystem. :type compartment_id: str :param time_created: The value to assign to the time_created property of this DbSystem. :type time_created: datetime :param time_updated: The value to assign to the time_updated property of this DbSystem. :type time_updated: datetime :param lifecycle_state: The value to assign to the lifecycle_state property of this DbSystem. Allowed values for this property are: "CREATING", "UPDATING", "ACTIVE", "INACTIVE", "DELETING", "DELETED", "FAILED", "NEEDS_ATTENTION", 'UNKNOWN_ENUM_VALUE'. Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. :type lifecycle_state: str :param lifecycle_details: The value to assign to the lifecycle_details property of this DbSystem. :type lifecycle_details: str :param admin_username: The value to assign to the admin_username property of this DbSystem. :type admin_username: str :param freeform_tags: The value to assign to the freeform_tags property of this DbSystem. :type freeform_tags: dict(str, str) :param defined_tags: The value to assign to the defined_tags property of this DbSystem. :type defined_tags: dict(str, dict(str, object)) :param system_tags: The value to assign to the system_tags property of this DbSystem. :type system_tags: dict(str, dict(str, object)) :param system_type: The value to assign to the system_type property of this DbSystem. Allowed values for this property are: "OCI_OPTIMIZED_STORAGE", 'UNKNOWN_ENUM_VALUE'. Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. :type system_type: str :param db_version: The value to assign to the db_version property of this DbSystem. :type db_version: str :param config_id: The value to assign to the config_id property of this DbSystem. :type config_id: str :param shape: The value to assign to the shape property of this DbSystem. :type shape: str :param instance_ocpu_count: The value to assign to the instance_ocpu_count property of this DbSystem. :type instance_ocpu_count: int :param instance_memory_size_in_gbs: The value to assign to the instance_memory_size_in_gbs property of this DbSystem. :type instance_memory_size_in_gbs: int :param instance_count: The value to assign to the instance_count property of this DbSystem. :type instance_count: int :param instances: The value to assign to the instances property of this DbSystem. :type instances: list[oci.psql.models.DbInstance] :param storage_details: The value to assign to the storage_details property of this DbSystem. :type storage_details: oci.psql.models.StorageDetails :param network_details: The value to assign to the network_details property of this DbSystem. :type network_details: oci.psql.models.NetworkDetails :param management_policy: The value to assign to the management_policy property of this DbSystem. :type management_policy: oci.psql.models.ManagementPolicy :param source: The value to assign to the source property of this DbSystem. :type source: oci.psql.models.SourceDetails �strZdatetimezdict(str, str)zdict(str, dict(str, object))�intzlist[DbInstance]ZStorageDetailsZNetworkDetailsZManagementPolicyZ SourceDetails)�id�display_name�description�compartment_id�time_created�time_updated�lifecycle_state�lifecycle_details�admin_username� freeform_tags�defined_tags�system_tags�system_type� db_version� config_id�shape�instance_ocpu_count�instance_memory_size_in_gbs�instance_count� instances�storage_details�network_details�management_policy�sourcer ZdisplayNamer Z compartmentIdZtimeCreatedZtimeUpdatedZlifecycleStateZlifecycleDetailsZ adminUsernameZfreeformTagsZdefinedTagsZ systemTagsZ systemTypeZ dbVersionZconfigIdr! ZinstanceOcpuCountZinstanceMemorySizeInGBsZ instanceCountr% ZstorageDetailsZnetworkDetailsZmanagementPolicyr) N)Z swagger_typesZ attribute_map�_id� _display_name�_description�_compartment_id� _time_created� _time_updated�_lifecycle_state�_lifecycle_details�_admin_username�_freeform_tags� _defined_tags�_system_tags�_system_type�_db_version� _config_id�_shape�_instance_ocpu_count�_instance_memory_size_in_gbs�_instance_count� _instances�_storage_details�_network_details�_management_policy�_source)�self�kwargs� rD �=/usr/lib/python3.9/site-packages/oci/psql/models/db_system.py�__init__6 s� k��zDbSystem.__init__c C s | j S )z� **[Required]** Gets the id of this DbSystem. A unique identifier for the database system. Immutable on creation. :return: The id of this DbSystem. :rtype: str �r* �rB rD rD rE r � s zDbSystem.idc C s || _ dS )z� Sets the id of this DbSystem. A unique identifier for the database system. Immutable on creation. :param id: The id of this DbSystem. :type: str NrG )rB r rD rD rE r � s c C s | j S )z� **[Required]** Gets the display_name of this DbSystem. A user-friendly display name for the database system. Avoid entering confidential information. :return: The display_name of this DbSystem. :rtype: str �r+ rH rD rD rE r s zDbSystem.display_namec C s || _ dS )z� Sets the display_name of this DbSystem. A user-friendly display name for the database system. Avoid entering confidential information. :param display_name: The display_name of this DbSystem. :type: str NrI )rB r rD rD rE r s c C s | j S )z� Gets the description of this DbSystem. A description of the database system. :return: The description of this DbSystem. :rtype: str �r, rH rD rD rE r s zDbSystem.descriptionc C s || _ dS )z� Sets the description of this DbSystem. A description of the database system. :param description: The description of this DbSystem. :type: str NrJ )rB r rD rD rE r + s c C s | j S )a4 **[Required]** Gets the compartment_id of this DbSystem. The `OCID`__ of the compartment that contains the database system. __ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm :return: The compartment_id of this DbSystem. :rtype: str �r- rH rD rD rE r 7 s zDbSystem.compartment_idc C s || _ dS )a2 Sets the compartment_id of this DbSystem. The `OCID`__ of the compartment that contains the database system. __ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm :param compartment_id: The compartment_id of this DbSystem. :type: str NrK )rB r rD rD rE r E s c C s | j S )ag **[Required]** Gets the time_created of this DbSystem. The date and time that the database system was created, expressed in `RFC 3339`__ timestamp format. Example: `2016-08-25T21:10:29.600Z` __ https://tools.ietf.org/rfc/rfc3339 :return: The time_created of this DbSystem. :rtype: datetime �r. rH rD rD rE r S s zDbSystem.time_createdc C s || _ dS )ac Sets the time_created of this DbSystem. The date and time that the database system was created, expressed in `RFC 3339`__ timestamp format. Example: `2016-08-25T21:10:29.600Z` __ https://tools.ietf.org/rfc/rfc3339 :param time_created: The time_created of this DbSystem. :type: datetime NrL )rB r rD rD rE r d s c C s | j S )aX Gets the time_updated of this DbSystem. The date and time that the database system was updated, expressed in `RFC 3339`__ timestamp format. Example: `2016-08-25T21:10:29.600Z` __ https://tools.ietf.org/rfc/rfc3339 :return: The time_updated of this DbSystem. :rtype: datetime �r/ rH rD rD rE r u s zDbSystem.time_updatedc C s || _ dS )ac Sets the time_updated of this DbSystem. The date and time that the database system was updated, expressed in `RFC 3339`__ timestamp format. Example: `2016-08-25T21:10:29.600Z` __ https://tools.ietf.org/rfc/rfc3339 :param time_updated: The time_updated of this DbSystem. :type: datetime NrM )rB r rD rD rE r � s c C s | j S )a� **[Required]** Gets the lifecycle_state of this DbSystem. The current state of the database system. Allowed values for this property are: "CREATING", "UPDATING", "ACTIVE", "INACTIVE", "DELETING", "DELETED", "FAILED", "NEEDS_ATTENTION", 'UNKNOWN_ENUM_VALUE'. Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. :return: The lifecycle_state of this DbSystem. :rtype: str )r0 rH rD rD rE r � s zDbSystem.lifecycle_statec C s g d�}t ||�sd}|| _dS )z� Sets the lifecycle_state of this DbSystem. The current state of the database system. :param lifecycle_state: The lifecycle_state of this DbSystem. :type: str )r r r r r r r r �UNKNOWN_ENUM_VALUEN)r r0 )rB r �allowed_valuesrD rD rE r � s c C s | j S )a' Gets the lifecycle_details of this DbSystem. A message describing the current state in more detail. For example, can be used to provide actionable information for a resource in Failed state. :return: The lifecycle_details of this DbSystem. :rtype: str �r1 rH rD rD rE r � s zDbSystem.lifecycle_detailsc C s || _ dS )a7 Sets the lifecycle_details of this DbSystem. A message describing the current state in more detail. For example, can be used to provide actionable information for a resource in Failed state. :param lifecycle_details: The lifecycle_details of this DbSystem. :type: str NrP )rB r rD rD rE r � s c C s | j S )z� Gets the admin_username of this DbSystem. The database system administrator username. :return: The admin_username of this DbSystem. :rtype: str �r2 rH rD rD rE r � s zDbSystem.admin_usernamec C s || _ dS )z� Sets the admin_username of this DbSystem. The database system administrator username. :param admin_username: The admin_username of this DbSystem. :type: str NrQ )rB r rD rD rE r � s c C s | j S )a7 Gets the freeform_tags of this DbSystem. Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example: `{"bar-key": "value"}` :return: The freeform_tags of this DbSystem. :rtype: dict(str, str) �r3 rH rD rD rE r � s zDbSystem.freeform_tagsc C s || _ dS )aC Sets the freeform_tags of this DbSystem. Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example: `{"bar-key": "value"}` :param freeform_tags: The freeform_tags of this DbSystem. :type: dict(str, str) NrR )rB r rD rD rE r � s c C s | j S )a1 Gets the defined_tags of this DbSystem. Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: `{"foo-namespace": {"bar-key": "value"}}` :return: The defined_tags of this DbSystem. :rtype: dict(str, dict(str, object)) �r4 rH rD rD rE r � s zDbSystem.defined_tagsc C s || _ dS )a< Sets the defined_tags of this DbSystem. Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: `{"foo-namespace": {"bar-key": "value"}}` :param defined_tags: The defined_tags of this DbSystem. :type: dict(str, dict(str, object)) NrS )rB r rD rD rE r s c C s | j S )a5 Gets the system_tags of this DbSystem. System tags for this resource. Each key is predefined and scoped to a namespace. Example: `{"orcl-cloud": {"free-tier-retained": "true"}}` :return: The system_tags of this DbSystem. :rtype: dict(str, dict(str, object)) �r5 rH rD rD rE r s zDbSystem.system_tagsc C s || _ dS )a? Sets the system_tags of this DbSystem. System tags for this resource. Each key is predefined and scoped to a namespace. Example: `{"orcl-cloud": {"free-tier-retained": "true"}}` :param system_tags: The system_tags of this DbSystem. :type: dict(str, dict(str, object)) NrT )rB r rD rD rE r & s c C s | j S )aq **[Required]** Gets the system_type of this DbSystem. Type of the database system. Allowed values for this property are: "OCI_OPTIMIZED_STORAGE", 'UNKNOWN_ENUM_VALUE'. Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. :return: The system_type of this DbSystem. :rtype: str )r6 rH rD rD rE r 3 s zDbSystem.system_typec C s dg}t ||�sd}|| _dS )z� Sets the system_type of this DbSystem. Type of the database system. :param system_type: The system_type of this DbSystem. :type: str r rN N)r r6 )rB r rO rD rD rE r B s c C s | j S )z� **[Required]** Gets the db_version of this DbSystem. The major and minor versions of the database system software. :return: The db_version of this DbSystem. :rtype: str �r7 rH rD rD rE r Q s zDbSystem.db_versionc C s || _ dS )z� Sets the db_version of this DbSystem. The major and minor versions of the database system software. :param db_version: The db_version of this DbSystem. :type: str NrU )rB r rD rD rE r ] s c C s | j S )a Gets the config_id of this DbSystem. The `OCID`__ of the configuration associated with the database system. __ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm :return: The config_id of this DbSystem. :rtype: str �r8 rH rD rD rE r i s zDbSystem.config_idc C s || _ dS )a' Sets the config_id of this DbSystem. The `OCID`__ of the configuration associated with the database system. __ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm :param config_id: The config_id of this DbSystem. :type: str NrV )rB r rD rD rE r w s c C s | j S )z� **[Required]** Gets the shape of this DbSystem. The name of the shape for the database instance. Example: `VM.Standard.E4.Flex` :return: The shape of this DbSystem. :rtype: str �r9 rH rD rD rE r! � s zDbSystem.shapec C s || _ dS )z� Sets the shape of this DbSystem. The name of the shape for the database instance. Example: `VM.Standard.E4.Flex` :param shape: The shape of this DbSystem. :type: str NrW )rB r! rD rD rE r! � s c C s | j S )z� **[Required]** Gets the instance_ocpu_count of this DbSystem. The total number of OCPUs available to each database instance node. :return: The instance_ocpu_count of this DbSystem. :rtype: int �r: rH rD rD rE r"