Class: TencentCloud::Trp::V20210515::CreateCustomRuleRequest

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

Overview

CreateCustomRule请求参数结构体

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(name = nil, merchantid = nil, codelength = nil, codeparts = nil, corpid = nil) ⇒ CreateCustomRuleRequest

Returns a new instance of CreateCustomRuleRequest.



919
920
921
922
923
924
925
# File 'lib/v20210515/models.rb', line 919

def initialize(name=nil, merchantid=nil, codelength=nil, codeparts=nil, corpid=nil)
  @Name = name
  @MerchantId = merchantid
  @CodeLength = codelength
  @CodeParts = codeparts
  @CorpId = corpid
end

Instance Attribute Details

#CodeLengthObject

Parameters:

  • Name:

    规则名称

  • MerchantId:

    商户ID

  • CodeLength:

    码长度

  • CodeParts:

    码段配置

  • CorpId:

    企业ID



917
918
919
# File 'lib/v20210515/models.rb', line 917

def CodeLength
  @CodeLength
end

#CodePartsObject

Parameters:

  • Name:

    规则名称

  • MerchantId:

    商户ID

  • CodeLength:

    码长度

  • CodeParts:

    码段配置

  • CorpId:

    企业ID



917
918
919
# File 'lib/v20210515/models.rb', line 917

def CodeParts
  @CodeParts
end

#CorpIdObject

Parameters:

  • Name:

    规则名称

  • MerchantId:

    商户ID

  • CodeLength:

    码长度

  • CodeParts:

    码段配置

  • CorpId:

    企业ID



917
918
919
# File 'lib/v20210515/models.rb', line 917

def CorpId
  @CorpId
end

#MerchantIdObject

Parameters:

  • Name:

    规则名称

  • MerchantId:

    商户ID

  • CodeLength:

    码长度

  • CodeParts:

    码段配置

  • CorpId:

    企业ID



917
918
919
# File 'lib/v20210515/models.rb', line 917

def MerchantId
  @MerchantId
end

#NameObject

Parameters:

  • Name:

    规则名称

  • MerchantId:

    商户ID

  • CodeLength:

    码长度

  • CodeParts:

    码段配置

  • CorpId:

    企业ID



917
918
919
# File 'lib/v20210515/models.rb', line 917

def Name
  @Name
end

Instance Method Details

#deserialize(params) ⇒ Object



927
928
929
930
931
932
933
934
935
936
937
938
939
940
# File 'lib/v20210515/models.rb', line 927

def deserialize(params)
  @Name = params['Name']
  @MerchantId = params['MerchantId']
  @CodeLength = params['CodeLength']
  unless params['CodeParts'].nil?
    @CodeParts = []
    params['CodeParts'].each do |i|
      codepart_tmp = CodePart.new
      codepart_tmp.deserialize(i)
      @CodeParts << codepart_tmp
    end
  end
  @CorpId = params['CorpId']
end