Class: TencentCloud::Waf::V20180125::ModifyWafAutoDenyRulesResponse

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

Overview

ModifyWafAutoDenyRules返回参数结构体

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(success = nil, requestid = nil) ⇒ ModifyWafAutoDenyRulesResponse

Returns a new instance of ModifyWafAutoDenyRulesResponse.



11502
11503
11504
11505
# File 'lib/v20180125/models.rb', line 11502

def initialize(success=nil, requestid=nil)
  @Success = success
  @RequestId = requestid
end

Instance Attribute Details

#RequestIdObject

Parameters:

  • Success:

    成功的状态码,需要JSON解码后再使用,返回的格式是“域名”:“状态”,成功的状态码为Success,其它的为失败的状态码(yunapi定义的错误码)

  • RequestId:

    唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。



11500
11501
11502
# File 'lib/v20180125/models.rb', line 11500

def RequestId
  @RequestId
end

#SuccessObject

Parameters:

  • Success:

    成功的状态码,需要JSON解码后再使用,返回的格式是“域名”:“状态”,成功的状态码为Success,其它的为失败的状态码(yunapi定义的错误码)

  • RequestId:

    唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。



11500
11501
11502
# File 'lib/v20180125/models.rb', line 11500

def Success
  @Success
end

Instance Method Details

#deserialize(params) ⇒ Object



11507
11508
11509
11510
11511
11512
11513
# File 'lib/v20180125/models.rb', line 11507

def deserialize(params)
  unless params['Success'].nil?
    @Success = ResponseCode.new
    @Success.deserialize(params['Success'])
  end
  @RequestId = params['RequestId']
end