o
    ɶdP                     @   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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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d0d1 Z!e!jd2d1 Z!ed3d4 Z"e"jd5d4 Z"ed6d7 Z#e#jd8d7 Z#ed9d: Z$e$jd;d: Z$ed<d= Z%e%jd>d= Z%d?d@ Z&dAdB Z'dCdD Z(dES )FDatafilez%
    The details of a data file.
    	AVAILABLEINVALIDOFFLINEONLINEUNKNOWNSYSOFFSYSTEMRECOVERENABLEDPROTECT_OFFSUSPENDSHAREDLOCAL_FOR_RIMLOCAL_FOR_ALLc                 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| _d| _d| _d| _d| _	d| _
d| _d| _d| _d| _d| _d| _dS )a  
        Initializes a new Datafile 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 Datafile.
        :type name: str

        :param status:
            The value to assign to the status property of this Datafile.
            Allowed values for this property are: "AVAILABLE", "INVALID", "OFFLINE", "ONLINE", "UNKNOWN", 'UNKNOWN_ENUM_VALUE'.
            Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'.
        :type status: str

        :param online_status:
            The value to assign to the online_status property of this Datafile.
            Allowed values for this property are: "SYSOFF", "SYSTEM", "OFFLINE", "ONLINE", "RECOVER", 'UNKNOWN_ENUM_VALUE'.
            Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'.
        :type online_status: str

        :param is_auto_extensible:
            The value to assign to the is_auto_extensible property of this Datafile.
        :type is_auto_extensible: bool

        :param lost_write_protect:
            The value to assign to the lost_write_protect property of this Datafile.
            Allowed values for this property are: "ENABLED", "PROTECT_OFF", "SUSPEND", 'UNKNOWN_ENUM_VALUE'.
            Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'.
        :type lost_write_protect: str

        :param shared:
            The value to assign to the shared property of this Datafile.
            Allowed values for this property are: "SHARED", "LOCAL_FOR_RIM", "LOCAL_FOR_ALL", 'UNKNOWN_ENUM_VALUE'.
            Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'.
        :type shared: str

        :param instance_id:
            The value to assign to the instance_id property of this Datafile.
        :type instance_id: float

        :param max_size_kb:
            The value to assign to the max_size_kb property of this Datafile.
        :type max_size_kb: float

        :param allocated_size_kb:
            The value to assign to the allocated_size_kb property of this Datafile.
        :type allocated_size_kb: float

        :param user_size_kb:
            The value to assign to the user_size_kb property of this Datafile.
        :type user_size_kb: float

        :param increment_by:
            The value to assign to the increment_by property of this Datafile.
        :type increment_by: float

        :param free_space_kb:
            The value to assign to the free_space_kb property of this Datafile.
        :type free_space_kb: float

        :param used_space_kb:
            The value to assign to the used_space_kb property of this Datafile.
        :type used_space_kb: float

        :param used_percent_available:
            The value to assign to the used_percent_available property of this Datafile.
        :type used_percent_available: float

        :param used_percent_allocated:
            The value to assign to the used_percent_allocated property of this Datafile.
        :type used_percent_allocated: float

        strboolfloat)namestatusonline_statusis_auto_extensiblelost_write_protectsharedinstance_idmax_size_kballocated_size_kbuser_size_kbincrement_byfree_space_kbused_space_kbused_percent_availableused_percent_allocatedr   r   ZonlineStatusZisAutoExtensibleZlostWriteProtectr   Z
instanceIdZ	maxSizeKBZallocatedSizeKBZ
userSizeKBZincrementByZfreeSpaceKBZusedSpaceKBZusedPercentAvailableZusedPercentAllocatedN)Zswagger_typesZattribute_map_name_status_online_status_is_auto_extensible_lost_write_protect_shared_instance_id_max_size_kb_allocated_size_kb_user_size_kb_increment_by_free_space_kb_used_space_kb_used_percent_available_used_percent_allocated)selfkwargs r8   Kusr/lib/python3.10/site-packages/oci/database_management/models/datafile.py__init__R   s^   K
zDatafile.__init__c                 C      | j S )z
        **[Required]** Gets the name of this Datafile.
        The filename (including the path) of the data file or temp file.


        :return: The name of this Datafile.
        :rtype: str
        r'   r6   r8   r8   r9   r         
zDatafile.namec                 C   
   || _ dS )z
        Sets the name of this Datafile.
        The filename (including the path) of the data file or temp file.


        :param name: The name of this Datafile.
        :type: str
        Nr<   )r6   r   r8   r8   r9   r         

