tencentcloud-sdk-trp 3.0.427 → 3.0.429

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 93865859c1a4af76b4788677a12a891ee0b560c5
4
- data.tar.gz: 6df7a683d43b1f6e25d08f61b50447667f155022
3
+ metadata.gz: a4ca7a916acd9650511f313450d1bc27f0a27bae
4
+ data.tar.gz: 86ee142e199c4d9d59c847e3eaa5ce45250fb453
5
5
  SHA512:
6
- metadata.gz: d48c9f55d8fdada6f8d84d77b31082c459b6da4dc11adb116fb292b781ceb470757f411c074c33cc961bea604add92eddcf56dbafc8c34210510ccbda5a49760
7
- data.tar.gz: 5e059c799561e9366c27f6d26aa54f9e05d3876322058087a472058e8106f3ff811cb262bea68fee5ab240e4edbd73a75194368681b23c77cb3f8054948f9345
6
+ metadata.gz: 6e6426b0434ddf3753b66fb88abbf9e8908bcb6156eaec92802fe5b9265ed783f97da720f8a06a01b2bd578577a2a0575d63594360d53b7cedf115e297f6a481
7
+ data.tar.gz: b23db07714b1306387bb7502597371438653a78510f5f0d6ab9ff729d27ba485eb9c15526c738f30540c93fa63b319e87db7ff9cfc3e5006873198d1183f5c1c
data/lib/VERSION CHANGED
@@ -1 +1 @@
1
- 3.0.427
1
+ 3.0.429
@@ -77,6 +77,54 @@ module TencentCloud
77
77
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
78
78
  end
79
79
 
80
+ # 生成自定义码包
81
+
82
+ # @param request: Request instance for CreateCustomPack.
83
+ # @type request: :class:`Tencentcloud::trp::V20210515::CreateCustomPackRequest`
84
+ # @rtype: :class:`Tencentcloud::trp::V20210515::CreateCustomPackResponse`
85
+ def CreateCustomPack(request)
86
+ body = send_request('CreateCustomPack', request.serialize)
87
+ response = JSON.parse(body)
88
+ if response['Response'].key?('Error') == false
89
+ model = CreateCustomPackResponse.new
90
+ model.deserialize(response['Response'])
91
+ model
92
+ else
93
+ code = response['Response']['Error']['Code']
94
+ message = response['Response']['Error']['Message']
95
+ reqid = response['Response']['RequestId']
96
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
97
+ end
98
+ rescue TencentCloud::Common::TencentCloudSDKException => e
99
+ raise e
100
+ rescue StandardError => e
101
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
102
+ end
103
+
104
+ # 新建自定义码规则
105
+
106
+ # @param request: Request instance for CreateCustomRule.
107
+ # @type request: :class:`Tencentcloud::trp::V20210515::CreateCustomRuleRequest`
108
+ # @rtype: :class:`Tencentcloud::trp::V20210515::CreateCustomRuleResponse`
109
+ def CreateCustomRule(request)
110
+ body = send_request('CreateCustomRule', request.serialize)
111
+ response = JSON.parse(body)
112
+ if response['Response'].key?('Error') == false
113
+ model = CreateCustomRuleResponse.new
114
+ model.deserialize(response['Response'])
115
+ model
116
+ else
117
+ code = response['Response']['Error']['Code']
118
+ message = response['Response']['Error']['Message']
119
+ reqid = response['Response']['RequestId']
120
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
121
+ end
122
+ rescue TencentCloud::Common::TencentCloudSDKException => e
123
+ raise e
124
+ rescue StandardError => e
125
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
126
+ end
127
+
80
128
  # 新建商户
81
129
 
82
130
  # @param request: Request instance for CreateMerchant.
@@ -173,6 +221,30 @@ module TencentCloud
173
221
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
174
222
  end
175
223
 
224
+ # 异步导入激活码包,如果是第三方码包,需要域名跟配置的匹配
225
+
226
+ # @param request: Request instance for CreateTraceCodesAsync.
227
+ # @type request: :class:`Tencentcloud::trp::V20210515::CreateTraceCodesAsyncRequest`
228
+ # @rtype: :class:`Tencentcloud::trp::V20210515::CreateTraceCodesAsyncResponse`
229
+ def CreateTraceCodesAsync(request)
230
+ body = send_request('CreateTraceCodesAsync', request.serialize)
231
+ response = JSON.parse(body)
232
+ if response['Response'].key?('Error') == false
233
+ model = CreateTraceCodesAsyncResponse.new
234
+ model.deserialize(response['Response'])
235
+ model
236
+ else
237
+ code = response['Response']['Error']['Code']
238
+ message = response['Response']['Error']['Message']
239
+ reqid = response['Response']['RequestId']
240
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
241
+ end
242
+ rescue TencentCloud::Common::TencentCloudSDKException => e
243
+ raise e
244
+ rescue StandardError => e
245
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
246
+ end
247
+
176
248
  # 新增溯源信息
