Skip to content

Latest commit

 

History

History
311 lines (168 loc) · 9.53 KB

BaseRateLimitRule.md

File metadata and controls

311 lines (168 loc) · 9.53 KB

BaseRateLimitRule

Properties

Name Type Description Notes
Id Pointer to string [optional] [readonly]
Action Pointer to string [optional] [default to "block"]
IsEnabled Pointer to bool [optional]
UrlPattern string - `?` matches any single character. - `` matches any (possibly empty) sequence of characters. - `**` matches the current directory and arbitrary subdirectories. This sequence must form a single path component, so both `a` and `b` are invalid and will result in an error. A sequence of more than two consecutive `` characters is also invalid. - `[...]` matches any character inside the brackets. Character sequences can also specify ranges of characters, as ordered by Unicode, so e.g. `[0-9]` specifies any character between 0 and 9 inclusive. An unclosed bracket is invalid. - `[!...]` is the negation of `[...]`, i.e. it matches any characters not in the brackets. - The metacharacters `?`, `*`, `[`, `] `can be matched by using brackets (e.g. `[?]`). When a `]` occurs immediately following `[` or `[!` then it is interpreted as being part of, rather then ending, the character set, so `]` and NOT `]` can be matched by `[]]` and `[!]]` respectively. The - character can be specified inside a character sequence pattern by placing it at the start or the end, e.g. `[abc-]`.
Description Pointer to NullableString [optional]
ExcludeSources Pointer to []string [optional]
Rate int32
Burst Pointer to int32 [optional]
BlockDuration Pointer to int32 [optional]
TimeDuration int32
AllowedMethods Pointer to []string [optional]

Methods

NewBaseRateLimitRule

func NewBaseRateLimitRule(urlPattern string, rate int32, timeDuration int32, ) *BaseRateLimitRule

NewBaseRateLimitRule instantiates a new BaseRateLimitRule object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

NewBaseRateLimitRuleWithDefaults

func NewBaseRateLimitRuleWithDefaults() *BaseRateLimitRule

NewBaseRateLimitRuleWithDefaults instantiates a new BaseRateLimitRule object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

GetId

func (o *BaseRateLimitRule) GetId() string

GetId returns the Id field if non-nil, zero value otherwise.

GetIdOk

func (o *BaseRateLimitRule) GetIdOk() (*string, bool)

GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.

SetId

func (o *BaseRateLimitRule) SetId(v string)

SetId sets Id field to given value.

HasId

func (o *BaseRateLimitRule) HasId() bool

HasId returns a boolean if a field has been set.

GetAction

func (o *BaseRateLimitRule) GetAction() string

GetAction returns the Action field if non-nil, zero value otherwise.

GetActionOk

func (o *BaseRateLimitRule) GetActionOk() (*string, bool)

GetActionOk returns a tuple with the Action field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.

SetAction

func (o *BaseRateLimitRule) SetAction(v string)

SetAction sets Action field to given value.

HasAction

func (o *BaseRateLimitRule) HasAction() bool

HasAction returns a boolean if a field has been set.

GetIsEnabled

func (o *BaseRateLimitRule) GetIsEnabled() bool

GetIsEnabled returns the IsEnabled field if non-nil, zero value otherwise.

GetIsEnabledOk

func (o *BaseRateLimitRule) GetIsEnabledOk() (*bool, bool)

GetIsEnabledOk returns a tuple with the IsEnabled field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.

SetIsEnabled

func (o *BaseRateLimitRule) SetIsEnabled(v bool)

SetIsEnabled sets IsEnabled field to given value.

HasIsEnabled

func (o *BaseRateLimitRule) HasIsEnabled() bool

HasIsEnabled returns a boolean if a field has been set.

GetUrlPattern

func (o *BaseRateLimitRule) GetUrlPattern() string

GetUrlPattern returns the UrlPattern field if non-nil, zero value otherwise.

GetUrlPatternOk

func (o *BaseRateLimitRule) GetUrlPatternOk() (*string, bool)

GetUrlPatternOk returns a tuple with the UrlPattern field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.

SetUrlPattern

func (o *BaseRateLimitRule) SetUrlPattern(v string)

SetUrlPattern sets UrlPattern field to given value.

GetDescription

func (o *BaseRateLimitRule) GetDescription() string

