Class: TencentCloud::Tse::V20201207::RateLimitResponse
- Inherits:
-
Common::AbstractModel
- Object
- Common::AbstractModel
- TencentCloud::Tse::V20201207::RateLimitResponse
- Defined in:
- lib/v20201207/models.rb
Overview
云原生网关限流插件自定义响应
Instance Attribute Summary collapse
Instance Method Summary collapse
- #deserialize(params) ⇒ Object
-
#initialize(body = nil, headers = nil, httpstatus = nil) ⇒ RateLimitResponse
constructor
A new instance of RateLimitResponse.
Constructor Details
#initialize(body = nil, headers = nil, httpstatus = nil) ⇒ RateLimitResponse
Returns a new instance of RateLimitResponse.
11108 11109 11110 11111 11112 |
# File 'lib/v20201207/models.rb', line 11108 def initialize(body=nil, headers=nil, httpstatus=nil) @Body = body @Headers = headers @HttpStatus = httpstatus end |
Instance Attribute Details
#Body ⇒ Object
11106 11107 11108 |
# File 'lib/v20201207/models.rb', line 11106 def Body @Body end |
#Headers ⇒ Object
11106 11107 11108 |
# File 'lib/v20201207/models.rb', line 11106 def Headers @Headers end |
#HttpStatus ⇒ Object
11106 11107 11108 |
# File 'lib/v20201207/models.rb', line 11106 def HttpStatus @HttpStatus end |
Instance Method Details
#deserialize(params) ⇒ Object
11114 11115 11116 11117 11118 11119 11120 11121 11122 11123 11124 11125 |
# File 'lib/v20201207/models.rb', line 11114 def deserialize(params) @Body = params['Body'] unless params['Headers'].nil? @Headers = [] params['Headers'].each do |i| kvmapping_tmp = KVMapping.new kvmapping_tmp.deserialize(i) @Headers << kvmapping_tmp end end @HttpStatus = params['HttpStatus'] end |