tencentcloud-sdk-trp 3.0.601 → 3.0.603
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: cc1749e5d3813c4a58a8cf8860eaeccdaa131031
|
4
|
+
data.tar.gz: 872c92f966d254a9b73a3ced0759178dbb2449c4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3b6bc8654f01d0c3ced438b4051b71e73d7b39d3385af59e2288eeeca63bb6ddc2ee84cde7a9f0644ad81e22c826711bb9749b59c2fc502238ff59b06cb647a0
|
7
|
+
data.tar.gz: a2c5c35c50da1a87ad745846fd0ce64b5abc98f19eda27ede9dd547f5b92111b411fc1f2e8b2dd5d6b36f0b317a1a38b2e0e9a7230abef1bf5634d630e26b69a
|
data/lib/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
3.0.
|
1
|
+
3.0.603
|
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.603
|
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-30 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: tencentcloud-sdk-common
|