Class: TencentCloud::Trp::V20210515::ModifyCustomRuleRequest

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

Overview

ModifyCustomRule请求参数结构体

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(customid = nil, name = nil, codelength = nil, codeparts = nil, corpid = nil) ⇒ ModifyCustomRuleRequest

Returns a new instance of ModifyCustomRuleRequest.



3267
3268
3269
3270
3271
3272
3273
# File 'lib/v20210515/models.rb', line 3267

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

Instance Attribute Details

#CodeLengthObject

Parameters:

  • CustomId:

    码规则ID

  • Name:

    规则名称

  • CodeLength:

    码长度

  • CodeParts:

    码段配置

  • CorpId:

    企业ID



3265
3266
3267
# File 'lib/v20210515/models.rb', line 3265

def CodeLength
  @CodeLength
end

#CodePartsObject

Parameters:

  • CustomId:

    码规则ID

  • Name:

    规则名称

  • CodeLength:

    码长度

  • CodeParts:

    码段配置

  • CorpId:

    企业ID



3265
3266
3267
# File 'lib/v20210515/models.rb', line 3265

def CodeParts
  @CodeParts
end

#CorpIdObject

Parameters:

  • CustomId:

    码规则ID

  • Name:

    规则名称

  • CodeLength:

    码长度

  • CodeParts:

    码段配置

  • CorpId:

    企业ID



3265
3266
3267
# File 'lib/v20210515/models.rb', line 3265

def CorpId
  @CorpId
end

#CustomIdObject

Parameters:

  • CustomId:

    码规则ID

  • Name:

    规则名称

  • CodeLength:

    码长度

  • CodeParts:

    码段配置

  • CorpId:

    企业ID



3265
3266
3267
# File 'lib/v20210515/models.rb', line 3265

def CustomId
  @CustomId
end

#NameObject

Parameters:

  • CustomId:

    码规则ID

  • Name:

    规则名称

  • CodeLength:

    码长度

  • CodeParts:

    码段配置

  • CorpId:

    企业ID



3265
3266
3267
# File 'lib/v20210515/models.rb', line 3265

def Name
  @Name
end

Instance Method Details

#deserialize(params) ⇒ Object



3275
3276
3277
3278
3279
3280
3281
3282
3283
3284
3285
3286
3287
3288
# File 'lib/v20210515/models.rb', line 3275

def deserialize(params)
  @CustomId = params['CustomId']
  @Name = params['Name']
  @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