class Amazonite::ApiGateway::QuotaSettings

Overview

Quotas configured for a usage plan.

Included Modules

Defined in:

api_gateway/quota_settings.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(pull : JSON::PullParser) #

[View source]
def self.new(limit : Int32 | Nil = nil, offset : Int32 | Nil = nil, period : QuotaPeriodType | Nil = nil) #

[View source]
def self.new(*, __pull_for_json_serializable pull : JSON::PullParser) #

[View source]

Instance Method Detail

def ==(other : self) #
Description copied from class Reference

Returns true if this reference is the same as other. Invokes same?.


def hash(hasher) #
Description copied from class Reference

See Object#hash(hasher)


def limit : Int32 | Nil #

The target maximum number of requests that can be made in a given time period.


[View source]
def limit=(limit : Int32 | Nil) #

The target maximum number of requests that can be made in a given time period.


[View source]
def offset : Int32 | Nil #

The number of requests subtracted from the given limit in the initial time period.


[View source]
def offset=(offset : Int32 | Nil) #

The number of requests subtracted from the given limit in the initial time period.


[View source]
def period : QuotaPeriodType | Nil #

The time period in which the limit applies. Valid values are "DAY", "WEEK" or "MONTH".


[View source]
def period=(period : QuotaPeriodType | Nil) #

The time period in which the limit applies. Valid values are "DAY", "WEEK" or "MONTH".


[View source]
def validate! : Nil #

[View source]