Class: TencentCloud::Trp::V20210515::CustomRule
- Inherits:
-
Common::AbstractModel
- Object
- Common::AbstractModel
- TencentCloud::Trp::V20210515::CustomRule
- Defined in:
- lib/v20210515/models.rb
Overview
码规则
Instance Attribute Summary collapse
- #CodeLength ⇒ Object
- #CodeParts ⇒ Object
- #CorpId ⇒ Object
- #CreateTime ⇒ Object
- #CustomId ⇒ Object
- #MerchantId ⇒ Object
- #Name ⇒ Object
- #Status ⇒ Object
- #UpdateTime ⇒ Object
Instance Method Summary collapse
- #deserialize(params) ⇒ Object
-
#initialize(customid = nil, name = nil, corpid = nil, merchantid = nil, codelength = nil, status = nil, codeparts = nil, createtime = nil, updatetime = nil) ⇒ CustomRule
constructor
A new instance of CustomRule.
Constructor Details
#initialize(customid = nil, name = nil, corpid = nil, merchantid = nil, codelength = nil, status = nil, codeparts = nil, createtime = nil, updatetime = nil) ⇒ CustomRule
Returns a new instance of CustomRule.
1346 1347 1348 1349 1350 1351 1352 1353 1354 1355 1356 |
# File 'lib/v20210515/models.rb', line 1346 def initialize(customid=nil, name=nil, corpid=nil, merchantid=nil, codelength=nil, status=nil, codeparts=nil, createtime=nil, updatetime=nil) @CustomId = customid @Name = name @CorpId = corpid @MerchantId = merchantid @CodeLength = codelength @Status = status @CodeParts = codeparts @CreateTime = createtime @UpdateTime = updatetime end |
Instance Attribute Details
#CodeLength ⇒ Object
1344 1345 1346 |
# File 'lib/v20210515/models.rb', line 1344 def CodeLength @CodeLength end |
#CodeParts ⇒ Object
1344 1345 1346 |
# File 'lib/v20210515/models.rb', line 1344 def CodeParts @CodeParts end |
#CorpId ⇒ Object
1344 1345 1346 |
# File 'lib/v20210515/models.rb', line 1344 def CorpId @CorpId end |
#CreateTime ⇒ Object
1344 1345 1346 |
# File 'lib/v20210515/models.rb', line 1344 def CreateTime @CreateTime end |
#CustomId ⇒ Object
1344 1345 1346 |
# File 'lib/v20210515/models.rb', line 1344 def CustomId @CustomId end |
#MerchantId ⇒ Object
1344 1345 1346 |
# File 'lib/v20210515/models.rb', line 1344 def MerchantId @MerchantId end |
#Name ⇒ Object
1344 1345 1346 |
# File 'lib/v20210515/models.rb', line 1344 def Name @Name end |
#Status ⇒ Object
1344 1345 1346 |
# File 'lib/v20210515/models.rb', line 1344 def Status @Status end |
#UpdateTime ⇒ Object
1344 1345 1346 |
# File 'lib/v20210515/models.rb', line 1344 def UpdateTime @UpdateTime end |
Instance Method Details
#deserialize(params) ⇒ Object
1358 1359 1360 1361 1362 1363 1364 1365 1366 1367 1368 1369 1370 1371 1372 1373 1374 1375 |
# File 'lib/v20210515/models.rb', line 1358 def deserialize(params) @CustomId = params['CustomId'] @Name = params['Name'] @CorpId = params['CorpId'] @MerchantId = params['MerchantId'] @CodeLength = params['CodeLength'] @Status = params['Status'] unless params['CodeParts'].nil? @CodeParts = [] params['CodeParts'].each do |i| codepart_tmp = CodePart.new codepart_tmp.deserialize(i) @CodeParts << codepart_tmp end end @CreateTime = params['CreateTime'] @UpdateTime = params['UpdateTime'] end |