177
249
 
178
250
  # @param request: Request instance for CreateTraceData.
@@ -341,6 +413,54 @@ module TencentCloud
341
413
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
342
414
  end
343
415
 
416
+ # 查询码包状态
417
+
418
+ # @param request: Request instance for DescribeCodePackStatus.
419
+ # @type request: :class:`Tencentcloud::trp::V20210515::DescribeCodePackStatusRequest`
420
+ # @rtype: :class:`Tencentcloud::trp::V20210515::DescribeCodePackStatusResponse`
421
+ def DescribeCodePackStatus(request)
422
+ body = send_request('DescribeCodePackStatus', request.serialize)
423
+ response = JSON.parse(body)
424
+ if response['Response'].key?('Error') == false
425
+ model = DescribeCodePackStatusResponse.new
426
+ model.deserialize(response['Response'])
427
+ model
428
+ else
429
+ code = response['Response']['Error']['Code']
430
+ message = response['Response']['Error']['Message']
431
+ reqid = response['Response']['RequestId']
432
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
433
+ end
434
+ rescue TencentCloud::Common::TencentCloudSDKException => e
435
+ raise e
436
+ rescue StandardError => e
437
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
438
+ end
439
+
440
+ # 查询码包地址
441
+
442
+ # @param request: Request instance for DescribeCodePackUrl.
443
+ # @type request: :class:`Tencentcloud::trp::V20210515::DescribeCodePackUrlRequest`
444
+ # @rtype: :class:`Tencentcloud::trp::V20210515::DescribeCodePackUrlResponse`
445
+ def DescribeCodePackUrl(request)
446
+ body = send_request('DescribeCodePackUrl', request.serialize)
447
+ response = JSON.parse(body)
448
+ if response['Response'].key?('Error') == false
449
+ model = DescribeCodePackUrlResponse.new
450
+ model.deserialize(response['Response'])
451
+ model
452
+ else
453
+ code = response['Response']['Error']['Code']
454
+ message = response['Response']['Error']['Message']
455
+ reqid = response['Response']['RequestId']
456
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
457
+ end
458
+ rescue TencentCloud::Common::TencentCloudSDKException => e
459
+ raise e
460
+ rescue StandardError => e
461
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
462
+ end
463
+
344
464
  # 查询码包列表
345
465
 
346
466
  # @param request: Request instance for DescribeCodePacks.
@@ -389,6 +509,78 @@ module TencentCloud
389
509
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
390
510
  end
391
511
 
512
+ # 查自定义码规则
513
+
514
+ # @param request: Request instance for DescribeCustomRuleById.
515
+ # @type request: :class:`Tencentcloud::trp::V20210515::DescribeCustomRuleByIdRequest`
516
+ # @rtype: :class:`Tencentcloud::trp::V20210515::DescribeCustomRuleByIdResponse`
517
+ def DescribeCustomRuleById(request)
518
+ body = send_request('DescribeCustomRuleById', request.serialize)
519
+ response = JSON.parse(body)
520
+ if response['Response'].key?('Error') == false
521
+ model = DescribeCustomRuleByIdResponse.new
522
+ model.deserialize(response['Response'])
523
+ model
524
+ else
525
+ code = response['Response']['Error']['Code']
526
+ message = response['Response']['Error']['Message']
527
+ reqid = response['Response']['RequestId']
528
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
529
+ end
530
+ rescue TencentCloud::Common::TencentCloudSDKException => e
531
+ raise e
532
+ rescue StandardError => e
533
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
534
+ end
535
+
536
+ # 查自定义码规则列表
537
+
538
+ # @param request: Request instance for DescribeCustomRules.
539
+ # @type request: :class:`Tencentcloud::trp::V20210515::DescribeCustomRulesRequest`
540
+ # @rtype: :class:`Tencentcloud::trp::V20210515::DescribeCustomRulesResponse`
541
+ def DescribeCustomRules(request)
542
+ body = send_request('DescribeCustomRules', request.serialize)
543
+ response = JSON.parse(body)
544
+ if response['Response'].key?('Error') == false
545
+ model = DescribeCustomRulesResponse.new
546
+ model.deserialize(response['Response'])
547
+ model
548
+ else
549
+ code = response['Response']['Error']['Code']
550
+ message = response['Response']['Error']['Message']
551
+ reqid = response['Response']['RequestId']
552
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
553
+ end
554
+ rescue TencentCloud::Common::TencentCloudSDKException => e
555
+ raise e
556
+ rescue StandardError => e
557
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
558
+ end
559
+
560
+ # 获取异步任务的输出地址
561
+
562
+ # @param request: Request instance for DescribeJobFileUrl.
563
+ # @type request: :class:`Tencentcloud::trp::V20210515::DescribeJobFileUrlRequest`
564
+ # @rtype: :class:`Tencentcloud::trp::V20210515::DescribeJobFileUrlResponse`
565
+ def DescribeJobFileUrl(request)
566
+ body = send_request('DescribeJobFileUrl', request.serialize)
567
+ response = JSON.parse(body)
568
+ if response['Response'].key?('Error') == false
569
+ model = DescribeJobFileUrlResponse.new
570
+ model.deserialize(response['Response'])
571
+ model
572
+ else
573
+ code = response['Response']['Error']['Code']
574
+ message = response['Response']['Error']['Message']
575
+ reqid = response['Response']['RequestId']
576
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
577
+ end
578
+ rescue TencentCloud::Common::TencentCloudSDKException => e
579
+ raise e
580
+ rescue StandardError => e
581
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
582
+ end
583
+
392
584
  # 查询商户信息
