tencentcloud-sdk-cpdp 1.0.201 → 1.0.202
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/v20190820/client.rb +48 -0
- data/lib/v20190820/models.rb +167 -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: 1784cbe1b223273afb01506cb581a1235ebdaac9
|
4
|
+
data.tar.gz: d4bd18fe43d06fa214c28ddf4242c094269577f8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a6876be734ca27b074baef384b9ee18cdeaf8e9c0035f153aa35f6396c6efa214b287d6af176eabf33f5c82fa17386d3cbbe32ac14fff7158f3f0b92f4ed0440
|
7
|
+
data.tar.gz: 18237287ebe7e8af7cdd9fae52be52263d87f0fca5ecb73376d2e6125ba50454531c72c6b17b7a35577adc7a29b4c3319afde322fab82220f4f0f2cfd3a07532
|
data/lib/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.0.
|
1
|
+
1.0.202
|
data/lib/v20190820/client.rb
CHANGED
@@ -468,6 +468,30 @@ module TencentCloud
|
|
468
468
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
469
469
|
end
|
470
470
|
|
471
|
+
# 直播平台-主播入驻
|
472
|
+
|
473
|
+
# @param request: Request instance for CreateAnchor.
|
474
|
+
# @type request: :class:`Tencentcloud::cpdp::V20190820::CreateAnchorRequest`
|
475
|
+
# @rtype: :class:`Tencentcloud::cpdp::V20190820::CreateAnchorResponse`
|
476
|
+
def CreateAnchor(request)
|
477
|
+
body = send_request('CreateAnchor', request.serialize)
|
478
|
+
response = JSON.parse(body)
|
479
|
+
if response['Response'].key?('Error') == false
|
480
|
+
model = CreateAnchorResponse.new
|
481
|
+
model.deserialize(response['Response'])
|
482
|
+
model
|
483
|
+
else
|
484
|
+
code = response['Response']['Error']['Code']
|
485
|
+
message = response['Response']['Error']['Message']
|
486
|
+
reqid = response['Response']['RequestId']
|
487
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
488
|
+
end
|
489
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
490
|
+
raise e
|
491
|
+
rescue StandardError => e
|
492
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
493
|
+
end
|
494
|
+
|
471
495
|
# 灵云-批量主播转账接口
|
472
496
|
|
473
497
|
# @param request: Request instance for CreateBatchPayment.
|
@@ -2606,6 +2630,30 @@ module TencentCloud
|
|
2606
2630
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
2607
2631
|
end
|
2608
2632
|
|
2633
|
+
# 直播平台-文件上传
|
2634
|
+
|
2635
|
+
# @param request: Request instance for UploadFile.
|
2636
|
+
# @type request: :class:`Tencentcloud::cpdp::V20190820::UploadFileRequest`
|
2637
|
+
# @rtype: :class:`Tencentcloud::cpdp::V20190820::UploadFileResponse`
|
2638
|
+
def UploadFile(request)
|
2639
|
+
body = send_request('UploadFile', request.serialize)
|
2640
|
+
response = JSON.parse(body)
|
2641
|
+
if response['Response'].key?('Error') == false
|
2642
|
+
model = UploadFileResponse.new
|
2643
|
+
model.deserialize(response['Response'])
|
2644
|
+
model
|
2645
|
+
else
|
2646
|
+
code = response['Response']['Error']['Code']
|
2647
|
+
message = response['Response']['Error']['Message']
|
2648
|
+
reqid = response['Response']['RequestId']
|
2649
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
2650
|
+
end
|
2651
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
2652
|
+
raise e
|
2653
|
+
rescue StandardError => e
|
2654
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
2655
|
+
end
|
2656
|
+
|
2609
2657
|
# 直播平台-上传代理商完税列表
|
2610
2658
|
|
2611
2659
|
# @param request: Request instance for UploadTaxList.
|
data/lib/v20190820/models.rb
CHANGED
@@ -212,6 +212,32 @@ module TencentCloud
|
|
212
212
|
end
|
213
213
|
end
|
214
214
|
|
215
|
+
# 主播扩展信息
|
216
|
+
class AnchorExtendInfo < TencentCloud::Common::AbstractModel
|
217
|
+
# @param Type: 扩展信息类型
|
218
|
+
# __id_card_no__:身份证号码
|
219
|
+
# __id_card_name__:身份证姓名
|
220
|
+
# __id_card_front__:身份证图片正面
|
221
|
+
# __id_card_back__:身份证图片反面
|
222
|
+
# __tax_type__:完税类型:0-自然人,1-个体工商户
|
223
|
+
# __channel_account__:渠道账号(_敏感信息_ 使用 __AES128-CBC-PKCS#7__ 加密)
|
224
|
+
# @type Type: String
|
225
|
+
# @param Value: 扩展信息
|
226
|
+
# @type Value: String
|
227
|
+
|
228
|
+
attr_accessor :Type, :Value
|
229
|
+
|
230
|
+
def initialize(type=nil, value=nil)
|
231
|
+
@Type = type
|
232
|
+
@Value = value
|
233
|
+
end
|
234
|
+
|
235
|
+
def deserialize(params)
|
236
|
+
@Type = params['Type']
|
237
|
+
@Value = params['Value']
|
238
|
+
end
|
239
|
+
end
|
240
|
+
|
215
241
|
# ApplyApplicationMaterial请求参数结构体
|
216
242
|
class ApplyApplicationMaterialRequest < TencentCloud::Common::AbstractModel
|
217
243
|
# @param TransactionId: 对接方汇出指令编号
|
@@ -2429,6 +2455,84 @@ module TencentCloud
|
|
2429
2455
|
end
|
2430
2456
|
end
|
2431
2457
|
|
2458
|
+
# CreateAnchor请求参数结构体
|
2459
|
+
class CreateAnchorRequest < TencentCloud::Common::AbstractModel
|
2460
|
+
# @param AnchorUid: 主播业务ID,唯一
|
2461
|
+
# @type AnchorUid: String
|
2462
|
+
# @param AnchorName: 主播姓名
|
2463
|
+
# @type AnchorName: String
|
2464
|
+
# @param AnchorPhone: 主播电话
|
2465
|
+
# _敏感信息_ 使用 __AES128-CBC-PKCS#7__ 加密
|
2466
|
+
# @type AnchorPhone: String
|
2467
|
+
# @param AnchorEmail: 主播邮箱
|
2468
|
+
# _敏感信息_ 使用 __AES128-CBC-PKCS#7__ 加密
|
2469
|
+
# @type AnchorEmail: String
|
2470
|
+
# @param AnchorAddress: 主播地址
|
2471
|
+
# _敏感信息_ 使用 __AES128-CBC-PKCS#7__ 加密
|
2472
|
+
# @type AnchorAddress: String
|
2473
|
+
# @param AnchorIdNo: 主播身份证号
|
2474
|
+
# _敏感信息_ 使用 __AES128-CBC-PKCS#7__ 加密
|
2475
|
+
# @type AnchorIdNo: String
|
2476
|
+
# @param AnchorType: 主播类型
|
2477
|
+
# __KMusic__:全民K歌
|
2478
|
+
# __QMusic__:QQ音乐
|
2479
|
+
# __WeChat__:微信视频号
|
2480
|
+
# @type AnchorType: String
|
2481
|
+
# @param AnchorExtendInfo: 主播扩展信息
|
2482
|
+
# @type AnchorExtendInfo: Array
|
2483
|
+
|
2484
|
+
attr_accessor :AnchorUid, :AnchorName, :AnchorPhone, :AnchorEmail, :AnchorAddress, :AnchorIdNo, :AnchorType, :AnchorExtendInfo
|
2485
|
+
|
2486
|
+
def initialize(anchoruid=nil, anchorname=nil, anchorphone=nil, anchoremail=nil, anchoraddress=nil, anchoridno=nil, anchortype=nil, anchorextendinfo=nil)
|
2487
|
+
@AnchorUid = anchoruid
|
2488
|
+
@AnchorName = anchorname
|
2489
|
+
@AnchorPhone = anchorphone
|
2490
|
+
@AnchorEmail = anchoremail
|
2491
|
+
@AnchorAddress = anchoraddress
|
2492
|
+
@AnchorIdNo = anchoridno
|
2493
|
+
@AnchorType = anchortype
|
2494
|
+
@AnchorExtendInfo = anchorextendinfo
|
2495
|
+
end
|
2496
|
+
|
2497
|
+
def deserialize(params)
|
2498
|
+
@AnchorUid = params['AnchorUid']
|
2499
|
+
@AnchorName = params['AnchorName']
|
2500
|
+
@AnchorPhone = params['AnchorPhone']
|
2501
|
+
@AnchorEmail = params['AnchorEmail']
|
2502
|
+
@AnchorAddress = params['AnchorAddress']
|
2503
|
+
@AnchorIdNo = params['AnchorIdNo']
|
2504
|
+
@AnchorType = params['AnchorType']
|
2505
|
+
unless params['AnchorExtendInfo'].nil?
|
2506
|
+
@AnchorExtendInfo = []
|
2507
|
+
params['AnchorExtendInfo'].each do |i|
|
2508
|
+
anchorextendinfo_tmp = AnchorExtendInfo.new
|
2509
|
+
anchorextendinfo_tmp.deserialize(i)
|
2510
|
+
@AnchorExtendInfo << anchorextendinfo_tmp
|
2511
|
+
end
|
2512
|
+
end
|
2513
|
+
end
|
2514
|
+
end
|
2515
|
+
|
2516
|
+
# CreateAnchor返回参数结构体
|
2517
|
+
class CreateAnchorResponse < TencentCloud::Common::AbstractModel
|
2518
|
+
# @param AnchorId: 主播ID
|
2519
|
+
# @type AnchorId: String
|
2520
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
2521
|
+
# @type RequestId: String
|
2522
|
+
|
2523
|
+
attr_accessor :AnchorId, :RequestId
|
2524
|
+
|
2525
|
+
def initialize(anchorid=nil, requestid=nil)
|
2526
|
+
@AnchorId = anchorid
|
2527
|
+
@RequestId = requestid
|
2528
|
+
end
|
2529
|
+
|
2530
|
+
def deserialize(params)
|
2531
|
+
@AnchorId = params['AnchorId']
|
2532
|
+
@RequestId = params['RequestId']
|
2533
|
+
end
|
2534
|
+
end
|
2535
|
+
|
2432
2536
|
# CreateBatchPayment接口BatchInfo对象
|
2433
2537
|
class CreateBatchPaymentBatchData < TencentCloud::Common::AbstractModel
|
2434
2538
|
# @param OrderId: 订单号
|
@@ -12999,6 +13103,69 @@ module TencentCloud
|
|
12999
13103
|
end
|
13000
13104
|
end
|
13001
13105
|
|
13106
|
+
# UploadFile请求参数结构体
|
13107
|
+
class UploadFileRequest < TencentCloud::Common::AbstractModel
|
13108
|
+
# @param FileName: 文件名
|
13109
|
+
# @type FileName: String
|
13110
|
+
# @param FileType: 文件类型
|
13111
|
+
# __IdCard__:身份证
|
13112
|
+
# __IdCardCheck__:身份证加验证(只支持人像面)
|
13113
|
+
# @type FileType: String
|
13114
|
+
# @param FileUrl: 文件链接
|
13115
|
+
# __FileUrl和FileContent二选一__
|
13116
|
+
# @type FileUrl: String
|
13117
|
+
# @param FileContent: 文件内容,Base64编码
|
13118
|
+
# __FileUrl和FileContent二选一__
|
13119
|
+
# @type FileContent: String
|
13120
|
+
# @param FileExtendInfo: 文件扩展信息
|
13121
|
+
# @type FileExtendInfo: Array
|
13122
|
+
|
13123
|
+
attr_accessor :FileName, :FileType, :FileUrl, :FileContent, :FileExtendInfo
|
13124
|
+
|
13125
|
+
def initialize(filename=nil, filetype=nil, fileurl=nil, filecontent=nil, fileextendinfo=nil)
|
13126
|
+
@FileName = filename
|
13127
|
+
@FileType = filetype
|
13128
|
+
@FileUrl = fileurl
|
13129
|
+
@FileContent = filecontent
|
13130
|
+
@FileExtendInfo = fileextendinfo
|
13131
|
+
end
|
13132
|
+
|
13133
|
+
def deserialize(params)
|
13134
|
+
@FileName = params['FileName']
|
13135
|
+
@FileType = params['FileType']
|
13136
|
+
@FileUrl = params['FileUrl']
|
13137
|
+
@FileContent = params['FileContent']
|
13138
|
+
unless params['FileExtendInfo'].nil?
|
13139
|
+
@FileExtendInfo = []
|
13140
|
+
params['FileExtendInfo'].each do |i|
|
13141
|
+
anchorextendinfo_tmp = AnchorExtendInfo.new
|
13142
|
+
anchorextendinfo_tmp.deserialize(i)
|
13143
|
+
@FileExtendInfo << anchorextendinfo_tmp
|
13144
|
+
end
|
13145
|
+
end
|
13146
|
+
end
|
13147
|
+
end
|
13148
|
+
|
13149
|
+
# UploadFile返回参数结构体
|
13150
|
+
class UploadFileResponse < TencentCloud::Common::AbstractModel
|
13151
|
+
# @param FileId: 文件ID
|
13152
|
+
# @type FileId: String
|
13153
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
13154
|
+
# @type RequestId: String
|
13155
|
+
|
13156
|
+
attr_accessor :FileId, :RequestId
|
13157
|
+
|
13158
|
+
def initialize(fileid=nil, requestid=nil)
|
13159
|
+
@FileId = fileid
|
13160
|
+
@RequestId = requestid
|
13161
|
+
end
|
13162
|
+
|
13163
|
+
def deserialize(params)
|
13164
|
+
@FileId = params['FileId']
|
13165
|
+
@RequestId = params['RequestId']
|
13166
|
+
end
|
13167
|
+
end
|
13168
|
+
|
13002
13169
|
# UploadTaxList请求参数结构体
|
13003
13170
|
class UploadTaxListRequest < TencentCloud::Common::AbstractModel
|
13004
13171
|
# @param Channel: 平台渠道
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: tencentcloud-sdk-cpdp
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.202
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Tencent Cloud
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-11-
|
11
|
+
date: 2021-11-15 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: tencentcloud-sdk-common
|