GetDescription returns the Description field if non-nil, zero value otherwise.

GetDescriptionOk

func (o *BaseRateLimitRule) GetDescriptionOk() (*string, bool)

GetDescriptionOk returns a tuple with the Description field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.

SetDescription

func (o *BaseRateLimitRule) SetDescription(v string)

SetDescription sets Description field to given value.

HasDescription

func (o *BaseRateLimitRule) HasDescription() bool

HasDescription returns a boolean if a field has been set.

SetDescriptionNil

func (o *BaseRateLimitRule) SetDescriptionNil(b bool)

SetDescriptionNil sets the value for Description to be an explicit nil

UnsetDescription

func (o *BaseRateLimitRule) UnsetDescription()

UnsetDescription ensures that no value is present for Description, not even an explicit nil

GetExcludeSources

func (o *BaseRateLimitRule) GetExcludeSources() []string

GetExcludeSources returns the ExcludeSources field if non-nil, zero value otherwise.

GetExcludeSourcesOk

func (o *BaseRateLimitRule) GetExcludeSourcesOk() (*[]string, bool)

GetExcludeSourcesOk returns a tuple with the ExcludeSources field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.

SetExcludeSources

func (o *BaseRateLimitRule) SetExcludeSources(v []string)

SetExcludeSources sets ExcludeSources field to given value.

HasExcludeSources

func (o *BaseRateLimitRule) HasExcludeSources() bool

HasExcludeSources returns a boolean if a field has been set.

GetRate

func (o *BaseRateLimitRule) GetRate() int32

GetRate returns the Rate field if non-nil, zero value otherwise.

GetRateOk

func (o *BaseRateLimitRule) GetRateOk() (*int32, bool)

GetRateOk returns a tuple with the Rate field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.

SetRate

func (o *BaseRateLimitRule) SetRate(v int32)

SetRate sets Rate field to given value.

GetBurst

func (o *BaseRateLimitRule) GetBurst() int32

GetBurst returns the Burst field if non-nil, zero value otherwise.

GetBurstOk

func (o *BaseRateLimitRule) GetBurstOk() (*int32, bool)

GetBurstOk returns a tuple with the Burst field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.

SetBurst

func (o *BaseRateLimitRule) SetBurst(v int32)

SetBurst sets Burst field to given value.

HasBurst

func (o *BaseRateLimitRule) HasBurst() bool

HasBurst returns a boolean if a field has been set.

GetBlockDuration

func (o *BaseRateLimitRule) GetBlockDuration() int32

GetBlockDuration returns the BlockDuration field if non-nil, zero value otherwise.

GetBlockDurationOk

func (o *BaseRateLimitRule) GetBlockDurationOk() (*int32, bool)

GetBlockDurationOk returns a tuple with the BlockDuration field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.

SetBlockDuration

func (o *BaseRateLimitRule) SetBlockDuration(v int32)

SetBlockDuration sets BlockDuration field to given value.

HasBlockDuration

func (o *BaseRateLimitRule) HasBlockDuration() bool

HasBlockDuration returns a boolean if a field has been set.

GetTimeDuration

func (o *BaseRateLimitRule) GetTimeDuration() int32

GetTimeDuration returns the TimeDuration field if non-nil, zero value otherwise.

GetTimeDurationOk

func (o *BaseRateLimitRule) GetTimeDurationOk() (*int32, bool)

GetTimeDurationOk returns a tuple with the TimeDuration field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.

SetTimeDuration

func (o *BaseRateLimitRule) SetTimeDuration(v int32)

SetTimeDuration sets TimeDuration field to given value.

GetAllowedMethods

func (o *BaseRateLimitRule) GetAllowedMethods() []string

GetAllowedMethods returns the AllowedMethods field if non-nil, zero value otherwise.

GetAllowedMethodsOk

func (o *BaseRateLimitRule) GetAllowedMethodsOk() (*[]string, bool)

GetAllowedMethodsOk returns a tuple with the AllowedMethods field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.

SetAllowedMethods

func (o *BaseRateLimitRule) SetAllowedMethods(v []string)

SetAllowedMethods sets AllowedMethods field to given value.

HasAllowedMethods

func (o *BaseRateLimitRule) HasAllowedMethods() bool

HasAllowedMethods returns a boolean if a field has been set.

[Back to Model list] [Back to API list] [Back to README]