o
    ɶdm                     @   s8   d dl mZmZmZ d dlmZ eG dd deZdS )    )formatted_flat_dictNONE_SENTINEL#value_allowed_none_or_none_sentinel)init_model_state_from_kwargsc                   @   s   e Zd ZdZdZdZdZdZd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dd Zdd Zdd ZdS )DatabaseToolz;
    Summary of database tools of autonomous database.
    APEXDATABASE_ACTIONSGRAPH_STUDIOOMLDATA_TRANSFORMSORDSMONGODB_APIc                 K   s<   ddddd| _ dddd	d| _d
| _d
| _d
| _d
| _d
S )a  
        Initializes a new DatabaseTool object with values from keyword arguments.
        The following keyword arguments are supported (corresponding to the getters/setters of this class):

        :param name:
            The value to assign to the name property of this DatabaseTool.
            Allowed values for this property are: "APEX", "DATABASE_ACTIONS", "GRAPH_STUDIO", "OML", "DATA_TRANSFORMS", "ORDS", "MONGODB_API", 'UNKNOWN_ENUM_VALUE'.
            Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'.
        :type name: str

        :param is_enabled:
            The value to assign to the is_enabled property of this DatabaseTool.
        :type is_enabled: bool

        :param compute_count:
            The value to assign to the compute_count property of this DatabaseTool.
        :type compute_count: float

        :param max_idle_time_in_minutes:
            The value to assign to the max_idle_time_in_minutes property of this DatabaseTool.
        :type max_idle_time_in_minutes: int

        strboolfloatint)name
is_enabledcompute_countmax_idle_time_in_minutesr   Z	isEnabledZcomputeCountZmaxIdleTimeInMinutesN)Zswagger_typesZattribute_map_name_is_enabled_compute_count_max_idle_time_in_minutes)selfkwargs r   Eusr/lib/python3.10/site-packages/oci/database/models/database_tool.py__init__.   s   
zDatabaseTool.__init__c                 C      | j S )a  
        **[Required]** Gets the name of this DatabaseTool.
        Name of database tool.

        Allowed values for this property are: "APEX", "DATABASE_ACTIONS", "GRAPH_STUDIO", "OML", "DATA_TRANSFORMS", "ORDS", "MONGODB_API", 'UNKNOWN_ENUM_VALUE'.
        Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'.


        :return: The name of this DatabaseTool.
        :rtype: str
        )r   r   r   r   r   r   Y   s   zDatabaseTool.namec                 C   s    g d}t ||sd}|| _dS )z
        Sets the name of this DatabaseTool.
        Name of database tool.


        :param name: The name of this DatabaseTool.
        :type: str
        )r   r   r	   r
   r   r   r   ZUNKNOWN_ENUM_VALUEN)r   r   )r   r   Zallowed_valuesr   r   r   r   h   s   


c                 C   r   )z
        Gets the is_enabled of this DatabaseTool.
        Indicates whether tool is enabled.


        :return: The is_enabled of this DatabaseTool.
        :rtype: bool
        r   r    r   r   r   r   w      
zDatabaseTool.is_enabledc                 C   
   || _ dS )z
        Sets the is_enabled of this DatabaseTool.
        Indicates whether tool is enabled.


        :param is_enabled: The is_enabled of this DatabaseTool.
        :type: bool
        Nr!   )r   r   r   r   r   r         

c                 C   r   )z
        Gets the compute_count of this DatabaseTool.
        Compute used by database tools.


        :return: The compute_count of this DatabaseTool.
        :rtype: float
        r   r    r   r   r   r      r"   zDatabaseTool.compute_countc                 C   r#   )z
        Sets the compute_count of this DatabaseTool.
        Compute used by database tools.


        :param compute_count: The compute_count of this DatabaseTool.
        :type: float
        Nr%   )r   r   r   r   r   r      r$   c                 C   r   )a  
        Gets the max_idle_time_in_minutes of this DatabaseTool.
        The max idle time, in minutes, after which the VM used by database tools will be terminated.


        :return: The max_idle_time_in_minutes of this DatabaseTool.
        :rtype: int
        r   r    r   r   r   r      r"   z%DatabaseTool.max_idle_time_in_minutesc                 C   r#   )a  
        Sets the max_idle_time_in_minutes of this DatabaseTool.
        The max idle time, in minutes, after which the VM used by database tools will be terminated.


        :param max_idle_time_in_minutes: The max_idle_time_in_minutes of this DatabaseTool.
        :type: int
        Nr&   )r   r   r   r   r   r      r$   c                 C   s   t | S N)r   r    r   r   r   __repr__   s   zDatabaseTool.__repr__c                 C   s   |d u rdS | j |j kS )NF)__dict__r   otherr   r   r   __eq__   s   zDatabaseTool.__eq__c                 C   s
   | |k S r'   r   r*   r   r   r   __ne__   s   
zDatabaseTool.__ne__N)__name__
__module____qualname____doc__Z	NAME_APEXZNAME_DATABASE_ACTIONSZNAME_GRAPH_STUDIOZNAME_OMLZNAME_DATA_TRANSFORMSZ	NAME_ORDSZNAME_MONGODB_APIr   propertyr   setterr   r   r   r(   r,   r-   r   r   r   r   r      s:    +







r   N)Zoci.utilr   r   r   Zoci.decoratorsr   objectr   r   r   r   r   <module>   s   