tencentcloud-sdk-cme 1.0.200

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,1151 @@
1
+ # frozen_string_literal: true
2
+
3
+ # Copyright (c) 2017-2018 THL A29 Limited, a Tencent company. All Rights Reserved.
4
+ #
5
+ # Licensed under the Apache License, Version 2.0 (the "License");
6
+ # you may not use this file except in compliance with the License.
7
+ # You may obtain a copy of the License at
8
+ #
9
+ # http://www.apache.org/licenses/LICENSE-2.0
10
+ #
11
+ # Unless required by applicable law or agreed to in writing, software
12
+ # distributed under the License is distributed on an "AS IS" BASIS,
13
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
+ # See the License for the specific language governing permissions and
15
+ # limitations under the License.
16
+
17
+ require 'json'
18
+
19
+ module TencentCloud
20
+ module Cme
21
+ module V20191029
22
+ class Client < TencentCloud::Common::AbstractClient
23
+
24
+ def initialize(credential, region, profile = nil)
25
+ api_version = '2019-10-29'
26
+ api_endpoint = 'cme.tencentcloudapi.com'
27
+ sdk_version = 'CME_' + File.read(File.expand_path('../VERSION', __dir__)).strip
28
+ super(credential, region, api_version, api_endpoint, sdk_version, profile)
29
+ end
30
+
31
+
32
+ # 向一个团队中团队成员,并且指定成员的角色。
33
+
34
+ # @param request: Request instance for AddTeamMember.
35
+ # @type request: :class:`Tencentcloud::cme::V20191029::AddTeamMemberRequest`
36
+ # @rtype: :class:`Tencentcloud::cme::V20191029::AddTeamMemberResponse`
37
+ def AddTeamMember(request)
38
+ body = send_request('AddTeamMember', request.serialize)
39
+ response = JSON.parse(body)
40
+ if response['Response'].key?('Error') == false
41
+ model = AddTeamMemberResponse.new
42
+ model.deserialize(response['Response'])
43
+ model
44
+ else
45
+ code = response['Response']['Error']['Code']
46
+ message = response['Response']['Error']['Message']
47
+ reqid = response['Response']['RequestId']
48
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
49
+ end
50
+ rescue TencentCloud::Common::TencentCloudSDKException => e
51
+ raise e
52
+ rescue StandardError => e
53
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
54
+ end
55
+
56
+ # 复制一个项目,包括项目素材及轨道数据。目前仅普通剪辑及模板制作项目可复制,其它类型的项目不支持复制。
57
+
58
+ # @param request: Request instance for CopyProject.
59
+ # @type request: :class:`Tencentcloud::cme::V20191029::CopyProjectRequest`
60
+ # @rtype: :class:`Tencentcloud::cme::V20191029::CopyProjectResponse`
61
+ def CopyProject(request)
62
+ body = send_request('CopyProject', request.serialize)
63
+ response = JSON.parse(body)
64
+ if response['Response'].key?('Error') == false
65
+ model = CopyProjectResponse.new
66
+ model.deserialize(response['Response'])
67
+ model
68
+ else
69
+ code = response['Response']['Error']['Code']
70
+ message = response['Response']['Error']['Message']
71
+ reqid = response['Response']['RequestId']
72
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
73
+ end
74
+ rescue TencentCloud::Common::TencentCloudSDKException => e
75
+ raise e
76
+ rescue StandardError => e
77
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
78
+ end
79
+
80
+ # 新增分类,用于管理素材。分类层数不能超过20。
81
+
82
+ # @param request: Request instance for CreateClass.
83
+ # @type request: :class:`Tencentcloud::cme::V20191029::CreateClassRequest`
84
+ # @rtype: :class:`Tencentcloud::cme::V20191029::CreateClassResponse`
85
+ def CreateClass(request)
86
+ body = send_request('CreateClass', request.serialize)
87
+ response = JSON.parse(body)
88
+ if response['Response'].key?('Error') == false
89
+ model = CreateClassResponse.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 CreateLink.
107
+ # @type request: :class:`Tencentcloud::cme::V20191029::CreateLinkRequest`
108
+ # @rtype: :class:`Tencentcloud::cme::V20191029::CreateLinkResponse`
109
+ def CreateLink(request)
110
+ body = send_request('CreateLink', request.serialize)
111
+ response = JSON.parse(body)
112
+ if response['Response'].key?('Error') == false
113
+ model = CreateLinkResponse.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
+
128
+ # 创建云剪的编辑项目,支持创建视频剪辑、直播剪辑、导播台、视频拆条、录制回放以及云转推项目。
129
+
130
+ # <b>若需使用云转推功能,请先咨询 [智能客服](https://cloud.tencent.com/act/event/smarty-service?from=doc_1138) 或 [提交工单](https://console.cloud.tencent.com/workorder/category) 。</b>
131
+
132
+ # @param request: Request instance for CreateProject.
133
+ # @type request: :class:`Tencentcloud::cme::V20191029::CreateProjectRequest`
134
+ # @rtype: :class:`Tencentcloud::cme::V20191029::CreateProjectResponse`
135
+ def CreateProject(request)
136
+ body = send_request('CreateProject', request.serialize)
137
+ response = JSON.parse(body)
138
+ if response['Response'].key?('Error') == false
139
+ model = CreateProjectResponse.new
140
+ model.deserialize(response['Response'])
141
+ model
142
+ else
143
+ code = response['Response']['Error']['Code']
144
+ message = response['Response']['Error']['Message']
145
+ reqid = response['Response']['RequestId']
146
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
147
+ end
148
+ rescue TencentCloud::Common::TencentCloudSDKException => e
149
+ raise e
150
+ rescue StandardError => e
151
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
152
+ end
153
+
154
+ # 创建一个团队。
155
+
156
+ # @param request: Request instance for CreateTeam.
157
+ # @type request: :class:`Tencentcloud::cme::V20191029::CreateTeamRequest`
158
+ # @rtype: :class:`Tencentcloud::cme::V20191029::CreateTeamResponse`
159
+ def CreateTeam(request)
160
+ body = send_request('CreateTeam', request.serialize)
161
+ response = JSON.parse(body)
162
+ if response['Response'].key?('Error') == false
163
+ model = CreateTeamResponse.new
164
+ model.deserialize(response['Response'])
165
+ model
166
+ else
167
+ code = response['Response']['Error']['Code']
168
+ message = response['Response']['Error']['Message']
169
+ reqid = response['Response']['RequestId']
170
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
171
+ end
172
+ rescue TencentCloud::Common::TencentCloudSDKException => e
173
+ raise e
174
+ rescue StandardError => e
175
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
176
+ end
177
+
178
+ # 删除分类信息,删除时检验下述限制:
179
+ # <li>分类路径必须存在;</li>
180
+ # <li>分类下没有绑定素材。</li>
181
+
182
+ # @param request: Request instance for DeleteClass.
183
+ # @type request: :class:`Tencentcloud::cme::V20191029::DeleteClassRequest`
184
+ # @rtype: :class:`Tencentcloud::cme::V20191029::DeleteClassResponse`
185
+ def DeleteClass(request)
186
+ body = send_request('DeleteClass', request.serialize)
187
+ response = JSON.parse(body)
188
+ if response['Response'].key?('Error') == false
189
+ model = DeleteClassResponse.new
190
+ model.deserialize(response['Response'])
191
+ model
192
+ else
193
+ code = response['Response']['Error']['Code']
194
+ message = response['Response']['Error']['Message']
195
+ reqid = response['Response']['RequestId']
196
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
197
+ end
198
+ rescue TencentCloud::Common::TencentCloudSDKException => e
199
+ raise e
200
+ rescue StandardError => e
201
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
202
+ end
203
+
204
+ # 删除用户登录态,使用户登出云剪平台。
205
+
206
+ # @param request: Request instance for DeleteLoginStatus.
207
+ # @type request: :class:`Tencentcloud::cme::V20191029::DeleteLoginStatusRequest`
208
+ # @rtype: :class:`Tencentcloud::cme::V20191029::DeleteLoginStatusResponse`
209
+ def DeleteLoginStatus(request)
210
+ body = send_request('DeleteLoginStatus', request.serialize)
211
+ response = JSON.parse(body)
212
+ if response['Response'].key?('Error') == false
213
+ model = DeleteLoginStatusResponse.new
214
+ model.deserialize(response['Response'])
215
+ model
216
+ else
217
+ code = response['Response']['Error']['Code']
218
+ message = response['Response']['Error']['Message']
219
+ reqid = response['Response']['RequestId']
220
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
221
+ end
222
+ rescue TencentCloud::Common::TencentCloudSDKException => e
223
+ raise e
224
+ rescue StandardError => e
225
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
226
+ end
227
+
228
+ # 根据媒体 Id 删除媒体。
229
+
230
+ # @param request: Request instance for DeleteMaterial.
231
+ # @type request: :class:`Tencentcloud::cme::V20191029::DeleteMaterialRequest`
232
+ # @rtype: :class:`Tencentcloud::cme::V20191029::DeleteMaterialResponse`
233
+ def DeleteMaterial(request)
234
+ body = send_request('DeleteMaterial', request.serialize)
235
+ response = JSON.parse(body)
236
+ if response['Response'].key?('Error') == false
237
+ model = DeleteMaterialResponse.new
238
+ model.deserialize(response['Response'])
239
+ model
240
+ else
241
+ code = response['Response']['Error']['Code']
242
+ message = response['Response']['Error']['Message']
243
+ reqid = response['Response']['RequestId']
244
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
245
+ end
246
+ rescue TencentCloud::Common::TencentCloudSDKException => e
247
+ raise e
248
+ rescue StandardError => e
249
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
250
+ end
251
+
252
+ # 删除云剪编辑项目。
253
+
254
+ # @param request: Request instance for DeleteProject.
255
+ # @type request: :class:`Tencentcloud::cme::V20191029::DeleteProjectRequest`
256
+ # @rtype: :class:`Tencentcloud::cme::V20191029::DeleteProjectResponse`
257
+ def DeleteProject(request)
258
+ body = send_request('DeleteProject', request.serialize)
259
+ response = JSON.parse(body)
260
+ if response['Response'].key?('Error') == false
261
+ model = DeleteProjectResponse.new
262
+ model.deserialize(response['Response'])
263
+ model
264
+ else
265
+ code = response['Response']['Error']['Code']
266
+ message = response['Response']['Error']['Message']
267
+ reqid = response['Response']['RequestId']
268
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
269
+ end
270
+ rescue TencentCloud::Common::TencentCloudSDKException => e
271
+ raise e
272
+ rescue StandardError => e
273
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
274
+ end
275
+
276
+ # 删除一个团队。
277
+ # <li>要删除的团队必须没有归属的素材;</li>
278
+ # <li>要删除的团队必须没有归属的分类。</li>
279
+
280
+ # @param request: Request instance for DeleteTeam.
281
+ # @type request: :class:`Tencentcloud::cme::V20191029::DeleteTeamRequest`
282
+ # @rtype: :class:`Tencentcloud::cme::V20191029::DeleteTeamResponse`
283
+ def DeleteTeam(request)
284
+ body = send_request('DeleteTeam', request.serialize)
285
+ response = JSON.parse(body)
286
+ if response['Response'].key?('Error') == false
287
+ model = DeleteTeamResponse.new
288
+ model.deserialize(response['Response'])
289
+ model
290
+ else
291
+ code = response['Response']['Error']['Code']
292
+ message = response['Response']['Error']['Message']
293
+ reqid = response['Response']['RequestId']
294
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
295
+ end
296
+ rescue TencentCloud::Common::TencentCloudSDKException => e
297
+ raise e
298
+ rescue StandardError => e
299
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
300
+ end
301
+
302
+ # 将团队成员从团队中删除,默认只有 Owner 及管理员才有此权限。
303
+
304
+ # @param request: Request instance for DeleteTeamMembers.
305
+ # @type request: :class:`Tencentcloud::cme::V20191029::DeleteTeamMembersRequest`
306
+ # @rtype: :class:`Tencentcloud::cme::V20191029::DeleteTeamMembersResponse`
307
+ def DeleteTeamMembers(request)
308
+ body = send_request('DeleteTeamMembers', request.serialize)
309
+ response = JSON.parse(body)
310
+ if response['Response'].key?('Error') == false
311
+ model = DeleteTeamMembersResponse.new
312
+ model.deserialize(response['Response'])
313
+ model
314
+ else
315
+ code = response['Response']['Error']['Code']
316
+ message = response['Response']['Error']['Message']
317
+ reqid = response['Response']['RequestId']
318
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
319
+ end
320
+ rescue TencentCloud::Common::TencentCloudSDKException => e
321
+ raise e
322
+ rescue StandardError => e
323
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
324
+ end
325
+
326
+ # 获取用户账号信息。
327
+
328
+ # @param request: Request instance for DescribeAccounts.
329
+ # @type request: :class:`Tencentcloud::cme::V20191029::DescribeAccountsRequest`
330
+ # @rtype: :class:`Tencentcloud::cme::V20191029::DescribeAccountsResponse`
331
+ def DescribeAccounts(request)
332
+ body = send_request('DescribeAccounts', request.serialize)
333
+ response = JSON.parse(body)
334
+ if response['Response'].key?('Error') == false
335
+ model = DescribeAccountsResponse.new
336
+ model.deserialize(response['Response'])
337
+ model
338
+ else
339
+ code = response['Response']['Error']['Code']
340
+ message = response['Response']['Error']['Message']
341
+ reqid = response['Response']['RequestId']
342
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
343
+ end
344
+ rescue TencentCloud::Common::TencentCloudSDKException => e
345
+ raise e
346
+ rescue StandardError => e
347
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
348
+ end
349
+
350
+ # 获取指定归属者下所有的分类信息。
351
+
352
+ # @param request: Request instance for DescribeClass.
353
+ # @type request: :class:`Tencentcloud::cme::V20191029::DescribeClassRequest`
354
+ # @rtype: :class:`Tencentcloud::cme::V20191029::DescribeClassResponse`
355
+ def DescribeClass(request)
356
+ body = send_request('DescribeClass', request.serialize)
357
+ response = JSON.parse(body)
358
+ if response['Response'].key?('Error') == false
359
+ model = DescribeClassResponse.new
360
+ model.deserialize(response['Response'])
361
+ model
362
+ else
363
+ code = response['Response']['Error']['Code']
364
+ message = response['Response']['Error']['Message']
365
+ reqid = response['Response']['RequestId']
366
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
367
+ end
368
+ rescue TencentCloud::Common::TencentCloudSDKException => e
369
+ raise e
370
+ rescue StandardError => e
371
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
372
+ end
373
+
374
+ # 获取指定的团队成员所加入的团队列表。
375
+
376
+ # @param request: Request instance for DescribeJoinTeams.
377
+ # @type request: :class:`Tencentcloud::cme::V20191029::DescribeJoinTeamsRequest`
378
+ # @rtype: :class:`Tencentcloud::cme::V20191029::DescribeJoinTeamsResponse`
379
+ def DescribeJoinTeams(request)
380
+ body = send_request('DescribeJoinTeams', request.serialize)
381
+ response = JSON.parse(body)
382
+ if response['Response'].key?('Error') == false
383
+ model = DescribeJoinTeamsResponse.new
384
+ model.deserialize(response['Response'])
385
+ model
386
+ else
387
+ code = response['Response']['Error']['Code']
388
+ message = response['Response']['Error']['Message']
389
+ reqid = response['Response']['RequestId']
390
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
391
+ end
392
+ rescue TencentCloud::Common::TencentCloudSDKException => e
393
+ raise e
394
+ rescue StandardError => e
395
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
396
+ end
397
+
398
+ # 查询指定用户的登录态。
399
+
400
+ # @param request: Request instance for DescribeLoginStatus.
401
+ # @type request: :class:`Tencentcloud::cme::V20191029::DescribeLoginStatusRequest`
402
+ # @rtype: :class:`Tencentcloud::cme::V20191029::DescribeLoginStatusResponse`
403
+ def DescribeLoginStatus(request)
404
+ body = send_request('DescribeLoginStatus', request.serialize)
405
+ response = JSON.parse(body)
406
+ if response['Response'].key?('Error') == false
407
+ model = DescribeLoginStatusResponse.new
408
+ model.deserialize(response['Response'])
409
+ model
410
+ else
411
+ code = response['Response']['Error']['Code']
412
+ message = response['Response']['Error']['Message']
413
+ reqid = response['Response']['RequestId']
414
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
415
+ end
416
+ rescue TencentCloud::Common::TencentCloudSDKException => e
417
+ raise e
418
+ rescue StandardError => e
419
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
420
+ end
421
+
422
+ # 根据媒体 Id 批量获取媒体详情。
423
+
424
+ # @param request: Request instance for DescribeMaterials.
425
+ # @type request: :class:`Tencentcloud::cme::V20191029::DescribeMaterialsRequest`
426
+ # @rtype: :class:`Tencentcloud::cme::V20191029::DescribeMaterialsResponse`
427
+ def DescribeMaterials(request)
428
+ body = send_request('DescribeMaterials', request.serialize)
429
+ response = JSON.parse(body)
430
+ if response['Response'].key?('Error') == false
431
+ model = DescribeMaterialsResponse.new
432
+ model.deserialize(response['Response'])
433
+ model
434
+ else
435
+ code = response['Response']['Error']['Code']
436
+ message = response['Response']['Error']['Message']
437
+ reqid = response['Response']['RequestId']
438
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
439
+ end
440
+ rescue TencentCloud::Common::TencentCloudSDKException => e
441
+ raise e
442
+ rescue StandardError => e
443
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
444
+ end
445
+
446
+ # <li>支持获取所创建的所有平台列表信息;</li>
447
+ # <li>支持获取指定的平台列表信息。</li>
448
+
449
+
450
+ # @param request: Request instance for DescribePlatforms.
451
+ # @type request: :class:`Tencentcloud::cme::V20191029::DescribePlatformsRequest`
452
+ # @rtype: :class:`Tencentcloud::cme::V20191029::DescribePlatformsResponse`
453
+ def DescribePlatforms(request)
454
+ body = send_request('DescribePlatforms', request.serialize)
455
+ response = JSON.parse(body)
456
+ if response['Response'].key?('Error') == false
457
+ model = DescribePlatformsResponse.new
458
+ model.deserialize(response['Response'])
459
+ model
460
+ else
461
+ code = response['Response']['Error']['Code']
462
+ message = response['Response']['Error']['Message']
463
+ reqid = response['Response']['RequestId']
464
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
465
+ end
466
+ rescue TencentCloud::Common::TencentCloudSDKException => e
467
+ raise e
468
+ rescue StandardError => e
469
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
470
+ end
471
+
472
+ # 支持根据多种条件过滤出项目列表。
473
+
474
+ # @param request: Request instance for DescribeProjects.
475
+ # @type request: :class:`Tencentcloud::cme::V20191029::DescribeProjectsRequest`
476
+ # @rtype: :class:`Tencentcloud::cme::V20191029::DescribeProjectsResponse`
477
+ def DescribeProjects(request)
478
+ body = send_request('DescribeProjects', request.serialize)
479
+ response = JSON.parse(body)
480
+ if response['Response'].key?('Error') == false
481
+ model = DescribeProjectsResponse.new
482
+ model.deserialize(response['Response'])
483
+ model
484
+ else
485
+ code = response['Response']['Error']['Code']
486
+ message = response['Response']['Error']['Message']
487
+ reqid = response['Response']['RequestId']
488
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
489
+ end
490
+ rescue TencentCloud::Common::TencentCloudSDKException => e
491
+ raise e
492
+ rescue StandardError => e
493
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
494
+ end
495
+
496
+ # 查询指定资源的授权列表。
497
+
498
+ # @param request: Request instance for DescribeResourceAuthorization.
499
+ # @type request: :class:`Tencentcloud::cme::V20191029::DescribeResourceAuthorizationRequest`
500
+ # @rtype: :class:`Tencentcloud::cme::V20191029::DescribeResourceAuthorizationResponse`
501
+ def DescribeResourceAuthorization(request)
502
+ body = send_request('DescribeResourceAuthorization', request.serialize)
503
+ response = JSON.parse(body)
504
+ if response['Response'].key?('Error') == false
505
+ model = DescribeResourceAuthorizationResponse.new
506
+ model.deserialize(response['Response'])
507
+ model
508
+ else
509
+ code = response['Response']['Error']['Code']
510
+ message = response['Response']['Error']['Message']
511
+ reqid = response['Response']['RequestId']
512
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
513
+ end
514
+ rescue TencentCloud::Common::TencentCloudSDKException => e
515
+ raise e
516
+ rescue StandardError => e
517
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
518
+ end
519
+
520
+ # 获取共享空间。当个人或团队A对个人或团队B授权某资源以后,个人或团队B的共享空间就会增加个人或团队A。
521
+
522
+ # @param request: Request instance for DescribeSharedSpace.
523
+ # @type request: :class:`Tencentcloud::cme::V20191029::DescribeSharedSpaceRequest`
524
+ # @rtype: :class:`Tencentcloud::cme::V20191029::DescribeSharedSpaceResponse`
525
+ def DescribeSharedSpace(request)
526
+ body = send_request('DescribeSharedSpace', request.serialize)
527
+ response = JSON.parse(body)
528
+ if response['Response'].key?('Error') == false
529
+ model = DescribeSharedSpaceResponse.new
530
+ model.deserialize(response['Response'])
531
+ model
532
+ else
533
+ code = response['Response']['Error']['Code']
534
+ message = response['Response']['Error']['Message']
535
+ reqid = response['Response']['RequestId']
536
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
537
+ end
538
+ rescue TencentCloud::Common::TencentCloudSDKException => e
539
+ raise e
540
+ rescue StandardError => e
541
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
542
+ end
543
+
544
+ # 获取任务详情信息,包含下面几个部分:
545
+ # <li>任务基础信息:包括任务状态、错误信息、创建时间等;</li>
546
+ # <li>导出项目输出信息:包括输出的素材 Id 等。</li>
547
+
548
+ # @param request: Request instance for DescribeTaskDetail.
549
+ # @type request: :class:`Tencentcloud::cme::V20191029::DescribeTaskDetailRequest`
550
+ # @rtype: :class:`Tencentcloud::cme::V20191029::DescribeTaskDetailResponse`
551
+ def DescribeTaskDetail(request)
552
+ body = send_request('DescribeTaskDetail', request.serialize)
553
+ response = JSON.parse(body)
554
+ if response['Response'].key?('Error') == false
555
+ model = DescribeTaskDetailResponse.new
556
+ model.deserialize(response['Response'])
557
+ model
558
+ else
559
+ code = response['Response']['Error']['Code']
560
+ message = response['Response']['Error']['Message']
561
+ reqid = response['Response']['RequestId']
562
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
563
+ end
564
+ rescue TencentCloud::Common::TencentCloudSDKException => e
565
+ raise e
566
+ rescue StandardError => e
567
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
568
+ end
569
+
570
+ # 获取任务列表,支持条件筛选,返回对应的任务基础信息列表。
571
+
572
+ # @param request: Request instance for DescribeTasks.
573
+ # @type request: :class:`Tencentcloud::cme::V20191029::DescribeTasksRequest`
574
+ # @rtype: :class:`Tencentcloud::cme::V20191029::DescribeTasksResponse`
575
+ def DescribeTasks(request)
576
+ body = send_request('DescribeTasks', request.serialize)
577
+ response = JSON.parse(body)
578
+ if response['Response'].key?('Error') == false
579
+ model = DescribeTasksResponse.new
580
+ model.deserialize(response['Response'])
581
+ model
582
+ else
583
+ code = response['Response']['Error']['Code']
584
+ message = response['Response']['Error']['Message']
585
+ reqid = response['Response']['RequestId']
586
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
587
+ end
588
+ rescue TencentCloud::Common::TencentCloudSDKException => e
589
+ raise e
590
+ rescue StandardError => e
591
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
592
+ end
593
+
594
+ # 获取指定成员 ID 的信息,同时支持拉取所有团队成员信息。
595
+
596
+ # @param request: Request instance for DescribeTeamMembers.
597
+ # @type request: :class:`Tencentcloud::cme::V20191029::DescribeTeamMembersRequest`
598
+ # @rtype: :class:`Tencentcloud::cme::V20191029::DescribeTeamMembersResponse`
599
+ def DescribeTeamMembers(request)
600
+ body = send_request('DescribeTeamMembers', request.serialize)
601
+ response = JSON.parse(body)
602
+ if response['Response'].key?('Error') == false
603
+ model = DescribeTeamMembersResponse.new
604
+ model.deserialize(response['Response'])
605
+ model
606
+ else
607
+ code = response['Response']['Error']['Code']
608
+ message = response['Response']['Error']['Message']
609
+ reqid = response['Response']['RequestId']
610
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
611
+ end
612
+ rescue TencentCloud::Common::TencentCloudSDKException => e
613
+ raise e
614
+ rescue StandardError => e
615
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
616
+ end
617
+
618
+ # 获取指定团队的信息,拉取团队信息列表。
619
+
620
+ # @param request: Request instance for DescribeTeams.
621
+ # @type request: :class:`Tencentcloud::cme::V20191029::DescribeTeamsRequest`
622
+ # @rtype: :class:`Tencentcloud::cme::V20191029::DescribeTeamsResponse`
623
+ def DescribeTeams(request)
624
+ body = send_request('DescribeTeams', request.serialize)
625
+ response = JSON.parse(body)
626
+ if response['Response'].key?('Error') == false
627
+ model = DescribeTeamsResponse.new
628
+ model.deserialize(response['Response'])
629
+ model
630
+ else
631
+ code = response['Response']['Error']['Code']
632
+ message = response['Response']['Error']['Message']
633
+ reqid = response['Response']['RequestId']
634
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
635
+ end
636
+ rescue TencentCloud::Common::TencentCloudSDKException => e
637
+ raise e
638
+ rescue StandardError => e
639
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
640
+ end
641
+
642
+ # 使用视频合成协议导出视频,支持导出到CME云媒资和VOD云媒资。
643
+
644
+ # @param request: Request instance for ExportVideoByEditorTrackData.
645
+ # @type request: :class:`Tencentcloud::cme::V20191029::ExportVideoByEditorTrackDataRequest`
646
+ # @rtype: :class:`Tencentcloud::cme::V20191029::ExportVideoByEditorTrackDataResponse`
647
+ def ExportVideoByEditorTrackData(request)
648
+ body = send_request('ExportVideoByEditorTrackData', request.serialize)
649
+ response = JSON.parse(body)
650
+ if response['Response'].key?('Error') == false
651
+ model = ExportVideoByEditorTrackDataResponse.new
652
+ model.deserialize(response['Response'])
653
+ model
654
+ else
655
+ code = response['Response']['Error']['Code']
656
+ message = response['Response']['Error']['Message']
657
+ reqid = response['Response']['RequestId']
658
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
659
+ end
660
+ rescue TencentCloud::Common::TencentCloudSDKException => e
661
+ raise e
662
+ rescue StandardError => e
663
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
664
+ end
665
+
666
+ # 使用视频编辑模板直接导出视频。
667
+
668
+ # @param request: Request instance for ExportVideoByTemplate.
669
+ # @type request: :class:`Tencentcloud::cme::V20191029::ExportVideoByTemplateRequest`
670
+ # @rtype: :class:`Tencentcloud::cme::V20191029::ExportVideoByTemplateResponse`
671
+ def ExportVideoByTemplate(request)
672
+ body = send_request('ExportVideoByTemplate', request.serialize)
673
+ response = JSON.parse(body)
674
+ if response['Response'].key?('Error') == false
675
+ model = ExportVideoByTemplateResponse.new
676
+ model.deserialize(response['Response'])
677
+ model
678
+ else
679
+ code = response['Response']['Error']['Code']
680
+ message = response['Response']['Error']['Message']
681
+ reqid = response['Response']['RequestId']
682
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
683
+ end
684
+ rescue TencentCloud::Common::TencentCloudSDKException => e
685
+ raise e
686
+ rescue StandardError => e
687
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
688
+ end
689
+
690
+ # 使用视频智能拆条数据导出视频,将指定的视频拆条片段导出为一个视频。
691
+
692
+ # @param request: Request instance for ExportVideoByVideoSegmentationData.
693
+ # @type request: :class:`Tencentcloud::cme::V20191029::ExportVideoByVideoSegmentationDataRequest`
694
+ # @rtype: :class:`Tencentcloud::cme::V20191029::ExportVideoByVideoSegmentationDataResponse`
695
+ def ExportVideoByVideoSegmentationData(request)
696
+ body = send_request('ExportVideoByVideoSegmentationData', request.serialize)
697
+ response = JSON.parse(body)
698
+ if response['Response'].key?('Error') == false
699
+ model = ExportVideoByVideoSegmentationDataResponse.new
700
+ model.deserialize(response['Response'])
701
+ model
702
+ else
703
+ code = response['Response']['Error']['Code']
704
+ message = response['Response']['Error']['Message']
705
+ reqid = response['Response']['RequestId']
706
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
707
+ end
708
+ rescue TencentCloud::Common::TencentCloudSDKException => e
709
+ raise e
710
+ rescue StandardError => e
711
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
712
+ end
713
+
714
+ # 导出视频编辑项目,支持指定输出的模板。
715
+
716
+ # @param request: Request instance for ExportVideoEditProject.
717
+ # @type request: :class:`Tencentcloud::cme::V20191029::ExportVideoEditProjectRequest`
718
+ # @rtype: :class:`Tencentcloud::cme::V20191029::ExportVideoEditProjectResponse`
719
+ def ExportVideoEditProject(request)
720
+ body = send_request('ExportVideoEditProject', request.serialize)
721
+ response = JSON.parse(body)
722
+ if response['Response'].key?('Error') == false
723
+ model = ExportVideoEditProjectResponse.new
724
+ model.deserialize(response['Response'])
725
+ model
726
+ else
727
+ code = response['Response']['Error']['Code']
728
+ message = response['Response']['Error']['Message']
729
+ reqid = response['Response']['RequestId']
730
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
731
+ end
732
+ rescue TencentCloud::Common::TencentCloudSDKException => e
733
+ raise e
734
+ rescue StandardError => e
735
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
736
+ end
737
+
738
+ # 平铺分类路径下及其子分类下的所有媒体基础信息。
739
+
740
+ # @param request: Request instance for FlattenListMedia.
741
+ # @type request: :class:`Tencentcloud::cme::V20191029::FlattenListMediaRequest`
742
+ # @rtype: :class:`Tencentcloud::cme::V20191029::FlattenListMediaResponse`
743
+ def FlattenListMedia(request)
744
+ body = send_request('FlattenListMedia', request.serialize)
745
+ response = JSON.parse(body)
746
+ if response['Response'].key?('Error') == false
747
+ model = FlattenListMediaResponse.new
748
+ model.deserialize(response['Response'])
749
+ model
750
+ else
751
+ code = response['Response']['Error']['Code']
752
+ message = response['Response']['Error']['Message']
753
+ reqid = response['Response']['RequestId']
754
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
755
+ end
756
+ rescue TencentCloud::Common::TencentCloudSDKException => e
757
+ raise e
758
+ rescue StandardError => e
759
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
760
+ end
761
+
762
+ # <li>发起视频智能拆条任务,支持智能生成和平精英集锦、王者荣耀集锦、足球集锦、篮球集锦 、人物集锦、新闻拆条等任务。</li>
763
+ # <li>和平精英集锦和王者荣耀集锦根据击杀场景进行拆条,足球集锦和篮球集锦根据进球场景进行拆条,人物集锦根据人物人脸特征进行拆条,新闻拆条根据导播进行拆条。</li>
764
+ # <li>【本接口内测中,暂不建议使用】</li>
765
+
766
+ # @param request: Request instance for GenerateVideoSegmentationSchemeByAi.
767
+ # @type request: :class:`Tencentcloud::cme::V20191029::GenerateVideoSegmentationSchemeByAiRequest`
768
+ # @rtype: :class:`Tencentcloud::cme::V20191029::GenerateVideoSegmentationSchemeByAiResponse`
769
+ def GenerateVideoSegmentationSchemeByAi(request)
770
+ body = send_request('GenerateVideoSegmentationSchemeByAi', request.serialize)
771
+ response = JSON.parse(body)
772
+ if response['Response'].key?('Error') == false
773
+ model = GenerateVideoSegmentationSchemeByAiResponse.new
774
+ model.deserialize(response['Response'])
775
+ model
776
+ else
777
+ code = response['Response']['Error']['Code']
778
+ message = response['Response']['Error']['Message']
779
+ reqid = response['Response']['RequestId']
780
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
781
+ end
782
+ rescue TencentCloud::Common::TencentCloudSDKException => e
783
+ raise e
784
+ rescue StandardError => e
785
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
786
+ end
787
+
788
+ # 资源归属者对目标个人或团队授予目标资源的相应权限。
789
+
790
+ # @param request: Request instance for GrantResourceAuthorization.
791
+ # @type request: :class:`Tencentcloud::cme::V20191029::GrantResourceAuthorizationRequest`
792
+ # @rtype: :class:`Tencentcloud::cme::V20191029::GrantResourceAuthorizationResponse`
793
+ def GrantResourceAuthorization(request)
794
+ body = send_request('GrantResourceAuthorization', request.serialize)
795
+ response = JSON.parse(body)
796
+ if response['Response'].key?('Error') == false
797
+ model = GrantResourceAuthorizationResponse.new
798
+ model.deserialize(response['Response'])
799
+ model
800
+ else
801
+ code = response['Response']['Error']['Code']
802
+ message = response['Response']['Error']['Message']
803
+ reqid = response['Response']['RequestId']
804
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
805
+ end
806
+ rescue TencentCloud::Common::TencentCloudSDKException => e
807
+ raise e
808
+ rescue StandardError => e
809
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
810
+ end
811
+
812
+ # 对云转推项目进行操作。
813
+ # ### 操作类型<a id="Operation"></a>
814
+ # - `AddInput`(添加输入源),包括:
815
+ # - 添加直播拉流输入源,参见 [示例1](#.E7.A4.BA.E4.BE.8B1-.E6.B7.BB.E5.8A.A0.E7.9B.B4.E6.92.AD.E6.8B.89.E6.B5.81.E8.BE.93.E5.85.A5.E6.BA.90);
816
+ # - 添加直播推流输入源,参见 [示例2](#.E7.A4.BA.E4.BE.8B2-.E6.B7.BB.E5.8A.A0.E7.9B.B4.E6.92.AD.E6.8E.A8.E6.B5.81.E8.BE.93.E5.85.A5.E6.BA.90);
817
+ # - 添加点播拉流输入源,参见 [示例3](#.E7.A4.BA.E4.BE.8B3-.E6.B7.BB.E5.8A.A0.E7.82.B9.E6.92.AD.E6.8B.89.E6.B5.81.E8.BE.93.E5.85.A5.E6.BA.90.E4.B8.94.E5.BE.AA.E7.8E.AF.E6.92.AD.E6.94.BE)、[示例4](#.E7.A4.BA.E4.BE.8B4-.E6.B7.BB.E5.8A.A0.E7.82.B9.E6.92.AD.E6.8B.89.E6.B5.81.E8.BE.93.E5.85.A5.E6.BA.90.E4.B8.94.E5.8D.95.E6.AC.A1.E6.92.AD.E6.94.BE);
818
+ # - `DeleteInput`(删除输入源),参见 [示例5](#.E7.A4.BA.E4.BE.8B5-.E5.88.A0.E9.99.A4.E8.BE.93.E5.85.A5.E6.BA.90);
819
+ # - `ModifyInput`(修改输入源),参见 [示例6](#.E7.A4.BA.E4.BE.8B6-.E4.BF.AE.E6.94.B9.E8.BE.93.E5.85.A5.E6.BA.90);
820
+ # - `AddOutput`( 添加输出源),参见 [示例7](#.E7.A4.BA.E4.BE.8B7-.E6.B7.BB.E5.8A.A0.E8.BE.93.E5.87.BA.E6.BA.90);
821
+ # - `DeleteOutput`(删除输出源),参见 [示例8](#.E7.A4.BA.E4.BE.8B8-.E5.88.A0.E9.99.A4.E8.BE.93.E5.87.BA.E6.BA.90);
822
+ # - `ModifyOutput`(修改输出源),参见 [示例9](#.E7.A4.BA.E4.BE.8B9-.E4.BF.AE.E6.94.B9.E8.BE.93.E5.87.BA.E6.BA.90);
823
+ # - `Start`(开启转推),参见 [示例10](#.E7.A4.BA.E4.BE.8B10-.E5.BC.80.E5.90.AF.E4.BA.91.E8.BD.AC.E6.8E.A8);
824
+ # - `Stop`(停止转推),参见 [示例11](#.E7.A4.BA.E4.BE.8B11-.E5.81.9C.E6.AD.A2.E4.BA.91.E8.BD.AC.E6.8E.A8);
825
+ # - `SwitchInput`(切换输入源),参见 [示例12](#.E7.A4.BA.E4.BE.8B12-.E5.88.87.E6.8D.A2.E8.BE.93.E5.85.A5.E6.BA.90);
826
+ # - `ModifyCurrentStopTime`(修改当前计划结束时间),参见 [示例13](#.E7.A4.BA.E4.BE.8B13-.E4.BF.AE.E6.94.B9.E8.BD.AC.E6.8E.A8.E7.BB.93.E6.9D.9F.E6.97.B6.E9.97.B4)。
827
+
828
+ # @param request: Request instance for HandleStreamConnectProject.
829
+ # @type request: :class:`Tencentcloud::cme::V20191029::HandleStreamConnectProjectRequest`
830
+ # @rtype: :class:`Tencentcloud::cme::V20191029::HandleStreamConnectProjectResponse`
831
+ def HandleStreamConnectProject(request)
832
+ body = send_request('HandleStreamConnectProject', request.serialize)
833
+ response = JSON.parse(body)
834
+ if response['Response'].key?('Error') == false
835
+ model = HandleStreamConnectProjectResponse.new
836
+ model.deserialize(response['Response'])
837
+ model
838
+ else
839
+ code = response['Response']['Error']['Code']
840
+ message = response['Response']['Error']['Message']
841
+ reqid = response['Response']['RequestId']
842
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
843
+ end
844
+ rescue TencentCloud::Common::TencentCloudSDKException => e
845
+ raise e
846
+ rescue StandardError => e
847
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
848
+ end
849
+
850
+ # 将云点播媒资文件导入到云剪媒体资源库。
851
+
852
+ # @param request: Request instance for ImportMaterial.
853
+ # @type request: :class:`Tencentcloud::cme::V20191029::ImportMaterialRequest`
854
+ # @rtype: :class:`Tencentcloud::cme::V20191029::ImportMaterialResponse`
855
+ def ImportMaterial(request)
856
+ body = send_request('ImportMaterial', request.serialize)
857
+ response = JSON.parse(body)
858
+ if response['Response'].key?('Error') == false
859
+ model = ImportMaterialResponse.new
860
+ model.deserialize(response['Response'])
861
+ model
862
+ else
863
+ code = response['Response']['Error']['Code']
864
+ message = response['Response']['Error']['Message']
865
+ reqid = response['Response']['RequestId']
866
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
867
+ end
868
+ rescue TencentCloud::Common::TencentCloudSDKException => e
869
+ raise e
870
+ rescue StandardError => e
871
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
872
+ end
873
+
874
+ # 将云点播中的媒资或者用户自有媒资文件添加到媒体库中,跟项目关联,供后续视频编辑使用。目前仅普通编辑项目和智能视频拆条项目有效。
875
+
876
+ # @param request: Request instance for ImportMediaToProject.
877
+ # @type request: :class:`Tencentcloud::cme::V20191029::ImportMediaToProjectRequest`
878
+ # @rtype: :class:`Tencentcloud::cme::V20191029::ImportMediaToProjectResponse`
879
+ def ImportMediaToProject(request)
880
+ body = send_request('ImportMediaToProject', request.serialize)
881
+ response = JSON.parse(body)
882
+ if response['Response'].key?('Error') == false
883
+ model = ImportMediaToProjectResponse.new
884
+ model.deserialize(response['Response'])
885
+ model
886
+ else
887
+ code = response['Response']['Error']['Code']
888
+ message = response['Response']['Error']['Message']
889
+ reqid = response['Response']['RequestId']
890
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
891
+ end
892
+ rescue TencentCloud::Common::TencentCloudSDKException => e
893
+ raise e
894
+ rescue StandardError => e
895
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
896
+ end
897
+
898
+ # 浏览当前分类路径下的资源,包括媒体文件和子分类,返回媒资基础信息和分类信息。
899
+
900
+ # @param request: Request instance for ListMedia.
901
+ # @type request: :class:`Tencentcloud::cme::V20191029::ListMediaRequest`
902
+ # @rtype: :class:`Tencentcloud::cme::V20191029::ListMediaResponse`
903
+ def ListMedia(request)
904
+ body = send_request('ListMedia', request.serialize)
905
+ response = JSON.parse(body)
906
+ if response['Response'].key?('Error') == false
907
+ model = ListMediaResponse.new
908
+ model.deserialize(response['Response'])
909
+ model
910
+ else
911
+ code = response['Response']['Error']['Code']
912
+ message = response['Response']['Error']['Message']
913
+ reqid = response['Response']['RequestId']
914
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
915
+ end
916
+ rescue TencentCloud::Common::TencentCloudSDKException => e
917
+ raise e
918
+ rescue StandardError => e
919
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
920
+ end
921
+
922
+ # 修改媒体信息,支持修改媒体名称、分类路径、标签等信息。
923
+
924
+ # @param request: Request instance for ModifyMaterial.
925
+ # @type request: :class:`Tencentcloud::cme::V20191029::ModifyMaterialRequest`
926
+ # @rtype: :class:`Tencentcloud::cme::V20191029::ModifyMaterialResponse`
927
+ def ModifyMaterial(request)
928
+ body = send_request('ModifyMaterial', request.serialize)
929
+ response = JSON.parse(body)
930
+ if response['Response'].key?('Error') == false
931
+ model = ModifyMaterialResponse.new
932
+ model.deserialize(response['Response'])
933
+ model
934
+ else
935
+ code = response['Response']['Error']['Code']
936
+ message = response['Response']['Error']['Message']
937
+ reqid = response['Response']['RequestId']
938
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
939
+ end
940
+ rescue TencentCloud::Common::TencentCloudSDKException => e
941
+ raise e
942
+ rescue StandardError => e
943
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
944
+ end
945
+
946
+ # 修改云剪编辑项目的信息。
947
+
948
+ # @param request: Request instance for ModifyProject.
949
+ # @type request: :class:`Tencentcloud::cme::V20191029::ModifyProjectRequest`
950
+ # @rtype: :class:`Tencentcloud::cme::V20191029::ModifyProjectResponse`
951
+ def ModifyProject(request)
952
+ body = send_request('ModifyProject', request.serialize)
953
+ response = JSON.parse(body)
954
+ if response['Response'].key?('Error') == false
955
+ model = ModifyProjectResponse.new
956
+ model.deserialize(response['Response'])
957
+ model
958
+ else
959
+ code = response['Response']['Error']['Code']
960
+ message = response['Response']['Error']['Message']
961
+ reqid = response['Response']['RequestId']
962
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
963
+ end
964
+ rescue TencentCloud::Common::TencentCloudSDKException => e
965
+ raise e
966
+ rescue StandardError => e
967
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
968
+ end
969
+
970
+ # 修改团队信息,目前支持修改的操作有:
971
+ # <li>修改团队名称。</li>
972
+
973
+ # @param request: Request instance for ModifyTeam.
974
+ # @type request: :class:`Tencentcloud::cme::V20191029::ModifyTeamRequest`
975
+ # @rtype: :class:`Tencentcloud::cme::V20191029::ModifyTeamResponse`
976
+ def ModifyTeam(request)
977
+ body = send_request('ModifyTeam', request.serialize)
978
+ response = JSON.parse(body)
979
+ if response['Response'].key?('Error') == false
980
+ model = ModifyTeamResponse.new
981
+ model.deserialize(response['Response'])
982
+ model
983
+ else
984
+ code = response['Response']['Error']['Code']
985
+ message = response['Response']['Error']['Message']
986
+ reqid = response['Response']['RequestId']
987
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
988
+ end
989
+ rescue TencentCloud::Common::TencentCloudSDKException => e
990
+ raise e
991
+ rescue StandardError => e
992
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
993
+ end
994
+
995
+ # 修改团队成员信息,包括成员备注、角色等。
996
+
997
+ # @param request: Request instance for ModifyTeamMember.
998
+ # @type request: :class:`Tencentcloud::cme::V20191029::ModifyTeamMemberRequest`
999
+ # @rtype: :class:`Tencentcloud::cme::V20191029::ModifyTeamMemberResponse`
1000
+ def ModifyTeamMember(request)
1001
+ body = send_request('ModifyTeamMember', request.serialize)
1002
+ response = JSON.parse(body)
1003
+ if response['Response'].key?('Error') == false
1004
+ model = ModifyTeamMemberResponse.new
1005
+ model.deserialize(response['Response'])
1006
+ model
1007
+ else
1008
+ code = response['Response']['Error']['Code']
1009
+ message = response['Response']['Error']['Message']
1010
+ reqid = response['Response']['RequestId']
1011
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
1012
+ end
1013
+ rescue TencentCloud::Common::TencentCloudSDKException => e
1014
+ raise e
1015
+ rescue StandardError => e
1016
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
1017
+ end
1018
+
1019
+ # 移动某一个分类到另外一个分类下,也可用于分类重命名。
1020
+ # 如果 SourceClassPath = /素材/视频/NBA,DestinationClassPath = /素材/视频/篮球
1021
+ # <li>当 DestinationClassPath 不存在时候,操作结果为重命名 ClassPath;</li>
1022
+ # <li>当 DestinationClassPath 存在时候,操作结果为产生新目录 /素材/视频/篮球/NBA</li>
1023
+
1024
+ # @param request: Request instance for MoveClass.
1025
+ # @type request: :class:`Tencentcloud::cme::V20191029::MoveClassRequest`
1026
+ # @rtype: :class:`Tencentcloud::cme::V20191029::MoveClassResponse`
1027
+ def MoveClass(request)
1028
+ body = send_request('MoveClass', request.serialize)
1029
+ response = JSON.parse(body)
1030
+ if response['Response'].key?('Error') == false
1031
+ model = MoveClassResponse.new
1032
+ model.deserialize(response['Response'])
1033
+ model
1034
+ else
1035
+ code = response['Response']['Error']['Code']
1036
+ message = response['Response']['Error']['Message']
1037
+ reqid = response['Response']['RequestId']
1038
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
1039
+ end
1040
+ rescue TencentCloud::Common::TencentCloudSDKException => e
1041
+ raise e
1042
+ rescue StandardError => e
1043
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
1044
+ end
1045
+
1046
+ # 移动资源,支持跨个人或团队移动媒体以及分类。如果填写了Operator,则需要校验用户对媒体和分类资源的访问以及写权限。
1047
+ # <li>当原始资源为媒体时,该接口效果为将该媒体移动到目标分类下面;</li>
1048
+ # <li>当原始资源为分类时,该接口效果为将原始分类移动到目标分类或者是重命名。</li>
1049
+ # 如果 SourceResource.Resource.Id = /素材/视频/NBA,DestinationResource.Resource.Id= /素材/视频/篮球
1050
+ # <li>当 DestinationResource.Resource.Id 不存在时候且原始资源与目标资源归属相同,操作结果为重命名原始分类;</li>
1051
+ # <li>当 DestinationResource.Resource.Id 存在时候,操作结果为产生新目录 /素材/视频/篮球/NBA</li>
1052
+
1053
+ # @param request: Request instance for MoveResource.
1054
+ # @type request: :class:`Tencentcloud::cme::V20191029::MoveResourceRequest`
1055
+ # @rtype: :class:`Tencentcloud::cme::V20191029::MoveResourceResponse`
1056
+ def MoveResource(request)
1057
+ body = send_request('MoveResource', request.serialize)
1058
+ response = JSON.parse(body)
1059
+ if response['Response'].key?('Error') == false
1060
+ model = MoveResourceResponse.new
1061
+ model.deserialize(response['Response'])
1062
+ model
1063
+ else
1064
+ code = response['Response']['Error']['Code']
1065
+ message = response['Response']['Error']['Message']
1066
+ reqid = response['Response']['RequestId']
1067
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
1068
+ end
1069
+ rescue TencentCloud::Common::TencentCloudSDKException => e
1070
+ raise e
1071
+ rescue StandardError => e
1072
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
1073
+ end
1074
+
1075
+ # 该接口接受制作云回调给客户的事件内容,将其转化为对应的 EventContent 结构,请不要实际调用该接口,只需要将接收到的事件内容直接使用 JSON 解析到 EventContent 即可使用。
1076
+
1077
+ # @param request: Request instance for ParseEvent.
1078
+ # @type request: :class:`Tencentcloud::cme::V20191029::ParseEventRequest`
1079
+ # @rtype: :class:`Tencentcloud::cme::V20191029::ParseEventResponse`
1080
+ def ParseEvent(request)
1081
+ body = send_request('ParseEvent', request.serialize)
1082
+ response = JSON.parse(body)
1083
+ if response['Response'].key?('Error') == false
1084
+ model = ParseEventResponse.new
1085
+ model.deserialize(response['Response'])
1086
+ model
1087
+ else
1088
+ code = response['Response']['Error']['Code']
1089
+ message = response['Response']['Error']['Message']
1090
+ reqid = response['Response']['RequestId']
1091
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
1092
+ end
1093
+ rescue TencentCloud::Common::TencentCloudSDKException => e
1094
+ raise e
1095
+ rescue StandardError => e
1096
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
1097
+ end
1098
+
1099
+ # 资源所属实体对目标实体回收目标资源的相应权限,若原本没有相应权限则不产生变更。
1100
+
1101
+ # @param request: Request instance for RevokeResourceAuthorization.
1102
+ # @type request: :class:`Tencentcloud::cme::V20191029::RevokeResourceAuthorizationRequest`
1103
+ # @rtype: :class:`Tencentcloud::cme::V20191029::RevokeResourceAuthorizationResponse`
1104
+ def RevokeResourceAuthorization(request)
1105
+ body = send_request('RevokeResourceAuthorization', request.serialize)
1106
+ response = JSON.parse(body)
1107
+ if response['Response'].key?('Error') == false
1108
+ model = RevokeResourceAuthorizationResponse.new
1109
+ model.deserialize(response['Response'])
1110
+ model
1111
+ else
1112
+ code = response['Response']['Error']['Code']
1113
+ message = response['Response']['Error']['Message']
1114
+ reqid = response['Response']['RequestId']
1115
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
1116
+ end
1117
+ rescue TencentCloud::Common::TencentCloudSDKException => e
1118
+ raise e
1119
+ rescue StandardError => e
1120
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
1121
+ end
1122
+
1123
+ # 根据检索条件搜索媒体,返回媒体的基本信息。
1124
+
1125
+ # @param request: Request instance for SearchMaterial.
1126
+ # @type request: :class:`Tencentcloud::cme::V20191029::SearchMaterialRequest`
1127
+ # @rtype: :class:`Tencentcloud::cme::V20191029::SearchMaterialResponse`
1128
+ def SearchMaterial(request)
1129
+ body = send_request('SearchMaterial', request.serialize)
1130
+ response = JSON.parse(body)
1131
+ if response['Response'].key?('Error') == false
1132
+ model = SearchMaterialResponse.new
1133
+ model.deserialize(response['Response'])
1134
+ model
1135
+ else
1136
+ code = response['Response']['Error']['Code']
1137
+ message = response['Response']['Error']['Message']
1138
+ reqid = response['Response']['RequestId']
1139
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
1140
+ end
1141
+ rescue TencentCloud::Common::TencentCloudSDKException => e
1142
+ raise e
1143
+ rescue StandardError => e
1144
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
1145
+ end
1146
+
1147
+
1148
+ end
1149
+ end
1150
+ end
1151
+ end