Dashboard
PHP:
8.3.33
OS:
Linux
User:
letter7
/
/
usr
/
libexec
/
oracle-cloud-agent
/
plugins
/
osms
/
oci
/
apigateway
/
models
📤 Upload
📝 New File
📁 New Folder
Close
Editing: rate_limit.pyc
a N��fV � @ s8 d dl mZmZmZ d dlmZ eG dd� de��ZdS )� )�formatted_flat_dict� NONE_SENTINEL�#value_allowed_none_or_none_sentinel)�init_model_state_from_kwargsc @ sh e Zd ZdZdZdd� Zedd� �Zejdd� �Zedd � �Z e jd d � �Z dd� Z d d� Zdd� ZdS )� RateLimitz0 Rate-limiting policy for a usage plan. �SECONDc K s( ddd�| _ ddd�| _d| _d| _dS )ah Initializes a new RateLimit object with values from keyword arguments. The following keyword arguments are supported (corresponding to the getters/setters of this class): :param value: The value to assign to the value property of this RateLimit. :type value: int :param unit: The value to assign to the unit property of this RateLimit. Allowed values for this property are: "SECOND", 'UNKNOWN_ENUM_VALUE'. Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. :type unit: str �int�str)�value�unitr r N)� swagger_types� attribute_map�_value�_unit)�self�kwargs� r ��/sparta/input/_build_configuration/image_build+validate/lib/bmcenv/lib64/python3.9/site-packages/oci/apigateway/models/rate_limit.py�__init__ s ��zRateLimit.__init__c C s | j S )z� **[Required]** Gets the value of this RateLimit. The number of requests that can be made per time period. :return: The value of this RateLimit. :rtype: int �r �r r r r r 1 s zRateLimit.valuec C s || _ dS )z� Sets the value of this RateLimit. The number of requests that can be made per time period. :param value: The value of this RateLimit. :type: int Nr )r r r r r r = s c C s | j S )a� **[Required]** Gets the unit of this RateLimit. The unit of time over which rate limits are calculated. Example: `SECOND` Allowed values for this property are: "SECOND", 'UNKNOWN_ENUM_VALUE'. Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. :return: The unit of this RateLimit. :rtype: str )r r r r r r I s zRateLimit.unitc C s dg}t ||�sd}|| _dS )z� Sets the unit of this RateLimit. The unit of time over which rate limits are calculated. Example: `SECOND` :param unit: The unit of this RateLimit. :type: str r �UNKNOWN_ENUM_VALUEN)r r )r r �allowed_valuesr r r r Y s c C s t | �S �N)r r r r r �__repr__i s zRateLimit.__repr__c C s |d u rdS | j |j kS )NF)�__dict__�r �otherr r r �__eq__l s zRateLimit.__eq__c C s | |k S r r r r r r �__ne__r s zRateLimit.__ne__N) �__name__� __module__�__qualname__�__doc__�UNIT_SECONDr �propertyr �setterr r r r r r r r r s r N)�oci.utilr r r �oci.decoratorsr �objectr r r r r �<module> s
Save
Cancel