393
585
 
394
586
  # @param request: Request instance for DescribeMerchantById.
@@ -581,6 +773,54 @@ module TencentCloud
581
773
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
582
774
  end
583
775
 
776
+ # 修改自定义码规则
777
+
778
+ # @param request: Request instance for ModifyCustomRule.
779
+ # @type request: :class:`Tencentcloud::trp::V20210515::ModifyCustomRuleRequest`
780
+ # @rtype: :class:`Tencentcloud::trp::V20210515::ModifyCustomRuleResponse`
781
+ def ModifyCustomRule(request)
782
+ body = send_request('ModifyCustomRule', request.serialize)
783
+ response = JSON.parse(body)
784
+ if response['Response'].key?('Error') == false
785
+ model = ModifyCustomRuleResponse.new
786
+ model.deserialize(response['Response'])
787
+ model
788
+ else
789
+ code = response['Response']['Error']['Code']
790
+ message = response['Response']['Error']['Message']
791
+ reqid = response['Response']['RequestId']
792
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
793
+ end
794
+ rescue TencentCloud::Common::TencentCloudSDKException => e
795
+ raise e
796
+ rescue StandardError => e
797
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
798
+ end
799
+
800
+ # 更新自定义码规则状态
801
+
802
+ # @param request: Request instance for ModifyCustomRuleStatus.
803
+ # @type request: :class:`Tencentcloud::trp::V20210515::ModifyCustomRuleStatusRequest`
804
+ # @rtype: :class:`Tencentcloud::trp::V20210515::ModifyCustomRuleStatusResponse`
805
+ def ModifyCustomRuleStatus(request)
806
+ body = send_request('ModifyCustomRuleStatus', request.serialize)
807
+ response = JSON.parse(body)
808
+ if response['Response'].key?('Error') == false
809
+ model = ModifyCustomRuleStatusResponse.new
810
+ model.deserialize(response['Response'])
811
+ model
812
+ else
813
+ code = response['Response']['Error']['Code']
814
+ message = response['Response']['Error']['Message']
815
+ reqid = response['Response']['RequestId']
816
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
817
+ end
818
+ rescue TencentCloud::Common::TencentCloudSDKException => e
819
+ raise e
820
+ rescue StandardError => e
821
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
822
+ end
823
+
584
824
  # 编辑商户
585
825
 
586
826
  # @param request: Request instance for ModifyMerchant.
@@ -163,6 +163,42 @@ module TencentCloud
163
163
  end
164
164
  end
165
165
 
166
+ # 码段配置
167
+ class CodePart < TencentCloud::Common::AbstractModel
168
+ # @param Name: 码段名称
169
+ # 注意:此字段可能返回 null,表示取不到有效值。
170
+ # @type Name: String
171
+ # @param Type: 码段类型
172
+ # 注意:此字段可能返回 null,表示取不到有效值。
173
+ # @type Type: String
174
+ # @param Value: 码段内容
175
+ # 注意:此字段可能返回 null,表示取不到有效值。
176
+ # @type Value: String
177
+ # @param Length: 码段长度
178
+ # @type Length: Integer
179
+ # @param Ext: 扩展字段
180
+ # 注意:此字段可能返回 null,表示取不到有效值。
181
+ # @type Ext: String
182
+
183
+ attr_accessor :Name, :Type, :Value, :Length, :Ext
184
+
185
+ def initialize(name=nil, type=nil, value=nil, length=nil, ext=nil)
186
+ @Name = name
187
+ @Type = type
188
+ @Value = value
189
+ @Length = length
190
+ @Ext = ext
191
+ end
192
+
193
+ def deserialize(params)
194
+ @Name = params['Name']
195
+ @Type = params['Type']
196
+ @Value = params['Value']
197
+ @Length = params['Length']
198
+ @Ext = params['Ext']
199
+ end
200
+ end
201
+
166
202
  # CreateCodeBatch请求参数结构体
167
203
  class CreateCodeBatchRequest < TencentCloud::Common::AbstractModel
168
204
  # @param CorpId: 企业ID
