o
    ɶd,                     @   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                   @   sN  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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 ),	SqlBucketz!
    Sql bucket type object.
    c                 K   s   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| _d| _d| _d| _	d| _
d| _d| _dS )a$  
        Initializes a new SqlBucket object with values from keyword arguments.
        The following keyword arguments are supported (corresponding to the getters/setters of this class):

        :param version:
            The value to assign to the version property of this SqlBucket.
        :type version: float

        :param database_type:
            The value to assign to the database_type property of this SqlBucket.
        :type database_type: str

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

        :param sql_identifier:
            The value to assign to the sql_identifier property of this SqlBucket.
        :type sql_identifier: str

        :param plan_hash:
            The value to assign to the plan_hash property of this SqlBucket.
        :type plan_hash: int

        :param bucket_id:
            The value to assign to the bucket_id property of this SqlBucket.
        :type bucket_id: str

        :param executions_count:
            The value to assign to the executions_count property of this SqlBucket.
        :type executions_count: int

        :param cpu_time_in_sec:
            The value to assign to the cpu_time_in_sec property of this SqlBucket.
        :type cpu_time_in_sec: float

        :param io_time_in_sec:
            The value to assign to the io_time_in_sec property of this SqlBucket.
        :type io_time_in_sec: float

        :param other_wait_time_in_sec:
            The value to assign to the other_wait_time_in_sec property of this SqlBucket.
        :type other_wait_time_in_sec: float

        :param total_time_in_sec:
            The value to assign to the total_time_in_sec property of this SqlBucket.
        :type total_time_in_sec: float

        floatstrdatetimeint)versiondatabase_typetime_collectedsql_identifier	plan_hash	bucket_idexecutions_countcpu_time_in_secio_time_in_secother_wait_time_in_sectotal_time_in_secr   ZdatabaseTypeZtimeCollectedZsqlIdentifierZplanHashZbucketIdZexecutionsCountZcpuTimeInSecZioTimeInSecZotherWaitTimeInSecZtotalTimeInSecN)Zswagger_typesZattribute_map_version_database_type_time_collected_sql_identifier
_plan_hash
_bucket_id_executions_count_cpu_time_in_sec_io_time_in_sec_other_wait_time_in_sec_total_time_in_sec)selfkwargs r#   >usr/lib/python3.10/site-packages/oci/opsi/models/sql_bucket.py__init__   sF   3
zSqlBucket.__init__c                 C      | j S )z
        Gets the version of this SqlBucket.
        Version
        Example: `1`


        :return: The version of this SqlBucket.
        :rtype: float
        r   r!   r#   r#   r$   r   l      zSqlBucket.versionc                 C   
   || _ dS )z
        Sets the version of this SqlBucket.
        Version
        Example: `1`


        :param version: The version of this SqlBucket.
        :type: float
        Nr'   )r!   r   r#   r#   r$   r   y      
c                 C   r&   )z
        Gets the database_type of this SqlBucket.
        Operations Insights internal representation of the database type.


        :return: The database_type of this SqlBucket.
        :rtype: str
        r   r(   r#   r#   r$   r         
zSqlBucket.database_typec                 C   r*   )z
        Sets the database_type of this SqlBucket.
        Operations Insights internal representation of the database type.


        :param database_type: The database_type of this SqlBucket.
        :type: str
        Nr,   )r!   r   r#   r#   r$   r         

