Class: TencentCloud::Tione::V20211111::AuthTokenLimit

Inherits:
Common::AbstractModel
  • Object
show all
Defined in:
lib/v20211111/models.rb

Overview

AuthToken 限流信息

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(strategy = nil, max = nil) ⇒ AuthTokenLimit

Returns a new instance of AuthTokenLimit.



123
124
125
126
# File 'lib/v20211111/models.rb', line 123

def initialize(strategy=nil, max=nil)
  @Strategy = strategy
  @Max = max
end

Instance Attribute Details

#MaxObject

Parameters:

  • Strategy:

    限频策略:PerMinute 每分钟限频;PerDay 每日限频

  • Max:

    上限值



121
122
123
# File 'lib/v20211111/models.rb', line 121

def Max
  @Max
end

#StrategyObject

Parameters:

  • Strategy:

    限频策略:PerMinute 每分钟限频;PerDay 每日限频

  • Max:

    上限值



121
122
123
# File 'lib/v20211111/models.rb', line 121

def Strategy
  @Strategy
end

Instance Method Details

#deserialize(params) ⇒ Object



128
129
130
131
# File 'lib/v20211111/models.rb', line 128

def deserialize(params)
  @Strategy = params['Strategy']
  @Max = params['Max']
end