@@ -298,6 +334,133 @@ module TencentCloud
298
334
  end
299
335
  end
300
336
 
337
+ # CreateCustomPack请求参数结构体
338
+ class CreateCustomPackRequest < TencentCloud::Common::AbstractModel
339
+ # @param MerchantId: 商户ID
340
+ # @type MerchantId: String
341
+ # @param Amount: 生码数量, 普通码包时必填
342
+ # @type Amount: Integer
343
+ # @param CorpId: 企业ID
344
+ # @type CorpId: Integer
345
+ # @param PackType: 码包类型 0: 普通码包 1: 层级码包
346
+ # @type PackType: Integer
347
+ # @param PackLevel: 码包层级
348
+ # @type PackLevel: Integer
349
+ # @param PackSpec: 层级码包规则 [{ Level, Rate, Amount, CustomId }]
350
+ # @type PackSpec: Array
351
+ # @param CustomId: 码规则ID, 普通码包时必填
352
+ # @type CustomId: String
353
+
354
+ attr_accessor :MerchantId, :Amount, :CorpId, :PackType, :PackLevel, :PackSpec, :CustomId
355
+
356
+ def initialize(merchantid=nil, amount=nil, corpid=nil, packtype=nil, packlevel=nil, packspec=nil, customid=nil)
357
+ @MerchantId = merchantid
358
+ @Amount = amount
359
+ @CorpId = corpid
360
+ @PackType = packtype
361
+ @PackLevel = packlevel
362
+ @PackSpec = packspec
363
+ @CustomId = customid
364
+ end
365
+
366
+ def deserialize(params)
367
+ @MerchantId = params['MerchantId']
368
+ @Amount = params['Amount']
369
+ @CorpId = params['CorpId']
370
+ @PackType = params['PackType']
371
+ @PackLevel = params['PackLevel']
372
+ unless params['PackSpec'].nil?
373
+ @PackSpec = []
374
+ params['PackSpec'].each do |i|
375
+ packspec_tmp = PackSpec.new
376
+ packspec_tmp.deserialize(i)
377
+ @PackSpec << packspec_tmp
378
+ end
379
+ end
380
+ @CustomId = params['CustomId']
381
+ end
382
+ end
383
+
384
+ # CreateCustomPack返回参数结构体
385
+ class CreateCustomPackResponse < TencentCloud::Common::AbstractModel
386
+ # @param PackId: 码包ID
387
+ # @type PackId: String
388
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
389
+ # @type RequestId: String
390
+
391
+ attr_accessor :PackId, :RequestId
392
+
393
+ def initialize(packid=nil, requestid=nil)
394
+ @PackId = packid
395
+ @RequestId = requestid
396
+ end
397
+
398
+ def deserialize(params)
399
+ @PackId = params['PackId']
400
+ @RequestId = params['RequestId']
401
+ end
402
+ end
403
+
404
+ # CreateCustomRule请求参数结构体
405
+ class CreateCustomRuleRequest < TencentCloud::Common::AbstractModel
406
+ # @param Name: 规则名称
407
+ # @type Name: String
408
+ # @param MerchantId: 商户ID
409
+ # @type MerchantId: String
410
+ # @param CodeLength: 码长度
411
+ # @type CodeLength: Integer
412
+ # @param CodeParts: 码段配置
413
+ # @type CodeParts: Array
414
+ # @param CorpId: 企业ID
415
+ # @type CorpId: Integer
416
+
417
+ attr_accessor :Name, :MerchantId, :CodeLength, :CodeParts, :CorpId
418
+
419
+ def initialize(name=nil, merchantid=nil, codelength=nil, codeparts=nil, corpid=nil)
420
+ @Name = name
421
+ @MerchantId = merchantid
422
+ @CodeLength = codelength
423
+ @CodeParts = codeparts
424
+ @CorpId = corpid
425
+ end
426
+
427
+ def deserialize(params)
428
+ @Name = params['Name']
429
+ @MerchantId = params['MerchantId']
430
+ @CodeLength = params['CodeLength']
431
+ unless params['CodeParts'].nil?
432
+ @CodeParts = []
433
+ params['CodeParts'].each do |i|
434
+ codepart_tmp = CodePart.new
435
+ codepart_tmp.deserialize(i)
436
+ @CodeParts << codepart_tmp
437
+ end
438
+ end
439
+ @CorpId = params['CorpId']
440
+ end
441
+ end
442
+
443
+ # CreateCustomRule返回参数结构体
444
+ class CreateCustomRuleResponse < TencentCloud::Common::AbstractModel
445
+ # @param CustomId: 码规则ID
446
+ # 注意:此字段可能返回 null,表示取不到有效值。
447
+ # @type CustomId: String
448
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
449
+ # @type RequestId: String
450
+
451
+ attr_accessor :CustomId, :RequestId
452
+
453
+ def initialize(customid=nil, requestid=nil)
454
+ @CustomId = customid
455
+ @RequestId = requestid
456
+ end
457
+
458
+ def deserialize(params)
459
+ @CustomId = params['CustomId']
460
+ @RequestId = params['RequestId']
461
+ end
462
+ end
463
+
301
464
  # CreateMerchant请求参数结构体
