tencentcloud-sdk-trp 3.0.601 → 3.0.602
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/VERSION +1 -1
- data/lib/v20210515/client.rb +24 -0
- data/lib/v20210515/models.rb +44 -0
- 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: e7577fcf8f8f9c86d1b64a9ac613c0d8e361561a
|
4
|
+
data.tar.gz: ccc138f9ba1b69bbcf37caf03fb793d8d6478547
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 68238f96e84aa70968d68e008f7237b3364dd1eb377b81cb272542db264c858dd37ac08dbccef733572b4fdbeabb6c935b0dddb38ffc17c9bbae1865d73a2965
|
7
|
+
data.tar.gz: 671b1ee3f0dea2bd0954657786cc4084ce918f4b25db0f2d262f00471cbb0c73395e4e892331d4040d6a6349f354212d908a571f6fde3af6c8adbf6f6921f627
|
data/lib/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
3.0.
|
1
|
+
3.0.602
|
data/lib/v20210515/client.rb
CHANGED
@@ -413,6 +413,30 @@ module TencentCloud
|
|
413
413
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
414
414
|
end
|
415
415
|
|
416
|
+
# 查询渠道企业列表
|
417
|
+
|
418
|
+
# @param request: Request instance for DescribeAgentCorps.
|
419
|
+
# @type request: :class:`Tencentcloud::trp::V20210515::DescribeAgentCorpsRequest`
|
420
|
+
# @rtype: :class:`Tencentcloud::trp::V20210515::DescribeAgentCorpsResponse`
|
421
|
+
def DescribeAgentCorps(request)
|
422
|
+
body = send_request('DescribeAgentCorps', request.serialize)
|
423
|
+
response = JSON.parse(body)
|
424
|
+
if response['Response'].key?('Error') == false
|
425
|
+
model = DescribeAgentCorpsResponse.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
|
+
|
416
440
|
# 查询批次信息
|
417
441
|
|
418
442
|
# @param request: Request instance for DescribeCodeBatchById.
|
data/lib/v20210515/models.rb
CHANGED
@@ -1428,6 +1428,50 @@ module TencentCloud
|
|
1428
1428
|
end
|
1429
1429
|
end
|
1430
1430
|
|
1431
|
+
# DescribeAgentCorps请求参数结构体
|
1432
|
+
class DescribeAgentCorpsRequest < TencentCloud::Common::AbstractModel
|
1433
|
+
# @param PageSize: 每页数量
|
1434
|
+
# @type PageSize: Integer
|
1435
|
+
# @param PageNumber: 页数
|
1436
|
+
# @type PageNumber: Integer
|
1437
|
+
# @param AgentId: 渠道ID
|
1438
|
+
# @type AgentId: Integer
|
1439
|
+
# @param CorpId: 企业ID
|
1440
|
+
# @type CorpId: Integer
|
1441
|
+
|
1442
|
+
attr_accessor :PageSize, :PageNumber, :AgentId, :CorpId
|
1443
|
+
|
1444
|
+
def initialize(pagesize=nil, pagenumber=nil, agentid=nil, corpid=nil)
|
1445
|
+
@PageSize = pagesize
|
1446
|
+
@PageNumber = pagenumber
|
1447
|
+
@AgentId = agentid
|
1448
|
+
@CorpId = corpid
|
1449
|
+
end
|
1450
|
+
|
1451
|
+
def deserialize(params)
|
1452
|
+
@PageSize = params['PageSize']
|
1453
|
+
@PageNumber = params['PageNumber']
|
1454
|
+
@AgentId = params['AgentId']
|
1455
|
+
@CorpId = params['CorpId']
|
1456
|
+
end
|
1457
|
+
end
|
1458
|
+
|
1459
|
+
# DescribeAgentCorps返回参数结构体
|
1460
|
+
class DescribeAgentCorpsResponse < TencentCloud::Common::AbstractModel
|
1461
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
1462
|
+
# @type RequestId: String
|
1463
|
+
|
1464
|
+
attr_accessor :RequestId
|
1465
|
+
|
1466
|
+
def initialize(requestid=nil)
|
1467
|
+
@RequestId = requestid
|
1468
|
+
end
|
1469
|
+
|
1470
|
+
def deserialize(params)
|
1471
|
+
@RequestId = params['RequestId']
|
1472
|
+
end
|
1473
|
+
end
|
1474
|
+
|
1431
1475
|
# DescribeCodeBatchById请求参数结构体
|
1432
1476
|
class DescribeCodeBatchByIdRequest < TencentCloud::Common::AbstractModel
|
1433
1477
|
# @param CorpId: 企业ID
|
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.602
|
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-06-
|
11
|
+
date: 2023-06-29 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: tencentcloud-sdk-common
|