o
    ëÉ¶dd0  ã                   @   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                   @   s8  e 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d#d$„ Zd%d&„ Zd'd(„ Zd)S )*ÚQuotaa4  
    Quotas are applied on top of the service limits and inherited through the nested compartment hierarchy.
    Quotas allow compartment admins to limit resource consumption and set boundaries around acceptable resource use.
    The term "quota" can be interpreted as the following:
    * An individual statement written in the declarative language.
    * A collection of statements in a single, named "quota" object (which has an Oracle Cloud ID (OCID) assigned to it).
    * The overall body of quotas your organization uses to control access to resources.
    ÚACTIVEc                 K   sx   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 Quota object with values from keyword arguments.
        The following keyword arguments are supported (corresponding to the getters/setters of this class):

        :param id:
            The value to assign to the id property of this Quota.
        :type id: str

        :param compartment_id:
            The value to assign to the compartment_id property of this Quota.
        :type compartment_id: str

        :param name:
            The value to assign to the name property of this Quota.
        :type name: str

        :param statements:
            The value to assign to the statements property of this Quota.
        :type statements: list[str]

        :param locks:
            The value to assign to the locks property of this Quota.
        :type locks: list[oci.limits.models.ResourceLock]

        :param description:
            The value to assign to the description property of this Quota.
        :type description: str

        :param time_created:
            The value to assign to the time_created property of this Quota.
        :type time_created: datetime

        :param lifecycle_state:
            The value to assign to the lifecycle_state property of this Quota.
            Allowed values for this property are: "ACTIVE", 'UNKNOWN_ENUM_VALUE'.
            Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'.
        :type lifecycle_state: str

        :param freeform_tags:
            The value to assign to the freeform_tags property of this Quota.
        :type freeform_tags: dict(str, str)

        :param defined_tags:
            The value to assign to the defined_tags property of this Quota.
        :type defined_tags: dict(str, dict(str, object))

        Ústrz	list[str]zlist[ResourceLock]Údatetimezdict(str, str)zdict(str, dict(str, object)))
ÚidÚcompartment_idÚnameÚ
statementsÚlocksÚdescriptionÚtime_createdÚlifecycle_stateÚfreeform_tagsÚdefined_tagsr
   ZcompartmentIdr   r   r   r   ZtimeCreatedZlifecycleStateZfreeformTagsZdefinedTagsN)Zswagger_typesZattribute_mapÚ_idÚ_compartment_idÚ_nameÚ_statementsÚ_locksÚ_descriptionÚ_time_createdÚ_lifecycle_stateÚ_freeform_tagsÚ_defined_tags)ÚselfÚkwargs© r    ú;usr/lib/python3.10/site-packages/oci/limits/models/quota.pyÚ__init__   s@   1öö
zQuota.__init__c                 C   ó   | j S )z—
        **[Required]** Gets the id of this Quota.
        The OCID of the quota.


        :return: The id of this Quota.
        :rtype: str
        ©r   ©r   r    r    r!   r
   p   ó   
zQuota.idc                 C   ó
   || _ dS )z‰
        Sets the id of this Quota.
        The OCID of the quota.


        :param id: The id of this Quota.
        :type: str
        Nr$   )r   r
   r    r    r!   r
   |   ó   

c                 C   r#   )zã
        **[Required]** Gets the compartment_id of this Quota.
        The OCID of the compartment containing the resource this quota applies to.


        :return: The compartment_id of this Quota.
        :rtype: str
        ©r   r%   r    r    r!   r   ˆ   r&   zQuota.compartment_idc                 C   r'   )zá
        Sets the compartment_id of this Quota.
        The OCID of the compartment containing the resource this quota applies to.


        :param compartment_id: The compartment_id of this Quota.
        :type: str
        Nr)   )r   r   r    r    r!   r   ”   r(   c                 C   r#   )a  
        **[Required]** Gets the name of this Quota.
        The name you assign to the quota during creation. The name must be unique across all quotas
        in the tenancy and cannot be changed.


        :return: The name of this Quota.
        :rtype: str
        ©r   r%   r    r    r!   r       ó   z
Quota.namec                 C   r'   )a  
        Sets the name of this Quota.
        The name you assign to the quota during creation. The name must be unique across all quotas
        in the tenancy and cannot be changed.


        :param name: The name of this Quota.
        :type: str
        Nr*   )r   r   r    r    r!   r   ­   ó   