302
465
  class CreateMerchantRequest < TencentCloud::Common::AbstractModel
303
466
  # @param Name: 商户名称
@@ -459,6 +622,51 @@ module TencentCloud
459
622
  end
460
623
  end
461
624
 
625
+ # CreateTraceCodesAsync请求参数结构体
626
+ class CreateTraceCodesAsyncRequest < TencentCloud::Common::AbstractModel
627
+ # @param CorpId: 企业ID
628
+ # @type CorpId: Integer
629
+ # @param BatchId: 批次ID
630
+ # @type BatchId: String
631
+ # @param FileKey: 上传文件Key,仅支持 csv 或者 zip 类型
632
+ # @type FileKey: String
633
+
634
+ attr_accessor :CorpId, :BatchId, :FileKey
635
+
636
+ def initialize(corpid=nil, batchid=nil, filekey=nil)
637
+ @CorpId = corpid
638
+ @BatchId = batchid
639
+ @FileKey = filekey
640
+ end
641
+
642
+ def deserialize(params)
643
+ @CorpId = params['CorpId']
644
+ @BatchId = params['BatchId']
645
+ @FileKey = params['FileKey']
646
+ end
647
+ end
648
+
649
+ # CreateTraceCodesAsync返回参数结构体
650
+ class CreateTraceCodesAsyncResponse < TencentCloud::Common::AbstractModel
651
+ # @param BatchId: 批次ID
652
+ # 注意:此字段可能返回 null,表示取不到有效值。
653
+ # @type BatchId: String
654
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
655
+ # @type RequestId: String
656
+
657
+ attr_accessor :BatchId, :RequestId
658
+
659
+ def initialize(batchid=nil, requestid=nil)
660
+ @BatchId = batchid
661
+ @RequestId = requestid
662
+ end
663
+
664
+ def deserialize(params)
665
+ @BatchId = params['BatchId']
666
+ @RequestId = params['RequestId']
667
+ end
668
+ end
669
+
462
670
  # CreateTraceCodes请求参数结构体
463
671
  class CreateTraceCodesRequest < TencentCloud::Common::AbstractModel
464
672
  # @param BatchId: 批次ID
@@ -604,6 +812,64 @@ module TencentCloud
604
812
  end
605
813
  end
606
814
 
815
+ # 码规则
816
+ class CustomRule < TencentCloud::Common::AbstractModel
817
+ # @param CustomId: 码规则ID
818
+ # @type CustomId: String
819
+ # @param Name: 码规则名
820
+ # 注意:此字段可能返回 null,表示取不到有效值。
821
+ # @type Name: String
822
+ # @param CorpId: 企业ID
823
+ # 注意:此字段可能返回 null,表示取不到有效值。
824
+ # @type CorpId: Integer
825
+ # @param MerchantId: 商户ID
826
+ # 注意:此字段可能返回 null,表示取不到有效值。
827
+ # @type MerchantId: String
828
+ # @param CodeLength: 码ID长度
829
+ # @type CodeLength: Integer
830
+ # @param Status: 规则状态
831
+ # @type Status: Integer
832
+ # @param CodeParts: 码段配置
833
+ # @type CodeParts: Array
834
+ # @param CreateTime: 创建时间
835
+ # @type CreateTime: String
836
+ # @param UpdateTime: 更新时间
837
+ # @type UpdateTime: String
838
+
839
+ attr_accessor :CustomId, :Name, :CorpId, :MerchantId, :CodeLength, :Status, :CodeParts, :CreateTime, :UpdateTime
840
+
841
+ def initialize(customid=nil, name=nil, corpid=nil, merchantid=nil, codelength=nil, status=nil, codeparts=nil, createtime=nil, updatetime=nil)
842
+ @CustomId = customid
843
+ @Name = name
844
+ @CorpId = corpid
845
+ @MerchantId = merchantid
846
+ @CodeLength = codelength
847
+ @Status = status
848
+ @CodeParts = codeparts
849
+ @CreateTime = createtime
850
+ @UpdateTime = updatetime
851
+ end
852
+
853
+ def deserialize(params)
854
+ @CustomId = params['CustomId']
855
+ @Name = params['Name']
856
+ @CorpId = params['CorpId']
857
+ @MerchantId = params['MerchantId']
858
+ @CodeLength = params['CodeLength']
859
+ @Status = params['Status']
860
+ unless params['CodeParts'].nil?
861
+ @CodeParts = []
862
+ params['CodeParts'].each do |i|
863
+ codepart_tmp = CodePart.new
864
+ codepart_tmp.deserialize(i)
865
+ @CodeParts << codepart_tmp
866
+ end
867
+ end
868
+ @CreateTime = params['CreateTime']
869
+ @UpdateTime = params['UpdateTime']
870
+ end
871
+ end
872
+
607
873
  # DeleteCodeBatch请求参数结构体