c                 C   r&   )z
        **[Required]** Gets the time_collected of this SqlBucket.
        Collection timestamp
        Example: `"2020-03-31T00:00:00.000Z"`


        :return: The time_collected of this SqlBucket.
        :rtype: datetime
        r   r(   r#   r#   r$   r      r)   zSqlBucket.time_collectedc                 C   r*   )z
        Sets the time_collected of this SqlBucket.
        Collection timestamp
        Example: `"2020-03-31T00:00:00.000Z"`


        :param time_collected: The time_collected of this SqlBucket.
        :type: datetime
        Nr/   )r!   r   r#   r#   r$   r      r+   c                 C   r&   )z
        **[Required]** Gets the sql_identifier of this SqlBucket.
        Unique SQL_ID for a SQL Statement.


        :return: The sql_identifier of this SqlBucket.
        :rtype: str
        r   r(   r#   r#   r$   r      r-   zSqlBucket.sql_identifierc                 C   r*   )z
        Sets the sql_identifier of this SqlBucket.
        Unique SQL_ID for a SQL Statement.


        :param sql_identifier: The sql_identifier of this SqlBucket.
        :type: str
        Nr0   )r!   r   r#   r#   r$   r      r.   c                 C   r&   )z
        **[Required]** Gets the plan_hash of this SqlBucket.
        Plan hash value for the SQL Execution Plan


        :return: The plan_hash of this SqlBucket.
        :rtype: int
        r   r(   r#   r#   r$   r      r-   zSqlBucket.plan_hashc                 C   r*   )z
        Sets the plan_hash of this SqlBucket.
        Plan hash value for the SQL Execution Plan


        :param plan_hash: The plan_hash of this SqlBucket.
        :type: int
        Nr1   )r!   r   r#   r#   r$   r      r.   c                 C   r&   )a   
        **[Required]** Gets the bucket_id of this SqlBucket.
        SQL Bucket ID, examples <= 3 secs, 3-10 secs, 10-60 secs, 1-5 min, > 5 min
        Example: `"<= 3 secs"`


        :return: The bucket_id of this SqlBucket.
        :rtype: str
        r   r(   r#   r#   r$   r      r)   zSqlBucket.bucket_idc                 C   r*   )z
        Sets the bucket_id of this SqlBucket.
        SQL Bucket ID, examples <= 3 secs, 3-10 secs, 10-60 secs, 1-5 min, > 5 min
        Example: `"<= 3 secs"`


        :param bucket_id: The bucket_id of this SqlBucket.
        :type: str
        Nr2   )r!   r   r#   r#   r$   r      r+   c                 C   r&   )z
        Gets the executions_count of this SqlBucket.
        Total number of executions
        Example: `60`


        :return: The executions_count of this SqlBucket.
        :rtype: int
        r   r(   r#   r#   r$   r     r)   zSqlBucket.executions_countc                 C   r*   )z
        Sets the executions_count of this SqlBucket.
        Total number of executions
        Example: `60`


        :param executions_count: The executions_count of this SqlBucket.
        :type: int
        Nr3   )r!   r   r#   r#   r$   r     r+   c                 C   r&   )z
        Gets the cpu_time_in_sec of this SqlBucket.
        Total CPU time
        Example: `1046`


        :return: The cpu_time_in_sec of this SqlBucket.
        :rtype: float
        r   r(   r#   r#   r$   r     r)   zSqlBucket.cpu_time_in_secc                 C   r*   )z
        Sets the cpu_time_in_sec of this SqlBucket.
        Total CPU time
        Example: `1046`


        :param cpu_time_in_sec: The cpu_time_in_sec of this SqlBucket.
        :type: float
        Nr4   )r!   r   r#   r#   r$   r   )  r+   c                 C   r&   )z
        Gets the io_time_in_sec of this SqlBucket.
        Total IO time
        Example: `5810`


        :return: The io_time_in_sec of this SqlBucket.
        :rtype: float
        r   r(   r#   r#   r$   r   6  r)   zSqlBucket.io_time_in_secc                 C   r*   )z
        Sets the io_time_in_sec of this SqlBucket.
        Total IO time
        Example: `5810`


        :param io_time_in_sec: The io_time_in_sec of this SqlBucket.
        :type: float
        Nr5   )r!   r   r#   r#   r$   r   C  r+   c                 C   r&   )z
        Gets the other_wait_time_in_sec of this SqlBucket.
        Total other wait time
        Example: `24061`


        :return: The other_wait_time_in_sec of this SqlBucket.
        :rtype: float
        r   r(   r#   r#   r$   r   P  r)   z SqlBucket.other_wait_time_in_secc                 C   r*   )z
        Sets the other_wait_time_in_sec of this SqlBucket.
        Total other wait time
        Example: `24061`


        :param other_wait_time_in_sec: The other_wait_time_in_sec of this SqlBucket.
        :type: float
        Nr6   )r!   r   r#   r#   r$   r   ]  r+   c                 C   r&   )z
        Gets the total_time_in_sec of this SqlBucket.
        Total time
        Example: `30917`


        :return: The total_time_in_sec of this SqlBucket.
        :rtype: float
        r    r(   r#   r#   r$   r   j  r)   zSqlBucket.total_time_in_secc                 C   r*   )z
        Sets the total_time_in_sec of this SqlBucket.
        Total time
        Example: `30917`


        :param total_time_in_sec: The total_time_in_sec of this SqlBucket.
        :type: float
        Nr7   )r!   r   r#   r#   r$   r   w  r+   c                 C   s   t | S N)r   r(   r#   r#   r$   __repr__  s   zSqlBucket.__repr__c                 C   s   |d u rdS | j |j kS )NF)__dict__r!   otherr#   r#   r$   __eq__  s   zSqlBucket.__eq__c                 C   s
   | |k S r8   r#   r;   r#   r#   r$   __ne__  s   
zSqlBucket.__ne__N)__name__
__module____qualname____doc__r%   propertyr   setterr   r   r   r   r   r   r   r   r   r   r9   r=   r>   r#   r#   r#   r$   r      sd    Z





















r   N)Zoci.utilr   r   r   Zoci.decoratorsr   objectr   r#   r#   r#   r$   <module>   s   