代码修改后的版本,全部提交
This commit is contained in:
428
TencentCloud/Drm/V20181115/DrmClient.cs
Normal file
428
TencentCloud/Drm/V20181115/DrmClient.cs
Normal file
@@ -0,0 +1,428 @@
|
||||
/*
|
||||
* 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.Drm.V20181115
|
||||
{
|
||||
|
||||
using Newtonsoft.Json;
|
||||
using System.Threading.Tasks;
|
||||
using TencentCloud.Common;
|
||||
using TencentCloud.Common.Profile;
|
||||
using TencentCloud.Drm.V20181115.Models;
|
||||
|
||||
public class DrmClient : AbstractClient{
|
||||
|
||||
private const string endpoint = "drm.tencentcloudapi.com";
|
||||
private const string version = "2018-11-15";
|
||||
|
||||
/// <summary>
|
||||
/// Client constructor.
|
||||
/// </summary>
|
||||
/// <param name="credential">Credentials.</param>
|
||||
/// <param name="region">Region name, such as "ap-guangzhou".</param>
|
||||
public DrmClient(Credential credential, string region)
|
||||
: this(credential, region, new ClientProfile())
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Client Constructor.
|
||||
/// </summary>
|
||||
/// <param name="credential">Credentials.</param>
|
||||
/// <param name="region">Region name, such as "ap-guangzhou".</param>
|
||||
/// <param name="profile">Client profiles.</param>
|
||||
public DrmClient(Credential credential, string region, ClientProfile profile)
|
||||
: base(endpoint, version, credential, region, profile)
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 本接口用来设置fairplay方案所需的私钥、私钥密钥、ask等信息。
|
||||
/// 如需使用fairplay方案,请务必先设置私钥。
|
||||
/// </summary>
|
||||
/// <param name="req"><see cref="AddFairPlayPemRequest"/></param>
|
||||
/// <returns><see cref="AddFairPlayPemResponse"/></returns>
|
||||
public async Task<AddFairPlayPemResponse> AddFairPlayPem(AddFairPlayPemRequest req)
|
||||
{
|
||||
JsonResponseModel<AddFairPlayPemResponse> rsp = null;
|
||||
try
|
||||
{
|
||||
var strResp = await this.InternalRequest(req, "AddFairPlayPem");
|
||||
rsp = JsonConvert.DeserializeObject<JsonResponseModel<AddFairPlayPemResponse>>(strResp);
|
||||
}
|
||||
catch (JsonSerializationException e)
|
||||
{
|
||||
throw new TencentCloudSDKException(e.Message);
|
||||
}
|
||||
return rsp.Response;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 本接口用来设置fairplay方案所需的私钥、私钥密钥、ask等信息。
|
||||
/// 如需使用fairplay方案,请务必先设置私钥。
|
||||
/// </summary>
|
||||
/// <param name="req"><see cref="AddFairPlayPemRequest"/></param>
|
||||
/// <returns><see cref="AddFairPlayPemResponse"/></returns>
|
||||
public AddFairPlayPemResponse AddFairPlayPemSync(AddFairPlayPemRequest req)
|
||||
{
|
||||
JsonResponseModel<AddFairPlayPemResponse> rsp = null;
|
||||
try
|
||||
{
|
||||
var strResp = this.InternalRequestSync(req, "AddFairPlayPem");
|
||||
rsp = JsonConvert.DeserializeObject<JsonResponseModel<AddFairPlayPemResponse>>(strResp);
|
||||
}
|
||||
catch (JsonSerializationException e)
|
||||
{
|
||||
throw new TencentCloudSDKException(e.Message);
|
||||
}
|
||||
return rsp.Response;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 该接口用来设置加密的密钥。注意,同一个content id,只能设置一次!
|
||||
/// </summary>
|
||||
/// <param name="req"><see cref="CreateEncryptKeysRequest"/></param>
|
||||
/// <returns><see cref="CreateEncryptKeysResponse"/></returns>
|
||||
public async Task<CreateEncryptKeysResponse> CreateEncryptKeys(CreateEncryptKeysRequest req)
|
||||
{
|
||||
JsonResponseModel<CreateEncryptKeysResponse> rsp = null;
|
||||
try
|
||||
{
|
||||
var strResp = await this.InternalRequest(req, "CreateEncryptKeys");
|
||||
rsp = JsonConvert.DeserializeObject<JsonResponseModel<CreateEncryptKeysResponse>>(strResp);
|
||||
}
|
||||
catch (JsonSerializationException e)
|
||||
{
|
||||
throw new TencentCloudSDKException(e.Message);
|
||||
}
|
||||
return rsp.Response;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 该接口用来设置加密的密钥。注意,同一个content id,只能设置一次!
|
||||
/// </summary>
|
||||
/// <param name="req"><see cref="CreateEncryptKeysRequest"/></param>
|
||||
/// <returns><see cref="CreateEncryptKeysResponse"/></returns>
|
||||
public CreateEncryptKeysResponse CreateEncryptKeysSync(CreateEncryptKeysRequest req)
|
||||
{
|
||||
JsonResponseModel<CreateEncryptKeysResponse> rsp = null;
|
||||
try
|
||||
{
|
||||
var strResp = this.InternalRequestSync(req, "CreateEncryptKeys");
|
||||
rsp = JsonConvert.DeserializeObject<JsonResponseModel<CreateEncryptKeysResponse>>(strResp);
|
||||
}
|
||||
catch (JsonSerializationException e)
|
||||
{
|
||||
throw new TencentCloudSDKException(e.Message);
|
||||
}
|
||||
return rsp.Response;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 本接口用来生成DRM方案对应的播放许可证,开发者需提供DRM方案类型、内容类型参数,后台将生成许可证后返回许可证数据
|
||||
/// 开发者需要转发终端设备发出的许可证请求信息。
|
||||
/// </summary>
|
||||
/// <param name="req"><see cref="CreateLicenseRequest"/></param>
|
||||
/// <returns><see cref="CreateLicenseResponse"/></returns>
|
||||
public async Task<CreateLicenseResponse> CreateLicense(CreateLicenseRequest req)
|
||||
{
|
||||
JsonResponseModel<CreateLicenseResponse> rsp = null;
|
||||
try
|
||||
{
|
||||
var strResp = await this.InternalRequest(req, "CreateLicense");
|
||||
rsp = JsonConvert.DeserializeObject<JsonResponseModel<CreateLicenseResponse>>(strResp);
|
||||
}
|
||||
catch (JsonSerializationException e)
|
||||
{
|
||||
throw new TencentCloudSDKException(e.Message);
|
||||
}
|
||||
return rsp.Response;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 本接口用来生成DRM方案对应的播放许可证,开发者需提供DRM方案类型、内容类型参数,后台将生成许可证后返回许可证数据
|
||||
/// 开发者需要转发终端设备发出的许可证请求信息。
|
||||
/// </summary>
|
||||
/// <param name="req"><see cref="CreateLicenseRequest"/></param>
|
||||
/// <returns><see cref="CreateLicenseResponse"/></returns>
|
||||
public CreateLicenseResponse CreateLicenseSync(CreateLicenseRequest req)
|
||||
{
|
||||
JsonResponseModel<CreateLicenseResponse> rsp = null;
|
||||
try
|
||||
{
|
||||
var strResp = this.InternalRequestSync(req, "CreateLicense");
|
||||
rsp = JsonConvert.DeserializeObject<JsonResponseModel<CreateLicenseResponse>>(strResp);
|
||||
}
|
||||
catch (JsonSerializationException e)
|
||||
{
|
||||
throw new TencentCloudSDKException(e.Message);
|
||||
}
|
||||
return rsp.Response;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 本接口用来删除fairplay方案的私钥、ask等信息
|
||||
/// 注:高风险操作,删除后,您将无法使用腾讯云DRM提供的fairplay服务。
|
||||
/// 由于缓存,删除操作需要约半小时生效
|
||||
/// </summary>
|
||||
/// <param name="req"><see cref="DeleteFairPlayPemRequest"/></param>
|
||||
/// <returns><see cref="DeleteFairPlayPemResponse"/></returns>
|
||||
public async Task<DeleteFairPlayPemResponse> DeleteFairPlayPem(DeleteFairPlayPemRequest req)
|
||||
{
|
||||
JsonResponseModel<DeleteFairPlayPemResponse> rsp = null;
|
||||
try
|
||||
{
|
||||
var strResp = await this.InternalRequest(req, "DeleteFairPlayPem");
|
||||
rsp = JsonConvert.DeserializeObject<JsonResponseModel<DeleteFairPlayPemResponse>>(strResp);
|
||||
}
|
||||
catch (JsonSerializationException e)
|
||||
{
|
||||
throw new TencentCloudSDKException(e.Message);
|
||||
}
|
||||
return rsp.Response;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 本接口用来删除fairplay方案的私钥、ask等信息
|
||||
/// 注:高风险操作,删除后,您将无法使用腾讯云DRM提供的fairplay服务。
|
||||
/// 由于缓存,删除操作需要约半小时生效
|
||||
/// </summary>
|
||||
/// <param name="req"><see cref="DeleteFairPlayPemRequest"/></param>
|
||||
/// <returns><see cref="DeleteFairPlayPemResponse"/></returns>
|
||||
public DeleteFairPlayPemResponse DeleteFairPlayPemSync(DeleteFairPlayPemRequest req)
|
||||
{
|
||||
JsonResponseModel<DeleteFairPlayPemResponse> rsp = null;
|
||||
try
|
||||
{
|
||||
var strResp = this.InternalRequestSync(req, "DeleteFairPlayPem");
|
||||
rsp = JsonConvert.DeserializeObject<JsonResponseModel<DeleteFairPlayPemResponse>>(strResp);
|
||||
}
|
||||
catch (JsonSerializationException e)
|
||||
{
|
||||
throw new TencentCloudSDKException(e.Message);
|
||||
}
|
||||
return rsp.Response;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 本接口用来查询指定DRM类型、ContentType的所有加密密钥
|
||||
/// </summary>
|
||||
/// <param name="req"><see cref="DescribeAllKeysRequest"/></param>
|
||||
/// <returns><see cref="DescribeAllKeysResponse"/></returns>
|
||||
public async Task<DescribeAllKeysResponse> DescribeAllKeys(DescribeAllKeysRequest req)
|
||||
{
|
||||
JsonResponseModel<DescribeAllKeysResponse> rsp = null;
|
||||
try
|
||||
{
|
||||
var strResp = await this.InternalRequest(req, "DescribeAllKeys");
|
||||
rsp = JsonConvert.DeserializeObject<JsonResponseModel<DescribeAllKeysResponse>>(strResp);
|
||||
}
|
||||
catch (JsonSerializationException e)
|
||||
{
|
||||
throw new TencentCloudSDKException(e.Message);
|
||||
}
|
||||
return rsp.Response;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 本接口用来查询指定DRM类型、ContentType的所有加密密钥
|
||||
/// </summary>
|
||||
/// <param name="req"><see cref="DescribeAllKeysRequest"/></param>
|
||||
/// <returns><see cref="DescribeAllKeysResponse"/></returns>
|
||||
public DescribeAllKeysResponse DescribeAllKeysSync(DescribeAllKeysRequest req)
|
||||
{
|
||||
JsonResponseModel<DescribeAllKeysResponse> rsp = null;
|
||||
try
|
||||
{
|
||||
var strResp = this.InternalRequestSync(req, "DescribeAllKeys");
|
||||
rsp = JsonConvert.DeserializeObject<JsonResponseModel<DescribeAllKeysResponse>>(strResp);
|
||||
}
|
||||
catch (JsonSerializationException e)
|
||||
{
|
||||
throw new TencentCloudSDKException(e.Message);
|
||||
}
|
||||
return rsp.Response;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 该接口用来查询设置的FairPlay私钥校验信息。可用该接口校验设置的私钥与本身的私钥是否一致。
|
||||
/// </summary>
|
||||
/// <param name="req"><see cref="DescribeFairPlayPemRequest"/></param>
|
||||
/// <returns><see cref="DescribeFairPlayPemResponse"/></returns>
|
||||
public async Task<DescribeFairPlayPemResponse> DescribeFairPlayPem(DescribeFairPlayPemRequest req)
|
||||
{
|
||||
JsonResponseModel<DescribeFairPlayPemResponse> rsp = null;
|
||||
try
|
||||
{
|
||||
var strResp = await this.InternalRequest(req, "DescribeFairPlayPem");
|
||||
rsp = JsonConvert.DeserializeObject<JsonResponseModel<DescribeFairPlayPemResponse>>(strResp);
|
||||
}
|
||||
catch (JsonSerializationException e)
|
||||
{
|
||||
throw new TencentCloudSDKException(e.Message);
|
||||
}
|
||||
return rsp.Response;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 该接口用来查询设置的FairPlay私钥校验信息。可用该接口校验设置的私钥与本身的私钥是否一致。
|
||||
/// </summary>
|
||||
/// <param name="req"><see cref="DescribeFairPlayPemRequest"/></param>
|
||||
/// <returns><see cref="DescribeFairPlayPemResponse"/></returns>
|
||||
public DescribeFairPlayPemResponse DescribeFairPlayPemSync(DescribeFairPlayPemRequest req)
|
||||
{
|
||||
JsonResponseModel<DescribeFairPlayPemResponse> rsp = null;
|
||||
try
|
||||
{
|
||||
var strResp = this.InternalRequestSync(req, "DescribeFairPlayPem");
|
||||
rsp = JsonConvert.DeserializeObject<JsonResponseModel<DescribeFairPlayPemResponse>>(strResp);
|
||||
}
|
||||
catch (JsonSerializationException e)
|
||||
{
|
||||
throw new TencentCloudSDKException(e.Message);
|
||||
}
|
||||
return rsp.Response;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 开发者需要指定使用的DRM类型、和需要加密的Track类型,后台返回加密使用的密钥
|
||||
/// 如果加密使用的ContentID没有关联的密钥信息,后台会自动生成新的密钥返回
|
||||
/// </summary>
|
||||
/// <param name="req"><see cref="DescribeKeysRequest"/></param>
|
||||
/// <returns><see cref="DescribeKeysResponse"/></returns>
|
||||
public async Task<DescribeKeysResponse> DescribeKeys(DescribeKeysRequest req)
|
||||
{
|
||||
JsonResponseModel<DescribeKeysResponse> rsp = null;
|
||||
try
|
||||
{
|
||||
var strResp = await this.InternalRequest(req, "DescribeKeys");
|
||||
rsp = JsonConvert.DeserializeObject<JsonResponseModel<DescribeKeysResponse>>(strResp);
|
||||
}
|
||||
catch (JsonSerializationException e)
|
||||
{
|
||||
throw new TencentCloudSDKException(e.Message);
|
||||
}
|
||||
return rsp.Response;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 开发者需要指定使用的DRM类型、和需要加密的Track类型,后台返回加密使用的密钥
|
||||
/// 如果加密使用的ContentID没有关联的密钥信息,后台会自动生成新的密钥返回
|
||||
/// </summary>
|
||||
/// <param name="req"><see cref="DescribeKeysRequest"/></param>
|
||||
/// <returns><see cref="DescribeKeysResponse"/></returns>
|
||||
public DescribeKeysResponse DescribeKeysSync(DescribeKeysRequest req)
|
||||
{
|
||||
JsonResponseModel<DescribeKeysResponse> rsp = null;
|
||||
try
|
||||
{
|
||||
var strResp = this.InternalRequestSync(req, "DescribeKeys");
|
||||
rsp = JsonConvert.DeserializeObject<JsonResponseModel<DescribeKeysResponse>>(strResp);
|
||||
}
|
||||
catch (JsonSerializationException e)
|
||||
{
|
||||
throw new TencentCloudSDKException(e.Message);
|
||||
}
|
||||
return rsp.Response;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 本接口用来设置fairplay方案所需的私钥、私钥密钥、ask等信息。
|
||||
/// 如需使用fairplay方案,请务必先设置私钥。
|
||||
/// </summary>
|
||||
/// <param name="req"><see cref="ModifyFairPlayPemRequest"/></param>
|
||||
/// <returns><see cref="ModifyFairPlayPemResponse"/></returns>
|
||||
public async Task<ModifyFairPlayPemResponse> ModifyFairPlayPem(ModifyFairPlayPemRequest req)
|
||||
{
|
||||
JsonResponseModel<ModifyFairPlayPemResponse> rsp = null;
|
||||
try
|
||||
{
|
||||
var strResp = await this.InternalRequest(req, "ModifyFairPlayPem");
|
||||
rsp = JsonConvert.DeserializeObject<JsonResponseModel<ModifyFairPlayPemResponse>>(strResp);
|
||||
}
|
||||
catch (JsonSerializationException e)
|
||||
{
|
||||
throw new TencentCloudSDKException(e.Message);
|
||||
}
|
||||
return rsp.Response;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 本接口用来设置fairplay方案所需的私钥、私钥密钥、ask等信息。
|
||||
/// 如需使用fairplay方案,请务必先设置私钥。
|
||||
/// </summary>
|
||||
/// <param name="req"><see cref="ModifyFairPlayPemRequest"/></param>
|
||||
/// <returns><see cref="ModifyFairPlayPemResponse"/></returns>
|
||||
public ModifyFairPlayPemResponse ModifyFairPlayPemSync(ModifyFairPlayPemRequest req)
|
||||
{
|
||||
JsonResponseModel<ModifyFairPlayPemResponse> rsp = null;
|
||||
try
|
||||
{
|
||||
var strResp = this.InternalRequestSync(req, "ModifyFairPlayPem");
|
||||
rsp = JsonConvert.DeserializeObject<JsonResponseModel<ModifyFairPlayPemResponse>>(strResp);
|
||||
}
|
||||
catch (JsonSerializationException e)
|
||||
{
|
||||
throw new TencentCloudSDKException(e.Message);
|
||||
}
|
||||
return rsp.Response;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 开发者调用该接口,启动一次内容文件的DRM加密工作流
|
||||
/// </summary>
|
||||
/// <param name="req"><see cref="StartEncryptionRequest"/></param>
|
||||
/// <returns><see cref="StartEncryptionResponse"/></returns>
|
||||
public async Task<StartEncryptionResponse> StartEncryption(StartEncryptionRequest req)
|
||||
{
|
||||
JsonResponseModel<StartEncryptionResponse> rsp = null;
|
||||
try
|
||||
{
|
||||
var strResp = await this.InternalRequest(req, "StartEncryption");
|
||||
rsp = JsonConvert.DeserializeObject<JsonResponseModel<StartEncryptionResponse>>(strResp);
|
||||
}
|
||||
catch (JsonSerializationException e)
|
||||
{
|
||||
throw new TencentCloudSDKException(e.Message);
|
||||
}
|
||||
return rsp.Response;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 开发者调用该接口,启动一次内容文件的DRM加密工作流
|
||||
/// </summary>
|
||||
/// <param name="req"><see cref="StartEncryptionRequest"/></param>
|
||||
/// <returns><see cref="StartEncryptionResponse"/></returns>
|
||||
public StartEncryptionResponse StartEncryptionSync(StartEncryptionRequest req)
|
||||
{
|
||||
JsonResponseModel<StartEncryptionResponse> rsp = null;
|
||||
try
|
||||
{
|
||||
var strResp = this.InternalRequestSync(req, "StartEncryption");
|
||||
rsp = JsonConvert.DeserializeObject<JsonResponseModel<StartEncryptionResponse>>(strResp);
|
||||
}
|
||||
catch (JsonSerializationException e)
|
||||
{
|
||||
throw new TencentCloudSDKException(e.Message);
|
||||
}
|
||||
return rsp.Response;
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
76
TencentCloud/Drm/V20181115/Models/AddFairPlayPemRequest.cs
Normal file
76
TencentCloud/Drm/V20181115/Models/AddFairPlayPemRequest.cs
Normal file
@@ -0,0 +1,76 @@
|
||||
/*
|
||||
* 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.Drm.V20181115.Models
|
||||
{
|
||||
using Newtonsoft.Json;
|
||||
using System.Collections.Generic;
|
||||
using TencentCloud.Common;
|
||||
|
||||
public class AddFairPlayPemRequest : AbstractModel
|
||||
{
|
||||
|
||||
/// <summary>
|
||||
/// 加密后的fairplay方案申请时使用的私钥。
|
||||
/// 请使用腾讯云DRM 提供的公钥,使用rsa加密算法,PKCS1填充方式对私钥文件中的字段进行加密,并对加密结果进行base64编码。
|
||||
/// </summary>
|
||||
[JsonProperty("Pem")]
|
||||
public string Pem{ get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 加密后的fairplay方案申请返回的ask数据。
|
||||
/// 请使用腾讯云DRM 提供的公钥,使用rsa加密算法,PKCS1填充方式对Ask字符串进行加密,并对加密结果进行base64编码。
|
||||
/// </summary>
|
||||
[JsonProperty("Ask")]
|
||||
public string Ask{ get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 私钥的解密密钥。
|
||||
/// openssl在生成rsa时,可能会需要设置加密密钥,请记住设置的密钥。
|
||||
/// 请使用腾讯云DRM 提供的公钥,使用rsa加密算法,PKCS1填充方式对解密密钥进行加密,并对加密结果进行base64编码。
|
||||
/// </summary>
|
||||
[JsonProperty("PemDecryptKey")]
|
||||
public string PemDecryptKey{ get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 委托者Id,适用于托管自身证书的客户。普通客户无需填该字段。
|
||||
/// </summary>
|
||||
[JsonProperty("BailorId")]
|
||||
public ulong? BailorId{ get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 私钥的优先级,优先级数值越高,优先级越高。
|
||||
/// 该值可以不传,后台将自动分配一个优先级。
|
||||
/// </summary>
|
||||
[JsonProperty("Priority")]
|
||||
public ulong? Priority{ get; set; }
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// For internal usage only. DO NOT USE IT.
|
||||
/// </summary>
|
||||
internal override void ToMap(Dictionary<string, string> map, string prefix)
|
||||
{
|
||||
this.SetParamSimple(map, prefix + "Pem", this.Pem);
|
||||
this.SetParamSimple(map, prefix + "Ask", this.Ask);
|
||||
this.SetParamSimple(map, prefix + "PemDecryptKey", this.PemDecryptKey);
|
||||
this.SetParamSimple(map, prefix + "BailorId", this.BailorId);
|
||||
this.SetParamSimple(map, prefix + "Priority", this.Priority);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
59
TencentCloud/Drm/V20181115/Models/AddFairPlayPemResponse.cs
Normal file
59
TencentCloud/Drm/V20181115/Models/AddFairPlayPemResponse.cs
Normal file
@@ -0,0 +1,59 @@
|
||||
/*
|
||||
* 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.Drm.V20181115.Models
|
||||
{
|
||||
using Newtonsoft.Json;
|
||||
using System.Collections.Generic;
|
||||
using TencentCloud.Common;
|
||||
|
||||
public class AddFairPlayPemResponse : AbstractModel
|
||||
{
|
||||
|
||||
/// <summary>
|
||||
/// 设置私钥后,后台返回的pem id,用来唯一标识一个私钥。
|
||||
/// 注意:此字段可能返回 null,表示取不到有效值。
|
||||
/// </summary>
|
||||
[JsonProperty("FairPlayPemId")]
|
||||
public ulong? FairPlayPemId{ get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 私钥的优先级,优先级数值越高,优先级越高。
|
||||
/// 注意:此字段可能返回 null,表示取不到有效值。
|
||||
/// </summary>
|
||||
[JsonProperty("Priority")]
|
||||
public ulong? Priority{ get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
||||
/// </summary>
|
||||
[JsonProperty("RequestId")]
|
||||
public string RequestId{ get; set; }
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// For internal usage only. DO NOT USE IT.
|
||||
/// </summary>
|
||||
internal override void ToMap(Dictionary<string, string> map, string prefix)
|
||||
{
|
||||
this.SetParamSimple(map, prefix + "FairPlayPemId", this.FairPlayPemId);
|
||||
this.SetParamSimple(map, prefix + "Priority", this.Priority);
|
||||
this.SetParamSimple(map, prefix + "RequestId", this.RequestId);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,64 @@
|
||||
/*
|
||||
* 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.Drm.V20181115.Models
|
||||
{
|
||||
using Newtonsoft.Json;
|
||||
using System.Collections.Generic;
|
||||
using TencentCloud.Common;
|
||||
|
||||
public class CreateEncryptKeysRequest : AbstractModel
|
||||
{
|
||||
|
||||
/// <summary>
|
||||
/// 使用的DRM方案类型,接口取值WIDEVINE、FAIRPLAY、NORMALAES。
|
||||
/// </summary>
|
||||
[JsonProperty("DrmType")]
|
||||
public string DrmType{ get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 设置的加密密钥列表。
|
||||
/// </summary>
|
||||
[JsonProperty("Keys")]
|
||||
public KeyParam[] Keys{ get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 一个加密内容的唯一标识。
|
||||
/// </summary>
|
||||
[JsonProperty("ContentId")]
|
||||
public string ContentId{ get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 内容类型。接口取值VodVideo,LiveVideo。
|
||||
/// </summary>
|
||||
[JsonProperty("ContentType")]
|
||||
public string ContentType{ get; set; }
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// For internal usage only. DO NOT USE IT.
|
||||
/// </summary>
|
||||
internal override void ToMap(Dictionary<string, string> map, string prefix)
|
||||
{
|
||||
this.SetParamSimple(map, prefix + "DrmType", this.DrmType);
|
||||
this.SetParamArrayObj(map, prefix + "Keys.", this.Keys);
|
||||
this.SetParamSimple(map, prefix + "ContentId", this.ContentId);
|
||||
this.SetParamSimple(map, prefix + "ContentType", this.ContentType);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,43 @@
|
||||
/*
|
||||
* 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.Drm.V20181115.Models
|
||||
{
|
||||
using Newtonsoft.Json;
|
||||
using System.Collections.Generic;
|
||||
using TencentCloud.Common;
|
||||
|
||||
public class CreateEncryptKeysResponse : AbstractModel
|
||||
{
|
||||
|
||||
/// <summary>
|
||||
/// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
||||
/// </summary>
|
||||
[JsonProperty("RequestId")]
|
||||
public string RequestId{ get; set; }
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// For internal usage only. DO NOT USE IT.
|
||||
/// </summary>
|
||||
internal override void ToMap(Dictionary<string, string> map, string prefix)
|
||||
{
|
||||
this.SetParamSimple(map, prefix + "RequestId", this.RequestId);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
72
TencentCloud/Drm/V20181115/Models/CreateLicenseRequest.cs
Normal file
72
TencentCloud/Drm/V20181115/Models/CreateLicenseRequest.cs
Normal file
@@ -0,0 +1,72 @@
|
||||
/*
|
||||
* 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.Drm.V20181115.Models
|
||||
{
|
||||
using Newtonsoft.Json;
|
||||
using System.Collections.Generic;
|
||||
using TencentCloud.Common;
|
||||
|
||||
public class CreateLicenseRequest : AbstractModel
|
||||
{
|
||||
|
||||
/// <summary>
|
||||
/// DRM方案类型,接口取值:WIDEVINE,FAIRPLAY。
|
||||
/// </summary>
|
||||
[JsonProperty("DrmType")]
|
||||
public string DrmType{ get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Base64编码的终端设备License Request数据。
|
||||
/// </summary>
|
||||
[JsonProperty("LicenseRequest")]
|
||||
public string LicenseRequest{ get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 内容类型,接口取值:VodVideo,LiveVideo。
|
||||
/// </summary>
|
||||
[JsonProperty("ContentType")]
|
||||
public string ContentType{ get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 授权播放的Track列表。
|
||||
/// 该值为空时,默认授权所有track播放。
|
||||
/// </summary>
|
||||
[JsonProperty("Tracks")]
|
||||
public string[] Tracks{ get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 播放策略参数。
|
||||
/// </summary>
|
||||
[JsonProperty("PlaybackPolicy")]
|
||||
public PlaybackPolicy PlaybackPolicy{ get; set; }
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// For internal usage only. DO NOT USE IT.
|
||||
/// </summary>
|
||||
internal override void ToMap(Dictionary<string, string> map, string prefix)
|
||||
{
|
||||
this.SetParamSimple(map, prefix + "DrmType", this.DrmType);
|
||||
this.SetParamSimple(map, prefix + "LicenseRequest", this.LicenseRequest);
|
||||
this.SetParamSimple(map, prefix + "ContentType", this.ContentType);
|
||||
this.SetParamArraySimple(map, prefix + "Tracks.", this.Tracks);
|
||||
this.SetParamObj(map, prefix + "PlaybackPolicy.", this.PlaybackPolicy);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
57
TencentCloud/Drm/V20181115/Models/CreateLicenseResponse.cs
Normal file
57
TencentCloud/Drm/V20181115/Models/CreateLicenseResponse.cs
Normal file
@@ -0,0 +1,57 @@
|
||||
/*
|
||||
* 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.Drm.V20181115.Models
|
||||
{
|
||||
using Newtonsoft.Json;
|
||||
using System.Collections.Generic;
|
||||
using TencentCloud.Common;
|
||||
|
||||
public class CreateLicenseResponse : AbstractModel
|
||||
{
|
||||
|
||||
/// <summary>
|
||||
/// Base64 编码的许可证二进制数据。
|
||||
/// </summary>
|
||||
[JsonProperty("License")]
|
||||
public string License{ get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 加密内容的内容ID
|
||||
/// </summary>
|
||||
[JsonProperty("ContentId")]
|
||||
public string ContentId{ get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
||||
/// </summary>
|
||||
[JsonProperty("RequestId")]
|
||||
public string RequestId{ get; set; }
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// For internal usage only. DO NOT USE IT.
|
||||
/// </summary>
|
||||
internal override void ToMap(Dictionary<string, string> map, string prefix)
|
||||
{
|
||||
this.SetParamSimple(map, prefix + "License", this.License);
|
||||
this.SetParamSimple(map, prefix + "ContentId", this.ContentId);
|
||||
this.SetParamSimple(map, prefix + "RequestId", this.RequestId);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,51 @@
|
||||
/*
|
||||
* 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.Drm.V20181115.Models
|
||||
{
|
||||
using Newtonsoft.Json;
|
||||
using System.Collections.Generic;
|
||||
using TencentCloud.Common;
|
||||
|
||||
public class DeleteFairPlayPemRequest : AbstractModel
|
||||
{
|
||||
|
||||
/// <summary>
|
||||
/// 委托者Id,适用于托管自身证书的客户。普通客户无需填该字段。
|
||||
/// </summary>
|
||||
[JsonProperty("BailorId")]
|
||||
public ulong? BailorId{ get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 要删除的pem id。
|
||||
/// 当未传入该值时,将删除所有的私钥。
|
||||
/// </summary>
|
||||
[JsonProperty("FairPlayPemId")]
|
||||
public ulong? FairPlayPemId{ get; set; }
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// For internal usage only. DO NOT USE IT.
|
||||
/// </summary>
|
||||
internal override void ToMap(Dictionary<string, string> map, string prefix)
|
||||
{
|
||||
this.SetParamSimple(map, prefix + "BailorId", this.BailorId);
|
||||
this.SetParamSimple(map, prefix + "FairPlayPemId", this.FairPlayPemId);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,43 @@
|
||||
/*
|
||||
* 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.Drm.V20181115.Models
|
||||
{
|
||||
using Newtonsoft.Json;
|
||||
using System.Collections.Generic;
|
||||
using TencentCloud.Common;
|
||||
|
||||
public class DeleteFairPlayPemResponse : AbstractModel
|
||||
{
|
||||
|
||||
/// <summary>
|
||||
/// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
||||
/// </summary>
|
||||
[JsonProperty("RequestId")]
|
||||
public string RequestId{ get; set; }
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// For internal usage only. DO NOT USE IT.
|
||||
/// </summary>
|
||||
internal override void ToMap(Dictionary<string, string> map, string prefix)
|
||||
{
|
||||
this.SetParamSimple(map, prefix + "RequestId", this.RequestId);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
65
TencentCloud/Drm/V20181115/Models/DescribeAllKeysRequest.cs
Normal file
65
TencentCloud/Drm/V20181115/Models/DescribeAllKeysRequest.cs
Normal file
@@ -0,0 +1,65 @@
|
||||
/*
|
||||
* 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.Drm.V20181115.Models
|
||||
{
|
||||
using Newtonsoft.Json;
|
||||
using System.Collections.Generic;
|
||||
using TencentCloud.Common;
|
||||
|
||||
public class DescribeAllKeysRequest : AbstractModel
|
||||
{
|
||||
|
||||
/// <summary>
|
||||
/// 使用的DRM方案类型,接口取值WIDEVINE、FAIRPLAY、NORMALAES。
|
||||
/// </summary>
|
||||
[JsonProperty("DrmType")]
|
||||
public string DrmType{ get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Base64编码的Rsa公钥,用来加密出参中的SessionKey。
|
||||
/// 如果该参数为空,则出参中SessionKey为明文。
|
||||
/// </summary>
|
||||
[JsonProperty("RsaPublicKey")]
|
||||
public string RsaPublicKey{ get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 一个加密内容的唯一标识。
|
||||
/// </summary>
|
||||
[JsonProperty("ContentId")]
|
||||
public string ContentId{ get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 内容类型。接口取值VodVideo,LiveVideo。
|
||||
/// </summary>
|
||||
[JsonProperty("ContentType")]
|
||||
public string ContentType{ get; set; }
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// For internal usage only. DO NOT USE IT.
|
||||
/// </summary>
|
||||
internal override void ToMap(Dictionary<string, string> map, string prefix)
|
||||
{
|
||||
this.SetParamSimple(map, prefix + "DrmType", this.DrmType);
|
||||
this.SetParamSimple(map, prefix + "RsaPublicKey", this.RsaPublicKey);
|
||||
this.SetParamSimple(map, prefix + "ContentId", this.ContentId);
|
||||
this.SetParamSimple(map, prefix + "ContentType", this.ContentType);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
69
TencentCloud/Drm/V20181115/Models/DescribeAllKeysResponse.cs
Normal file
69
TencentCloud/Drm/V20181115/Models/DescribeAllKeysResponse.cs
Normal file
@@ -0,0 +1,69 @@
|
||||
/*
|
||||
* 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.Drm.V20181115.Models
|
||||
{
|
||||
using Newtonsoft.Json;
|
||||
using System.Collections.Generic;
|
||||
using TencentCloud.Common;
|
||||
|
||||
public class DescribeAllKeysResponse : AbstractModel
|
||||
{
|
||||
|
||||
/// <summary>
|
||||
/// 加密密钥列表。
|
||||
/// 注意:此字段可能返回 null,表示取不到有效值。
|
||||
/// </summary>
|
||||
[JsonProperty("Keys")]
|
||||
public KeyInfo[] Keys{ get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 用来加密密钥。
|
||||
/// 如果入参中带有RsaPublicKey,则SessionKey为使用Rsa公钥加密后的二进制数据,Base64编码字符串。
|
||||
/// 如果入参中没有RsaPublicKey,则SessionKey为原始数据的字符串形式。
|
||||
/// 注意:此字段可能返回 null,表示取不到有效值。
|
||||
/// </summary>
|
||||
[JsonProperty("SessionKey")]
|
||||
public string SessionKey{ get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 内容ID
|
||||
/// 注意:此字段可能返回 null,表示取不到有效值。
|
||||
/// </summary>
|
||||
[JsonProperty("ContentId")]
|
||||
public string ContentId{ get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
||||
/// </summary>
|
||||
[JsonProperty("RequestId")]
|
||||
public string RequestId{ get; set; }
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// For internal usage only. DO NOT USE IT.
|
||||
/// </summary>
|
||||
internal override void ToMap(Dictionary<string, string> map, string prefix)
|
||||
{
|
||||
this.SetParamArrayObj(map, prefix + "Keys.", this.Keys);
|
||||
this.SetParamSimple(map, prefix + "SessionKey", this.SessionKey);
|
||||
this.SetParamSimple(map, prefix + "ContentId", this.ContentId);
|
||||
this.SetParamSimple(map, prefix + "RequestId", this.RequestId);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,51 @@
|
||||
/*
|
||||
* 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.Drm.V20181115.Models
|
||||
{
|
||||
using Newtonsoft.Json;
|
||||
using System.Collections.Generic;
|
||||
using TencentCloud.Common;
|
||||
|
||||
public class DescribeFairPlayPemRequest : AbstractModel
|
||||
{
|
||||
|
||||
/// <summary>
|
||||
/// 委托者Id,适用于托管自身证书的客户。普通客户无需填该字段。
|
||||
/// </summary>
|
||||
[JsonProperty("BailorId")]
|
||||
public ulong? BailorId{ get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 需要查询的pem id。
|
||||
/// 当该值未填入时,将返回所有的私钥信息。
|
||||
/// </summary>
|
||||
[JsonProperty("FairPlayPemId")]
|
||||
public ulong? FairPlayPemId{ get; set; }
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// For internal usage only. DO NOT USE IT.
|
||||
/// </summary>
|
||||
internal override void ToMap(Dictionary<string, string> map, string prefix)
|
||||
{
|
||||
this.SetParamSimple(map, prefix + "BailorId", this.BailorId);
|
||||
this.SetParamSimple(map, prefix + "FairPlayPemId", this.FairPlayPemId);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,51 @@
|
||||
/*
|
||||
* 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.Drm.V20181115.Models
|
||||
{
|
||||
using Newtonsoft.Json;
|
||||
using System.Collections.Generic;
|
||||
using TencentCloud.Common;
|
||||
|
||||
public class DescribeFairPlayPemResponse : AbstractModel
|
||||
{
|
||||
|
||||
/// <summary>
|
||||
/// 该账户下,所有设置的FairPlay私钥摘要信息
|
||||
/// 注意:此字段可能返回 null,表示取不到有效值。
|
||||
/// </summary>
|
||||
[JsonProperty("FairPlayPems")]
|
||||
public FairPlayPemDigestInfo[] FairPlayPems{ get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
||||
/// </summary>
|
||||
[JsonProperty("RequestId")]
|
||||
public string RequestId{ get; set; }
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// For internal usage only. DO NOT USE IT.
|
||||
/// </summary>
|
||||
internal override void ToMap(Dictionary<string, string> map, string prefix)
|
||||
{
|
||||
this.SetParamArrayObj(map, prefix + "FairPlayPems.", this.FairPlayPems);
|
||||
this.SetParamSimple(map, prefix + "RequestId", this.RequestId);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
73
TencentCloud/Drm/V20181115/Models/DescribeKeysRequest.cs
Normal file
73
TencentCloud/Drm/V20181115/Models/DescribeKeysRequest.cs
Normal file
@@ -0,0 +1,73 @@
|
||||
/*
|
||||
* 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.Drm.V20181115.Models
|
||||
{
|
||||
using Newtonsoft.Json;
|
||||
using System.Collections.Generic;
|
||||
using TencentCloud.Common;
|
||||
|
||||
public class DescribeKeysRequest : AbstractModel
|
||||
{
|
||||
|
||||
/// <summary>
|
||||
/// 使用的DRM方案类型,接口取值WIDEVINE、FAIRPLAY、NORMALAES。
|
||||
/// </summary>
|
||||
[JsonProperty("DrmType")]
|
||||
public string DrmType{ get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 加密的track列表,接口取值VIDEO、AUDIO。
|
||||
/// </summary>
|
||||
[JsonProperty("Tracks")]
|
||||
public string[] Tracks{ get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 内容类型。接口取值VodVideo,LiveVideo
|
||||
/// </summary>
|
||||
[JsonProperty("ContentType")]
|
||||
public string ContentType{ get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Base64编码的Rsa公钥,用来加密出参中的SessionKey。
|
||||
/// 如果该参数为空,则出参中SessionKey为明文。
|
||||
/// </summary>
|
||||
[JsonProperty("RsaPublicKey")]
|
||||
public string RsaPublicKey{ get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 一个加密内容的唯一标识。
|
||||
/// 如果该参数为空,则后台自动生成
|
||||
/// </summary>
|
||||
[JsonProperty("ContentId")]
|
||||
public string ContentId{ get; set; }
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// For internal usage only. DO NOT USE IT.
|
||||
/// </summary>
|
||||
internal override void ToMap(Dictionary<string, string> map, string prefix)
|
||||
{
|
||||
this.SetParamSimple(map, prefix + "DrmType", this.DrmType);
|
||||
this.SetParamArraySimple(map, prefix + "Tracks.", this.Tracks);
|
||||
this.SetParamSimple(map, prefix + "ContentType", this.ContentType);
|
||||
this.SetParamSimple(map, prefix + "RsaPublicKey", this.RsaPublicKey);
|
||||
this.SetParamSimple(map, prefix + "ContentId", this.ContentId);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
74
TencentCloud/Drm/V20181115/Models/DescribeKeysResponse.cs
Normal file
74
TencentCloud/Drm/V20181115/Models/DescribeKeysResponse.cs
Normal file
@@ -0,0 +1,74 @@
|
||||
/*
|
||||
* 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.Drm.V20181115.Models
|
||||
{
|
||||
using Newtonsoft.Json;
|
||||
using System.Collections.Generic;
|
||||
using TencentCloud.Common;
|
||||
|
||||
public class DescribeKeysResponse : AbstractModel
|
||||
{
|
||||
|
||||
/// <summary>
|
||||
/// 加密密钥列表
|
||||
/// </summary>
|
||||
[JsonProperty("Keys")]
|
||||
public KeyInfo[] Keys{ get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 用来加密密钥。
|
||||
/// 如果入参中带有RsaPublicKey,则SessionKey为使用Rsa公钥加密后的二进制数据,Base64编码字符串。
|
||||
/// 如果入参中没有RsaPublicKey,则SessionKey为原始数据的字符串形式。
|
||||
/// </summary>
|
||||
[JsonProperty("SessionKey")]
|
||||
public string SessionKey{ get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 内容ID
|
||||
/// </summary>
|
||||
[JsonProperty("ContentId")]
|
||||
public string ContentId{ get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Widevine方案的Pssh数据,Base64编码。
|
||||
/// Fairplay方案无该值。
|
||||
/// </summary>
|
||||
[JsonProperty("Pssh")]
|
||||
public string Pssh{ get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
||||
/// </summary>
|
||||
[JsonProperty("RequestId")]
|
||||
public string RequestId{ get; set; }
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// For internal usage only. DO NOT USE IT.
|
||||
/// </summary>
|
||||
internal override void ToMap(Dictionary<string, string> map, string prefix)
|
||||
{
|
||||
this.SetParamArrayObj(map, prefix + "Keys.", this.Keys);
|
||||
this.SetParamSimple(map, prefix + "SessionKey", this.SessionKey);
|
||||
this.SetParamSimple(map, prefix + "ContentId", this.ContentId);
|
||||
this.SetParamSimple(map, prefix + "Pssh", this.Pssh);
|
||||
this.SetParamSimple(map, prefix + "RequestId", this.RequestId);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
57
TencentCloud/Drm/V20181115/Models/DrmOutputObject.cs
Normal file
57
TencentCloud/Drm/V20181115/Models/DrmOutputObject.cs
Normal file
@@ -0,0 +1,57 @@
|
||||
/*
|
||||
* 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.Drm.V20181115.Models
|
||||
{
|
||||
using Newtonsoft.Json;
|
||||
using System.Collections.Generic;
|
||||
using TencentCloud.Common;
|
||||
|
||||
public class DrmOutputObject : AbstractModel
|
||||
{
|
||||
|
||||
/// <summary>
|
||||
/// 输出的桶名称。
|
||||
/// </summary>
|
||||
[JsonProperty("BucketName")]
|
||||
public string BucketName{ get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 输出的对象名称。
|
||||
/// </summary>
|
||||
[JsonProperty("ObjectName")]
|
||||
public string ObjectName{ get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 输出对象参数。
|
||||
/// </summary>
|
||||
[JsonProperty("Para")]
|
||||
public DrmOutputPara Para{ get; set; }
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// For internal usage only. DO NOT USE IT.
|
||||
/// </summary>
|
||||
internal override void ToMap(Dictionary<string, string> map, string prefix)
|
||||
{
|
||||
this.SetParamSimple(map, prefix + "BucketName", this.BucketName);
|
||||
this.SetParamSimple(map, prefix + "ObjectName", this.ObjectName);
|
||||
this.SetParamObj(map, prefix + "Para.", this.Para);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
50
TencentCloud/Drm/V20181115/Models/DrmOutputPara.cs
Normal file
50
TencentCloud/Drm/V20181115/Models/DrmOutputPara.cs
Normal file
@@ -0,0 +1,50 @@
|
||||
/*
|
||||
* 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.Drm.V20181115.Models
|
||||
{
|
||||
using Newtonsoft.Json;
|
||||
using System.Collections.Generic;
|
||||
using TencentCloud.Common;
|
||||
|
||||
public class DrmOutputPara : AbstractModel
|
||||
{
|
||||
|
||||
/// <summary>
|
||||
/// 内容类型。例:video,audio,mpd,m3u8
|
||||
/// </summary>
|
||||
[JsonProperty("Type")]
|
||||
public string Type{ get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 语言,例: en, zh-cn
|
||||
/// </summary>
|
||||
[JsonProperty("Language")]
|
||||
public string Language{ get; set; }
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// For internal usage only. DO NOT USE IT.
|
||||
/// </summary>
|
||||
internal override void ToMap(Dictionary<string, string> map, string prefix)
|
||||
{
|
||||
this.SetParamSimple(map, prefix + "Type", this.Type);
|
||||
this.SetParamSimple(map, prefix + "Language", this.Language);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
50
TencentCloud/Drm/V20181115/Models/DrmSourceObject.cs
Normal file
50
TencentCloud/Drm/V20181115/Models/DrmSourceObject.cs
Normal file
@@ -0,0 +1,50 @@
|
||||
/*
|
||||
* 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.Drm.V20181115.Models
|
||||
{
|
||||
using Newtonsoft.Json;
|
||||
using System.Collections.Generic;
|
||||
using TencentCloud.Common;
|
||||
|
||||
public class DrmSourceObject : AbstractModel
|
||||
{
|
||||
|
||||
/// <summary>
|
||||
/// 输入的桶名称。
|
||||
/// </summary>
|
||||
[JsonProperty("BucketName")]
|
||||
public string BucketName{ get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 输入对象名称。
|
||||
/// </summary>
|
||||
[JsonProperty("ObjectName")]
|
||||
public string ObjectName{ get; set; }
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// For internal usage only. DO NOT USE IT.
|
||||
/// </summary>
|
||||
internal override void ToMap(Dictionary<string, string> map, string prefix)
|
||||
{
|
||||
this.SetParamSimple(map, prefix + "BucketName", this.BucketName);
|
||||
this.SetParamSimple(map, prefix + "ObjectName", this.ObjectName);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
76
TencentCloud/Drm/V20181115/Models/FairPlayPemDigestInfo.cs
Normal file
76
TencentCloud/Drm/V20181115/Models/FairPlayPemDigestInfo.cs
Normal file
@@ -0,0 +1,76 @@
|
||||
/*
|
||||
* 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.Drm.V20181115.Models
|
||||
{
|
||||
using Newtonsoft.Json;
|
||||
using System.Collections.Generic;
|
||||
using TencentCloud.Common;
|
||||
|
||||
public class FairPlayPemDigestInfo : AbstractModel
|
||||
{
|
||||
|
||||
/// <summary>
|
||||
/// fairplay 私钥pem id。
|
||||
/// 注意:此字段可能返回 null,表示取不到有效值。
|
||||
/// </summary>
|
||||
[JsonProperty("FairPlayPemId")]
|
||||
public ulong? FairPlayPemId{ get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 私钥的优先级。
|
||||
/// 注意:此字段可能返回 null,表示取不到有效值。
|
||||
/// </summary>
|
||||
[JsonProperty("Priority")]
|
||||
public ulong? Priority{ get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 私钥的md5 信息。
|
||||
/// 注意:此字段可能返回 null,表示取不到有效值。
|
||||
/// </summary>
|
||||
[JsonProperty("Md5Pem")]
|
||||
public string Md5Pem{ get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// ASK的md5信息。
|
||||
/// 注意:此字段可能返回 null,表示取不到有效值。
|
||||
/// </summary>
|
||||
[JsonProperty("Md5Ask")]
|
||||
public string Md5Ask{ get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 私钥解密密钥的md5值。
|
||||
/// 注意:此字段可能返回 null,表示取不到有效值。
|
||||
/// </summary>
|
||||
[JsonProperty("Md5PemDecryptKey")]
|
||||
public string Md5PemDecryptKey{ get; set; }
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// For internal usage only. DO NOT USE IT.
|
||||
/// </summary>
|
||||
internal override void ToMap(Dictionary<string, string> map, string prefix)
|
||||
{
|
||||
this.SetParamSimple(map, prefix + "FairPlayPemId", this.FairPlayPemId);
|
||||
this.SetParamSimple(map, prefix + "Priority", this.Priority);
|
||||
this.SetParamSimple(map, prefix + "Md5Pem", this.Md5Pem);
|
||||
this.SetParamSimple(map, prefix + "Md5Ask", this.Md5Ask);
|
||||
this.SetParamSimple(map, prefix + "Md5PemDecryptKey", this.Md5PemDecryptKey);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
72
TencentCloud/Drm/V20181115/Models/KeyInfo.cs
Normal file
72
TencentCloud/Drm/V20181115/Models/KeyInfo.cs
Normal file
@@ -0,0 +1,72 @@
|
||||
/*
|
||||
* 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.Drm.V20181115.Models
|
||||
{
|
||||
using Newtonsoft.Json;
|
||||
using System.Collections.Generic;
|
||||
using TencentCloud.Common;
|
||||
|
||||
public class KeyInfo : AbstractModel
|
||||
{
|
||||
|
||||
/// <summary>
|
||||
/// 加密track类型。Widevine支持SD、HD、UHD1、UHD2、AUDIO。Fairplay只支持HD。
|
||||
/// </summary>
|
||||
[JsonProperty("Track")]
|
||||
public string Track{ get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 密钥ID。
|
||||
/// </summary>
|
||||
[JsonProperty("KeyId")]
|
||||
public string KeyId{ get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 原始Key使用AES-128 ECB模式和SessionKey加密的后的二进制数据,Base64编码的字符串。
|
||||
/// </summary>
|
||||
[JsonProperty("Key")]
|
||||
public string Key{ get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 原始IV使用AES-128 ECB模式和SessionKey加密的后的二进制数据,Base64编码的字符串。
|
||||
/// </summary>
|
||||
[JsonProperty("Iv")]
|
||||
public string Iv{ get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 该key生成时的时间戳
|
||||
/// 注意:此字段可能返回 null,表示取不到有效值。
|
||||
/// </summary>
|
||||
[JsonProperty("InsertTimestamp")]
|
||||
public ulong? InsertTimestamp{ get; set; }
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// For internal usage only. DO NOT USE IT.
|
||||
/// </summary>
|
||||
internal override void ToMap(Dictionary<string, string> map, string prefix)
|
||||
{
|
||||
this.SetParamSimple(map, prefix + "Track", this.Track);
|
||||
this.SetParamSimple(map, prefix + "KeyId", this.KeyId);
|
||||
this.SetParamSimple(map, prefix + "Key", this.Key);
|
||||
this.SetParamSimple(map, prefix + "Iv", this.Iv);
|
||||
this.SetParamSimple(map, prefix + "InsertTimestamp", this.InsertTimestamp);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
65
TencentCloud/Drm/V20181115/Models/KeyParam.cs
Normal file
65
TencentCloud/Drm/V20181115/Models/KeyParam.cs
Normal file
@@ -0,0 +1,65 @@
|
||||
/*
|
||||
* 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.Drm.V20181115.Models
|
||||
{
|
||||
using Newtonsoft.Json;
|
||||
using System.Collections.Generic;
|
||||
using TencentCloud.Common;
|
||||
|
||||
public class KeyParam : AbstractModel
|
||||
{
|
||||
|
||||
/// <summary>
|
||||
/// 加密track类型。取值范围:
|
||||
/// SD、HD、UHD1、UHD2、AUDIO
|
||||
/// </summary>
|
||||
[JsonProperty("Track")]
|
||||
public string Track{ get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 请使用腾讯云DRM 提供的公钥,使用rsa加密算法,PKCS1填充方式对解密密钥进行加密,并对加密结果进行base64编码。
|
||||
/// </summary>
|
||||
[JsonProperty("Key")]
|
||||
public string Key{ get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 密钥ID。
|
||||
/// </summary>
|
||||
[JsonProperty("KeyId")]
|
||||
public string KeyId{ get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 请使用腾讯云DRM 提供的公钥,使用rsa加密算法,PKCS1填充方式对解密密钥进行加密,并对加密结果进行base64编码。
|
||||
/// </summary>
|
||||
[JsonProperty("Iv")]
|
||||
public string Iv{ get; set; }
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// For internal usage only. DO NOT USE IT.
|
||||
/// </summary>
|
||||
internal override void ToMap(Dictionary<string, string> map, string prefix)
|
||||
{
|
||||
this.SetParamSimple(map, prefix + "Track", this.Track);
|
||||
this.SetParamSimple(map, prefix + "Key", this.Key);
|
||||
this.SetParamSimple(map, prefix + "KeyId", this.KeyId);
|
||||
this.SetParamSimple(map, prefix + "Iv", this.Iv);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,83 @@
|
||||
/*
|
||||
* 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.Drm.V20181115.Models
|
||||
{
|
||||
using Newtonsoft.Json;
|
||||
using System.Collections.Generic;
|
||||
using TencentCloud.Common;
|
||||
|
||||
public class ModifyFairPlayPemRequest : AbstractModel
|
||||
{
|
||||
|
||||
/// <summary>
|
||||
/// 加密后的fairplay方案申请时使用的私钥。
|
||||
/// 请使用腾讯云DRM 提供的公钥,使用rsa加密算法,PKCS1填充方式对私钥文件中的字段进行加密,并对加密结果进行base64编码。
|
||||
/// </summary>
|
||||
[JsonProperty("Pem")]
|
||||
public string Pem{ get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 加密后的fairplay方案申请返回的ask数据。
|
||||
/// 请使用腾讯云DRM 提供的公钥,使用rsa加密算法,PKCS1填充方式对Ask字符串进行加密,并对加密结果进行base64编码。
|
||||
/// </summary>
|
||||
[JsonProperty("Ask")]
|
||||
public string Ask{ get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 要修改的私钥id
|
||||
/// </summary>
|
||||
[JsonProperty("FairPlayPemId")]
|
||||
public ulong? FairPlayPemId{ get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 私钥的解密密钥。
|
||||
/// openssl在生成rsa时,可能会需要设置加密密钥,请记住设置的密钥。
|
||||
/// 请使用腾讯云DRM 提供的公钥,使用rsa加密算法,PKCS1填充方式对解密密钥进行加密,并对加密结果进行base64编码。
|
||||
/// </summary>
|
||||
[JsonProperty("PemDecryptKey")]
|
||||
public string PemDecryptKey{ get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 委托者Id,适用于托管自身证书的客户。普通客户无需填该字段。
|
||||
/// </summary>
|
||||
[JsonProperty("BailorId")]
|
||||
public ulong? BailorId{ get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 私钥的优先级,优先级数值越高,优先级越高。
|
||||
/// 该值可以不传,后台将自动分配一个优先级。
|
||||
/// </summary>
|
||||
[JsonProperty("Priority")]
|
||||
public ulong? Priority{ get; set; }
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// For internal usage only. DO NOT USE IT.
|
||||
/// </summary>
|
||||
internal override void ToMap(Dictionary<string, string> map, string prefix)
|
||||
{
|
||||
this.SetParamSimple(map, prefix + "Pem", this.Pem);
|
||||
this.SetParamSimple(map, prefix + "Ask", this.Ask);
|
||||
this.SetParamSimple(map, prefix + "FairPlayPemId", this.FairPlayPemId);
|
||||
this.SetParamSimple(map, prefix + "PemDecryptKey", this.PemDecryptKey);
|
||||
this.SetParamSimple(map, prefix + "BailorId", this.BailorId);
|
||||
this.SetParamSimple(map, prefix + "Priority", this.Priority);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,59 @@
|
||||
/*
|
||||
* 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.Drm.V20181115.Models
|
||||
{
|
||||
using Newtonsoft.Json;
|
||||
using System.Collections.Generic;
|
||||
using TencentCloud.Common;
|
||||
|
||||
public class ModifyFairPlayPemResponse : AbstractModel
|
||||
{
|
||||
|
||||
/// <summary>
|
||||
/// 设置私钥后,后台返回的pem id,用来唯一标识一个私钥。
|
||||
/// 注意:此字段可能返回 null,表示取不到有效值。
|
||||
/// </summary>
|
||||
[JsonProperty("FairPlayPemId")]
|
||||
public ulong? FairPlayPemId{ get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 私钥的优先级,优先级数值越高,优先级越高。
|
||||
/// 注意:此字段可能返回 null,表示取不到有效值。
|
||||
/// </summary>
|
||||
[JsonProperty("Priority")]
|
||||
public ulong? Priority{ get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
||||
/// </summary>
|
||||
[JsonProperty("RequestId")]
|
||||
public string RequestId{ get; set; }
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// For internal usage only. DO NOT USE IT.
|
||||
/// </summary>
|
||||
internal override void ToMap(Dictionary<string, string> map, string prefix)
|
||||
{
|
||||
this.SetParamSimple(map, prefix + "FairPlayPemId", this.FairPlayPemId);
|
||||
this.SetParamSimple(map, prefix + "Priority", this.Priority);
|
||||
this.SetParamSimple(map, prefix + "RequestId", this.RequestId);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
50
TencentCloud/Drm/V20181115/Models/PlaybackPolicy.cs
Normal file
50
TencentCloud/Drm/V20181115/Models/PlaybackPolicy.cs
Normal file
@@ -0,0 +1,50 @@
|
||||
/*
|
||||
* 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.Drm.V20181115.Models
|
||||
{
|
||||
using Newtonsoft.Json;
|
||||
using System.Collections.Generic;
|
||||
using TencentCloud.Common;
|
||||
|
||||
public class PlaybackPolicy : AbstractModel
|
||||
{
|
||||
|
||||
/// <summary>
|
||||
/// 播放许可证的有效期
|
||||
/// </summary>
|
||||
[JsonProperty("LicenseDurationSeconds")]
|
||||
public ulong? LicenseDurationSeconds{ get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 开始播放后,允许最长播放时间
|
||||
/// </summary>
|
||||
[JsonProperty("PlaybackDurationSeconds")]
|
||||
public ulong? PlaybackDurationSeconds{ get; set; }
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// For internal usage only. DO NOT USE IT.
|
||||
/// </summary>
|
||||
internal override void ToMap(Dictionary<string, string> map, string prefix)
|
||||
{
|
||||
this.SetParamSimple(map, prefix + "LicenseDurationSeconds", this.LicenseDurationSeconds);
|
||||
this.SetParamSimple(map, prefix + "PlaybackDurationSeconds", this.PlaybackDurationSeconds);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
78
TencentCloud/Drm/V20181115/Models/StartEncryptionRequest.cs
Normal file
78
TencentCloud/Drm/V20181115/Models/StartEncryptionRequest.cs
Normal file
@@ -0,0 +1,78 @@
|
||||
/*
|
||||
* 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.Drm.V20181115.Models
|
||||
{
|
||||
using Newtonsoft.Json;
|
||||
using System.Collections.Generic;
|
||||
using TencentCloud.Common;
|
||||
|
||||
public class StartEncryptionRequest : AbstractModel
|
||||
{
|
||||
|
||||
/// <summary>
|
||||
/// cos的end point。
|
||||
/// </summary>
|
||||
[JsonProperty("CosEndPoint")]
|
||||
public string CosEndPoint{ get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// cos api密钥id。
|
||||
/// </summary>
|
||||
[JsonProperty("CosSecretId")]
|
||||
public string CosSecretId{ get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// cos api密钥。
|
||||
/// </summary>
|
||||
[JsonProperty("CosSecretKey")]
|
||||
public string CosSecretKey{ get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 使用的DRM方案类型,接口取值WIDEVINE,FAIRPLAY
|
||||
/// </summary>
|
||||
[JsonProperty("DrmType")]
|
||||
public string DrmType{ get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 存储在COS上的原始内容信息
|
||||
/// </summary>
|
||||
[JsonProperty("SourceObject")]
|
||||
public DrmSourceObject SourceObject{ get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 加密后的内容存储到COS的对象
|
||||
/// </summary>
|
||||
[JsonProperty("OutputObjects")]
|
||||
public DrmOutputObject[] OutputObjects{ get; set; }
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// For internal usage only. DO NOT USE IT.
|
||||
/// </summary>
|
||||
internal override void ToMap(Dictionary<string, string> map, string prefix)
|
||||
{
|
||||
this.SetParamSimple(map, prefix + "CosEndPoint", this.CosEndPoint);
|
||||
this.SetParamSimple(map, prefix + "CosSecretId", this.CosSecretId);
|
||||
this.SetParamSimple(map, prefix + "CosSecretKey", this.CosSecretKey);
|
||||
this.SetParamSimple(map, prefix + "DrmType", this.DrmType);
|
||||
this.SetParamObj(map, prefix + "SourceObject.", this.SourceObject);
|
||||
this.SetParamArrayObj(map, prefix + "OutputObjects.", this.OutputObjects);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
43
TencentCloud/Drm/V20181115/Models/StartEncryptionResponse.cs
Normal file
43
TencentCloud/Drm/V20181115/Models/StartEncryptionResponse.cs
Normal file
@@ -0,0 +1,43 @@
|
||||
/*
|
||||
* 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.Drm.V20181115.Models
|
||||
{
|
||||
using Newtonsoft.Json;
|
||||
using System.Collections.Generic;
|
||||
using TencentCloud.Common;
|
||||
|
||||
public class StartEncryptionResponse : AbstractModel
|
||||
{
|
||||
|
||||
/// <summary>
|
||||
/// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
||||
/// </summary>
|
||||
[JsonProperty("RequestId")]
|
||||
public string RequestId{ get; set; }
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// For internal usage only. DO NOT USE IT.
|
||||
/// </summary>
|
||||
internal override void ToMap(Dictionary<string, string> map, string prefix)
|
||||
{
|
||||
this.SetParamSimple(map, prefix + "RequestId", this.RequestId);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user