608
874
  class DeleteCodeBatchRequest < TencentCloud::Common::AbstractModel
609
875
  # @param CorpId: 企业ID
@@ -883,6 +1149,83 @@ module TencentCloud
883
1149
  end
884
1150
  end
885
1151
 
1152
+ # DescribeCodePackStatus请求参数结构体
1153
+ class DescribeCodePackStatusRequest < TencentCloud::Common::AbstractModel
1154
+ # @param PackId: 码包ID
1155
+ # @type PackId: String
1156
+ # @param CorpId: 企业ID
1157
+ # @type CorpId: Integer
1158
+
1159
+ attr_accessor :PackId, :CorpId
1160
+
1161
+ def initialize(packid=nil, corpid=nil)
1162
+ @PackId = packid
1163
+ @CorpId = corpid
1164
+ end
1165
+
1166
+ def deserialize(params)
1167
+ @PackId = params['PackId']
1168
+ @CorpId = params['CorpId']
1169
+ end
1170
+ end
1171
+
1172
+ # DescribeCodePackStatus返回参数结构体
1173
+ class DescribeCodePackStatusResponse < TencentCloud::Common::AbstractModel
1174
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
1175
+ # @type RequestId: String
1176
+
1177
+ attr_accessor :RequestId
1178
+
1179
+ def initialize(requestid=nil)
1180
+ @RequestId = requestid
1181
+ end
1182
+
1183
+ def deserialize(params)
1184
+ @RequestId = params['RequestId']
1185
+ end
1186
+ end
1187
+
1188
+ # DescribeCodePackUrl请求参数结构体
1189
+ class DescribeCodePackUrlRequest < TencentCloud::Common::AbstractModel
1190
+ # @param PackId: 码包ID
1191
+ # @type PackId: String
1192
+ # @param CorpId: 企业ID
1193
+ # @type CorpId: Integer
1194
+
1195
+ attr_accessor :PackId, :CorpId
1196
+
1197
+ def initialize(packid=nil, corpid=nil)
1198
+ @PackId = packid
1199
+ @CorpId = corpid
1200
+ end
1201
+
1202
+ def deserialize(params)
1203
+ @PackId = params['PackId']
1204
+ @CorpId = params['CorpId']
1205
+ end
1206
+ end
1207
+
1208
+ # DescribeCodePackUrl返回参数结构体
1209
+ class DescribeCodePackUrlResponse < TencentCloud::Common::AbstractModel
1210
+ # @param Url: 文字码包地址
1211
+ # 注意:此字段可能返回 null,表示取不到有效值。
1212
+ # @type Url: String
1213
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
1214
+ # @type RequestId: String
1215
+
1216
+ attr_accessor :Url, :RequestId
1217
+
1218
+ def initialize(url=nil, requestid=nil)
1219
+ @Url = url
1220
+ @RequestId = requestid
1221
+ end
1222
+
1223
+ def deserialize(params)
1224
+ @Url = params['Url']
1225
+ @RequestId = params['RequestId']
1226
+ end
1227
+ end
1228
+
886
1229
  # DescribeCodePacks请求参数结构体
887
1230
  class DescribeCodePacksRequest < TencentCloud::Common::AbstractModel
888
1231
  # @param PageSize: 每页数量
@@ -975,6 +1318,155 @@ module TencentCloud
975
1318
  end
976
1319
  end
977
1320
 
