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] |
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
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
func (o *BaseRateLimitRule) GetId() string
GetId returns the Id field if non-nil, zero value otherwise.
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.
func (o *BaseRateLimitRule) SetId(v string)
SetId sets Id field to given value.
func (o *BaseRateLimitRule) HasId() bool
HasId returns a boolean if a field has been set.
func (o *BaseRateLimitRule) GetAction() string
GetAction returns the Action field if non-nil, zero value otherwise.
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.
func (o *BaseRateLimitRule) SetAction(v string)
SetAction sets Action field to given value.
func (o *BaseRateLimitRule) HasAction() bool
HasAction returns a boolean if a field has been set.
func (o *BaseRateLimitRule) GetIsEnabled() bool
GetIsEnabled returns the IsEnabled field if non-nil, zero value otherwise.
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.
func (o *BaseRateLimitRule) SetIsEnabled(v bool)
SetIsEnabled sets IsEnabled field to given value.
func (o *BaseRateLimitRule) HasIsEnabled() bool
HasIsEnabled returns a boolean if a field has been set.
func (o *BaseRateLimitRule) GetUrlPattern() string
GetUrlPattern returns the UrlPattern field if non-nil, zero value otherwise.
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.
func (o *BaseRateLimitRule) SetUrlPattern(v string)
SetUrlPattern sets UrlPattern field to given value.
func (o *BaseRateLimitRule) GetDescription() string
GetDescription returns the Description field if non-nil, zero value otherwise.
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.
func (o *BaseRateLimitRule) SetDescription(v string)
SetDescription sets Description field to given value.
func (o *BaseRateLimitRule) HasDescription() bool
HasDescription returns a boolean if a field has been set.
func (o *BaseRateLimitRule) SetDescriptionNil(b bool)
SetDescriptionNil sets the value for Description to be an explicit nil
func (o *BaseRateLimitRule) UnsetDescription()
UnsetDescription ensures that no value is present for Description, not even an explicit nil
func (o *BaseRateLimitRule) GetExcludeSources() []string
GetExcludeSources returns the ExcludeSources field if non-nil, zero value otherwise.
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.
func (o *BaseRateLimitRule) SetExcludeSources(v []string)
SetExcludeSources sets ExcludeSources field to given value.
func (o *BaseRateLimitRule) HasExcludeSources() bool
HasExcludeSources returns a boolean if a field has been set.
func (o *BaseRateLimitRule) GetRate() int32
GetRate returns the Rate field if non-nil, zero value otherwise.
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.
func (o *BaseRateLimitRule) SetRate(v int32)
SetRate sets Rate field to given value.
func (o *BaseRateLimitRule) GetBurst() int32
GetBurst returns the Burst field if non-nil, zero value otherwise.
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.
func (o *BaseRateLimitRule) SetBurst(v int32)
SetBurst sets Burst field to given value.
func (o *BaseRateLimitRule) HasBurst() bool
HasBurst returns a boolean if a field has been set.
func (o *BaseRateLimitRule) GetBlockDuration() int32
GetBlockDuration returns the BlockDuration field if non-nil, zero value otherwise.
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.
func (o *BaseRateLimitRule) SetBlockDuration(v int32)
SetBlockDuration sets BlockDuration field to given value.
func (o *BaseRateLimitRule) HasBlockDuration() bool
HasBlockDuration returns a boolean if a field has been set.
func (o *BaseRateLimitRule) GetTimeDuration() int32
GetTimeDuration returns the TimeDuration field if non-nil, zero value otherwise.
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.
func (o *BaseRateLimitRule) SetTimeDuration(v int32)
SetTimeDuration sets TimeDuration field to given value.
func (o *BaseRateLimitRule) GetAllowedMethods() []string
GetAllowedMethods returns the AllowedMethods field if non-nil, zero value otherwise.
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.
func (o *BaseRateLimitRule) SetAllowedMethods(v []string)
SetAllowedMethods sets AllowedMethods field to given value.
func (o *BaseRateLimitRule) HasAllowedMethods() bool
HasAllowedMethods returns a boolean if a field has been set.