Class: TencentCloud::Waf::V20180125::ModifyCustomRuleResponse

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

Overview

ModifyCustomRule返回参数结构体

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

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

Returns a new instance of ModifyCustomRuleResponse.



10112
10113
10114
10115
# File 'lib/v20180125/models.rb', line 10112

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

Instance Attribute Details

#RequestIdObject

Parameters:

  • Success:

    操作的状态码,如果所有的资源操作成功则返回的是成功的状态码,如果有资源操作失败则需要解析Message的内容来查看哪个资源失败

  • RequestId:

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



10110
10111
10112
# File 'lib/v20180125/models.rb', line 10110

def RequestId
  @RequestId
end

#SuccessObject

Parameters:

  • Success:

    操作的状态码,如果所有的资源操作成功则返回的是成功的状态码,如果有资源操作失败则需要解析Message的内容来查看哪个资源失败

  • RequestId:

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



10110
10111
10112
# File 'lib/v20180125/models.rb', line 10110

def Success
  @Success
end

Instance Method Details

#deserialize(params) ⇒ Object



10117
10118
10119
10120
10121
10122
10123
# File 'lib/v20180125/models.rb', line 10117

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