1321
+ # DescribeCustomRuleById请求参数结构体
1322
+ class DescribeCustomRuleByIdRequest < TencentCloud::Common::AbstractModel
1323
+ # @param CustomId: 码规则ID
1324
+ # @type CustomId: String
1325
+ # @param CorpId: 企业ID
1326
+ # @type CorpId: Integer
1327
+
1328
+ attr_accessor :CustomId, :CorpId
1329
+
1330
+ def initialize(customid=nil, corpid=nil)
1331
+ @CustomId = customid
1332
+ @CorpId = corpid
1333
+ end
1334
+
1335
+ def deserialize(params)
1336
+ @CustomId = params['CustomId']
1337
+ @CorpId = params['CorpId']
1338
+ end
1339
+ end
1340
+
1341
+ # DescribeCustomRuleById返回参数结构体
1342
+ class DescribeCustomRuleByIdResponse < TencentCloud::Common::AbstractModel
1343
+ # @param CustomRule: 码规则信息
1344
+ # 注意:此字段可能返回 null,表示取不到有效值。
1345
+ # @type CustomRule: :class:`Tencentcloud::Trp.v20210515.models.CustomRule`
1346
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
1347
+ # @type RequestId: String
1348
+
1349
+ attr_accessor :CustomRule, :RequestId
1350
+
1351
+ def initialize(customrule=nil, requestid=nil)
1352
+ @CustomRule = customrule
1353
+ @RequestId = requestid
1354
+ end
1355
+
1356
+ def deserialize(params)
1357
+ unless params['CustomRule'].nil?
1358
+ @CustomRule = CustomRule.new
1359
+ @CustomRule.deserialize(params['CustomRule'])
1360
+ end
1361
+ @RequestId = params['RequestId']
1362
+ end
1363
+ end
1364
+
1365
+ # DescribeCustomRules请求参数结构体
1366
+ class DescribeCustomRulesRequest < TencentCloud::Common::AbstractModel
1367
+ # @param Keyword: 搜索关键字
1368
+ # @type Keyword: String
1369
+ # @param PageSize: 条数
1370
+ # @type PageSize: Integer
1371
+ # @param PageNumber: 页数
1372
+ # @type PageNumber: Integer
1373
+ # @param CorpId: 企业ID
1374
+ # @type CorpId: Integer
1375
+ # @param Status: 码规则状态 0:未生效 1:已生效 -1:已失效
1376
+ # @type Status: Integer
1377
+ # @param MerchantId: 商户ID
1378
+ # @type MerchantId: String
1379
+
1380
+ attr_accessor :Keyword, :PageSize, :PageNumber, :CorpId, :Status, :MerchantId
1381
+
1382
+ def initialize(keyword=nil, pagesize=nil, pagenumber=nil, corpid=nil, status=nil, merchantid=nil)
1383
+ @Keyword = keyword
1384
+ @PageSize = pagesize
1385
+ @PageNumber = pagenumber
1386
+ @CorpId = corpid
1387
+ @Status = status
1388
+ @MerchantId = merchantid
1389
+ end
1390
+
1391
+ def deserialize(params)
1392
+ @Keyword = params['Keyword']
1393
+ @PageSize = params['PageSize']
1394
+ @PageNumber = params['PageNumber']
1395
+ @CorpId = params['CorpId']
1396
+ @Status = params['Status']
1397
+ @MerchantId = params['MerchantId']
1398
+ end
1399
+ end
1400
+
1401
+ # DescribeCustomRules返回参数结构体
1402
+ class DescribeCustomRulesResponse < TencentCloud::Common::AbstractModel
1403
+ # @param CustomRules: 码规则列表
1404
+ # 注意:此字段可能返回 null,表示取不到有效值。
1405
+ # @type CustomRules: Array
1406
+ # @param TotalCount: 总数
1407
+ # 注意:此字段可能返回 null,表示取不到有效值。
1408
+ # @type TotalCount: Integer
1409
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
1410
+ # @type RequestId: String
1411
+
1412
+ attr_accessor :CustomRules, :TotalCount, :RequestId
1413
+
1414
+ def initialize(customrules=nil, totalcount=nil, requestid=nil)
1415
+ @CustomRules = customrules
1416
+ @TotalCount = totalcount
1417
+ @RequestId = requestid
1418
+ end
1419
+
1420
+ def deserialize(params)
1421
+ unless params['CustomRules'].nil?
1422
+ @CustomRules = []
1423
+ params['CustomRules'].each do |i|
1424
+ customrule_tmp = CustomRule.new
1425
+ customrule_tmp.deserialize(i)
1426
+ @CustomRules << customrule_tmp
1427
+ end
1428
+ end
1429
+ @TotalCount = params['TotalCount']
1430
+ @RequestId = params['RequestId']
1431
+ end
1432
+ end
1433
+
1434
+ # DescribeJobFileUrl请求参数结构体
1435
+ class DescribeJobFileUrlRequest < TencentCloud::Common::AbstractModel
1436
+ # @param JobId: 调度ID
1437
+ # @type JobId: Integer
1438
+ # @param CorpId: 企业ID
1439
+ # @type CorpId: Integer
1440
+
1441
+ attr_accessor :JobId, :CorpId
1442
+
1443
+ def initialize(jobid=nil, corpid=nil)
1444
+ @JobId = jobid
1445
+ @CorpId = corpid
1446
+ end
1447
+
1448
+ def deserialize(params)
1449
+ @JobId = params['JobId']
1450
+ @CorpId = params['CorpId']
1451
+ end
1452
+ end
1453
+
1454
+ # DescribeJobFileUrl返回参数结构体
1455
+ class DescribeJobFileUrlResponse < TencentCloud::Common::AbstractModel
1456
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
1457
+ # @type RequestId: String
1458
+
1459
+ attr_accessor :RequestId
1460
+
1461
+ def initialize(requestid=nil)
1462
+ @RequestId = requestid
1463
+ end
1464
+
1465
+ def deserialize(params)
1466
+ @RequestId = params['RequestId']
1467
+ end
1468
+ end
1469
+
978
1470
  # DescribeMerchantById请求参数结构体
