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.
11090 11091 11092 11093 11094 |
# File 'lib/v20201207/models.rb', line 11090 def initialize(body=nil, headers=nil, httpstatus=nil) @Body = body @Headers = headers @HttpStatus = httpstatus end |
Instance Attribute Details
#Body ⇒ Object
11088 11089 11090 |
# File 'lib/v20201207/models.rb', line 11088 def Body @Body end |
#Headers ⇒ Object
11088 11089 11090 |
# File 'lib/v20201207/models.rb', line 11088 def Headers @Headers end |
#HttpStatus ⇒ Object
11088 11089 11090 |
# File 'lib/v20201207/models.rb', line 11088 def HttpStatus @HttpStatus end |
Instance Method Details
#deserialize(params) ⇒ Object
11096 11097 11098 11099 11100 11101 11102 11103 11104 11105 11106 11107 |
# File 'lib/v20201207/models.rb', line 11096 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 |