Class: TencentCloud::Teo::V20220901::RateLimitingRule
- Inherits:
-
Common::AbstractModel
- Object
- Common::AbstractModel
- TencentCloud::Teo::V20220901::RateLimitingRule
- Defined in:
- lib/v20220901/models.rb
Overview
速率限制的具体配置。
Instance Attribute Summary collapse
- #Action ⇒ Object
- #ActionDuration ⇒ Object
- #Condition ⇒ Object
- #CountBy ⇒ Object
- #CountingPeriod ⇒ Object
- #Enabled ⇒ Object
- #Id ⇒ Object
- #MaxRequestThreshold ⇒ Object
- #Name ⇒ Object
- #Priority ⇒ Object
Instance Method Summary collapse
- #deserialize(params) ⇒ Object
-
#initialize(id = nil, name = nil, condition = nil, countby = nil, maxrequestthreshold = nil, countingperiod = nil, actionduration = nil, action = nil, priority = nil, enabled = nil) ⇒ RateLimitingRule
constructor
A new instance of RateLimitingRule.
Constructor Details
#initialize(id = nil, name = nil, condition = nil, countby = nil, maxrequestthreshold = nil, countingperiod = nil, actionduration = nil, action = nil, priority = nil, enabled = nil) ⇒ RateLimitingRule
Returns a new instance of RateLimitingRule.
19751 19752 19753 19754 19755 19756 19757 19758 19759 19760 19761 19762 |
# File 'lib/v20220901/models.rb', line 19751 def initialize(id=nil, name=nil, condition=nil, countby=nil, maxrequestthreshold=nil, countingperiod=nil, actionduration=nil, action=nil, priority=nil, enabled=nil) @Id = id @Name = name @Condition = condition @CountBy = countby @MaxRequestThreshold = maxrequestthreshold @CountingPeriod = countingperiod @ActionDuration = actionduration @Action = action @Priority = priority @Enabled = enabled end |
Instance Attribute Details
#Action ⇒ Object
19749 19750 19751 |
# File 'lib/v20220901/models.rb', line 19749 def Action @Action end |
#ActionDuration ⇒ Object
19749 19750 19751 |
# File 'lib/v20220901/models.rb', line 19749 def ActionDuration @ActionDuration end |
#Condition ⇒ Object
19749 19750 19751 |
# File 'lib/v20220901/models.rb', line 19749 def Condition @Condition end |
#CountBy ⇒ Object
19749 19750 19751 |
# File 'lib/v20220901/models.rb', line 19749 def CountBy @CountBy end |
#CountingPeriod ⇒ Object
19749 19750 19751 |
# File 'lib/v20220901/models.rb', line 19749 def CountingPeriod @CountingPeriod end |
#Enabled ⇒ Object
19749 19750 19751 |
# File 'lib/v20220901/models.rb', line 19749 def Enabled @Enabled end |
#Id ⇒ Object
19749 19750 19751 |
# File 'lib/v20220901/models.rb', line 19749 def Id @Id end |
#MaxRequestThreshold ⇒ Object
19749 19750 19751 |
# File 'lib/v20220901/models.rb', line 19749 def MaxRequestThreshold @MaxRequestThreshold end |
#Name ⇒ Object
19749 19750 19751 |
# File 'lib/v20220901/models.rb', line 19749 def Name @Name end |
#Priority ⇒ Object
19749 19750 19751 |
# File 'lib/v20220901/models.rb', line 19749 def Priority @Priority end |
Instance Method Details
#deserialize(params) ⇒ Object
19764 19765 19766 19767 19768 19769 19770 19771 19772 19773 19774 19775 19776 19777 19778 |
# File 'lib/v20220901/models.rb', line 19764 def deserialize(params) @Id = params['Id'] @Name = params['Name'] @Condition = params['Condition'] @CountBy = params['CountBy'] @MaxRequestThreshold = params['MaxRequestThreshold'] @CountingPeriod = params['CountingPeriod'] @ActionDuration = params['ActionDuration'] unless params['Action'].nil? @Action = SecurityAction.new @Action.deserialize(params['Action']) end @Priority = params['Priority'] @Enabled = params['Enabled'] end |