/*
* Copyright (c) 2018 THL A29 Limited, a Tencent company. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
namespace TencentCloud.Cme.V20191029
{
using Newtonsoft.Json;
using System.Threading.Tasks;
using TencentCloud.Common;
using TencentCloud.Common.Profile;
using TencentCloud.Cme.V20191029.Models;
public class CmeClient : AbstractClient{
private const string endpoint = "cme.tencentcloudapi.com";
private const string version = "2019-10-29";
///
/// Client constructor.
///
/// Credentials.
/// Region name, such as "ap-guangzhou".
public CmeClient(Credential credential, string region)
: this(credential, region, new ClientProfile())
{
}
///
/// Client Constructor.
///
/// Credentials.
/// Region name, such as "ap-guangzhou".
/// Client profiles.
public CmeClient(Credential credential, string region, ClientProfile profile)
: base(endpoint, version, credential, region, profile)
{
}
///
/// 向一个团队中团队成员,并且指定成员的角色。
///
///
///
public async Task AddTeamMember(AddTeamMemberRequest req)
{
JsonResponseModel rsp = null;
try
{
var strResp = await this.InternalRequest(req, "AddTeamMember");
rsp = JsonConvert.DeserializeObject>(strResp);
}
catch (JsonSerializationException e)
{
throw new TencentCloudSDKException(e.Message);
}
return rsp.Response;
}
///
/// 向一个团队中团队成员,并且指定成员的角色。
///
///
///
public AddTeamMemberResponse AddTeamMemberSync(AddTeamMemberRequest req)
{
JsonResponseModel rsp = null;
try
{
var strResp = this.InternalRequestSync(req, "AddTeamMember");
rsp = JsonConvert.DeserializeObject>(strResp);
}
catch (JsonSerializationException e)
{
throw new TencentCloudSDKException(e.Message);
}
return rsp.Response;
}
///
/// 新增分类,用于管理素材。
/// 分类层数不能超过10;
/// 子分类数不能超过10。
///
///
///
public async Task CreateClass(CreateClassRequest req)
{
JsonResponseModel rsp = null;
try
{
var strResp = await this.InternalRequest(req, "CreateClass");
rsp = JsonConvert.DeserializeObject>(strResp);
}
catch (JsonSerializationException e)
{
throw new TencentCloudSDKException(e.Message);
}
return rsp.Response;
}
///
/// 新增分类,用于管理素材。
/// 分类层数不能超过10;
/// 子分类数不能超过10。
///
///
///
public CreateClassResponse CreateClassSync(CreateClassRequest req)
{
JsonResponseModel rsp = null;
try
{
var strResp = this.InternalRequestSync(req, "CreateClass");
rsp = JsonConvert.DeserializeObject>(strResp);
}
catch (JsonSerializationException e)
{
throw new TencentCloudSDKException(e.Message);
}
return rsp.Response;
}
///
/// 创建素材链接或分类路径链接,将源资源信息链接到目标。
///
///
///
public async Task CreateLink(CreateLinkRequest req)
{
JsonResponseModel rsp = null;
try
{
var strResp = await this.InternalRequest(req, "CreateLink");
rsp = JsonConvert.DeserializeObject>(strResp);
}
catch (JsonSerializationException e)
{
throw new TencentCloudSDKException(e.Message);
}
return rsp.Response;
}
///
/// 创建素材链接或分类路径链接,将源资源信息链接到目标。
///
///
///
public CreateLinkResponse CreateLinkSync(CreateLinkRequest req)
{
JsonResponseModel rsp = null;
try
{
var strResp = this.InternalRequestSync(req, "CreateLink");
rsp = JsonConvert.DeserializeObject>(strResp);
}
catch (JsonSerializationException e)
{
throw new TencentCloudSDKException(e.Message);
}
return rsp.Response;
}
///
/// 创建云剪的编辑项目,支持创建视频剪辑及直播剪辑两大类项目。
///
///
///
public async Task CreateProject(CreateProjectRequest req)
{
JsonResponseModel rsp = null;
try
{
var strResp = await this.InternalRequest(req, "CreateProject");
rsp = JsonConvert.DeserializeObject>(strResp);
}
catch (JsonSerializationException e)
{
throw new TencentCloudSDKException(e.Message);
}
return rsp.Response;
}
///
/// 创建云剪的编辑项目,支持创建视频剪辑及直播剪辑两大类项目。
///
///
///
public CreateProjectResponse CreateProjectSync(CreateProjectRequest req)
{
JsonResponseModel rsp = null;
try
{
var strResp = this.InternalRequestSync(req, "CreateProject");
rsp = JsonConvert.DeserializeObject>(strResp);
}
catch (JsonSerializationException e)
{
throw new TencentCloudSDKException(e.Message);
}
return rsp.Response;
}
///
/// 创建一个团队。
///
///
///
public async Task CreateTeam(CreateTeamRequest req)
{
JsonResponseModel rsp = null;
try
{
var strResp = await this.InternalRequest(req, "CreateTeam");
rsp = JsonConvert.DeserializeObject>(strResp);
}
catch (JsonSerializationException e)
{
throw new TencentCloudSDKException(e.Message);
}
return rsp.Response;
}
///
/// 创建一个团队。
///
///
///
public CreateTeamResponse CreateTeamSync(CreateTeamRequest req)
{
JsonResponseModel rsp = null;
try
{
var strResp = this.InternalRequestSync(req, "CreateTeam");
rsp = JsonConvert.DeserializeObject>(strResp);
}
catch (JsonSerializationException e)
{
throw new TencentCloudSDKException(e.Message);
}
return rsp.Response;
}
///
/// 删除分类信息,删除时检验下述限制:
/// 分类路径必须存在;
/// 分类下没有绑定素材。
///
///
///
public async Task DeleteClass(DeleteClassRequest req)
{
JsonResponseModel rsp = null;
try
{
var strResp = await this.InternalRequest(req, "DeleteClass");
rsp = JsonConvert.DeserializeObject>(strResp);
}
catch (JsonSerializationException e)
{
throw new TencentCloudSDKException(e.Message);
}
return rsp.Response;
}
///
/// 删除分类信息,删除时检验下述限制:
/// 分类路径必须存在;
/// 分类下没有绑定素材。
///
///
///
public DeleteClassResponse DeleteClassSync(DeleteClassRequest req)
{
JsonResponseModel rsp = null;
try
{
var strResp = this.InternalRequestSync(req, "DeleteClass");
rsp = JsonConvert.DeserializeObject>(strResp);
}
catch (JsonSerializationException e)
{
throw new TencentCloudSDKException(e.Message);
}
return rsp.Response;
}
///
/// 删除用户登录态,使用户登出云剪平台。
///
///
///
public async Task DeleteLoginStatus(DeleteLoginStatusRequest req)
{
JsonResponseModel rsp = null;
try
{
var strResp = await this.InternalRequest(req, "DeleteLoginStatus");
rsp = JsonConvert.DeserializeObject>(strResp);
}
catch (JsonSerializationException e)
{
throw new TencentCloudSDKException(e.Message);
}
return rsp.Response;
}
///
/// 删除用户登录态,使用户登出云剪平台。
///
///
///
public DeleteLoginStatusResponse DeleteLoginStatusSync(DeleteLoginStatusRequest req)
{
JsonResponseModel rsp = null;
try
{
var strResp = this.InternalRequestSync(req, "DeleteLoginStatus");
rsp = JsonConvert.DeserializeObject>(strResp);
}
catch (JsonSerializationException e)
{
throw new TencentCloudSDKException(e.Message);
}
return rsp.Response;
}
///
/// 根据素材 Id 删除素材。
///
///
///
public async Task DeleteMaterial(DeleteMaterialRequest req)
{
JsonResponseModel rsp = null;
try
{
var strResp = await this.InternalRequest(req, "DeleteMaterial");
rsp = JsonConvert.DeserializeObject>(strResp);
}
catch (JsonSerializationException e)
{
throw new TencentCloudSDKException(e.Message);
}
return rsp.Response;
}
///
/// 根据素材 Id 删除素材。
///
///
///
public DeleteMaterialResponse DeleteMaterialSync(DeleteMaterialRequest req)
{
JsonResponseModel rsp = null;
try
{
var strResp = this.InternalRequestSync(req, "DeleteMaterial");
rsp = JsonConvert.DeserializeObject>(strResp);
}
catch (JsonSerializationException e)
{
throw new TencentCloudSDKException(e.Message);
}
return rsp.Response;
}
///
/// 删除云剪编辑项目。
///
///
///
public async Task DeleteProject(DeleteProjectRequest req)
{
JsonResponseModel rsp = null;
try
{
var strResp = await this.InternalRequest(req, "DeleteProject");
rsp = JsonConvert.DeserializeObject>(strResp);
}
catch (JsonSerializationException e)
{
throw new TencentCloudSDKException(e.Message);
}
return rsp.Response;
}
///
/// 删除云剪编辑项目。
///
///
///
public DeleteProjectResponse DeleteProjectSync(DeleteProjectRequest req)
{
JsonResponseModel rsp = null;
try
{
var strResp = this.InternalRequestSync(req, "DeleteProject");
rsp = JsonConvert.DeserializeObject>(strResp);
}
catch (JsonSerializationException e)
{
throw new TencentCloudSDKException(e.Message);
}
return rsp.Response;
}
///
/// 删除一个团队。
/// 要删除的团队必须没有归属的素材;
/// 要删除的团队必须没有归属的分类。
///
///
///
public async Task DeleteTeam(DeleteTeamRequest req)
{
JsonResponseModel rsp = null;
try
{
var strResp = await this.InternalRequest(req, "DeleteTeam");
rsp = JsonConvert.DeserializeObject>(strResp);
}
catch (JsonSerializationException e)
{
throw new TencentCloudSDKException(e.Message);
}
return rsp.Response;
}
///
/// 删除一个团队。
/// 要删除的团队必须没有归属的素材;
/// 要删除的团队必须没有归属的分类。
///
///
///
public DeleteTeamResponse DeleteTeamSync(DeleteTeamRequest req)
{
JsonResponseModel rsp = null;
try
{
var strResp = this.InternalRequestSync(req, "DeleteTeam");
rsp = JsonConvert.DeserializeObject>(strResp);
}
catch (JsonSerializationException e)
{
throw new TencentCloudSDKException(e.Message);
}
return rsp.Response;
}
///
/// 将团队成员从团队中删除,默认只有 Owner 及管理员才有此权限。
///
///
///
public async Task DeleteTeamMembers(DeleteTeamMembersRequest req)
{
JsonResponseModel rsp = null;
try
{
var strResp = await this.InternalRequest(req, "DeleteTeamMembers");
rsp = JsonConvert.DeserializeObject>(strResp);
}
catch (JsonSerializationException e)
{
throw new TencentCloudSDKException(e.Message);
}
return rsp.Response;
}
///
/// 将团队成员从团队中删除,默认只有 Owner 及管理员才有此权限。
///
///
///
public DeleteTeamMembersResponse DeleteTeamMembersSync(DeleteTeamMembersRequest req)
{
JsonResponseModel rsp = null;
try
{
var strResp = this.InternalRequestSync(req, "DeleteTeamMembers");
rsp = JsonConvert.DeserializeObject>(strResp);
}
catch (JsonSerializationException e)
{
throw new TencentCloudSDKException(e.Message);
}
return rsp.Response;
}
///
/// 获取指定归属者下所有的分类信息。
///
///
///
public async Task DescribeClass(DescribeClassRequest req)
{
JsonResponseModel rsp = null;
try
{
var strResp = await this.InternalRequest(req, "DescribeClass");
rsp = JsonConvert.DeserializeObject>(strResp);
}
catch (JsonSerializationException e)
{
throw new TencentCloudSDKException(e.Message);
}
return rsp.Response;
}
///
/// 获取指定归属者下所有的分类信息。
///
///
///
public DescribeClassResponse DescribeClassSync(DescribeClassRequest req)
{
JsonResponseModel rsp = null;
try
{
var strResp = this.InternalRequestSync(req, "DescribeClass");
rsp = JsonConvert.DeserializeObject>(strResp);
}
catch (JsonSerializationException e)
{
throw new TencentCloudSDKException(e.Message);
}
return rsp.Response;
}
///
/// 获取指定的团队成员所加入的团队列表。
///
///
///
public async Task DescribeJoinTeams(DescribeJoinTeamsRequest req)
{
JsonResponseModel rsp = null;
try
{
var strResp = await this.InternalRequest(req, "DescribeJoinTeams");
rsp = JsonConvert.DeserializeObject>(strResp);
}
catch (JsonSerializationException e)
{
throw new TencentCloudSDKException(e.Message);
}
return rsp.Response;
}
///
/// 获取指定的团队成员所加入的团队列表。
///
///
///
public DescribeJoinTeamsResponse DescribeJoinTeamsSync(DescribeJoinTeamsRequest req)
{
JsonResponseModel rsp = null;
try
{
var strResp = this.InternalRequestSync(req, "DescribeJoinTeams");
rsp = JsonConvert.DeserializeObject>(strResp);
}
catch (JsonSerializationException e)
{
throw new TencentCloudSDKException(e.Message);
}
return rsp.Response;
}
///
/// 查询指定用户的登录态。
///
///
///
public async Task DescribeLoginStatus(DescribeLoginStatusRequest req)
{
JsonResponseModel rsp = null;
try
{
var strResp = await this.InternalRequest(req, "DescribeLoginStatus");
rsp = JsonConvert.DeserializeObject>(strResp);
}
catch (JsonSerializationException e)
{
throw new TencentCloudSDKException(e.Message);
}
return rsp.Response;
}
///
/// 查询指定用户的登录态。
///
///
///
public DescribeLoginStatusResponse DescribeLoginStatusSync(DescribeLoginStatusRequest req)
{
JsonResponseModel rsp = null;
try
{
var strResp = this.InternalRequestSync(req, "DescribeLoginStatus");
rsp = JsonConvert.DeserializeObject>(strResp);
}
catch (JsonSerializationException e)
{
throw new TencentCloudSDKException(e.Message);
}
return rsp.Response;
}
///
/// 根据素材 Id 批量获取素材详情。
///
///
///
public async Task DescribeMaterials(DescribeMaterialsRequest req)
{
JsonResponseModel rsp = null;
try
{
var strResp = await this.InternalRequest(req, "DescribeMaterials");
rsp = JsonConvert.DeserializeObject>(strResp);
}
catch (JsonSerializationException e)
{
throw new TencentCloudSDKException(e.Message);
}
return rsp.Response;
}
///
/// 根据素材 Id 批量获取素材详情。
///
///
///
public DescribeMaterialsResponse DescribeMaterialsSync(DescribeMaterialsRequest req)
{
JsonResponseModel rsp = null;
try
{
var strResp = this.InternalRequestSync(req, "DescribeMaterials");
rsp = JsonConvert.DeserializeObject>(strResp);
}
catch (JsonSerializationException e)
{
throw new TencentCloudSDKException(e.Message);
}
return rsp.Response;
}
///
/// 支持根据多种条件过滤出项目列表。
///
///
///
public async Task DescribeProjects(DescribeProjectsRequest req)
{
JsonResponseModel rsp = null;
try
{
var strResp = await this.InternalRequest(req, "DescribeProjects");
rsp = JsonConvert.DeserializeObject>(strResp);
}
catch (JsonSerializationException e)
{
throw new TencentCloudSDKException(e.Message);
}
return rsp.Response;
}
///
/// 支持根据多种条件过滤出项目列表。
///
///
///
public DescribeProjectsResponse DescribeProjectsSync(DescribeProjectsRequest req)
{
JsonResponseModel rsp = null;
try
{
var strResp = this.InternalRequestSync(req, "DescribeProjects");
rsp = JsonConvert.DeserializeObject>(strResp);
}
catch (JsonSerializationException e)
{
throw new TencentCloudSDKException(e.Message);
}
return rsp.Response;
}
///
/// 查询指定资源的授权列表。
///
///
///
public async Task DescribeResourceAuthorization(DescribeResourceAuthorizationRequest req)
{
JsonResponseModel rsp = null;
try
{
var strResp = await this.InternalRequest(req, "DescribeResourceAuthorization");
rsp = JsonConvert.DeserializeObject>(strResp);
}
catch (JsonSerializationException e)
{
throw new TencentCloudSDKException(e.Message);
}
return rsp.Response;
}
///
/// 查询指定资源的授权列表。
///
///
///
public DescribeResourceAuthorizationResponse DescribeResourceAuthorizationSync(DescribeResourceAuthorizationRequest req)
{
JsonResponseModel rsp = null;
try
{
var strResp = this.InternalRequestSync(req, "DescribeResourceAuthorization");
rsp = JsonConvert.DeserializeObject>(strResp);
}
catch (JsonSerializationException e)
{
throw new TencentCloudSDKException(e.Message);
}
return rsp.Response;
}
///
/// 获取共享空间。当实体A对实体B授权某资源以后,实体B的共享空间就会增加实体A。
///
///
///
public async Task DescribeSharedSpace(DescribeSharedSpaceRequest req)
{
JsonResponseModel rsp = null;
try
{
var strResp = await this.InternalRequest(req, "DescribeSharedSpace");
rsp = JsonConvert.DeserializeObject>(strResp);
}
catch (JsonSerializationException e)
{
throw new TencentCloudSDKException(e.Message);
}
return rsp.Response;
}
///
/// 获取共享空间。当实体A对实体B授权某资源以后,实体B的共享空间就会增加实体A。
///
///
///
public DescribeSharedSpaceResponse DescribeSharedSpaceSync(DescribeSharedSpaceRequest req)
{
JsonResponseModel rsp = null;
try
{
var strResp = this.InternalRequestSync(req, "DescribeSharedSpace");
rsp = JsonConvert.DeserializeObject>(strResp);
}
catch (JsonSerializationException e)
{
throw new TencentCloudSDKException(e.Message);
}
return rsp.Response;
}
///
/// 获取任务详情信息,包含下面几个部分:
/// 任务基础信息:包括任务状态、错误信息、创建时间等;
/// 导出项目输出信息:包括输出的素材 Id 等。
///
///
///
public async Task DescribeTaskDetail(DescribeTaskDetailRequest req)
{
JsonResponseModel rsp = null;
try
{
var strResp = await this.InternalRequest(req, "DescribeTaskDetail");
rsp = JsonConvert.DeserializeObject>(strResp);
}
catch (JsonSerializationException e)
{
throw new TencentCloudSDKException(e.Message);
}
return rsp.Response;
}
///
/// 获取任务详情信息,包含下面几个部分:
/// 任务基础信息:包括任务状态、错误信息、创建时间等;
/// 导出项目输出信息:包括输出的素材 Id 等。
///
///
///
public DescribeTaskDetailResponse DescribeTaskDetailSync(DescribeTaskDetailRequest req)
{
JsonResponseModel rsp = null;
try
{
var strResp = this.InternalRequestSync(req, "DescribeTaskDetail");
rsp = JsonConvert.DeserializeObject>(strResp);
}
catch (JsonSerializationException e)
{
throw new TencentCloudSDKException(e.Message);
}
return rsp.Response;
}
///
/// 获取任务列表,支持条件筛选,返回对应的任务基础信息列表。
///
///
///
public async Task DescribeTasks(DescribeTasksRequest req)
{
JsonResponseModel rsp = null;
try
{
var strResp = await this.InternalRequest(req, "DescribeTasks");
rsp = JsonConvert.DeserializeObject>(strResp);
}
catch (JsonSerializationException e)
{
throw new TencentCloudSDKException(e.Message);
}
return rsp.Response;
}
///
/// 获取任务列表,支持条件筛选,返回对应的任务基础信息列表。
///
///
///
public DescribeTasksResponse DescribeTasksSync(DescribeTasksRequest req)
{
JsonResponseModel rsp = null;
try
{
var strResp = this.InternalRequestSync(req, "DescribeTasks");
rsp = JsonConvert.DeserializeObject>(strResp);
}
catch (JsonSerializationException e)
{
throw new TencentCloudSDKException(e.Message);
}
return rsp.Response;
}
///
/// 获取指定成员 ID 的信息,同时支持拉取所有团队成员信息。
///
///
///
public async Task DescribeTeamMembers(DescribeTeamMembersRequest req)
{
JsonResponseModel rsp = null;
try
{
var strResp = await this.InternalRequest(req, "DescribeTeamMembers");
rsp = JsonConvert.DeserializeObject>(strResp);
}
catch (JsonSerializationException e)
{
throw new TencentCloudSDKException(e.Message);
}
return rsp.Response;
}
///
/// 获取指定成员 ID 的信息,同时支持拉取所有团队成员信息。
///
///
///
public DescribeTeamMembersResponse DescribeTeamMembersSync(DescribeTeamMembersRequest req)
{
JsonResponseModel rsp = null;
try
{
var strResp = this.InternalRequestSync(req, "DescribeTeamMembers");
rsp = JsonConvert.DeserializeObject>(strResp);
}
catch (JsonSerializationException e)
{
throw new TencentCloudSDKException(e.Message);
}
return rsp.Response;
}
///
/// 获取指定团队的信息。
///
///
///
public async Task DescribeTeams(DescribeTeamsRequest req)
{
JsonResponseModel rsp = null;
try
{
var strResp = await this.InternalRequest(req, "DescribeTeams");
rsp = JsonConvert.DeserializeObject>(strResp);
}
catch (JsonSerializationException e)
{
throw new TencentCloudSDKException(e.Message);
}
return rsp.Response;
}
///
/// 获取指定团队的信息。
///
///
///
public DescribeTeamsResponse DescribeTeamsSync(DescribeTeamsRequest req)
{
JsonResponseModel rsp = null;
try
{
var strResp = this.InternalRequestSync(req, "DescribeTeams");
rsp = JsonConvert.DeserializeObject>(strResp);
}
catch (JsonSerializationException e)
{
throw new TencentCloudSDKException(e.Message);
}
return rsp.Response;
}
///
/// 导出视频编辑项目,支持指定输出的模板。
///
///
///
public async Task ExportVideoEditProject(ExportVideoEditProjectRequest req)
{
JsonResponseModel rsp = null;
try
{
var strResp = await this.InternalRequest(req, "ExportVideoEditProject");
rsp = JsonConvert.DeserializeObject>(strResp);
}
catch (JsonSerializationException e)
{
throw new TencentCloudSDKException(e.Message);
}
return rsp.Response;
}
///
/// 导出视频编辑项目,支持指定输出的模板。
///
///
///
public ExportVideoEditProjectResponse ExportVideoEditProjectSync(ExportVideoEditProjectRequest req)
{
JsonResponseModel rsp = null;
try
{
var strResp = this.InternalRequestSync(req, "ExportVideoEditProject");
rsp = JsonConvert.DeserializeObject>(strResp);
}
catch (JsonSerializationException e)
{
throw new TencentCloudSDKException(e.Message);
}
return rsp.Response;
}
///
/// 平铺分类路径下及其子分类下的所有素材。
///
///
///
public async Task FlattenListMedia(FlattenListMediaRequest req)
{
JsonResponseModel rsp = null;
try
{
var strResp = await this.InternalRequest(req, "FlattenListMedia");
rsp = JsonConvert.DeserializeObject>(strResp);
}
catch (JsonSerializationException e)
{
throw new TencentCloudSDKException(e.Message);
}
return rsp.Response;
}
///
/// 平铺分类路径下及其子分类下的所有素材。
///
///
///
public FlattenListMediaResponse FlattenListMediaSync(FlattenListMediaRequest req)
{
JsonResponseModel rsp = null;
try
{
var strResp = this.InternalRequestSync(req, "FlattenListMedia");
rsp = JsonConvert.DeserializeObject>(strResp);
}
catch (JsonSerializationException e)
{
throw new TencentCloudSDKException(e.Message);
}
return rsp.Response;
}
///
/// 资源所属实体对目标实体授予目标资源的相应权限。
///
///
///
public async Task GrantResourceAuthorization(GrantResourceAuthorizationRequest req)
{
JsonResponseModel rsp = null;
try
{
var strResp = await this.InternalRequest(req, "GrantResourceAuthorization");
rsp = JsonConvert.DeserializeObject>(strResp);
}
catch (JsonSerializationException e)
{
throw new TencentCloudSDKException(e.Message);
}
return rsp.Response;
}
///
/// 资源所属实体对目标实体授予目标资源的相应权限。
///
///
///
public GrantResourceAuthorizationResponse GrantResourceAuthorizationSync(GrantResourceAuthorizationRequest req)
{
JsonResponseModel rsp = null;
try
{
var strResp = this.InternalRequestSync(req, "GrantResourceAuthorization");
rsp = JsonConvert.DeserializeObject>(strResp);
}
catch (JsonSerializationException e)
{
throw new TencentCloudSDKException(e.Message);
}
return rsp.Response;
}
///
/// 将云点播媒资文件导入到云剪素材库。
///
///
///
public async Task ImportMaterial(ImportMaterialRequest req)
{
JsonResponseModel rsp = null;
try
{
var strResp = await this.InternalRequest(req, "ImportMaterial");
rsp = JsonConvert.DeserializeObject>(strResp);
}
catch (JsonSerializationException e)
{
throw new TencentCloudSDKException(e.Message);
}
return rsp.Response;
}
///
/// 将云点播媒资文件导入到云剪素材库。
///
///
///
public ImportMaterialResponse ImportMaterialSync(ImportMaterialRequest req)
{
JsonResponseModel rsp = null;
try
{
var strResp = this.InternalRequestSync(req, "ImportMaterial");
rsp = JsonConvert.DeserializeObject>(strResp);
}
catch (JsonSerializationException e)
{
throw new TencentCloudSDKException(e.Message);
}
return rsp.Response;
}
///
/// 将云点播中的媒资添加到素材库中,供后续视频编辑使用。
///
///
///
public async Task ImportMediaToProject(ImportMediaToProjectRequest req)
{
JsonResponseModel rsp = null;
try
{
var strResp = await this.InternalRequest(req, "ImportMediaToProject");
rsp = JsonConvert.DeserializeObject>(strResp);
}
catch (JsonSerializationException e)
{
throw new TencentCloudSDKException(e.Message);
}
return rsp.Response;
}
///
/// 将云点播中的媒资添加到素材库中,供后续视频编辑使用。
///
///
///
public ImportMediaToProjectResponse ImportMediaToProjectSync(ImportMediaToProjectRequest req)
{
JsonResponseModel rsp = null;
try
{
var strResp = this.InternalRequestSync(req, "ImportMediaToProject");
rsp = JsonConvert.DeserializeObject>(strResp);
}
catch (JsonSerializationException e)
{
throw new TencentCloudSDKException(e.Message);
}
return rsp.Response;
}
///
/// 浏览当前分类路径下的资源,包括素材和子分类。
///
///
///
public async Task ListMedia(ListMediaRequest req)
{
JsonResponseModel rsp = null;
try
{
var strResp = await this.InternalRequest(req, "ListMedia");
rsp = JsonConvert.DeserializeObject>(strResp);
}
catch (JsonSerializationException e)
{
throw new TencentCloudSDKException(e.Message);
}
return rsp.Response;
}
///
/// 浏览当前分类路径下的资源,包括素材和子分类。
///
///
///
public ListMediaResponse ListMediaSync(ListMediaRequest req)
{
JsonResponseModel rsp = null;
try
{
var strResp = this.InternalRequestSync(req, "ListMedia");
rsp = JsonConvert.DeserializeObject>(strResp);
}
catch (JsonSerializationException e)
{
throw new TencentCloudSDKException(e.Message);
}
return rsp.Response;
}
///
/// 修改素材信息,支持修改素材名称、分类路径、标签等信息。
///
///
///
public async Task ModifyMaterial(ModifyMaterialRequest req)
{
JsonResponseModel rsp = null;
try
{
var strResp = await this.InternalRequest(req, "ModifyMaterial");
rsp = JsonConvert.DeserializeObject>(strResp);
}
catch (JsonSerializationException e)
{
throw new TencentCloudSDKException(e.Message);
}
return rsp.Response;
}
///
/// 修改素材信息,支持修改素材名称、分类路径、标签等信息。
///
///
///
public ModifyMaterialResponse ModifyMaterialSync(ModifyMaterialRequest req)
{
JsonResponseModel rsp = null;
try
{
var strResp = this.InternalRequestSync(req, "ModifyMaterial");
rsp = JsonConvert.DeserializeObject>(strResp);
}
catch (JsonSerializationException e)
{
throw new TencentCloudSDKException(e.Message);
}
return rsp.Response;
}
///
/// 修改云剪编辑项目的信息。
///
///
///
public async Task ModifyProject(ModifyProjectRequest req)
{
JsonResponseModel rsp = null;
try
{
var strResp = await this.InternalRequest(req, "ModifyProject");
rsp = JsonConvert.DeserializeObject>(strResp);
}
catch (JsonSerializationException e)
{
throw new TencentCloudSDKException(e.Message);
}
return rsp.Response;
}
///
/// 修改云剪编辑项目的信息。
///
///
///
public ModifyProjectResponse ModifyProjectSync(ModifyProjectRequest req)
{
JsonResponseModel rsp = null;
try
{
var strResp = this.InternalRequestSync(req, "ModifyProject");
rsp = JsonConvert.DeserializeObject>(strResp);
}
catch (JsonSerializationException e)
{
throw new TencentCloudSDKException(e.Message);
}
return rsp.Response;
}
///
/// 修改团队信息,目前支持修改的操作有:
/// 修改团队名称。
///
///
///
public async Task ModifyTeam(ModifyTeamRequest req)
{
JsonResponseModel rsp = null;
try
{
var strResp = await this.InternalRequest(req, "ModifyTeam");
rsp = JsonConvert.DeserializeObject>(strResp);
}
catch (JsonSerializationException e)
{
throw new TencentCloudSDKException(e.Message);
}
return rsp.Response;
}
///
/// 修改团队信息,目前支持修改的操作有:
/// 修改团队名称。
///
///
///
public ModifyTeamResponse ModifyTeamSync(ModifyTeamRequest req)
{
JsonResponseModel rsp = null;
try
{
var strResp = this.InternalRequestSync(req, "ModifyTeam");
rsp = JsonConvert.DeserializeObject>(strResp);
}
catch (JsonSerializationException e)
{
throw new TencentCloudSDKException(e.Message);
}
return rsp.Response;
}
///
/// 修改团队成员信息,包括成员备注、角色等。
///
///
///
public async Task ModifyTeamMember(ModifyTeamMemberRequest req)
{
JsonResponseModel rsp = null;
try
{
var strResp = await this.InternalRequest(req, "ModifyTeamMember");
rsp = JsonConvert.DeserializeObject>(strResp);
}
catch (JsonSerializationException e)
{
throw new TencentCloudSDKException(e.Message);
}
return rsp.Response;
}
///
/// 修改团队成员信息,包括成员备注、角色等。
///
///
///
public ModifyTeamMemberResponse ModifyTeamMemberSync(ModifyTeamMemberRequest req)
{
JsonResponseModel rsp = null;
try
{
var strResp = this.InternalRequestSync(req, "ModifyTeamMember");
rsp = JsonConvert.DeserializeObject>(strResp);
}
catch (JsonSerializationException e)
{
throw new TencentCloudSDKException(e.Message);
}
return rsp.Response;
}
///
/// 移动某一个分类到另外一个分类下,也可用于分类重命名。
/// 如果 SourceClassPath = /素材/视频/NBA,DestinationClassPath = /素材/视频/篮球,当 DestinationClassPath 不存在时候,操作结果为重命名 ClassPath,如果 DestinationClassPath 存在时候,操作结果为产生新目录 /素材/视频/篮球/NBA。
///
///
///
public async Task MoveClass(MoveClassRequest req)
{
JsonResponseModel rsp = null;
try
{
var strResp = await this.InternalRequest(req, "MoveClass");
rsp = JsonConvert.DeserializeObject>(strResp);
}
catch (JsonSerializationException e)
{
throw new TencentCloudSDKException(e.Message);
}
return rsp.Response;
}
///
/// 移动某一个分类到另外一个分类下,也可用于分类重命名。
/// 如果 SourceClassPath = /素材/视频/NBA,DestinationClassPath = /素材/视频/篮球,当 DestinationClassPath 不存在时候,操作结果为重命名 ClassPath,如果 DestinationClassPath 存在时候,操作结果为产生新目录 /素材/视频/篮球/NBA。
///
///
///
public MoveClassResponse MoveClassSync(MoveClassRequest req)
{
JsonResponseModel rsp = null;
try
{
var strResp = this.InternalRequestSync(req, "MoveClass");
rsp = JsonConvert.DeserializeObject>(strResp);
}
catch (JsonSerializationException e)
{
throw new TencentCloudSDKException(e.Message);
}
return rsp.Response;
}
///
/// 资源所属实体对目标实体回收目标资源的相应权限,若原本没有相应权限则不产生变更。
///
///
///
public async Task RevokeResourceAuthorization(RevokeResourceAuthorizationRequest req)
{
JsonResponseModel rsp = null;
try
{
var strResp = await this.InternalRequest(req, "RevokeResourceAuthorization");
rsp = JsonConvert.DeserializeObject>(strResp);
}
catch (JsonSerializationException e)
{
throw new TencentCloudSDKException(e.Message);
}
return rsp.Response;
}
///
/// 资源所属实体对目标实体回收目标资源的相应权限,若原本没有相应权限则不产生变更。
///
///
///
public RevokeResourceAuthorizationResponse RevokeResourceAuthorizationSync(RevokeResourceAuthorizationRequest req)
{
JsonResponseModel rsp = null;
try
{
var strResp = this.InternalRequestSync(req, "RevokeResourceAuthorization");
rsp = JsonConvert.DeserializeObject>(strResp);
}
catch (JsonSerializationException e)
{
throw new TencentCloudSDKException(e.Message);
}
return rsp.Response;
}
///
/// 根据检索条件搜索素材,返回素材的基本信息。
///
///
///
public async Task SearchMaterial(SearchMaterialRequest req)
{
JsonResponseModel rsp = null;
try
{
var strResp = await this.InternalRequest(req, "SearchMaterial");
rsp = JsonConvert.DeserializeObject>(strResp);
}
catch (JsonSerializationException e)
{
throw new TencentCloudSDKException(e.Message);
}
return rsp.Response;
}
///
/// 根据检索条件搜索素材,返回素材的基本信息。
///
///
///
public SearchMaterialResponse SearchMaterialSync(SearchMaterialRequest req)
{
JsonResponseModel rsp = null;
try
{
var strResp = this.InternalRequestSync(req, "SearchMaterial");
rsp = JsonConvert.DeserializeObject>(strResp);
}
catch (JsonSerializationException e)
{
throw new TencentCloudSDKException(e.Message);
}
return rsp.Response;
}
}
}