c                 C   r#   )zô
        **[Required]** Gets the statements of this Quota.
        An array of one or more quota statements written in the declarative quota statement language.


        :return: The statements of this Quota.
        :rtype: list[str]
        ©r   r%   r    r    r!   r   º   r&   zQuota.statementsc                 C   r'   )zî
        Sets the statements of this Quota.
        An array of one or more quota statements written in the declarative quota statement language.


        :param statements: The statements of this Quota.
        :type: list[str]
        Nr-   )r   r   r    r    r!   r   Æ   r(   c                 C   r#   )z½
        Gets the locks of this Quota.
        Locks associated with this resource.


        :return: The locks of this Quota.
        :rtype: list[oci.limits.models.ResourceLock]
        ©r   r%   r    r    r!   r   Ò   r&   zQuota.locksc                 C   r'   )zÁ
        Sets the locks of this Quota.
        Locks associated with this resource.


        :param locks: The locks of this Quota.
        :type: list[oci.limits.models.ResourceLock]
        Nr.   )r   r   r    r    r!   r   Þ   r(   c                 C   r#   )z»
        **[Required]** Gets the description of this Quota.
        The description you assign to the quota.


        :return: The description of this Quota.
        :rtype: str
        ©r   r%   r    r    r!   r   ê   r&   zQuota.descriptionc                 C   r'   )z¶
        Sets the description of this Quota.
        The description you assign to the quota.


        :param description: The description of this Quota.
        :type: str
        Nr/   )r   r   r    r    r!   r   ö   r(   c                 C   r#   )a  
        **[Required]** Gets the time_created of this Quota.
        Date and time the quota was created, in the format defined by RFC 3339.
        Example: `2016-08-25T21:10:29.600Z`


        :return: The time_created of this Quota.
        :rtype: datetime
        ©r   r%   r    r    r!   r     r+   zQuota.time_createdc                 C   r'   )a	  
        Sets the time_created of this Quota.
        Date and time the quota was created, in the format defined by RFC 3339.
        Example: `2016-08-25T21:10:29.600Z`


        :param time_created: The time_created of this Quota.
        :type: datetime
        Nr0   )r   r   r    r    r!   r     r,   c                 C   r#   )a´  
        Gets the lifecycle_state of this Quota.
        The quota's current state. After creating a quota, make sure its `lifecycleState` is set to
        ACTIVE before using it.

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


        :return: The lifecycle_state of this Quota.
        :rtype: str
        )r   r%   r    r    r!   r     ó   zQuota.lifecycle_statec                 C   s   dg}t ||ƒs
d}|| _dS )a  
        Sets the lifecycle_state of this Quota.
        The quota's current state. After creating a quota, make sure its `lifecycleState` is set to
        ACTIVE before using it.


        :param lifecycle_state: The lifecycle_state of this Quota.
        :type: str
        r   ZUNKNOWN_ENUM_VALUEN)r   r   )r   r   Zallowed_valuesr    r    r!   r   ,  s   

c                 C   r#   )a»  
        Gets the freeform_tags of this Quota.
        Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace.
        For more information, see `Resource Tags`__.
        Example: `{"Department": "Finance"}`

        __ https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm


        :return: The freeform_tags of this Quota.
        :rtype: dict(str, str)
        ©r   r%   r    r    r!   r   <  r1   zQuota.freeform_tagsc                 C   r'   )aÇ  
        Sets the freeform_tags of this Quota.
        Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace.
        For more information, see `Resource Tags`__.
        Example: `{"Department": "Finance"}`

        __ https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm


        :param freeform_tags: The freeform_tags of this Quota.
        :type: dict(str, str)
        Nr2   )r   r   r    r    r!   r   L  ó   
c                 C   r#   )a±  
        Gets the defined_tags of this Quota.
        Defined tags for this resource. Each key is predefined and scoped to a namespace.
        For more information, see `Resource Tags`__.
        Example: `{"Operations": {"CostCenter": "42"}}`

        __ https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm


        :return: The defined_tags of this Quota.
        :rtype: dict(str, dict(str, object))
        ©r   r%   r    r    r!   r   \  r1   zQuota.defined_tagsc                 C   r'   )a¼  
        Sets the defined_tags of this Quota.
        Defined tags for this resource. Each key is predefined and scoped to a namespace.
        For more information, see `Resource Tags`__.
        Example: `{"Operations": {"CostCenter": "42"}}`

        __ https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm


        :param defined_tags: The defined_tags of this Quota.
        :type: dict(str, dict(str, object))
        Nr4   )r   r   r    r    r!   r   l  r3   c                 C   s   t | ƒS ©N)r   r%   r    r    r!   Ú__repr__|  s   zQuota.__repr__c                 C   s   |d u rdS | j |j kS )NF)Ú__dict__©r   Úotherr    r    r!   Ú__eq__  s   zQuota.__eq__c                 C   s
   | |k S r5   r    r8   r    r    r!   Ú__ne__…  s   
zQuota.__ne__N)Ú__name__Ú
__module__Ú__qualname__Ú__doc__ZLIFECYCLE_STATE_ACTIVEr"   Úpropertyr
   Úsetterr   r   r   r   r   r   r   r   r   r6   r:   r;   r    r    r    r!   r      s^    U



















r   N)Zoci.utilr   r   r   Zoci.decoratorsr   Úobjectr   r    r    r    r!   Ú<module>   s   