ruạṛ
a ���f�a � @ 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 ZdZdZdZdZdZdZdZdZdZdZdZdZdZdZdZdd� Ze dd � �Z!e!j"d!d � �Z!e d"d#� �Z#e#j"d$d#� �Z#e d%d&� �Z$e$j"d'd&� �Z$e d(d)� �Z%e%j"d*d)� �Z%e d+d,� �Z&e&j"d-d,� �Z&e d.d/� �Z'e'j"d0d/� �Z'e d1d2� �Z(e(j"d3d2� �Z(e d4d5� �Z)e)j"d6d5� �Z)e d7d8� �Z*e*j"d9d8� �Z*e d:d;� �Z+e+j"d<d;� �Z+e d=d>� �Z,e,j"d?d>� �Z,e d@dA� �Z-e-j"dBdA� �Z-e dCdD� �Z.e.j"dEdD� �Z.e dFdG� �Z/e/j"dHdG� �Z/e dIdJ� �Z0e0j"dKdJ� �Z0dLdM� Z1dNdO� Z2dPdQ� Z3dRS )S�DatabaseUsageMetricszL The list of aggregated metrics for Managed Databases in the fleet. � EXTERNAL_SIDB�EXTERNAL_RAC� CLOUD_SIDB� CLOUD_RAC�SHARED� DEDICATED�CDB�PDB�NON_CDB�ACD�ADB� ONPREMISE�BM�VM�EXADATA� EXADATA_CC� AUTONOMOUS� EXADATA_XS�OLTP�DW�AJD�APEX�SNAPSHOT_STANDBY�LOGICAL_STANDBY�PHYSICAL_STANDBY�PRIMARY�FAR_SYNCc K s� dddddddddddddddd�| _ dddddd d ddd dddddd�| _d| _d| _d| _d| _d| _d| _d| _d| _ d| _ d| _d| _d| _ d| _d| _d| _dS )a� Initializes a new DatabaseUsageMetrics object with values from keyword arguments. The following keyword arguments are supported (corresponding to the getters/setters of this class): :param db_id: The value to assign to the db_id property of this DatabaseUsageMetrics. :type db_id: str :param compartment_id: The value to assign to the compartment_id property of this DatabaseUsageMetrics. :type compartment_id: str :param database_type: The value to assign to the database_type property of this DatabaseUsageMetrics. Allowed values for this property are: "EXTERNAL_SIDB", "EXTERNAL_RAC", "CLOUD_SIDB", "CLOUD_RAC", "SHARED", "DEDICATED", 'UNKNOWN_ENUM_VALUE'. Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. :type database_type: str :param database_sub_type: The value to assign to the database_sub_type property of this DatabaseUsageMetrics. Allowed values for this property are: "CDB", "PDB", "NON_CDB", "ACD", "ADB", 'UNKNOWN_ENUM_VALUE'. Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. :type database_sub_type: str :param deployment_type: The value to assign to the deployment_type property of this DatabaseUsageMetrics. Allowed values for this property are: "ONPREMISE", "BM", "VM", "EXADATA", "EXADATA_CC", "AUTONOMOUS", "EXADATA_XS", 'UNKNOWN_ENUM_VALUE'. Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. :type deployment_type: str :param database_version: The value to assign to the database_version property of this DatabaseUsageMetrics. :type database_version: str :param workload_type: The value to assign to the workload_type property of this DatabaseUsageMetrics. Allowed values for this property are: "OLTP", "DW", "AJD", "APEX", 'UNKNOWN_ENUM_VALUE'. Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. :type workload_type: str :param database_name: The value to assign to the database_name property of this DatabaseUsageMetrics. :type database_name: str :param database_container_id: The value to assign to the database_container_id property of this DatabaseUsageMetrics. :type database_container_id: str :param database_id: The value to assign to the database_id property of this DatabaseUsageMetrics. :type database_id: str :param primary_db_id: The value to assign to the primary_db_id property of this DatabaseUsageMetrics. :type primary_db_id: str :param primary_db_unique_name: The value to assign to the primary_db_unique_name property of this DatabaseUsageMetrics. :type primary_db_unique_name: str :param db_unique_name: The value to assign to the db_unique_name property of this DatabaseUsageMetrics. :type db_unique_name: str :param db_role: The value to assign to the db_role property of this DatabaseUsageMetrics. Allowed values for this property are: "SNAPSHOT_STANDBY", "LOGICAL_STANDBY", "PHYSICAL_STANDBY", "PRIMARY", "FAR_SYNC", 'UNKNOWN_ENUM_VALUE'. Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. :type db_role: str :param metrics: The value to assign to the metrics property of this DatabaseUsageMetrics. :type metrics: list[oci.database_management.models.FleetMetricDefinition] �strzlist[FleetMetricDefinition])�db_id�compartment_id� database_type�database_sub_type�deployment_type�database_version� workload_type� database_name�database_container_id�database_id� primary_db_id�primary_db_unique_name�db_unique_name�db_role�metricsZdbIdZ compartmentIdZdatabaseTypeZdatabaseSubTypeZdeploymentTypeZdatabaseVersionZworkloadTypeZdatabaseNameZdatabaseContainerIdZ databaseIdZprimaryDbIdZprimaryDbUniqueNameZdbUniqueNameZdbRoler1 N)Z swagger_typesZ attribute_map�_db_id�_compartment_id�_database_type�_database_sub_type�_deployment_type�_database_version�_workload_type�_database_name�_database_container_id�_database_id�_primary_db_id�_primary_db_unique_name�_db_unique_name�_db_role�_metrics)�self�kwargs� rC �Y/usr/lib/python3.9/site-packages/oci/database_management/models/database_usage_metrics.py�__init__~ s^ M��zDatabaseUsageMetrics.__init__c C s | j S )a Gets the db_id of this DatabaseUsageMetrics. The `OCID`__ of the Managed Database. __ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm :return: The db_id of this DatabaseUsageMetrics. :rtype: str �r2 �rA rC rC rD r# � s zDatabaseUsageMetrics.db_idc C s || _ dS )a Sets the db_id of this DatabaseUsageMetrics. The `OCID`__ of the Managed Database. __ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm :param db_id: The db_id of this DatabaseUsageMetrics. :type: str NrF )rA r# rC rC rD r# s c C s | j S )a> Gets the compartment_id of this DatabaseUsageMetrics. The `OCID`__ of the compartment where the Managed Database resides. __ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm :return: The compartment_id of this DatabaseUsageMetrics. :rtype: str �r3 rG rC rC rD r$ s z#DatabaseUsageMetrics.compartment_idc C s || _ dS )aK Sets the compartment_id of this DatabaseUsageMetrics. The `OCID`__ of the compartment where the Managed Database resides. __ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm :param compartment_id: The compartment_id of this DatabaseUsageMetrics. :type: str NrH )rA r$ rC rC rD r$ ( s c C s | j S )a� Gets the database_type of this DatabaseUsageMetrics. The type of Oracle Database installation. Allowed values for this property are: "EXTERNAL_SIDB", "EXTERNAL_RAC", "CLOUD_SIDB", "CLOUD_RAC", "SHARED", "DEDICATED", 'UNKNOWN_ENUM_VALUE'. Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. :return: The database_type of this DatabaseUsageMetrics. :rtype: str )r4 rG rC rC rD r% 6 s z"DatabaseUsageMetrics.database_typec C s g d�}t ||�sd}|| _dS )z� Sets the database_type of this DatabaseUsageMetrics. The type of Oracle Database installation. :param database_type: The database_type of this DatabaseUsageMetrics. :type: str )r r r r r r �UNKNOWN_ENUM_VALUEN)r r4 )rA r% �allowed_valuesrC rC rD r% E s c C s | j S )a> Gets the database_sub_type of this DatabaseUsageMetrics. The subtype of the Oracle Database. Indicates whether the database is a Container Database, Pluggable Database, Non-container Database, Autonomous Database, or Autonomous Container Database. Allowed values for this property are: "CDB", "PDB", "NON_CDB", "ACD", "ADB", 'UNKNOWN_ENUM_VALUE'. Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. :return: The database_sub_type of this DatabaseUsageMetrics. :rtype: str )r5 rG rC rC rD r&