Class: TencentCloud::Tse::V20201207::RateLimitResponse

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

Overview

云原生网关限流插件自定义响应

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#BodyObject

Parameters:

  • Body:

    自定义响应体

  • Headers:

    Headers

  • HttpStatus:

    http状态码



11088
11089
11090
# File 'lib/v20201207/models.rb', line 11088

def Body
  @Body
end

#HeadersObject

Parameters:

  • Body:

    自定义响应体

  • Headers:

    Headers

  • HttpStatus:

    http状态码



11088
11089
11090
# File 'lib/v20201207/models.rb', line 11088

def Headers
  @Headers
end

#HttpStatusObject

Parameters:

  • Body:

    自定义响应体

  • Headers:

    Headers

  • HttpStatus:

    http状态码



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