979
1471
  class DescribeMerchantByIdRequest < TencentCloud::Common::AbstractModel
980
1472
  # @param MerchantId: 商户标识码
@@ -1513,6 +2005,107 @@ module TencentCloud
1513
2005
  end
1514
2006
  end
1515
2007
 
2008
+ # ModifyCustomRule请求参数结构体
2009
+ class ModifyCustomRuleRequest < TencentCloud::Common::AbstractModel
2010
+ # @param CustomId: 码规则ID
2011
+ # @type CustomId: String
2012
+ # @param Name: 规则名称
2013
+ # @type Name: String
2014
+ # @param CodeLength: 码长度
2015
+ # @type CodeLength: Integer
2016
+ # @param CodeParts: 码段配置
2017
+ # @type CodeParts: Array
2018
+ # @param CorpId: 企业ID
2019
+ # @type CorpId: Integer
2020
+
2021
+ attr_accessor :CustomId, :Name, :CodeLength, :CodeParts, :CorpId
2022
+
2023
+ def initialize(customid=nil, name=nil, codelength=nil, codeparts=nil, corpid=nil)
2024
+ @CustomId = customid
2025
+ @Name = name
2026
+ @CodeLength = codelength
2027
+ @CodeParts = codeparts
2028
+ @CorpId = corpid
2029
+ end
2030
+
2031
+ def deserialize(params)
2032
+ @CustomId = params['CustomId']
2033
+ @Name = params['Name']
2034
+ @CodeLength = params['CodeLength']
2035
+ unless params['CodeParts'].nil?
2036
+ @CodeParts = []
2037
+ params['CodeParts'].each do |i|
2038
+ codepart_tmp = CodePart.new
2039
+ codepart_tmp.deserialize(i)
2040
+ @CodeParts << codepart_tmp
2041
+ end
2042
+ end
2043
+ @CorpId = params['CorpId']
2044
+ end
2045
+ end
2046
+
2047
+ # ModifyCustomRule返回参数结构体
2048
+ class ModifyCustomRuleResponse < TencentCloud::Common::AbstractModel
2049
+ # @param CustomId: 码规则ID
2050
+ # 注意:此字段可能返回 null,表示取不到有效值。
2051
+ # @type CustomId: String
2052
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
2053
+ # @type RequestId: String
2054
+
2055
+ attr_accessor :CustomId, :RequestId
2056
+
2057
+ def initialize(customid=nil, requestid=nil)
2058
+ @CustomId = customid
2059
+ @RequestId = requestid
2060
+ end
2061
+
2062
+ def deserialize(params)
2063
+ @CustomId = params['CustomId']
2064
+ @RequestId = params['RequestId']
2065
+ end
2066
+ end
2067
+
2068
+ # ModifyCustomRuleStatus请求参数结构体
2069
+ class ModifyCustomRuleStatusRequest < TencentCloud::Common::AbstractModel
2070
+ # @param CustomId: 码规则ID
2071
+ # @type CustomId: String
2072
+ # @param Status: 码规则状态 0:未生效 1:已生效 -1:已失效
2073
+ # @type Status: Integer
2074
+
2075
+ attr_accessor :CustomId, :Status
2076
+
2077
+ def initialize(customid=nil, status=nil)
2078
+ @CustomId = customid
2079
+ @Status = status
2080
+ end
2081
+
2082
+ def deserialize(params)
2083
+ @CustomId = params['CustomId']
2084
+ @Status = params['Status']
2085
+ end
2086
+ end
2087
+
2088
+ # ModifyCustomRuleStatus返回参数结构体
2089
+ class ModifyCustomRuleStatusResponse < TencentCloud::Common::AbstractModel
2090
+ # @param CustomId: 码规则ID
2091
+ # 注意:此字段可能返回 null,表示取不到有效值。
2092
+ # @type CustomId: String
2093
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
2094
+ # @type RequestId: String
2095
+
2096
+ attr_accessor :CustomId, :RequestId
2097
+
2098
+ def initialize(customid=nil, requestid=nil)
2099
+ @CustomId = customid
2100
+ @RequestId = requestid
2101
+ end
2102
+
2103
+ def deserialize(params)
2104
+ @CustomId = params['CustomId']
2105
+ @RequestId = params['RequestId']
2106
+ end
2107
+ end
2108
+
1516
2109
  # ModifyMerchant请求参数结构体
1517
2110
  class ModifyMerchantRequest < TencentCloud::Common::AbstractModel
1518
2111
  # @param Name: 商户名称
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tencentcloud-sdk-trp
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.0.427
4
+ version: 3.0.429
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tencent Cloud
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-10-13 00:00:00.000000000 Z
11
+ date: 2022-10-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: tencentcloud-sdk-common