c                 C   r;   )a  
        Gets the status of this Datafile.
        The status of the file. INVALID status is used when the file number is not in use, for example, a file in a tablespace that was removed.

        Allowed values for this property are: "AVAILABLE", "INVALID", "OFFLINE", "ONLINE", "UNKNOWN", 'UNKNOWN_ENUM_VALUE'.
        Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'.


        :return: The status of this Datafile.
        :rtype: str
        )r(   r=   r8   r8   r9   r         zDatafile.statusc                 C       g d}t ||sd}|| _dS )a  
        Sets the status of this Datafile.
        The status of the file. INVALID status is used when the file number is not in use, for example, a file in a tablespace that was removed.


        :param status: The status of this Datafile.
        :type: str
        )r   r   r	   r
   r   UNKNOWN_ENUM_VALUEN)r   r(   )r6   r   allowed_valuesr8   r8   r9   r         


c                 C   r;   )a  
        Gets the online_status of this Datafile.
        The online status of the file.

        Allowed values for this property are: "SYSOFF", "SYSTEM", "OFFLINE", "ONLINE", "RECOVER", 'UNKNOWN_ENUM_VALUE'.
        Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'.


        :return: The online_status of this Datafile.
        :rtype: str
        )r)   r=   r8   r8   r9   r     rA   zDatafile.online_statusc                 C   rB   )z
        Sets the online_status of this Datafile.
        The online status of the file.


        :param online_status: The online_status of this Datafile.
        :type: str
        )r   r   r	   r
   r   rC   N)r   r)   )r6   r   rD   r8   r8   r9   r     rE   c                 C   r;   )z
        Gets the is_auto_extensible of this Datafile.
        Indicates whether the data file is auto-extensible.


        :return: The is_auto_extensible of this Datafile.
        :rtype: bool
        r*   r=   r8   r8   r9   r   $  r>   zDatafile.is_auto_extensiblec                 C   r?   )z
        Sets the is_auto_extensible of this Datafile.
        Indicates whether the data file is auto-extensible.


        :param is_auto_extensible: The is_auto_extensible of this Datafile.
        :type: bool
        NrF   )r6   r   r8   r8   r9   r   0  r@   c                 C   r;   )a  
        Gets the lost_write_protect of this Datafile.
        The lost write protection status of the file.

        Allowed values for this property are: "ENABLED", "PROTECT_OFF", "SUSPEND", 'UNKNOWN_ENUM_VALUE'.
        Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'.


        :return: The lost_write_protect of this Datafile.
        :rtype: str
        )r+   r=   r8   r8   r9   r   <  rA   zDatafile.lost_write_protectc                 C   rB   )z
        Sets the lost_write_protect of this Datafile.
        The lost write protection status of the file.


        :param lost_write_protect: The lost_write_protect of this Datafile.
        :type: str
        )r   r   r   rC   N)r   r+   )r6   r   rD   r8   r8   r9   r   K  rE   c                 C   r;   )a  
        Gets the shared of this Datafile.
        Type of tablespace this file belongs to. If it's for a shared tablespace, for a local temporary tablespace for RIM (read-only) instances, or for local temporary tablespace for all instance types.

        Allowed values for this property are: "SHARED", "LOCAL_FOR_RIM", "LOCAL_FOR_ALL", 'UNKNOWN_ENUM_VALUE'.
        Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'.


        :return: The shared of this Datafile.
        :rtype: str
        )r,   r=   r8   r8   r9   r   Z  rA   zDatafile.sharedc                 C   rB   )aH  
        Sets the shared of this Datafile.
        Type of tablespace this file belongs to. If it's for a shared tablespace, for a local temporary tablespace for RIM (read-only) instances, or for local temporary tablespace for all instance types.


        :param shared: The shared of this Datafile.
        :type: str
        )r   r   r   rC   N)r   r,   )r6   r   rD   r8   r8   r9   r   i  rE   c                 C   r;   )a  
        Gets the instance_id of this Datafile.
        Instance ID of the instance to which the temp file belongs. This column has a NULL value for temp files that belong to shared tablespaces.


        :return: The instance_id of this Datafile.
        :rtype: float
        r-   r=   r8   r8   r9   r   x  r>   zDatafile.instance_idc                 C   r?   )a   
        Sets the instance_id of this Datafile.
        Instance ID of the instance to which the temp file belongs. This column has a NULL value for temp files that belong to shared tablespaces.


        :param instance_id: The instance_id of this Datafile.
        :type: float
        NrG   )r6   r   r8   r8   r9   r     r@   c                 C   r;   )z
        Gets the max_size_kb of this Datafile.
        The maximum file size in KB.


        :return: The max_size_kb of this Datafile.
        :rtype: float
        r.   r=   r8   r8   r9   r     r>   zDatafile.max_size_kbc                 C   r?   )z
        Sets the max_size_kb of this Datafile.
        The maximum file size in KB.


        :param max_size_kb: The max_size_kb of this Datafile.
        :type: float
        NrH   )r6   r   r8   r8   r9   r     r@   c                 C   r;   )z
        Gets the allocated_size_kb of this Datafile.
        The allocated file size in KB.


        :return: The allocated_size_kb of this Datafile.
        :rtype: float
        r/   r=   r8   r8   r9   r      r>   zDatafile.allocated_size_kbc                 C   r?   )z
        Sets the allocated_size_kb of this Datafile.
        The allocated file size in KB.


        :param allocated_size_kb: The allocated_size_kb of this Datafile.
        :type: float
        NrI   )r6   r    r8   r8   r9   r      r@   c                 C   r;   )a   
        Gets the user_size_kb of this Datafile.
        The size of the file available for user data in KB. The actual size of the file minus the USER_BYTES value is used to store file-related metadata.


        :return: The user_size_kb of this Datafile.
        :rtype: float
        r0   r=   r8   r8   r9   r!     r>   zDatafile.user_size_kbc                 C   r?   )a+  
        Sets the user_size_kb of this Datafile.
        The size of the file available for user data in KB. The actual size of the file minus the USER_BYTES value is used to store file-related metadata.


        :param user_size_kb: The user_size_kb of this Datafile.
        :type: float
        NrJ   )r6   r!   r8   r8   r9   r!     r@   c                 C   r;   )z
        Gets the increment_by of this Datafile.
        The number of blocks used as auto-extension increment.


        :return: The increment_by of this Datafile.
        :rtype: float
        r1   r=   r8   r8   r9   r"     r>   zDatafile.increment_byc                 C   r?   )z
        Sets the increment_by of this Datafile.
        The number of blocks used as auto-extension increment.


        :param increment_by: The increment_by of this Datafile.
        :type: float
        NrK   )r6   r"   r8   r8   r9   r"     r@   c                 C   r;   )z
        Gets the free_space_kb of this Datafile.
        The free space available in the data file in KB.


        :return: The free_space_kb of this Datafile.
        :rtype: float
        r2   r=   r8   r8   r9   r#     r>   zDatafile.free_space_kbc                 C   r?   )z
        Sets the free_space_kb of this Datafile.
        The free space available in the data file in KB.


        :param free_space_kb: The free_space_kb of this Datafile.
        :type: float
        NrL   )r6   r#   r8   r8   r9   r#     r@   c                 C   r;   )z
        Gets the used_space_kb of this Datafile.
        The total space used in the data file in KB.


        :return: The used_space_kb of this Datafile.
        :rtype: float
        r3   r=   r8   r8   r9   r$     r>   zDatafile.used_space_kbc                 C   r?   )z
        Sets the used_space_kb of this Datafile.
        The total space used in the data file in KB.


        :param used_space_kb: The used_space_kb of this Datafile.
        :type: float
        NrM   )r6   r$   r8   r8   r9   r$     r@   c                 C   r;   )z
        Gets the used_percent_available of this Datafile.
        The percentage of used space out of the maximum available space in the file.


        :return: The used_percent_available of this Datafile.
        :rtype: float
        r4   r=   r8   r8   r9   r%      r>   zDatafile.used_percent_availablec                 C   r?   )a  
        Sets the used_percent_available of this Datafile.
        The percentage of used space out of the maximum available space in the file.


        :param used_percent_available: The used_percent_available of this Datafile.
        :type: float
        NrN   )r6   r%   r8   r8   r9   r%   ,  r@   c                 C   r;   )z
        Gets the used_percent_allocated of this Datafile.
        The percentage of used space out of the total allocated space in the file.


        :return: The used_percent_allocated of this Datafile.
        :rtype: float
        r5   r=   r8   r8   r9   r&   8  r>   zDatafile.used_percent_allocatedc                 C   r?   )a  
        Sets the used_percent_allocated of this Datafile.
        The percentage of used space out of the total allocated space in the file.


        :param used_percent_allocated: The used_percent_allocated of this Datafile.
        :type: float
        NrO   )r6   r&   r8   r8   r9   r&   D  r@   c                 C   s   t | S N)r   r=   r8   r8   r9   __repr__P  s   zDatafile.__repr__c                 C   s   |d u rdS | j |j kS )NF)__dict__r6   otherr8   r8   r9   __eq__S  s   zDatafile.__eq__c                 C   s
   | |k S rP   r8   rS   r8   r8   r9   __ne__Y  s   
zDatafile.__ne__N))__name__
__module____qualname____doc__ZSTATUS_AVAILABLEZSTATUS_INVALIDZSTATUS_OFFLINEZSTATUS_ONLINEZSTATUS_UNKNOWNZONLINE_STATUS_SYSOFFZONLINE_STATUS_SYSTEMZONLINE_STATUS_OFFLINEZONLINE_STATUS_ONLINEZONLINE_STATUS_RECOVERZLOST_WRITE_PROTECT_ENABLEDZLOST_WRITE_PROTECT_PROTECT_OFFZLOST_WRITE_PROTECT_SUSPENDZSHARED_SHAREDZSHARED_LOCAL_FOR_RIMZSHARED_LOCAL_FOR_ALLr:   propertyr   setterr   r   r   r   r   r   r   r    r!   r"   r#   r$   r%   r&   rQ   rU   rV   r8   r8   r8   r9   r      s    ~





























r   N)Zoci.utilr   r   r   Zoci.decoratorsr   objectr   r8   r8   r8   r9   <module>   s   