tencentcloud-sdk-trp 3.0.672 → 3.0.673
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/VERSION +1 -1
- data/lib/v20210515/client.rb +26 -0
- data/lib/v20210515/models.rb +73 -2
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9c5256748e784e9b538586b9a2e98656a9ebf08b
|
4
|
+
data.tar.gz: 381b1d0d10a67ad3f70b7f2d45c15e34da25d73a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: fb2e4a2bb7721487ea4078a006b8288ed5746ed9027b0522aa0bb94285d7506368b5fa8af6a10fc00dfd9401c4e8aa3b49cd65eecdd40f2e8bfd2235b7223dae
|
7
|
+
data.tar.gz: 37b61a8537e8aae2b5ffe1de11f6ede85d1d8c5cd10698beb6134f77e9ca13a3fae15e9bec4916f95eea3a6255ea14dcb758f563e54c6c1503a4ae48ae7e1b53
|
data/lib/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
3.0.
|
1
|
+
3.0.673
|
data/lib/v20210515/client.rb
CHANGED
@@ -463,6 +463,32 @@ module TencentCloud
|
|
463
463
|
|
464
464
|
# 查询批次列表
|
465
465
|
|
466
|
+
# @param request: Request instance for DescribeCodeBatches.
|
467
|
+
# @type request: :class:`Tencentcloud::trp::V20210515::DescribeCodeBatchesRequest`
|
468
|
+
# @rtype: :class:`Tencentcloud::trp::V20210515::DescribeCodeBatchesResponse`
|
469
|
+
def DescribeCodeBatches(request)
|
470
|
+
body = send_request('DescribeCodeBatches', request.serialize)
|
471
|
+
response = JSON.parse(body)
|
472
|
+
if response['Response'].key?('Error') == false
|
473
|
+
model = DescribeCodeBatchesResponse.new
|
474
|
+
model.deserialize(response['Response'])
|
475
|
+
model
|
476
|
+
else
|
477
|
+
code = response['Response']['Error']['Code']
|
478
|
+
message = response['Response']['Error']['Message']
|
479
|
+
reqid = response['Response']['RequestId']
|
480
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
481
|
+
end
|
482
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
483
|
+
raise e
|
484
|
+
rescue StandardError => e
|
485
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
486
|
+
end
|
487
|
+
|
488
|
+
# 查询批次列表
|
489
|
+
|
490
|
+
# 旧版接口已经弃用,新业务请使用用新版的接口 DescribeCodeBatches
|
491
|
+
|
466
492
|
# @param request: Request instance for DescribeCodeBatchs.
|
467
493
|
# @type request: :class:`Tencentcloud::trp::V20210515::DescribeCodeBatchsRequest`
|
468
494
|
# @rtype: :class:`Tencentcloud::trp::V20210515::DescribeCodeBatchsResponse`
|
data/lib/v20210515/models.rb
CHANGED
@@ -1553,6 +1553,77 @@ module TencentCloud
|
|
1553
1553
|
end
|
1554
1554
|
end
|
1555
1555
|
|
1556
|
+
# DescribeCodeBatches请求参数结构体
|
1557
|
+
class DescribeCodeBatchesRequest < TencentCloud::Common::AbstractModel
|
1558
|
+
# @param MerchantId: 查询商户ID
|
1559
|
+
# @type MerchantId: String
|
1560
|
+
# @param ProductId: 查询商品ID
|
1561
|
+
# @type ProductId: String
|
1562
|
+
# @param Keyword: 查询关键字
|
1563
|
+
# @type Keyword: String
|
1564
|
+
# @param PageSize: 条数
|
1565
|
+
# @type PageSize: Integer
|
1566
|
+
# @param PageNumber: 页数
|
1567
|
+
# @type PageNumber: Integer
|
1568
|
+
# @param BatchType: 批次类型 0:溯源 1:营销
|
1569
|
+
# @type BatchType: String
|
1570
|
+
# @param CorpId: 企业ID
|
1571
|
+
# @type CorpId: Integer
|
1572
|
+
|
1573
|
+
attr_accessor :MerchantId, :ProductId, :Keyword, :PageSize, :PageNumber, :BatchType, :CorpId
|
1574
|
+
|
1575
|
+
def initialize(merchantid=nil, productid=nil, keyword=nil, pagesize=nil, pagenumber=nil, batchtype=nil, corpid=nil)
|
1576
|
+
@MerchantId = merchantid
|
1577
|
+
@ProductId = productid
|
1578
|
+
@Keyword = keyword
|
1579
|
+
@PageSize = pagesize
|
1580
|
+
@PageNumber = pagenumber
|
1581
|
+
@BatchType = batchtype
|
1582
|
+
@CorpId = corpid
|
1583
|
+
end
|
1584
|
+
|
1585
|
+
def deserialize(params)
|
1586
|
+
@MerchantId = params['MerchantId']
|
1587
|
+
@ProductId = params['ProductId']
|
1588
|
+
@Keyword = params['Keyword']
|
1589
|
+
@PageSize = params['PageSize']
|
1590
|
+
@PageNumber = params['PageNumber']
|
1591
|
+
@BatchType = params['BatchType']
|
1592
|
+
@CorpId = params['CorpId']
|
1593
|
+
end
|
1594
|
+
end
|
1595
|
+
|
1596
|
+
# DescribeCodeBatches返回参数结构体
|
1597
|
+
class DescribeCodeBatchesResponse < TencentCloud::Common::AbstractModel
|
1598
|
+
# @param CodeBatches: 批次列表
|
1599
|
+
# @type CodeBatches: Array
|
1600
|
+
# @param TotalCount: 总条数
|
1601
|
+
# @type TotalCount: Integer
|
1602
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
1603
|
+
# @type RequestId: String
|
1604
|
+
|
1605
|
+
attr_accessor :CodeBatches, :TotalCount, :RequestId
|
1606
|
+
|
1607
|
+
def initialize(codebatches=nil, totalcount=nil, requestid=nil)
|
1608
|
+
@CodeBatches = codebatches
|
1609
|
+
@TotalCount = totalcount
|
1610
|
+
@RequestId = requestid
|
1611
|
+
end
|
1612
|
+
|
1613
|
+
def deserialize(params)
|
1614
|
+
unless params['CodeBatches'].nil?
|
1615
|
+
@CodeBatches = []
|
1616
|
+
params['CodeBatches'].each do |i|
|
1617
|
+
codebatch_tmp = CodeBatch.new
|
1618
|
+
codebatch_tmp.deserialize(i)
|
1619
|
+
@CodeBatches << codebatch_tmp
|
1620
|
+
end
|
1621
|
+
end
|
1622
|
+
@TotalCount = params['TotalCount']
|
1623
|
+
@RequestId = params['RequestId']
|
1624
|
+
end
|
1625
|
+
end
|
1626
|
+
|
1556
1627
|
# DescribeCodeBatchs请求参数结构体
|
1557
1628
|
class DescribeCodeBatchsRequest < TencentCloud::Common::AbstractModel
|
1558
1629
|
# @param MerchantId: 查询商户ID
|
@@ -2382,8 +2453,8 @@ module TencentCloud
|
|
2382
2453
|
|
2383
2454
|
attr_accessor :Products, :TotalCount, :ScanLogs, :RequestId
|
2384
2455
|
extend Gem::Deprecate
|
2385
|
-
deprecate :Products, :none, 2023,
|
2386
|
-
deprecate :Products=, :none, 2023,
|
2456
|
+
deprecate :Products, :none, 2023, 10
|
2457
|
+
deprecate :Products=, :none, 2023, 10
|
2387
2458
|
|
2388
2459
|
def initialize(products=nil, totalcount=nil, scanlogs=nil, requestid=nil)
|
2389
2460
|
@Products = products
|
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.
|
4
|
+
version: 3.0.673
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Tencent Cloud
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-10-
|
11
|
+
date: 2023-10-10 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: tencentcloud-sdk-common
|