Class: TencentCloud::Dayu::V20180709::CreateL7CCRuleRequest

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(business = nil, id = nil, method = nil, ruleid = nil, ruleconfig = nil) ⇒ CreateL7CCRuleRequest



970
971
972
973
974
975
976
# File 'lib/v20180709/models.rb', line 970

def initialize(business=nil, id=nil, method=nil, ruleid=nil, ruleconfig=nil)
  @Business = business
  @Id = id
  @Method = method
  @RuleId = ruleid
  @RuleConfig = ruleconfig
end

Instance Attribute Details

#BusinessObject



968
969
970
# File 'lib/v20180709/models.rb', line 968

def Business
  @Business
end

#IdObject



968
969
970
# File 'lib/v20180709/models.rb', line 968

def Id
  @Id
end

#MethodObject



968
969
970
# File 'lib/v20180709/models.rb', line 968

def Method
  @Method
end

#RuleConfigObject



968
969
970
# File 'lib/v20180709/models.rb', line 968

def RuleConfig
  @RuleConfig
end

#RuleIdObject



968
969
970
# File 'lib/v20180709/models.rb', line 968

def RuleId
  @RuleId
end

Instance Method Details

#deserialize(params) ⇒ Object



978
979
980
981
982
983
984
985
986
987
988
989
990
991
# File 'lib/v20180709/models.rb', line 978

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