Class: TencentCloud::Dayu::V20180709::CreateL7CCRuleResponse

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

Overview

CreateL7CCRule返回参数结构体

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(ruleconfig = nil, requestid = nil) ⇒ CreateL7CCRuleResponse

Returns a new instance of CreateL7CCRuleResponse.



1003
1004
1005
1006
# File 'lib/v20180709/models.rb', line 1003

def initialize(ruleconfig=nil, requestid=nil)
  @RuleConfig = ruleconfig
  @RequestId = requestid
end

Instance Attribute Details

#RequestIdObject

Parameters:

  • RuleConfig:

    7层CC自定义规则参数,当没有开启CC自定义规则时,返回空数组

  • RequestId:

    唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。



1001
1002
1003
# File 'lib/v20180709/models.rb', line 1001

def RequestId
  @RequestId
end

#RuleConfigObject

Parameters:

  • RuleConfig:

    7层CC自定义规则参数,当没有开启CC自定义规则时,返回空数组

  • RequestId:

    唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。



1001
1002
1003
# File 'lib/v20180709/models.rb', line 1001

def RuleConfig
  @RuleConfig
end

Instance Method Details

#deserialize(params) ⇒ Object



1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
# File 'lib/v20180709/models.rb', line 1008

def deserialize(params)
  unless params['RuleConfig'].nil?
    @RuleConfig = []
    params['RuleConfig'].each do |i|
      ccruleconfig_tmp = CCRuleConfig.new
      ccruleconfig_tmp.deserialize(i)
      @RuleConfig << ccruleconfig_tmp
    end
  end
  @RequestId = params['RequestId']
end