o
    ɶd                     @   sD   d dl mZ ddlmZmZmZ ddlmZ eG dd deZdS )   ) DatabaseConfigurationMetricGroup    )formatted_flat_dictNONE_SENTINEL#value_allowed_none_or_none_sentinel)init_model_state_from_kwargsc                   @   s   e Zd ZdZ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dd Zedd Zejdd Zdd Zdd Zdd ZdS )DBParametersz3
    Initialization parameters for a database.
    c              	   K   sj   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 DBParameters object with values from keyword arguments. The default value of the :py:attr:`~oci.opsi.models.DBParameters.metric_name` attribute
        of this class is ``DB_PARAMETERS`` and it should not be changed.
        The following keyword arguments are supported (corresponding to the getters/setters of this class):

        :param metric_name:
            The value to assign to the metric_name property of this DBParameters.
            Allowed values for this property are: "DB_EXTERNAL_PROPERTIES", "DB_EXTERNAL_INSTANCE", "DB_OS_CONFIG_INSTANCE", "DB_PARAMETERS"
        :type metric_name: str

        :param time_collected:
            The value to assign to the time_collected property of this DBParameters.
        :type time_collected: datetime

        :param instance_number:
            The value to assign to the instance_number property of this DBParameters.
        :type instance_number: int

        :param parameter_name:
            The value to assign to the parameter_name property of this DBParameters.
        :type parameter_name: str

        :param parameter_value:
            The value to assign to the parameter_value property of this DBParameters.
        :type parameter_value: str

        :param snapshot_id:
            The value to assign to the snapshot_id property of this DBParameters.
        :type snapshot_id: int

        :param is_changed:
            The value to assign to the is_changed property of this DBParameters.
        :type is_changed: str

        :param is_default:
            The value to assign to the is_default property of this DBParameters.
        :type is_default: str

        strdatetimeint)Zmetric_nameZtime_collectedinstance_numberparameter_nameparameter_valuesnapshot_id
is_changed
is_defaultZ
metricNameZtimeCollectedZinstanceNumberZparameterNameZparameterValueZ
snapshotIdZ	isChangedZ	isDefaultNZDB_PARAMETERS)
Zswagger_typesZattribute_mapZ_metric_nameZ_time_collected_instance_number_parameter_name_parameter_value_snapshot_id_is_changed_is_default)selfkwargs r   Ausr/lib/python3.10/site-packages/oci/opsi/models/db_parameters.py__init__   s6   )
zDBParameters.__init__c                 C      | j S )z
        **[Required]** Gets the instance_number of this DBParameters.
        Database instance number.


        :return: The instance_number of this DBParameters.
        :rtype: int
        r   r   r   r   r   r   Z      
zDBParameters.instance_numberc                 C   
   || _ dS )z
        Sets the instance_number of this DBParameters.
        Database instance number.


        :param instance_number: The instance_number of this DBParameters.
        :type: int
        Nr   )r   r   r   r   r   r   f      

c                 C   r   )z
        **[Required]** Gets the parameter_name of this DBParameters.
        Database parameter name.


        :return: The parameter_name of this DBParameters.
        :rtype: str
        r   r   r   r   r   r   r   r    zDBParameters.parameter_namec                 C   r!   )z
        Sets the parameter_name of this DBParameters.
        Database parameter name.


        :param parameter_name: The parameter_name of this DBParameters.
        :type: str
        Nr#   )r   r   r   r   r   r   ~   r"   c                 C   r   )z
        **[Required]** Gets the parameter_value of this DBParameters.
        Database parameter value.


        :return: The parameter_value of this DBParameters.
        :rtype: str
        r   r   r   r   r   r      r    zDBParameters.parameter_valuec                 C   r!   )z
        Sets the parameter_value of this DBParameters.
        Database parameter value.


        :param parameter_value: The parameter_value of this DBParameters.
        :type: str
        Nr$   )r   r   r   r   r   r      r"   c                 C   r   )z
        Gets the snapshot_id of this DBParameters.
        AWR snapshot id for the parameter value


        :return: The snapshot_id of this DBParameters.
        :rtype: int
        r   r   r   r   r   r      r    zDBParameters.snapshot_idc                 C   r!   )z
        Sets the snapshot_id of this DBParameters.
        AWR snapshot id for the parameter value


        :param snapshot_id: The snapshot_id of this DBParameters.
        :type: int
        Nr%   )r   r   r   r   r   r      r"   c                 C   r   )z
        Gets the is_changed of this DBParameters.
        Indicates whether the parameter's value changed in given snapshot or not.


        :return: The is_changed of this DBParameters.
        :rtype: str
        r   r   r   r   r   r      r    zDBParameters.is_changedc                 C   r!   )z
        Sets the is_changed of this DBParameters.
        Indicates whether the parameter's value changed in given snapshot or not.


        :param is_changed: The is_changed of this DBParameters.
        :type: str
        Nr&   )r   r   r   r   r   r      r"   c                 C   r   )z
        Gets the is_default of this DBParameters.
        Indicates whether this value is the default value or not.


        :return: The is_default of this DBParameters.
        :rtype: str
        r   r   r   r   r   r      r    zDBParameters.is_defaultc                 C   r!   )z
        Sets the is_default of this DBParameters.
        Indicates whether this value is the default value or not.


        :param is_default: The is_default of this DBParameters.
        :type: str
        Nr'   )r   r   r   r   r   r      r"   c                 C   s   t | S N)r   r   r   r   r   __repr__   s   zDBParameters.__repr__c                 C   s   |d u rdS | j |j kS )NF)__dict__r   otherr   r   r   __eq__   s   zDBParameters.__eq__c                 C   s
   | |k S r(   r   r+   r   r   r   __ne__   s   
zDBParameters.__ne__N)__name__
__module____qualname____doc__r   propertyr   setterr   r   r   r   r   r)   r-   r.   r   r   r   r   r      s<    H











r   N)	Z#database_configuration_metric_groupr   Zoci.utilr   r   r   Zoci.decoratorsr   r   r   r   r   r   <module>   s
   