首次推送
This commit is contained in:
636
TencentCloud/Ecdn/V20191012/EcdnClient.cs
Normal file
636
TencentCloud/Ecdn/V20191012/EcdnClient.cs
Normal file
@@ -0,0 +1,636 @@
|
||||
/*
|
||||
* 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.Ecdn.V20191012
|
||||
{
|
||||
|
||||
using Newtonsoft.Json;
|
||||
using System.Threading.Tasks;
|
||||
using TencentCloud.Common;
|
||||
using TencentCloud.Common.Profile;
|
||||
using TencentCloud.Ecdn.V20191012.Models;
|
||||
|
||||
public class EcdnClient : AbstractClient{
|
||||
|
||||
private const string endpoint = "ecdn.tencentcloudapi.com";
|
||||
private const string version = "2019-10-12";
|
||||
|
||||
/// <summary>
|
||||
/// Client constructor.
|
||||
/// </summary>
|
||||
/// <param name="credential">Credentials.</param>
|
||||
/// <param name="region">Region name, such as "ap-guangzhou".</param>
|
||||
public EcdnClient(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 EcdnClient(Credential credential, string region, ClientProfile profile)
|
||||
: base(endpoint, version, credential, region, profile)
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 本接口(AddEcdnDomain)用于创建加速域名。
|
||||
/// </summary>
|
||||
/// <param name="req"><see cref="AddEcdnDomainRequest"/></param>
|
||||
/// <returns><see cref="AddEcdnDomainResponse"/></returns>
|
||||
public async Task<AddEcdnDomainResponse> AddEcdnDomain(AddEcdnDomainRequest req)
|
||||
{
|
||||
JsonResponseModel<AddEcdnDomainResponse> rsp = null;
|
||||
try
|
||||
{
|
||||
var strResp = await this.InternalRequest(req, "AddEcdnDomain");
|
||||
rsp = JsonConvert.DeserializeObject<JsonResponseModel<AddEcdnDomainResponse>>(strResp);
|
||||
}
|
||||
catch (JsonSerializationException e)
|
||||
{
|
||||
throw new TencentCloudSDKException(e.Message);
|
||||
}
|
||||
return rsp.Response;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 本接口(AddEcdnDomain)用于创建加速域名。
|
||||
/// </summary>
|
||||
/// <param name="req"><see cref="AddEcdnDomainRequest"/></param>
|
||||
/// <returns><see cref="AddEcdnDomainResponse"/></returns>
|
||||
public AddEcdnDomainResponse AddEcdnDomainSync(AddEcdnDomainRequest req)
|
||||
{
|
||||
JsonResponseModel<AddEcdnDomainResponse> rsp = null;
|
||||
try
|
||||
{
|
||||
var strResp = this.InternalRequestSync(req, "AddEcdnDomain");
|
||||
rsp = JsonConvert.DeserializeObject<JsonResponseModel<AddEcdnDomainResponse>>(strResp);
|
||||
}
|
||||
catch (JsonSerializationException e)
|
||||
{
|
||||
throw new TencentCloudSDKException(e.Message);
|
||||
}
|
||||
return rsp.Response;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 本接口(DeleteEcdnDomain)用于删除指定加速域名。待删除域名必须处于已停用状态。
|
||||
/// </summary>
|
||||
/// <param name="req"><see cref="DeleteEcdnDomainRequest"/></param>
|
||||
/// <returns><see cref="DeleteEcdnDomainResponse"/></returns>
|
||||
public async Task<DeleteEcdnDomainResponse> DeleteEcdnDomain(DeleteEcdnDomainRequest req)
|
||||
{
|
||||
JsonResponseModel<DeleteEcdnDomainResponse> rsp = null;
|
||||
try
|
||||
{
|
||||
var strResp = await this.InternalRequest(req, "DeleteEcdnDomain");
|
||||
rsp = JsonConvert.DeserializeObject<JsonResponseModel<DeleteEcdnDomainResponse>>(strResp);
|
||||
}
|
||||
catch (JsonSerializationException e)
|
||||
{
|
||||
throw new TencentCloudSDKException(e.Message);
|
||||
}
|
||||
return rsp.Response;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 本接口(DeleteEcdnDomain)用于删除指定加速域名。待删除域名必须处于已停用状态。
|
||||
/// </summary>
|
||||
/// <param name="req"><see cref="DeleteEcdnDomainRequest"/></param>
|
||||
/// <returns><see cref="DeleteEcdnDomainResponse"/></returns>
|
||||
public DeleteEcdnDomainResponse DeleteEcdnDomainSync(DeleteEcdnDomainRequest req)
|
||||
{
|
||||
JsonResponseModel<DeleteEcdnDomainResponse> rsp = null;
|
||||
try
|
||||
{
|
||||
var strResp = this.InternalRequestSync(req, "DeleteEcdnDomain");
|
||||
rsp = JsonConvert.DeserializeObject<JsonResponseModel<DeleteEcdnDomainResponse>>(strResp);
|
||||
}
|
||||
catch (JsonSerializationException e)
|
||||
{
|
||||
throw new TencentCloudSDKException(e.Message);
|
||||
}
|
||||
return rsp.Response;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 本接口(DescribeDomains)用于查询CDN域名基本信息,包括项目id,状态,业务类型,创建时间,更新时间等。
|
||||
/// </summary>
|
||||
/// <param name="req"><see cref="DescribeDomainsRequest"/></param>
|
||||
/// <returns><see cref="DescribeDomainsResponse"/></returns>
|
||||
public async Task<DescribeDomainsResponse> DescribeDomains(DescribeDomainsRequest req)
|
||||
{
|
||||
JsonResponseModel<DescribeDomainsResponse> rsp = null;
|
||||
try
|
||||
{
|
||||
var strResp = await this.InternalRequest(req, "DescribeDomains");
|
||||
rsp = JsonConvert.DeserializeObject<JsonResponseModel<DescribeDomainsResponse>>(strResp);
|
||||
}
|
||||
catch (JsonSerializationException e)
|
||||
{
|
||||
throw new TencentCloudSDKException(e.Message);
|
||||
}
|
||||
return rsp.Response;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 本接口(DescribeDomains)用于查询CDN域名基本信息,包括项目id,状态,业务类型,创建时间,更新时间等。
|
||||
/// </summary>
|
||||
/// <param name="req"><see cref="DescribeDomainsRequest"/></param>
|
||||
/// <returns><see cref="DescribeDomainsResponse"/></returns>
|
||||
public DescribeDomainsResponse DescribeDomainsSync(DescribeDomainsRequest req)
|
||||
{
|
||||
JsonResponseModel<DescribeDomainsResponse> rsp = null;
|
||||
try
|
||||
{
|
||||
var strResp = this.InternalRequestSync(req, "DescribeDomains");
|
||||
rsp = JsonConvert.DeserializeObject<JsonResponseModel<DescribeDomainsResponse>>(strResp);
|
||||
}
|
||||
catch (JsonSerializationException e)
|
||||
{
|
||||
throw new TencentCloudSDKException(e.Message);
|
||||
}
|
||||
return rsp.Response;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 本接口(DescribeDomainsConfig)用于查询CDN加速域名详细配置信息。
|
||||
/// </summary>
|
||||
/// <param name="req"><see cref="DescribeDomainsConfigRequest"/></param>
|
||||
/// <returns><see cref="DescribeDomainsConfigResponse"/></returns>
|
||||
public async Task<DescribeDomainsConfigResponse> DescribeDomainsConfig(DescribeDomainsConfigRequest req)
|
||||
{
|
||||
JsonResponseModel<DescribeDomainsConfigResponse> rsp = null;
|
||||
try
|
||||
{
|
||||
var strResp = await this.InternalRequest(req, "DescribeDomainsConfig");
|
||||
rsp = JsonConvert.DeserializeObject<JsonResponseModel<DescribeDomainsConfigResponse>>(strResp);
|
||||
}
|
||||
catch (JsonSerializationException e)
|
||||
{
|
||||
throw new TencentCloudSDKException(e.Message);
|
||||
}
|
||||
return rsp.Response;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 本接口(DescribeDomainsConfig)用于查询CDN加速域名详细配置信息。
|
||||
/// </summary>
|
||||
/// <param name="req"><see cref="DescribeDomainsConfigRequest"/></param>
|
||||
/// <returns><see cref="DescribeDomainsConfigResponse"/></returns>
|
||||
public DescribeDomainsConfigResponse DescribeDomainsConfigSync(DescribeDomainsConfigRequest req)
|
||||
{
|
||||
JsonResponseModel<DescribeDomainsConfigResponse> rsp = null;
|
||||
try
|
||||
{
|
||||
var strResp = this.InternalRequestSync(req, "DescribeDomainsConfig");
|
||||
rsp = JsonConvert.DeserializeObject<JsonResponseModel<DescribeDomainsConfigResponse>>(strResp);
|
||||
}
|
||||
catch (JsonSerializationException e)
|
||||
{
|
||||
throw new TencentCloudSDKException(e.Message);
|
||||
}
|
||||
return rsp.Response;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 本接口(DescribeEcdnDomainLogs)用于查询域名的访问日志下载地址。
|
||||
/// </summary>
|
||||
/// <param name="req"><see cref="DescribeEcdnDomainLogsRequest"/></param>
|
||||
/// <returns><see cref="DescribeEcdnDomainLogsResponse"/></returns>
|
||||
public async Task<DescribeEcdnDomainLogsResponse> DescribeEcdnDomainLogs(DescribeEcdnDomainLogsRequest req)
|
||||
{
|
||||
JsonResponseModel<DescribeEcdnDomainLogsResponse> rsp = null;
|
||||
try
|
||||
{
|
||||
var strResp = await this.InternalRequest(req, "DescribeEcdnDomainLogs");
|
||||
rsp = JsonConvert.DeserializeObject<JsonResponseModel<DescribeEcdnDomainLogsResponse>>(strResp);
|
||||
}
|
||||
catch (JsonSerializationException e)
|
||||
{
|
||||
throw new TencentCloudSDKException(e.Message);
|
||||
}
|
||||
return rsp.Response;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 本接口(DescribeEcdnDomainLogs)用于查询域名的访问日志下载地址。
|
||||
/// </summary>
|
||||
/// <param name="req"><see cref="DescribeEcdnDomainLogsRequest"/></param>
|
||||
/// <returns><see cref="DescribeEcdnDomainLogsResponse"/></returns>
|
||||
public DescribeEcdnDomainLogsResponse DescribeEcdnDomainLogsSync(DescribeEcdnDomainLogsRequest req)
|
||||
{
|
||||
JsonResponseModel<DescribeEcdnDomainLogsResponse> rsp = null;
|
||||
try
|
||||
{
|
||||
var strResp = this.InternalRequestSync(req, "DescribeEcdnDomainLogs");
|
||||
rsp = JsonConvert.DeserializeObject<JsonResponseModel<DescribeEcdnDomainLogsResponse>>(strResp);
|
||||
}
|
||||
catch (JsonSerializationException e)
|
||||
{
|
||||
throw new TencentCloudSDKException(e.Message);
|
||||
}
|
||||
return rsp.Response;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 本接口(DescribeEcdnDomainStatistics)用于查询指定时间段内的域名访问统计指标
|
||||
/// </summary>
|
||||
/// <param name="req"><see cref="DescribeEcdnDomainStatisticsRequest"/></param>
|
||||
/// <returns><see cref="DescribeEcdnDomainStatisticsResponse"/></returns>
|
||||
public async Task<DescribeEcdnDomainStatisticsResponse> DescribeEcdnDomainStatistics(DescribeEcdnDomainStatisticsRequest req)
|
||||
{
|
||||
JsonResponseModel<DescribeEcdnDomainStatisticsResponse> rsp = null;
|
||||
try
|
||||
{
|
||||
var strResp = await this.InternalRequest(req, "DescribeEcdnDomainStatistics");
|
||||
rsp = JsonConvert.DeserializeObject<JsonResponseModel<DescribeEcdnDomainStatisticsResponse>>(strResp);
|
||||
}
|
||||
catch (JsonSerializationException e)
|
||||
{
|
||||
throw new TencentCloudSDKException(e.Message);
|
||||
}
|
||||
return rsp.Response;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 本接口(DescribeEcdnDomainStatistics)用于查询指定时间段内的域名访问统计指标
|
||||
/// </summary>
|
||||
/// <param name="req"><see cref="DescribeEcdnDomainStatisticsRequest"/></param>
|
||||
/// <returns><see cref="DescribeEcdnDomainStatisticsResponse"/></returns>
|
||||
public DescribeEcdnDomainStatisticsResponse DescribeEcdnDomainStatisticsSync(DescribeEcdnDomainStatisticsRequest req)
|
||||
{
|
||||
JsonResponseModel<DescribeEcdnDomainStatisticsResponse> rsp = null;
|
||||
try
|
||||
{
|
||||
var strResp = this.InternalRequestSync(req, "DescribeEcdnDomainStatistics");
|
||||
rsp = JsonConvert.DeserializeObject<JsonResponseModel<DescribeEcdnDomainStatisticsResponse>>(strResp);
|
||||
}
|
||||
catch (JsonSerializationException e)
|
||||
{
|
||||
throw new TencentCloudSDKException(e.Message);
|
||||
}
|
||||
return rsp.Response;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// DescribeEcdnStatistics用于查询 ECDN 实时访问监控数据,支持以下指标查询:
|
||||
///
|
||||
/// + 流量(单位为 byte)
|
||||
/// + 带宽(单位为 bps)
|
||||
/// + 请求数(单位为 次)
|
||||
/// + 响应时间(单位为ms)
|
||||
/// + 状态码 2xx 汇总及各 2 开头状态码明细(单位为 个)
|
||||
/// + 状态码 3xx 汇总及各 3 开头状态码明细(单位为 个)
|
||||
/// + 状态码 4xx 汇总及各 4 开头状态码明细(单位为 个)
|
||||
/// + 状态码 5xx 汇总及各 5 开头状态码明细(单位为 个)
|
||||
/// </summary>
|
||||
/// <param name="req"><see cref="DescribeEcdnStatisticsRequest"/></param>
|
||||
/// <returns><see cref="DescribeEcdnStatisticsResponse"/></returns>
|
||||
public async Task<DescribeEcdnStatisticsResponse> DescribeEcdnStatistics(DescribeEcdnStatisticsRequest req)
|
||||
{
|
||||
JsonResponseModel<DescribeEcdnStatisticsResponse> rsp = null;
|
||||
try
|
||||
{
|
||||
var strResp = await this.InternalRequest(req, "DescribeEcdnStatistics");
|
||||
rsp = JsonConvert.DeserializeObject<JsonResponseModel<DescribeEcdnStatisticsResponse>>(strResp);
|
||||
}
|
||||
catch (JsonSerializationException e)
|
||||
{
|
||||
throw new TencentCloudSDKException(e.Message);
|
||||
}
|
||||
return rsp.Response;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// DescribeEcdnStatistics用于查询 ECDN 实时访问监控数据,支持以下指标查询:
|
||||
///
|
||||
/// + 流量(单位为 byte)
|
||||
/// + 带宽(单位为 bps)
|
||||
/// + 请求数(单位为 次)
|
||||
/// + 响应时间(单位为ms)
|
||||
/// + 状态码 2xx 汇总及各 2 开头状态码明细(单位为 个)
|
||||
/// + 状态码 3xx 汇总及各 3 开头状态码明细(单位为 个)
|
||||
/// + 状态码 4xx 汇总及各 4 开头状态码明细(单位为 个)
|
||||
/// + 状态码 5xx 汇总及各 5 开头状态码明细(单位为 个)
|
||||
/// </summary>
|
||||
/// <param name="req"><see cref="DescribeEcdnStatisticsRequest"/></param>
|
||||
/// <returns><see cref="DescribeEcdnStatisticsResponse"/></returns>
|
||||
public DescribeEcdnStatisticsResponse DescribeEcdnStatisticsSync(DescribeEcdnStatisticsRequest req)
|
||||
{
|
||||
JsonResponseModel<DescribeEcdnStatisticsResponse> rsp = null;
|
||||
try
|
||||
{
|
||||
var strResp = this.InternalRequestSync(req, "DescribeEcdnStatistics");
|
||||
rsp = JsonConvert.DeserializeObject<JsonResponseModel<DescribeEcdnStatisticsResponse>>(strResp);
|
||||
}
|
||||
catch (JsonSerializationException e)
|
||||
{
|
||||
throw new TencentCloudSDKException(e.Message);
|
||||
}
|
||||
return rsp.Response;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 查询刷新接口的用量配额。
|
||||
/// </summary>
|
||||
/// <param name="req"><see cref="DescribePurgeQuotaRequest"/></param>
|
||||
/// <returns><see cref="DescribePurgeQuotaResponse"/></returns>
|
||||
public async Task<DescribePurgeQuotaResponse> DescribePurgeQuota(DescribePurgeQuotaRequest req)
|
||||
{
|
||||
JsonResponseModel<DescribePurgeQuotaResponse> rsp = null;
|
||||
try
|
||||
{
|
||||
var strResp = await this.InternalRequest(req, "DescribePurgeQuota");
|
||||
rsp = JsonConvert.DeserializeObject<JsonResponseModel<DescribePurgeQuotaResponse>>(strResp);
|
||||
}
|
||||
catch (JsonSerializationException e)
|
||||
{
|
||||
throw new TencentCloudSDKException(e.Message);
|
||||
}
|
||||
return rsp.Response;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 查询刷新接口的用量配额。
|
||||
/// </summary>
|
||||
/// <param name="req"><see cref="DescribePurgeQuotaRequest"/></param>
|
||||
/// <returns><see cref="DescribePurgeQuotaResponse"/></returns>
|
||||
public DescribePurgeQuotaResponse DescribePurgeQuotaSync(DescribePurgeQuotaRequest req)
|
||||
{
|
||||
JsonResponseModel<DescribePurgeQuotaResponse> rsp = null;
|
||||
try
|
||||
{
|
||||
var strResp = this.InternalRequestSync(req, "DescribePurgeQuota");
|
||||
rsp = JsonConvert.DeserializeObject<JsonResponseModel<DescribePurgeQuotaResponse>>(strResp);
|
||||
}
|
||||
catch (JsonSerializationException e)
|
||||
{
|
||||
throw new TencentCloudSDKException(e.Message);
|
||||
}
|
||||
return rsp.Response;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// DescribePurgeTasks 用于查询刷新任务提交历史记录及执行进度。
|
||||
/// </summary>
|
||||
/// <param name="req"><see cref="DescribePurgeTasksRequest"/></param>
|
||||
/// <returns><see cref="DescribePurgeTasksResponse"/></returns>
|
||||
public async Task<DescribePurgeTasksResponse> DescribePurgeTasks(DescribePurgeTasksRequest req)
|
||||
{
|
||||
JsonResponseModel<DescribePurgeTasksResponse> rsp = null;
|
||||
try
|
||||
{
|
||||
var strResp = await this.InternalRequest(req, "DescribePurgeTasks");
|
||||
rsp = JsonConvert.DeserializeObject<JsonResponseModel<DescribePurgeTasksResponse>>(strResp);
|
||||
}
|
||||
catch (JsonSerializationException e)
|
||||
{
|
||||
throw new TencentCloudSDKException(e.Message);
|
||||
}
|
||||
return rsp.Response;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// DescribePurgeTasks 用于查询刷新任务提交历史记录及执行进度。
|
||||
/// </summary>
|
||||
/// <param name="req"><see cref="DescribePurgeTasksRequest"/></param>
|
||||
/// <returns><see cref="DescribePurgeTasksResponse"/></returns>
|
||||
public DescribePurgeTasksResponse DescribePurgeTasksSync(DescribePurgeTasksRequest req)
|
||||
{
|
||||
JsonResponseModel<DescribePurgeTasksResponse> rsp = null;
|
||||
try
|
||||
{
|
||||
var strResp = this.InternalRequestSync(req, "DescribePurgeTasks");
|
||||
rsp = JsonConvert.DeserializeObject<JsonResponseModel<DescribePurgeTasksResponse>>(strResp);
|
||||
}
|
||||
catch (JsonSerializationException e)
|
||||
{
|
||||
throw new TencentCloudSDKException(e.Message);
|
||||
}
|
||||
return rsp.Response;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// PurgeUrlsCache 用于批量刷新目录缓存,一次提交将返回一个刷新任务id。
|
||||
/// </summary>
|
||||
/// <param name="req"><see cref="PurgePathCacheRequest"/></param>
|
||||
/// <returns><see cref="PurgePathCacheResponse"/></returns>
|
||||
public async Task<PurgePathCacheResponse> PurgePathCache(PurgePathCacheRequest req)
|
||||
{
|
||||
JsonResponseModel<PurgePathCacheResponse> rsp = null;
|
||||
try
|
||||
{
|
||||
var strResp = await this.InternalRequest(req, "PurgePathCache");
|
||||
rsp = JsonConvert.DeserializeObject<JsonResponseModel<PurgePathCacheResponse>>(strResp);
|
||||
}
|
||||
catch (JsonSerializationException e)
|
||||
{
|
||||
throw new TencentCloudSDKException(e.Message);
|
||||
}
|
||||
return rsp.Response;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// PurgeUrlsCache 用于批量刷新目录缓存,一次提交将返回一个刷新任务id。
|
||||
/// </summary>
|
||||
/// <param name="req"><see cref="PurgePathCacheRequest"/></param>
|
||||
/// <returns><see cref="PurgePathCacheResponse"/></returns>
|
||||
public PurgePathCacheResponse PurgePathCacheSync(PurgePathCacheRequest req)
|
||||
{
|
||||
JsonResponseModel<PurgePathCacheResponse> rsp = null;
|
||||
try
|
||||
{
|
||||
var strResp = this.InternalRequestSync(req, "PurgePathCache");
|
||||
rsp = JsonConvert.DeserializeObject<JsonResponseModel<PurgePathCacheResponse>>(strResp);
|
||||
}
|
||||
catch (JsonSerializationException e)
|
||||
{
|
||||
throw new TencentCloudSDKException(e.Message);
|
||||
}
|
||||
return rsp.Response;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// PurgeUrlsCache 用于批量刷新Url,一次提交将返回一个刷新任务id。
|
||||
/// </summary>
|
||||
/// <param name="req"><see cref="PurgeUrlsCacheRequest"/></param>
|
||||
/// <returns><see cref="PurgeUrlsCacheResponse"/></returns>
|
||||
public async Task<PurgeUrlsCacheResponse> PurgeUrlsCache(PurgeUrlsCacheRequest req)
|
||||
{
|
||||
JsonResponseModel<PurgeUrlsCacheResponse> rsp = null;
|
||||
try
|
||||
{
|
||||
var strResp = await this.InternalRequest(req, "PurgeUrlsCache");
|
||||
rsp = JsonConvert.DeserializeObject<JsonResponseModel<PurgeUrlsCacheResponse>>(strResp);
|
||||
}
|
||||
catch (JsonSerializationException e)
|
||||
{
|
||||
throw new TencentCloudSDKException(e.Message);
|
||||
}
|
||||
return rsp.Response;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// PurgeUrlsCache 用于批量刷新Url,一次提交将返回一个刷新任务id。
|
||||
/// </summary>
|
||||
/// <param name="req"><see cref="PurgeUrlsCacheRequest"/></param>
|
||||
/// <returns><see cref="PurgeUrlsCacheResponse"/></returns>
|
||||
public PurgeUrlsCacheResponse PurgeUrlsCacheSync(PurgeUrlsCacheRequest req)
|
||||
{
|
||||
JsonResponseModel<PurgeUrlsCacheResponse> rsp = null;
|
||||
try
|
||||
{
|
||||
var strResp = this.InternalRequestSync(req, "PurgeUrlsCache");
|
||||
rsp = JsonConvert.DeserializeObject<JsonResponseModel<PurgeUrlsCacheResponse>>(strResp);
|
||||
}
|
||||
catch (JsonSerializationException e)
|
||||
{
|
||||
throw new TencentCloudSDKException(e.Message);
|
||||
}
|
||||
return rsp.Response;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 本接口(StartEcdnDomain)用于启用加速域名,待启用域名必须处于已下线状态。
|
||||
/// </summary>
|
||||
/// <param name="req"><see cref="StartEcdnDomainRequest"/></param>
|
||||
/// <returns><see cref="StartEcdnDomainResponse"/></returns>
|
||||
public async Task<StartEcdnDomainResponse> StartEcdnDomain(StartEcdnDomainRequest req)
|
||||
{
|
||||
JsonResponseModel<StartEcdnDomainResponse> rsp = null;
|
||||
try
|
||||
{
|
||||
var strResp = await this.InternalRequest(req, "StartEcdnDomain");
|
||||
rsp = JsonConvert.DeserializeObject<JsonResponseModel<StartEcdnDomainResponse>>(strResp);
|
||||
}
|
||||
catch (JsonSerializationException e)
|
||||
{
|
||||
throw new TencentCloudSDKException(e.Message);
|
||||
}
|
||||
return rsp.Response;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 本接口(StartEcdnDomain)用于启用加速域名,待启用域名必须处于已下线状态。
|
||||
/// </summary>
|
||||
/// <param name="req"><see cref="StartEcdnDomainRequest"/></param>
|
||||
/// <returns><see cref="StartEcdnDomainResponse"/></returns>
|
||||
public StartEcdnDomainResponse StartEcdnDomainSync(StartEcdnDomainRequest req)
|
||||
{
|
||||
JsonResponseModel<StartEcdnDomainResponse> rsp = null;
|
||||
try
|
||||
{
|
||||
var strResp = this.InternalRequestSync(req, "StartEcdnDomain");
|
||||
rsp = JsonConvert.DeserializeObject<JsonResponseModel<StartEcdnDomainResponse>>(strResp);
|
||||
}
|
||||
catch (JsonSerializationException e)
|
||||
{
|
||||
throw new TencentCloudSDKException(e.Message);
|
||||
}
|
||||
return rsp.Response;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 本接口(StopCdnDomain)用于停止加速域名,待停用加速域名必须处于已上线或部署中状态。
|
||||
/// </summary>
|
||||
/// <param name="req"><see cref="StopEcdnDomainRequest"/></param>
|
||||
/// <returns><see cref="StopEcdnDomainResponse"/></returns>
|
||||
public async Task<StopEcdnDomainResponse> StopEcdnDomain(StopEcdnDomainRequest req)
|
||||
{
|
||||
JsonResponseModel<StopEcdnDomainResponse> rsp = null;
|
||||
try
|
||||
{
|
||||
var strResp = await this.InternalRequest(req, "StopEcdnDomain");
|
||||
rsp = JsonConvert.DeserializeObject<JsonResponseModel<StopEcdnDomainResponse>>(strResp);
|
||||
}
|
||||
catch (JsonSerializationException e)
|
||||
{
|
||||
throw new TencentCloudSDKException(e.Message);
|
||||
}
|
||||
return rsp.Response;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 本接口(StopCdnDomain)用于停止加速域名,待停用加速域名必须处于已上线或部署中状态。
|
||||
/// </summary>
|
||||
/// <param name="req"><see cref="StopEcdnDomainRequest"/></param>
|
||||
/// <returns><see cref="StopEcdnDomainResponse"/></returns>
|
||||
public StopEcdnDomainResponse StopEcdnDomainSync(StopEcdnDomainRequest req)
|
||||
{
|
||||
JsonResponseModel<StopEcdnDomainResponse> rsp = null;
|
||||
try
|
||||
{
|
||||
var strResp = this.InternalRequestSync(req, "StopEcdnDomain");
|
||||
rsp = JsonConvert.DeserializeObject<JsonResponseModel<StopEcdnDomainResponse>>(strResp);
|
||||
}
|
||||
catch (JsonSerializationException e)
|
||||
{
|
||||
throw new TencentCloudSDKException(e.Message);
|
||||
}
|
||||
return rsp.Response;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 本接口(UpdateDomainConfig)用于更新ECDN加速域名配置信息。
|
||||
/// 注意:如果需要更新复杂类型的配置项,必须传递整个对象的所有属性,未传递的属性将使用默认值。建议通过查询接口获取配置属性后,直接修改后传递给本接口。Https配置由于证书的特殊性,更新时不用传递证书和密钥字段。
|
||||
/// </summary>
|
||||
/// <param name="req"><see cref="UpdateDomainConfigRequest"/></param>
|
||||
/// <returns><see cref="UpdateDomainConfigResponse"/></returns>
|
||||
public async Task<UpdateDomainConfigResponse> UpdateDomainConfig(UpdateDomainConfigRequest req)
|
||||
{
|
||||
JsonResponseModel<UpdateDomainConfigResponse> rsp = null;
|
||||
try
|
||||
{
|
||||
var strResp = await this.InternalRequest(req, "UpdateDomainConfig");
|
||||
rsp = JsonConvert.DeserializeObject<JsonResponseModel<UpdateDomainConfigResponse>>(strResp);
|
||||
}
|
||||
catch (JsonSerializationException e)
|
||||
{
|
||||
throw new TencentCloudSDKException(e.Message);
|
||||
}
|
||||
return rsp.Response;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 本接口(UpdateDomainConfig)用于更新ECDN加速域名配置信息。
|
||||
/// 注意:如果需要更新复杂类型的配置项,必须传递整个对象的所有属性,未传递的属性将使用默认值。建议通过查询接口获取配置属性后,直接修改后传递给本接口。Https配置由于证书的特殊性,更新时不用传递证书和密钥字段。
|
||||
/// </summary>
|
||||
/// <param name="req"><see cref="UpdateDomainConfigRequest"/></param>
|
||||
/// <returns><see cref="UpdateDomainConfigResponse"/></returns>
|
||||
public UpdateDomainConfigResponse UpdateDomainConfigSync(UpdateDomainConfigRequest req)
|
||||
{
|
||||
JsonResponseModel<UpdateDomainConfigResponse> rsp = null;
|
||||
try
|
||||
{
|
||||
var strResp = this.InternalRequestSync(req, "UpdateDomainConfig");
|
||||
rsp = JsonConvert.DeserializeObject<JsonResponseModel<UpdateDomainConfigResponse>>(strResp);
|
||||
}
|
||||
catch (JsonSerializationException e)
|
||||
{
|
||||
throw new TencentCloudSDKException(e.Message);
|
||||
}
|
||||
return rsp.Response;
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
113
TencentCloud/Ecdn/V20191012/Models/AddEcdnDomainRequest.cs
Normal file
113
TencentCloud/Ecdn/V20191012/Models/AddEcdnDomainRequest.cs
Normal file
@@ -0,0 +1,113 @@
|
||||
/*
|
||||
* 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.Ecdn.V20191012.Models
|
||||
{
|
||||
using Newtonsoft.Json;
|
||||
using System.Collections.Generic;
|
||||
using TencentCloud.Common;
|
||||
|
||||
public class AddEcdnDomainRequest : AbstractModel
|
||||
{
|
||||
|
||||
/// <summary>
|
||||
/// 域名。
|
||||
/// </summary>
|
||||
[JsonProperty("Domain")]
|
||||
public string Domain{ get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 源站配置。
|
||||
/// </summary>
|
||||
[JsonProperty("Origin")]
|
||||
public Origin Origin{ get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 域名加速区域,mainland,overseas或global,分别表示中国境内加速,海外加速或全球加速。
|
||||
/// </summary>
|
||||
[JsonProperty("Area")]
|
||||
public string Area{ get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 项目id,默认0。
|
||||
/// </summary>
|
||||
[JsonProperty("ProjectId")]
|
||||
public long? ProjectId{ get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// IP黑白名单配置。
|
||||
/// </summary>
|
||||
[JsonProperty("IpFilter")]
|
||||
public IpFilter IpFilter{ get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// IP限频配置。
|
||||
/// </summary>
|
||||
[JsonProperty("IpFreqLimit")]
|
||||
public IpFreqLimit IpFreqLimit{ get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 源站响应头部配置。
|
||||
/// </summary>
|
||||
[JsonProperty("ResponseHeader")]
|
||||
public ResponseHeader ResponseHeader{ get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 节点缓存配置。
|
||||
/// </summary>
|
||||
[JsonProperty("CacheKey")]
|
||||
public CacheKey CacheKey{ get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 缓存规则配置。
|
||||
/// </summary>
|
||||
[JsonProperty("Cache")]
|
||||
public Cache Cache{ get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Https配置。
|
||||
/// </summary>
|
||||
[JsonProperty("Https")]
|
||||
public Https Https{ get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 访问协议强制跳转配置。
|
||||
/// </summary>
|
||||
[JsonProperty("ForceRedirect")]
|
||||
public ForceRedirect ForceRedirect{ 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 + "Domain", this.Domain);
|
||||
this.SetParamObj(map, prefix + "Origin.", this.Origin);
|
||||
this.SetParamSimple(map, prefix + "Area", this.Area);
|
||||
this.SetParamSimple(map, prefix + "ProjectId", this.ProjectId);
|
||||
this.SetParamObj(map, prefix + "IpFilter.", this.IpFilter);
|
||||
this.SetParamObj(map, prefix + "IpFreqLimit.", this.IpFreqLimit);
|
||||
this.SetParamObj(map, prefix + "ResponseHeader.", this.ResponseHeader);
|
||||
this.SetParamObj(map, prefix + "CacheKey.", this.CacheKey);
|
||||
this.SetParamObj(map, prefix + "Cache.", this.Cache);
|
||||
this.SetParamObj(map, prefix + "Https.", this.Https);
|
||||
this.SetParamObj(map, prefix + "ForceRedirect.", this.ForceRedirect);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
43
TencentCloud/Ecdn/V20191012/Models/AddEcdnDomainResponse.cs
Normal file
43
TencentCloud/Ecdn/V20191012/Models/AddEcdnDomainResponse.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.Ecdn.V20191012.Models
|
||||
{
|
||||
using Newtonsoft.Json;
|
||||
using System.Collections.Generic;
|
||||
using TencentCloud.Common;
|
||||
|
||||
public class AddEcdnDomainResponse : 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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
54
TencentCloud/Ecdn/V20191012/Models/Cache.cs
Normal file
54
TencentCloud/Ecdn/V20191012/Models/Cache.cs
Normal file
@@ -0,0 +1,54 @@
|
||||
/*
|
||||
* 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.Ecdn.V20191012.Models
|
||||
{
|
||||
using Newtonsoft.Json;
|
||||
using System.Collections.Generic;
|
||||
using TencentCloud.Common;
|
||||
|
||||
public class Cache : AbstractModel
|
||||
{
|
||||
|
||||
/// <summary>
|
||||
/// 缓存配置规则数组。
|
||||
/// </summary>
|
||||
[JsonProperty("CacheRules")]
|
||||
public CacheRule[] CacheRules{ get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 遵循源站 Cache-Control: max-age 配置
|
||||
/// on:开启
|
||||
/// off:关闭
|
||||
/// 开启后,未能匹配 CacheRules 规则的资源将根据源站返回的 max-age 值进行节点缓存;匹配了 CacheRules 规则的资源将按照 CacheRules 中设置的缓存过期时间在节点进行缓存
|
||||
/// 注意:此字段可能返回 null,表示取不到有效值。
|
||||
/// </summary>
|
||||
[JsonProperty("FollowOrigin")]
|
||||
public string FollowOrigin{ 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 + "CacheRules.", this.CacheRules);
|
||||
this.SetParamSimple(map, prefix + "FollowOrigin", this.FollowOrigin);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
43
TencentCloud/Ecdn/V20191012/Models/CacheKey.cs
Normal file
43
TencentCloud/Ecdn/V20191012/Models/CacheKey.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.Ecdn.V20191012.Models
|
||||
{
|
||||
using Newtonsoft.Json;
|
||||
using System.Collections.Generic;
|
||||
using TencentCloud.Common;
|
||||
|
||||
public class CacheKey : AbstractModel
|
||||
{
|
||||
|
||||
/// <summary>
|
||||
/// 是否开启全路径缓存,on或off。
|
||||
/// </summary>
|
||||
[JsonProperty("FullUrlCache")]
|
||||
public string FullUrlCache{ 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 + "FullUrlCache", this.FullUrlCache);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
57
TencentCloud/Ecdn/V20191012/Models/CacheRule.cs
Normal file
57
TencentCloud/Ecdn/V20191012/Models/CacheRule.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.Ecdn.V20191012.Models
|
||||
{
|
||||
using Newtonsoft.Json;
|
||||
using System.Collections.Generic;
|
||||
using TencentCloud.Common;
|
||||
|
||||
public class CacheRule : AbstractModel
|
||||
{
|
||||
|
||||
/// <summary>
|
||||
/// 缓存类型,支持all,file,directory,path,index,分别表示全部文件,后缀类型,目录,完整路径,首页。
|
||||
/// </summary>
|
||||
[JsonProperty("CacheType")]
|
||||
public string CacheType{ get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 缓存内容列表。
|
||||
/// </summary>
|
||||
[JsonProperty("CacheContents")]
|
||||
public string[] CacheContents{ get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 缓存时间,单位秒。
|
||||
/// </summary>
|
||||
[JsonProperty("CacheTime")]
|
||||
public long? CacheTime{ 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 + "CacheType", this.CacheType);
|
||||
this.SetParamArraySimple(map, prefix + "CacheContents.", this.CacheContents);
|
||||
this.SetParamSimple(map, prefix + "CacheTime", this.CacheTime);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
68
TencentCloud/Ecdn/V20191012/Models/ClientCert.cs
Normal file
68
TencentCloud/Ecdn/V20191012/Models/ClientCert.cs
Normal file
@@ -0,0 +1,68 @@
|
||||
/*
|
||||
* 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.Ecdn.V20191012.Models
|
||||
{
|
||||
using Newtonsoft.Json;
|
||||
using System.Collections.Generic;
|
||||
using TencentCloud.Common;
|
||||
|
||||
public class ClientCert : AbstractModel
|
||||
{
|
||||
|
||||
/// <summary>
|
||||
/// 客户端证书,pem格式。
|
||||
/// 注意:此字段可能返回 null,表示取不到有效值。
|
||||
/// </summary>
|
||||
[JsonProperty("Certificate")]
|
||||
public string Certificate{ get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 客户端证书名称。
|
||||
/// 注意:此字段可能返回 null,表示取不到有效值。
|
||||
/// </summary>
|
||||
[JsonProperty("CertName")]
|
||||
public string CertName{ get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 证书过期时间。
|
||||
/// 注意:此字段可能返回 null,表示取不到有效值。
|
||||
/// </summary>
|
||||
[JsonProperty("ExpireTime")]
|
||||
public string ExpireTime{ get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 证书颁发时间。
|
||||
/// 注意:此字段可能返回 null,表示取不到有效值。
|
||||
/// </summary>
|
||||
[JsonProperty("DeployTime")]
|
||||
public string DeployTime{ 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 + "Certificate", this.Certificate);
|
||||
this.SetParamSimple(map, prefix + "CertName", this.CertName);
|
||||
this.SetParamSimple(map, prefix + "ExpireTime", this.ExpireTime);
|
||||
this.SetParamSimple(map, prefix + "DeployTime", this.DeployTime);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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.Ecdn.V20191012.Models
|
||||
{
|
||||
using Newtonsoft.Json;
|
||||
using System.Collections.Generic;
|
||||
using TencentCloud.Common;
|
||||
|
||||
public class DeleteEcdnDomainRequest : AbstractModel
|
||||
{
|
||||
|
||||
/// <summary>
|
||||
/// 待删除域名。
|
||||
/// </summary>
|
||||
[JsonProperty("Domain")]
|
||||
public string Domain{ 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 + "Domain", this.Domain);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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.Ecdn.V20191012.Models
|
||||
{
|
||||
using Newtonsoft.Json;
|
||||
using System.Collections.Generic;
|
||||
using TencentCloud.Common;
|
||||
|
||||
public class DeleteEcdnDomainResponse : 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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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.Ecdn.V20191012.Models
|
||||
{
|
||||
using Newtonsoft.Json;
|
||||
using System.Collections.Generic;
|
||||
using TencentCloud.Common;
|
||||
|
||||
public class DescribeDomainsConfigRequest : AbstractModel
|
||||
{
|
||||
|
||||
/// <summary>
|
||||
/// 分页查询的偏移地址,默认0。
|
||||
/// </summary>
|
||||
[JsonProperty("Offset")]
|
||||
public long? Offset{ get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 分页查询的域名个数,默认100。
|
||||
/// </summary>
|
||||
[JsonProperty("Limit")]
|
||||
public long? Limit{ get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 查询条件过滤器。
|
||||
/// </summary>
|
||||
[JsonProperty("Filters")]
|
||||
public DomainFilter[] Filters{ get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 查询结果排序规则。
|
||||
/// </summary>
|
||||
[JsonProperty("Sort")]
|
||||
public Sort Sort{ 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 + "Offset", this.Offset);
|
||||
this.SetParamSimple(map, prefix + "Limit", this.Limit);
|
||||
this.SetParamArrayObj(map, prefix + "Filters.", this.Filters);
|
||||
this.SetParamObj(map, prefix + "Sort.", this.Sort);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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.Ecdn.V20191012.Models
|
||||
{
|
||||
using Newtonsoft.Json;
|
||||
using System.Collections.Generic;
|
||||
using TencentCloud.Common;
|
||||
|
||||
public class DescribeDomainsConfigResponse : AbstractModel
|
||||
{
|
||||
|
||||
/// <summary>
|
||||
/// 域名列表。
|
||||
/// </summary>
|
||||
[JsonProperty("Domains")]
|
||||
public DomainDetailInfo[] Domains{ get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 符合查询条件的域名总数,用于分页查询。
|
||||
/// </summary>
|
||||
[JsonProperty("TotalCount")]
|
||||
public long? TotalCount{ 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 + "Domains.", this.Domains);
|
||||
this.SetParamSimple(map, prefix + "TotalCount", this.TotalCount);
|
||||
this.SetParamSimple(map, prefix + "RequestId", this.RequestId);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
57
TencentCloud/Ecdn/V20191012/Models/DescribeDomainsRequest.cs
Normal file
57
TencentCloud/Ecdn/V20191012/Models/DescribeDomainsRequest.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.Ecdn.V20191012.Models
|
||||
{
|
||||
using Newtonsoft.Json;
|
||||
using System.Collections.Generic;
|
||||
using TencentCloud.Common;
|
||||
|
||||
public class DescribeDomainsRequest : AbstractModel
|
||||
{
|
||||
|
||||
/// <summary>
|
||||
/// 分页查询的偏移地址,默认0。
|
||||
/// </summary>
|
||||
[JsonProperty("Offset")]
|
||||
public long? Offset{ get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 分页查询的域名个数,默认100,最大支持1000。
|
||||
/// </summary>
|
||||
[JsonProperty("Limit")]
|
||||
public long? Limit{ get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 查询条件过滤器。
|
||||
/// </summary>
|
||||
[JsonProperty("Filters")]
|
||||
public DomainFilter[] Filters{ 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 + "Offset", this.Offset);
|
||||
this.SetParamSimple(map, prefix + "Limit", this.Limit);
|
||||
this.SetParamArrayObj(map, prefix + "Filters.", this.Filters);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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.Ecdn.V20191012.Models
|
||||
{
|
||||
using Newtonsoft.Json;
|
||||
using System.Collections.Generic;
|
||||
using TencentCloud.Common;
|
||||
|
||||
public class DescribeDomainsResponse : AbstractModel
|
||||
{
|
||||
|
||||
/// <summary>
|
||||
/// 域名信息列表。
|
||||
/// </summary>
|
||||
[JsonProperty("Domains")]
|
||||
public DomainBriefInfo[] Domains{ get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 域名总个数。
|
||||
/// </summary>
|
||||
[JsonProperty("TotalCount")]
|
||||
public long? TotalCount{ 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 + "Domains.", this.Domains);
|
||||
this.SetParamSimple(map, prefix + "TotalCount", this.TotalCount);
|
||||
this.SetParamSimple(map, prefix + "RequestId", this.RequestId);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,71 @@
|
||||
/*
|
||||
* 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.Ecdn.V20191012.Models
|
||||
{
|
||||
using Newtonsoft.Json;
|
||||
using System.Collections.Generic;
|
||||
using TencentCloud.Common;
|
||||
|
||||
public class DescribeEcdnDomainLogsRequest : AbstractModel
|
||||
{
|
||||
|
||||
/// <summary>
|
||||
/// 待查询域名。
|
||||
/// </summary>
|
||||
[JsonProperty("Domain")]
|
||||
public string Domain{ get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 日志起始时间。如:2019-10-01 00:00:00
|
||||
/// </summary>
|
||||
[JsonProperty("StartTime")]
|
||||
public string StartTime{ get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 日志结束时间,只支持最近30天内日志查询。2019-10-02 00:00:00
|
||||
/// </summary>
|
||||
[JsonProperty("EndTime")]
|
||||
public string EndTime{ get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 日志链接列表分页起始地址,默认0。
|
||||
/// </summary>
|
||||
[JsonProperty("Offset")]
|
||||
public long? Offset{ get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 日志链接列表分页记录条数,默认100,最大1000。
|
||||
/// </summary>
|
||||
[JsonProperty("Limit")]
|
||||
public long? Limit{ 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 + "Domain", this.Domain);
|
||||
this.SetParamSimple(map, prefix + "StartTime", this.StartTime);
|
||||
this.SetParamSimple(map, prefix + "EndTime", this.EndTime);
|
||||
this.SetParamSimple(map, prefix + "Offset", this.Offset);
|
||||
this.SetParamSimple(map, prefix + "Limit", this.Limit);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,58 @@
|
||||
/*
|
||||
* 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.Ecdn.V20191012.Models
|
||||
{
|
||||
using Newtonsoft.Json;
|
||||
using System.Collections.Generic;
|
||||
using TencentCloud.Common;
|
||||
|
||||
public class DescribeEcdnDomainLogsResponse : AbstractModel
|
||||
{
|
||||
|
||||
/// <summary>
|
||||
/// 日志链接列表。
|
||||
/// 注意:此字段可能返回 null,表示取不到有效值。
|
||||
/// </summary>
|
||||
[JsonProperty("DomainLogs")]
|
||||
public DomainLogs[] DomainLogs{ get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 日志链接总条数。
|
||||
/// </summary>
|
||||
[JsonProperty("TotalCount")]
|
||||
public long? TotalCount{ 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 + "DomainLogs.", this.DomainLogs);
|
||||
this.SetParamSimple(map, prefix + "TotalCount", this.TotalCount);
|
||||
this.SetParamSimple(map, prefix + "RequestId", this.RequestId);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,97 @@
|
||||
/*
|
||||
* 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.Ecdn.V20191012.Models
|
||||
{
|
||||
using Newtonsoft.Json;
|
||||
using System.Collections.Generic;
|
||||
using TencentCloud.Common;
|
||||
|
||||
public class DescribeEcdnDomainStatisticsRequest : AbstractModel
|
||||
{
|
||||
|
||||
/// <summary>
|
||||
/// 查询起始时间,如:2019-12-13 00:00:00。
|
||||
/// 起止时间不超过90天。
|
||||
/// </summary>
|
||||
[JsonProperty("StartTime")]
|
||||
public string StartTime{ get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 查询结束时间,如:2019-12-13 23:59:59。
|
||||
/// 起止时间不超过90天。
|
||||
/// </summary>
|
||||
[JsonProperty("EndTime")]
|
||||
public string EndTime{ get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 统计指标名称。flux:流量,单位为 byte
|
||||
/// bandwidth:带宽,单位为 bps
|
||||
/// request:请求数,单位为 次
|
||||
/// delay:响应时间,单位为ms
|
||||
/// static_request : 静态请求数,单位为 次
|
||||
/// static_flux:静态流量,单位为 byte
|
||||
/// static_bandwidth : 静态带宽,单位为 bps
|
||||
/// dynamic_request:动态请求数,单位为 次
|
||||
/// dynamic_flux:动态流量,单位为 byte
|
||||
/// dynamic_bandwidth:动态带宽,单位为 bps
|
||||
/// </summary>
|
||||
[JsonProperty("Metrics")]
|
||||
public string[] Metrics{ get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 指定查询域名列表
|
||||
/// </summary>
|
||||
[JsonProperty("Domains")]
|
||||
public string[] Domains{ get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 指定要查询的项目 ID,[前往查看项目 ID](https://console.cloud.tencent.com/project)
|
||||
/// 未填充域名情况下,指定项目查询,若填充了具体域名信息,以域名为主
|
||||
/// </summary>
|
||||
[JsonProperty("Projects")]
|
||||
public long?[] Projects{ get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 列表分页起始地址,默认0。
|
||||
/// </summary>
|
||||
[JsonProperty("Offset")]
|
||||
public long? Offset{ get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 列表分页记录条数,默认1000,最大3000。
|
||||
/// </summary>
|
||||
[JsonProperty("Limit")]
|
||||
public long? Limit{ 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 + "StartTime", this.StartTime);
|
||||
this.SetParamSimple(map, prefix + "EndTime", this.EndTime);
|
||||
this.SetParamArraySimple(map, prefix + "Metrics.", this.Metrics);
|
||||
this.SetParamArraySimple(map, prefix + "Domains.", this.Domains);
|
||||
this.SetParamArraySimple(map, prefix + "Projects.", this.Projects);
|
||||
this.SetParamSimple(map, prefix + "Offset", this.Offset);
|
||||
this.SetParamSimple(map, prefix + "Limit", this.Limit);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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.Ecdn.V20191012.Models
|
||||
{
|
||||
using Newtonsoft.Json;
|
||||
using System.Collections.Generic;
|
||||
using TencentCloud.Common;
|
||||
|
||||
public class DescribeEcdnDomainStatisticsResponse : AbstractModel
|
||||
{
|
||||
|
||||
/// <summary>
|
||||
/// 域名数据
|
||||
/// </summary>
|
||||
[JsonProperty("Data")]
|
||||
public DomainData[] Data{ get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 数量
|
||||
/// </summary>
|
||||
[JsonProperty("TotalCount")]
|
||||
public long? TotalCount{ 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 + "Data.", this.Data);
|
||||
this.SetParamSimple(map, prefix + "TotalCount", this.TotalCount);
|
||||
this.SetParamSimple(map, prefix + "RequestId", this.RequestId);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,99 @@
|
||||
/*
|
||||
* 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.Ecdn.V20191012.Models
|
||||
{
|
||||
using Newtonsoft.Json;
|
||||
using System.Collections.Generic;
|
||||
using TencentCloud.Common;
|
||||
|
||||
public class DescribeEcdnStatisticsRequest : AbstractModel
|
||||
{
|
||||
|
||||
/// <summary>
|
||||
/// 查询起始时间,如:2019-12-13 00:00:00
|
||||
/// </summary>
|
||||
[JsonProperty("StartTime")]
|
||||
public string StartTime{ get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 查询结束时间,如:2019-12-13 23:59:59
|
||||
/// </summary>
|
||||
[JsonProperty("EndTime")]
|
||||
public string EndTime{ get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 指定查询指标,支持的类型有:
|
||||
/// flux:流量,单位为 byte
|
||||
/// bandwidth:带宽,单位为 bps
|
||||
/// request:请求数,单位为 次
|
||||
/// delay:响应时间,单位为ms
|
||||
/// 2xx:返回 2xx 状态码汇总或者 2 开头状态码数据,单位为 个
|
||||
/// 3xx:返回 3xx 状态码汇总或者 3 开头状态码数据,单位为 个
|
||||
/// 4xx:返回 4xx 状态码汇总或者 4 开头状态码数据,单位为 个
|
||||
/// 5xx:返回 5xx 状态码汇总或者 5 开头状态码数据,单位为 个
|
||||
/// static_request : 静态请求数,单位为 次
|
||||
/// static_flux:静态流量,单位为 byte
|
||||
/// static_bandwidth : 静态带宽,单位为 bps
|
||||
/// dynamic_request:动态请求数,单位为 次
|
||||
/// dynamic_flux:动态流量,单位为 byte
|
||||
/// dynamic_bandwidth:动态带宽,单位为 bps
|
||||
/// </summary>
|
||||
[JsonProperty("Metrics")]
|
||||
public string[] Metrics{ get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 时间粒度,支持以下几种模式:
|
||||
/// 1 天 1,5,15,30,60,120,240,1440
|
||||
/// 2 ~ 3 天 15,30,60,120,240,1440
|
||||
/// 4 ~ 7 天 30,60,120,240,1440
|
||||
/// 8 ~ 90 天 60,120,240,1440
|
||||
/// </summary>
|
||||
[JsonProperty("Interval")]
|
||||
public long? Interval{ get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 指定查询域名列表
|
||||
///
|
||||
/// 最多可一次性查询30个加速域名。
|
||||
/// </summary>
|
||||
[JsonProperty("Domains")]
|
||||
public string[] Domains{ get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 指定要查询的项目 ID,[前往查看项目 ID](https://console.cloud.tencent.com/project)
|
||||
/// 未填充域名情况下,指定项目查询,若填充了具体域名信息,以域名为主
|
||||
/// </summary>
|
||||
[JsonProperty("Projects")]
|
||||
public long?[] Projects{ 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 + "StartTime", this.StartTime);
|
||||
this.SetParamSimple(map, prefix + "EndTime", this.EndTime);
|
||||
this.SetParamArraySimple(map, prefix + "Metrics.", this.Metrics);
|
||||
this.SetParamSimple(map, prefix + "Interval", this.Interval);
|
||||
this.SetParamArraySimple(map, prefix + "Domains.", this.Domains);
|
||||
this.SetParamArraySimple(map, prefix + "Projects.", this.Projects);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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.Ecdn.V20191012.Models
|
||||
{
|
||||
using Newtonsoft.Json;
|
||||
using System.Collections.Generic;
|
||||
using TencentCloud.Common;
|
||||
|
||||
public class DescribeEcdnStatisticsResponse : AbstractModel
|
||||
{
|
||||
|
||||
/// <summary>
|
||||
/// 指定条件查询得到的数据明细
|
||||
/// </summary>
|
||||
[JsonProperty("Data")]
|
||||
public ResourceData[] Data{ 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 + "Data.", this.Data);
|
||||
this.SetParamSimple(map, prefix + "RequestId", this.RequestId);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,36 @@
|
||||
/*
|
||||
* 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.Ecdn.V20191012.Models
|
||||
{
|
||||
using Newtonsoft.Json;
|
||||
using System.Collections.Generic;
|
||||
using TencentCloud.Common;
|
||||
|
||||
public class DescribePurgeQuotaRequest : AbstractModel
|
||||
{
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// For internal usage only. DO NOT USE IT.
|
||||
/// </summary>
|
||||
internal override void ToMap(Dictionary<string, string> map, string prefix)
|
||||
{
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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.Ecdn.V20191012.Models
|
||||
{
|
||||
using Newtonsoft.Json;
|
||||
using System.Collections.Generic;
|
||||
using TencentCloud.Common;
|
||||
|
||||
public class DescribePurgeQuotaResponse : AbstractModel
|
||||
{
|
||||
|
||||
/// <summary>
|
||||
/// Url刷新用量及配额。
|
||||
/// </summary>
|
||||
[JsonProperty("UrlPurge")]
|
||||
public Quota UrlPurge{ get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 目录刷新用量及配额。
|
||||
/// </summary>
|
||||
[JsonProperty("PathPurge")]
|
||||
public Quota PathPurge{ 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.SetParamObj(map, prefix + "UrlPurge.", this.UrlPurge);
|
||||
this.SetParamObj(map, prefix + "PathPurge.", this.PathPurge);
|
||||
this.SetParamSimple(map, prefix + "RequestId", this.RequestId);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,92 @@
|
||||
/*
|
||||
* 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.Ecdn.V20191012.Models
|
||||
{
|
||||
using Newtonsoft.Json;
|
||||
using System.Collections.Generic;
|
||||
using TencentCloud.Common;
|
||||
|
||||
public class DescribePurgeTasksRequest : AbstractModel
|
||||
{
|
||||
|
||||
/// <summary>
|
||||
/// 查询刷新类型。url:查询 url 刷新记录;path:查询目录刷新记录。
|
||||
/// </summary>
|
||||
[JsonProperty("PurgeType")]
|
||||
public string PurgeType{ get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 开始时间,如2018-08-08 00:00:00。
|
||||
/// </summary>
|
||||
[JsonProperty("StartTime")]
|
||||
public string StartTime{ get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 结束时间,如2018-08-08 23:59:59。
|
||||
/// </summary>
|
||||
[JsonProperty("EndTime")]
|
||||
public string EndTime{ get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 提交时返回的任务 Id,查询时 TaskId 和起始时间必须指定一项。
|
||||
/// </summary>
|
||||
[JsonProperty("TaskId")]
|
||||
public string TaskId{ get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 分页查询偏移量,默认为0(从第0条开始)。
|
||||
/// </summary>
|
||||
[JsonProperty("Offset")]
|
||||
public long? Offset{ get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 分页查询限制数目,默认为20。
|
||||
/// </summary>
|
||||
[JsonProperty("Limit")]
|
||||
public long? Limit{ get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 查询关键字,请输入域名或 http(s):// 开头完整 URL。
|
||||
/// </summary>
|
||||
[JsonProperty("Keyword")]
|
||||
public string Keyword{ get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 查询指定任务状态,fail表示失败,done表示成功,process表示刷新中。
|
||||
/// </summary>
|
||||
[JsonProperty("Status")]
|
||||
public string Status{ 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 + "PurgeType", this.PurgeType);
|
||||
this.SetParamSimple(map, prefix + "StartTime", this.StartTime);
|
||||
this.SetParamSimple(map, prefix + "EndTime", this.EndTime);
|
||||
this.SetParamSimple(map, prefix + "TaskId", this.TaskId);
|
||||
this.SetParamSimple(map, prefix + "Offset", this.Offset);
|
||||
this.SetParamSimple(map, prefix + "Limit", this.Limit);
|
||||
this.SetParamSimple(map, prefix + "Keyword", this.Keyword);
|
||||
this.SetParamSimple(map, prefix + "Status", this.Status);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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.Ecdn.V20191012.Models
|
||||
{
|
||||
using Newtonsoft.Json;
|
||||
using System.Collections.Generic;
|
||||
using TencentCloud.Common;
|
||||
|
||||
public class DescribePurgeTasksResponse : AbstractModel
|
||||
{
|
||||
|
||||
/// <summary>
|
||||
/// 刷新历史记录。
|
||||
/// </summary>
|
||||
[JsonProperty("PurgeLogs")]
|
||||
public PurgeTask[] PurgeLogs{ get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 任务总数,用于分页。
|
||||
/// </summary>
|
||||
[JsonProperty("TotalCount")]
|
||||
public long? TotalCount{ 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 + "PurgeLogs.", this.PurgeLogs);
|
||||
this.SetParamSimple(map, prefix + "TotalCount", this.TotalCount);
|
||||
this.SetParamSimple(map, prefix + "RequestId", this.RequestId);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
50
TencentCloud/Ecdn/V20191012/Models/DetailData.cs
Normal file
50
TencentCloud/Ecdn/V20191012/Models/DetailData.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.Ecdn.V20191012.Models
|
||||
{
|
||||
using Newtonsoft.Json;
|
||||
using System.Collections.Generic;
|
||||
using TencentCloud.Common;
|
||||
|
||||
public class DetailData : AbstractModel
|
||||
{
|
||||
|
||||
/// <summary>
|
||||
/// 数据类型的名称
|
||||
/// </summary>
|
||||
[JsonProperty("Name")]
|
||||
public string Name{ get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 数据值
|
||||
/// </summary>
|
||||
[JsonProperty("Value")]
|
||||
public float? Value{ 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 + "Name", this.Name);
|
||||
this.SetParamSimple(map, prefix + "Value", this.Value);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
120
TencentCloud/Ecdn/V20191012/Models/DomainBriefInfo.cs
Normal file
120
TencentCloud/Ecdn/V20191012/Models/DomainBriefInfo.cs
Normal file
@@ -0,0 +1,120 @@
|
||||
/*
|
||||
* 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.Ecdn.V20191012.Models
|
||||
{
|
||||
using Newtonsoft.Json;
|
||||
using System.Collections.Generic;
|
||||
using TencentCloud.Common;
|
||||
|
||||
public class DomainBriefInfo : AbstractModel
|
||||
{
|
||||
|
||||
/// <summary>
|
||||
/// 域名ID。
|
||||
/// </summary>
|
||||
[JsonProperty("ResourceId")]
|
||||
public string ResourceId{ get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 腾讯云账号ID。
|
||||
/// </summary>
|
||||
[JsonProperty("AppId")]
|
||||
public long? AppId{ get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// CDN加速域名。
|
||||
/// </summary>
|
||||
[JsonProperty("Domain")]
|
||||
public string Domain{ get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 域名CName。
|
||||
/// </summary>
|
||||
[JsonProperty("Cname")]
|
||||
public string Cname{ get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 域名状态,pending,rejected,processing, online,offline,deleted分别表示审核中,审核未通过,审核通过部署中,已开启,已关闭,已删除。
|
||||
/// </summary>
|
||||
[JsonProperty("Status")]
|
||||
public string Status{ get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 项目ID。
|
||||
/// </summary>
|
||||
[JsonProperty("ProjectId")]
|
||||
public long? ProjectId{ get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 域名创建时间。
|
||||
/// </summary>
|
||||
[JsonProperty("CreateTime")]
|
||||
public string CreateTime{ get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 域名更新时间。
|
||||
/// </summary>
|
||||
[JsonProperty("UpdateTime")]
|
||||
public string UpdateTime{ get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 源站配置详情。
|
||||
/// </summary>
|
||||
[JsonProperty("Origin")]
|
||||
public Origin Origin{ get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 域名封禁状态,normal,overdue,quota,malicious,ddos,idle,unlicensed,capping,readonly分别表示 正常,欠费停服,试用客户流量包耗尽,恶意用户,ddos攻击,无流量域名,未备案,带宽封顶,只读
|
||||
/// </summary>
|
||||
[JsonProperty("Disable")]
|
||||
public string Disable{ get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 加速区域,mainland,oversea或global。
|
||||
/// </summary>
|
||||
[JsonProperty("Area")]
|
||||
public string Area{ get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 域名锁定状态,normal、global,分别表示未被锁定、全球锁定。
|
||||
/// </summary>
|
||||
[JsonProperty("Readonly")]
|
||||
public string Readonly{ 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 + "ResourceId", this.ResourceId);
|
||||
this.SetParamSimple(map, prefix + "AppId", this.AppId);
|
||||
this.SetParamSimple(map, prefix + "Domain", this.Domain);
|
||||
this.SetParamSimple(map, prefix + "Cname", this.Cname);
|
||||
this.SetParamSimple(map, prefix + "Status", this.Status);
|
||||
this.SetParamSimple(map, prefix + "ProjectId", this.ProjectId);
|
||||
this.SetParamSimple(map, prefix + "CreateTime", this.CreateTime);
|
||||
this.SetParamSimple(map, prefix + "UpdateTime", this.UpdateTime);
|
||||
this.SetParamObj(map, prefix + "Origin.", this.Origin);
|
||||
this.SetParamSimple(map, prefix + "Disable", this.Disable);
|
||||
this.SetParamSimple(map, prefix + "Area", this.Area);
|
||||
this.SetParamSimple(map, prefix + "Readonly", this.Readonly);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
50
TencentCloud/Ecdn/V20191012/Models/DomainData.cs
Normal file
50
TencentCloud/Ecdn/V20191012/Models/DomainData.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.Ecdn.V20191012.Models
|
||||
{
|
||||
using Newtonsoft.Json;
|
||||
using System.Collections.Generic;
|
||||
using TencentCloud.Common;
|
||||
|
||||
public class DomainData : AbstractModel
|
||||
{
|
||||
|
||||
/// <summary>
|
||||
/// 域名
|
||||
/// </summary>
|
||||
[JsonProperty("Resource")]
|
||||
public string Resource{ get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 结果详情
|
||||
/// </summary>
|
||||
[JsonProperty("DetailData")]
|
||||
public DetailData[] DetailData{ 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 + "Resource", this.Resource);
|
||||
this.SetParamArrayObj(map, prefix + "DetailData.", this.DetailData);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
180
TencentCloud/Ecdn/V20191012/Models/DomainDetailInfo.cs
Normal file
180
TencentCloud/Ecdn/V20191012/Models/DomainDetailInfo.cs
Normal file
@@ -0,0 +1,180 @@
|
||||
/*
|
||||
* 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.Ecdn.V20191012.Models
|
||||
{
|
||||
using Newtonsoft.Json;
|
||||
using System.Collections.Generic;
|
||||
using TencentCloud.Common;
|
||||
|
||||
public class DomainDetailInfo : AbstractModel
|
||||
{
|
||||
|
||||
/// <summary>
|
||||
/// 域名ID。
|
||||
/// </summary>
|
||||
[JsonProperty("ResourceId")]
|
||||
public string ResourceId{ get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 腾讯云账号ID。
|
||||
/// </summary>
|
||||
[JsonProperty("AppId")]
|
||||
public long? AppId{ get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 加速域名。
|
||||
/// </summary>
|
||||
[JsonProperty("Domain")]
|
||||
public string Domain{ get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 域名CName。
|
||||
/// 注意:此字段可能返回 null,表示取不到有效值。
|
||||
/// </summary>
|
||||
[JsonProperty("Cname")]
|
||||
public string Cname{ get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 域名状态,pending,rejected,processing, online,offline,deleted分别表示审核中,审核未通过,审核通过部署中,已开启,已关闭,已删除。
|
||||
/// </summary>
|
||||
[JsonProperty("Status")]
|
||||
public string Status{ get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 项目ID。
|
||||
/// </summary>
|
||||
[JsonProperty("ProjectId")]
|
||||
public long? ProjectId{ get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 域名创建时间。
|
||||
/// </summary>
|
||||
[JsonProperty("CreateTime")]
|
||||
public string CreateTime{ get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 域名更新时间。
|
||||
/// </summary>
|
||||
[JsonProperty("UpdateTime")]
|
||||
public string UpdateTime{ get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 源站配置。
|
||||
/// </summary>
|
||||
[JsonProperty("Origin")]
|
||||
public Origin Origin{ get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// IP黑白名单配置。
|
||||
/// 注意:此字段可能返回 null,表示取不到有效值。
|
||||
/// </summary>
|
||||
[JsonProperty("IpFilter")]
|
||||
public IpFilter IpFilter{ get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// IP限频配置。
|
||||
/// 注意:此字段可能返回 null,表示取不到有效值。
|
||||
/// </summary>
|
||||
[JsonProperty("IpFreqLimit")]
|
||||
public IpFreqLimit IpFreqLimit{ get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 源站响应头部配置。
|
||||
/// 注意:此字段可能返回 null,表示取不到有效值。
|
||||
/// </summary>
|
||||
[JsonProperty("ResponseHeader")]
|
||||
public ResponseHeader ResponseHeader{ get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 节点缓存配置。
|
||||
/// 注意:此字段可能返回 null,表示取不到有效值。
|
||||
/// </summary>
|
||||
[JsonProperty("CacheKey")]
|
||||
public CacheKey CacheKey{ get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 缓存规则配置。
|
||||
/// 注意:此字段可能返回 null,表示取不到有效值。
|
||||
/// </summary>
|
||||
[JsonProperty("Cache")]
|
||||
public Cache Cache{ get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Https配置。
|
||||
/// 注意:此字段可能返回 null,表示取不到有效值。
|
||||
/// </summary>
|
||||
[JsonProperty("Https")]
|
||||
public Https Https{ get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 域名封禁状态,normal,overdue,quota,malicious,ddos,idle,unlicensed,capping,readonly分别表示 正常,欠费停服,试用客户流量包耗尽,恶意用户,ddos攻击,无流量域名,未备案,带宽封顶,只读。
|
||||
/// 注意:此字段可能返回 null,表示取不到有效值。
|
||||
/// </summary>
|
||||
[JsonProperty("Disable")]
|
||||
public string Disable{ get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 访问协议强制跳转配置。
|
||||
/// 注意:此字段可能返回 null,表示取不到有效值。
|
||||
/// </summary>
|
||||
[JsonProperty("ForceRedirect")]
|
||||
public ForceRedirect ForceRedirect{ get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 加速区域,mainland,overseas或global。
|
||||
/// 注意:此字段可能返回 null,表示取不到有效值。
|
||||
/// </summary>
|
||||
[JsonProperty("Area")]
|
||||
public string Area{ get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 域名锁定状态,normal、global 分别表示未被锁定,全球锁定。
|
||||
/// 注意:此字段可能返回 null,表示取不到有效值。
|
||||
/// </summary>
|
||||
[JsonProperty("Readonly")]
|
||||
public string Readonly{ 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 + "ResourceId", this.ResourceId);
|
||||
this.SetParamSimple(map, prefix + "AppId", this.AppId);
|
||||
this.SetParamSimple(map, prefix + "Domain", this.Domain);
|
||||
this.SetParamSimple(map, prefix + "Cname", this.Cname);
|
||||
this.SetParamSimple(map, prefix + "Status", this.Status);
|
||||
this.SetParamSimple(map, prefix + "ProjectId", this.ProjectId);
|
||||
this.SetParamSimple(map, prefix + "CreateTime", this.CreateTime);
|
||||
this.SetParamSimple(map, prefix + "UpdateTime", this.UpdateTime);
|
||||
this.SetParamObj(map, prefix + "Origin.", this.Origin);
|
||||
this.SetParamObj(map, prefix + "IpFilter.", this.IpFilter);
|
||||
this.SetParamObj(map, prefix + "IpFreqLimit.", this.IpFreqLimit);
|
||||
this.SetParamObj(map, prefix + "ResponseHeader.", this.ResponseHeader);
|
||||
this.SetParamObj(map, prefix + "CacheKey.", this.CacheKey);
|
||||
this.SetParamObj(map, prefix + "Cache.", this.Cache);
|
||||
this.SetParamObj(map, prefix + "Https.", this.Https);
|
||||
this.SetParamSimple(map, prefix + "Disable", this.Disable);
|
||||
this.SetParamObj(map, prefix + "ForceRedirect.", this.ForceRedirect);
|
||||
this.SetParamSimple(map, prefix + "Area", this.Area);
|
||||
this.SetParamSimple(map, prefix + "Readonly", this.Readonly);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
67
TencentCloud/Ecdn/V20191012/Models/DomainFilter.cs
Normal file
67
TencentCloud/Ecdn/V20191012/Models/DomainFilter.cs
Normal file
@@ -0,0 +1,67 @@
|
||||
/*
|
||||
* 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.Ecdn.V20191012.Models
|
||||
{
|
||||
using Newtonsoft.Json;
|
||||
using System.Collections.Generic;
|
||||
using TencentCloud.Common;
|
||||
|
||||
public class DomainFilter : AbstractModel
|
||||
{
|
||||
|
||||
/// <summary>
|
||||
/// 过滤字段名,支持的列表如下:
|
||||
/// - origin:主源站。
|
||||
/// - domain:域名。
|
||||
/// - resourceId:域名id。
|
||||
/// - status:域名状态,online,offline,processing。
|
||||
/// - disable:域名封禁状态,normal,unlicensed。
|
||||
/// - projectId:项目ID。
|
||||
/// - fullUrlCache:全路径缓存,on或off。
|
||||
/// - https:是否配置https,on,off或processing。
|
||||
/// - originPullProtocol:回源协议类型,支持http,follow或https。
|
||||
/// - area:加速区域,支持mainland,overseas或global。
|
||||
/// </summary>
|
||||
[JsonProperty("Name")]
|
||||
public string Name{ get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 过滤字段值。
|
||||
/// </summary>
|
||||
[JsonProperty("Value")]
|
||||
public string[] Value{ get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 是否启用模糊查询,仅支持过滤字段名为origin,domain。
|
||||
/// </summary>
|
||||
[JsonProperty("Fuzzy")]
|
||||
public bool? Fuzzy{ 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 + "Name", this.Name);
|
||||
this.SetParamArraySimple(map, prefix + "Value.", this.Value);
|
||||
this.SetParamSimple(map, prefix + "Fuzzy", this.Fuzzy);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
57
TencentCloud/Ecdn/V20191012/Models/DomainLogs.cs
Normal file
57
TencentCloud/Ecdn/V20191012/Models/DomainLogs.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.Ecdn.V20191012.Models
|
||||
{
|
||||
using Newtonsoft.Json;
|
||||
using System.Collections.Generic;
|
||||
using TencentCloud.Common;
|
||||
|
||||
public class DomainLogs : AbstractModel
|
||||
{
|
||||
|
||||
/// <summary>
|
||||
/// 日志起始时间。
|
||||
/// </summary>
|
||||
[JsonProperty("StartTime")]
|
||||
public string StartTime{ get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 日志结束时间。
|
||||
/// </summary>
|
||||
[JsonProperty("EndTime")]
|
||||
public string EndTime{ get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 日志下载路径。
|
||||
/// </summary>
|
||||
[JsonProperty("LogPath")]
|
||||
public string LogPath{ 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 + "StartTime", this.StartTime);
|
||||
this.SetParamSimple(map, prefix + "EndTime", this.EndTime);
|
||||
this.SetParamSimple(map, prefix + "LogPath", this.LogPath);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
50
TencentCloud/Ecdn/V20191012/Models/EcdnData.cs
Normal file
50
TencentCloud/Ecdn/V20191012/Models/EcdnData.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.Ecdn.V20191012.Models
|
||||
{
|
||||
using Newtonsoft.Json;
|
||||
using System.Collections.Generic;
|
||||
using TencentCloud.Common;
|
||||
|
||||
public class EcdnData : AbstractModel
|
||||
{
|
||||
|
||||
/// <summary>
|
||||
/// 查询指定的指标名称:Bandwidth,Flux,Request,Delay,状态码,LogBandwidth,LogFlux,LogRequest
|
||||
/// </summary>
|
||||
[JsonProperty("Metrics")]
|
||||
public string[] Metrics{ get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 明细数据组合
|
||||
/// </summary>
|
||||
[JsonProperty("DetailData")]
|
||||
public TimestampData[] DetailData{ get; set; }
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// For internal usage only. DO NOT USE IT.
|
||||
/// </summary>
|
||||
internal override void ToMap(Dictionary<string, string> map, string prefix)
|
||||
{
|
||||
this.SetParamArraySimple(map, prefix + "Metrics.", this.Metrics);
|
||||
this.SetParamArrayObj(map, prefix + "DetailData.", this.DetailData);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
60
TencentCloud/Ecdn/V20191012/Models/ForceRedirect.cs
Normal file
60
TencentCloud/Ecdn/V20191012/Models/ForceRedirect.cs
Normal file
@@ -0,0 +1,60 @@
|
||||
/*
|
||||
* 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.Ecdn.V20191012.Models
|
||||
{
|
||||
using Newtonsoft.Json;
|
||||
using System.Collections.Generic;
|
||||
using TencentCloud.Common;
|
||||
|
||||
public class ForceRedirect : AbstractModel
|
||||
{
|
||||
|
||||
/// <summary>
|
||||
/// 访问协议强制跳转配置开关,on或off。
|
||||
/// 注意:此字段可能返回 null,表示取不到有效值。
|
||||
/// </summary>
|
||||
[JsonProperty("Switch")]
|
||||
public string Switch{ get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 强制跳转访问协议类型,支持http,https,分别表示请求强制跳转http协议,请求强制跳转https协议。
|
||||
/// 注意:此字段可能返回 null,表示取不到有效值。
|
||||
/// </summary>
|
||||
[JsonProperty("RedirectType")]
|
||||
public string RedirectType{ get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 强制跳转开启时返回的http状态码,支持301或302。
|
||||
/// 注意:此字段可能返回 null,表示取不到有效值。
|
||||
/// </summary>
|
||||
[JsonProperty("RedirectStatusCode")]
|
||||
public long? RedirectStatusCode{ 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 + "Switch", this.Switch);
|
||||
this.SetParamSimple(map, prefix + "RedirectType", this.RedirectType);
|
||||
this.SetParamSimple(map, prefix + "RedirectStatusCode", this.RedirectStatusCode);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
77
TencentCloud/Ecdn/V20191012/Models/HttpHeaderPathRule.cs
Normal file
77
TencentCloud/Ecdn/V20191012/Models/HttpHeaderPathRule.cs
Normal file
@@ -0,0 +1,77 @@
|
||||
/*
|
||||
* 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.Ecdn.V20191012.Models
|
||||
{
|
||||
using Newtonsoft.Json;
|
||||
using System.Collections.Generic;
|
||||
using TencentCloud.Common;
|
||||
|
||||
public class HttpHeaderPathRule : AbstractModel
|
||||
{
|
||||
|
||||
/// <summary>
|
||||
/// http头部设置方式,支持add,set或del,分别表示新增,设置或删除头部。
|
||||
/// 请求头部暂不支持set。
|
||||
/// 注意:此字段可能返回 null,表示取不到有效值。
|
||||
/// </summary>
|
||||
[JsonProperty("HeaderMode")]
|
||||
public string HeaderMode{ get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// http头部名称。
|
||||
/// 注意:此字段可能返回 null,表示取不到有效值。
|
||||
/// </summary>
|
||||
[JsonProperty("HeaderName")]
|
||||
public string HeaderName{ get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// http头部值。del时可不填写该字段。
|
||||
/// 注意:此字段可能返回 null,表示取不到有效值。
|
||||
/// </summary>
|
||||
[JsonProperty("HeaderValue")]
|
||||
public string HeaderValue{ get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 生效的url路径规则类型,支持all,file,directory或path,分别表示全部路径,文件后缀类型,目录或绝对路径生效。
|
||||
/// 注意:此字段可能返回 null,表示取不到有效值。
|
||||
/// </summary>
|
||||
[JsonProperty("RuleType")]
|
||||
public string RuleType{ get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// url路径或文件类型列表。
|
||||
/// 注意:此字段可能返回 null,表示取不到有效值。
|
||||
/// </summary>
|
||||
[JsonProperty("RulePaths")]
|
||||
public string[] RulePaths{ 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 + "HeaderMode", this.HeaderMode);
|
||||
this.SetParamSimple(map, prefix + "HeaderName", this.HeaderName);
|
||||
this.SetParamSimple(map, prefix + "HeaderValue", this.HeaderValue);
|
||||
this.SetParamSimple(map, prefix + "RuleType", this.RuleType);
|
||||
this.SetParamArraySimple(map, prefix + "RulePaths.", this.RulePaths);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
100
TencentCloud/Ecdn/V20191012/Models/Https.cs
Normal file
100
TencentCloud/Ecdn/V20191012/Models/Https.cs
Normal file
@@ -0,0 +1,100 @@
|
||||
/*
|
||||
* 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.Ecdn.V20191012.Models
|
||||
{
|
||||
using Newtonsoft.Json;
|
||||
using System.Collections.Generic;
|
||||
using TencentCloud.Common;
|
||||
|
||||
public class Https : AbstractModel
|
||||
{
|
||||
|
||||
/// <summary>
|
||||
/// https配置开关,on或off。开启https配置的域名在部署中状态,开关保持off。
|
||||
/// 注意:此字段可能返回 null,表示取不到有效值。
|
||||
/// </summary>
|
||||
[JsonProperty("Switch")]
|
||||
public string Switch{ get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 是否开启http2,on或off。
|
||||
/// 注意:此字段可能返回 null,表示取不到有效值。
|
||||
/// </summary>
|
||||
[JsonProperty("Http2")]
|
||||
public string Http2{ get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 是否开启OCSP功能,on或off。
|
||||
/// 注意:此字段可能返回 null,表示取不到有效值。
|
||||
/// </summary>
|
||||
[JsonProperty("OcspStapling")]
|
||||
public string OcspStapling{ get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 是否开启客户端证书校验功能,on或off,开启时必选上传客户端证书信息。
|
||||
/// 注意:此字段可能返回 null,表示取不到有效值。
|
||||
/// </summary>
|
||||
[JsonProperty("VerifyClient")]
|
||||
public string VerifyClient{ get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 服务器证书配置信息。
|
||||
/// 注意:此字段可能返回 null,表示取不到有效值。
|
||||
/// </summary>
|
||||
[JsonProperty("CertInfo")]
|
||||
public ServerCert CertInfo{ get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 客户端证书配置信息。
|
||||
/// 注意:此字段可能返回 null,表示取不到有效值。
|
||||
/// </summary>
|
||||
[JsonProperty("ClientCertInfo")]
|
||||
public ClientCert ClientCertInfo{ get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 是否开启Spdy,on或off。
|
||||
/// 注意:此字段可能返回 null,表示取不到有效值。
|
||||
/// </summary>
|
||||
[JsonProperty("Spdy")]
|
||||
public string Spdy{ get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// https证书部署状态,closed,deploying,deployed,failed分别表示已关闭,部署中,部署成功,部署失败。不可作为入参使用。
|
||||
/// 注意:此字段可能返回 null,表示取不到有效值。
|
||||
/// </summary>
|
||||
[JsonProperty("SslStatus")]
|
||||
public string SslStatus{ 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 + "Switch", this.Switch);
|
||||
this.SetParamSimple(map, prefix + "Http2", this.Http2);
|
||||
this.SetParamSimple(map, prefix + "OcspStapling", this.OcspStapling);
|
||||
this.SetParamSimple(map, prefix + "VerifyClient", this.VerifyClient);
|
||||
this.SetParamObj(map, prefix + "CertInfo.", this.CertInfo);
|
||||
this.SetParamObj(map, prefix + "ClientCertInfo.", this.ClientCertInfo);
|
||||
this.SetParamSimple(map, prefix + "Spdy", this.Spdy);
|
||||
this.SetParamSimple(map, prefix + "SslStatus", this.SslStatus);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
59
TencentCloud/Ecdn/V20191012/Models/IpFilter.cs
Normal file
59
TencentCloud/Ecdn/V20191012/Models/IpFilter.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.Ecdn.V20191012.Models
|
||||
{
|
||||
using Newtonsoft.Json;
|
||||
using System.Collections.Generic;
|
||||
using TencentCloud.Common;
|
||||
|
||||
public class IpFilter : AbstractModel
|
||||
{
|
||||
|
||||
/// <summary>
|
||||
/// IP黑白名单开关,on或off。
|
||||
/// </summary>
|
||||
[JsonProperty("Switch")]
|
||||
public string Switch{ get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// IP黑白名单类型,whitelist或blacklist。
|
||||
/// 注意:此字段可能返回 null,表示取不到有效值。
|
||||
/// </summary>
|
||||
[JsonProperty("FilterType")]
|
||||
public string FilterType{ get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// IP黑白名单列表。
|
||||
/// 注意:此字段可能返回 null,表示取不到有效值。
|
||||
/// </summary>
|
||||
[JsonProperty("Filters")]
|
||||
public string[] Filters{ 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 + "Switch", this.Switch);
|
||||
this.SetParamSimple(map, prefix + "FilterType", this.FilterType);
|
||||
this.SetParamArraySimple(map, prefix + "Filters.", this.Filters);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
51
TencentCloud/Ecdn/V20191012/Models/IpFreqLimit.cs
Normal file
51
TencentCloud/Ecdn/V20191012/Models/IpFreqLimit.cs
Normal file
@@ -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.Ecdn.V20191012.Models
|
||||
{
|
||||
using Newtonsoft.Json;
|
||||
using System.Collections.Generic;
|
||||
using TencentCloud.Common;
|
||||
|
||||
public class IpFreqLimit : AbstractModel
|
||||
{
|
||||
|
||||
/// <summary>
|
||||
/// IP限频配置开关,on或off。
|
||||
/// </summary>
|
||||
[JsonProperty("Switch")]
|
||||
public string Switch{ get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 每秒请求数。
|
||||
/// 注意:此字段可能返回 null,表示取不到有效值。
|
||||
/// </summary>
|
||||
[JsonProperty("Qps")]
|
||||
public long? Qps{ 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 + "Switch", this.Switch);
|
||||
this.SetParamSimple(map, prefix + "Qps", this.Qps);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
85
TencentCloud/Ecdn/V20191012/Models/Origin.cs
Normal file
85
TencentCloud/Ecdn/V20191012/Models/Origin.cs
Normal file
@@ -0,0 +1,85 @@
|
||||
/*
|
||||
* 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.Ecdn.V20191012.Models
|
||||
{
|
||||
using Newtonsoft.Json;
|
||||
using System.Collections.Generic;
|
||||
using TencentCloud.Common;
|
||||
|
||||
public class Origin : AbstractModel
|
||||
{
|
||||
|
||||
/// <summary>
|
||||
/// 主源站列表,默认格式为 ["ip1:port1", "ip2:port2"]。
|
||||
/// 支持在源站列表中配置权重,配置IP源站权重格式为 ["ip1:port1:weight1", "ip2:port2:weight2"]。
|
||||
/// </summary>
|
||||
[JsonProperty("Origins")]
|
||||
public string[] Origins{ get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 主源站类型,支持domain,ip,分别表示域名源站,ip源站。
|
||||
/// 设置Origins时必须填写。
|
||||
/// 注意:此字段可能返回 null,表示取不到有效值。
|
||||
/// </summary>
|
||||
[JsonProperty("OriginType")]
|
||||
public string OriginType{ get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 回源时Host头部值。
|
||||
/// 注意:此字段可能返回 null,表示取不到有效值。
|
||||
/// </summary>
|
||||
[JsonProperty("ServerName")]
|
||||
public string ServerName{ get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 回源协议类型,支持http,follow,https,分别表示强制http回源,协议跟随回源,https回源。
|
||||
/// 注意:此字段可能返回 null,表示取不到有效值。
|
||||
/// </summary>
|
||||
[JsonProperty("OriginPullProtocol")]
|
||||
public string OriginPullProtocol{ get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 备份源站列表。
|
||||
/// </summary>
|
||||
[JsonProperty("BackupOrigins")]
|
||||
public string[] BackupOrigins{ get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 备份源站类型,同OriginType。
|
||||
/// 设置BackupOrigins时必须填写。
|
||||
/// 注意:此字段可能返回 null,表示取不到有效值。
|
||||
/// </summary>
|
||||
[JsonProperty("BackupOriginType")]
|
||||
public string BackupOriginType{ get; set; }
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// For internal usage only. DO NOT USE IT.
|
||||
/// </summary>
|
||||
internal override void ToMap(Dictionary<string, string> map, string prefix)
|
||||
{
|
||||
this.SetParamArraySimple(map, prefix + "Origins.", this.Origins);
|
||||
this.SetParamSimple(map, prefix + "OriginType", this.OriginType);
|
||||
this.SetParamSimple(map, prefix + "ServerName", this.ServerName);
|
||||
this.SetParamSimple(map, prefix + "OriginPullProtocol", this.OriginPullProtocol);
|
||||
this.SetParamArraySimple(map, prefix + "BackupOrigins.", this.BackupOrigins);
|
||||
this.SetParamSimple(map, prefix + "BackupOriginType", this.BackupOriginType);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
50
TencentCloud/Ecdn/V20191012/Models/PurgePathCacheRequest.cs
Normal file
50
TencentCloud/Ecdn/V20191012/Models/PurgePathCacheRequest.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.Ecdn.V20191012.Models
|
||||
{
|
||||
using Newtonsoft.Json;
|
||||
using System.Collections.Generic;
|
||||
using TencentCloud.Common;
|
||||
|
||||
public class PurgePathCacheRequest : AbstractModel
|
||||
{
|
||||
|
||||
/// <summary>
|
||||
/// 要刷新的目录列表,必须包含协议头部。
|
||||
/// </summary>
|
||||
[JsonProperty("Paths")]
|
||||
public string[] Paths{ get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 刷新类型,flush 代表刷新有更新的资源,delete 表示刷新全部资源。
|
||||
/// </summary>
|
||||
[JsonProperty("FlushType")]
|
||||
public string FlushType{ get; set; }
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// For internal usage only. DO NOT USE IT.
|
||||
/// </summary>
|
||||
internal override void ToMap(Dictionary<string, string> map, string prefix)
|
||||
{
|
||||
this.SetParamArraySimple(map, prefix + "Paths.", this.Paths);
|
||||
this.SetParamSimple(map, prefix + "FlushType", this.FlushType);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
50
TencentCloud/Ecdn/V20191012/Models/PurgePathCacheResponse.cs
Normal file
50
TencentCloud/Ecdn/V20191012/Models/PurgePathCacheResponse.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.Ecdn.V20191012.Models
|
||||
{
|
||||
using Newtonsoft.Json;
|
||||
using System.Collections.Generic;
|
||||
using TencentCloud.Common;
|
||||
|
||||
public class PurgePathCacheResponse : AbstractModel
|
||||
{
|
||||
|
||||
/// <summary>
|
||||
/// 刷新任务Id,前十位为提交任务时的UTC时间。
|
||||
/// </summary>
|
||||
[JsonProperty("TaskId")]
|
||||
public string TaskId{ 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 + "TaskId", this.TaskId);
|
||||
this.SetParamSimple(map, prefix + "RequestId", this.RequestId);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
78
TencentCloud/Ecdn/V20191012/Models/PurgeTask.cs
Normal file
78
TencentCloud/Ecdn/V20191012/Models/PurgeTask.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.Ecdn.V20191012.Models
|
||||
{
|
||||
using Newtonsoft.Json;
|
||||
using System.Collections.Generic;
|
||||
using TencentCloud.Common;
|
||||
|
||||
public class PurgeTask : AbstractModel
|
||||
{
|
||||
|
||||
/// <summary>
|
||||
/// 刷新任务ID。
|
||||
/// </summary>
|
||||
[JsonProperty("TaskId")]
|
||||
public string TaskId{ get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 刷新Url。
|
||||
/// </summary>
|
||||
[JsonProperty("Url")]
|
||||
public string Url{ get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 刷新任务状态,fail表示失败,done表示成功,process表示刷新中。
|
||||
/// </summary>
|
||||
[JsonProperty("Status")]
|
||||
public string Status{ get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 刷新类型,url表示url刷新,path表示目录刷新。
|
||||
/// </summary>
|
||||
[JsonProperty("PurgeType")]
|
||||
public string PurgeType{ get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 刷新资源方式,flush代表刷新更新资源,delete代表刷新全部资源。
|
||||
/// </summary>
|
||||
[JsonProperty("FlushType")]
|
||||
public string FlushType{ get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 刷新任务提交时间
|
||||
/// </summary>
|
||||
[JsonProperty("CreateTime")]
|
||||
public string CreateTime{ 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 + "TaskId", this.TaskId);
|
||||
this.SetParamSimple(map, prefix + "Url", this.Url);
|
||||
this.SetParamSimple(map, prefix + "Status", this.Status);
|
||||
this.SetParamSimple(map, prefix + "PurgeType", this.PurgeType);
|
||||
this.SetParamSimple(map, prefix + "FlushType", this.FlushType);
|
||||
this.SetParamSimple(map, prefix + "CreateTime", this.CreateTime);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
43
TencentCloud/Ecdn/V20191012/Models/PurgeUrlsCacheRequest.cs
Normal file
43
TencentCloud/Ecdn/V20191012/Models/PurgeUrlsCacheRequest.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.Ecdn.V20191012.Models
|
||||
{
|
||||
using Newtonsoft.Json;
|
||||
using System.Collections.Generic;
|
||||
using TencentCloud.Common;
|
||||
|
||||
public class PurgeUrlsCacheRequest : AbstractModel
|
||||
{
|
||||
|
||||
/// <summary>
|
||||
/// 要刷新的Url列表,必须包含协议头部。
|
||||
/// </summary>
|
||||
[JsonProperty("Urls")]
|
||||
public string[] Urls{ get; set; }
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// For internal usage only. DO NOT USE IT.
|
||||
/// </summary>
|
||||
internal override void ToMap(Dictionary<string, string> map, string prefix)
|
||||
{
|
||||
this.SetParamArraySimple(map, prefix + "Urls.", this.Urls);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
50
TencentCloud/Ecdn/V20191012/Models/PurgeUrlsCacheResponse.cs
Normal file
50
TencentCloud/Ecdn/V20191012/Models/PurgeUrlsCacheResponse.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.Ecdn.V20191012.Models
|
||||
{
|
||||
using Newtonsoft.Json;
|
||||
using System.Collections.Generic;
|
||||
using TencentCloud.Common;
|
||||
|
||||
public class PurgeUrlsCacheResponse : AbstractModel
|
||||
{
|
||||
|
||||
/// <summary>
|
||||
/// 刷新任务Id,前十位为提交任务时的UTC时间。
|
||||
/// </summary>
|
||||
[JsonProperty("TaskId")]
|
||||
public string TaskId{ 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 + "TaskId", this.TaskId);
|
||||
this.SetParamSimple(map, prefix + "RequestId", this.RequestId);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
57
TencentCloud/Ecdn/V20191012/Models/Quota.cs
Normal file
57
TencentCloud/Ecdn/V20191012/Models/Quota.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.Ecdn.V20191012.Models
|
||||
{
|
||||
using Newtonsoft.Json;
|
||||
using System.Collections.Generic;
|
||||
using TencentCloud.Common;
|
||||
|
||||
public class Quota : AbstractModel
|
||||
{
|
||||
|
||||
/// <summary>
|
||||
/// 单次批量提交配额上限。
|
||||
/// </summary>
|
||||
[JsonProperty("Batch")]
|
||||
public long? Batch{ get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 每日提交配额上限。
|
||||
/// </summary>
|
||||
[JsonProperty("Total")]
|
||||
public long? Total{ get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 每日剩余的可提交配额。
|
||||
/// </summary>
|
||||
[JsonProperty("Available")]
|
||||
public long? Available{ 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 + "Batch", this.Batch);
|
||||
this.SetParamSimple(map, prefix + "Total", this.Total);
|
||||
this.SetParamSimple(map, prefix + "Available", this.Available);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
54
TencentCloud/Ecdn/V20191012/Models/ResourceData.cs
Normal file
54
TencentCloud/Ecdn/V20191012/Models/ResourceData.cs
Normal file
@@ -0,0 +1,54 @@
|
||||
/*
|
||||
* 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.Ecdn.V20191012.Models
|
||||
{
|
||||
using Newtonsoft.Json;
|
||||
using System.Collections.Generic;
|
||||
using TencentCloud.Common;
|
||||
|
||||
public class ResourceData : AbstractModel
|
||||
{
|
||||
|
||||
/// <summary>
|
||||
/// 资源名称,根据查询条件不同分为以下几类:
|
||||
/// 具体域名:表示该域名明细数据
|
||||
/// multiDomains:表示多域名汇总明细数据
|
||||
/// 项目 ID:指定项目查询时,显示为项目 ID
|
||||
/// all:账号维度明细数据
|
||||
/// </summary>
|
||||
[JsonProperty("Resource")]
|
||||
public string Resource{ get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 资源对应的数据明细
|
||||
/// </summary>
|
||||
[JsonProperty("EcdnData")]
|
||||
public EcdnData EcdnData{ 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 + "Resource", this.Resource);
|
||||
this.SetParamObj(map, prefix + "EcdnData.", this.EcdnData);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
51
TencentCloud/Ecdn/V20191012/Models/ResponseHeader.cs
Normal file
51
TencentCloud/Ecdn/V20191012/Models/ResponseHeader.cs
Normal file
@@ -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.Ecdn.V20191012.Models
|
||||
{
|
||||
using Newtonsoft.Json;
|
||||
using System.Collections.Generic;
|
||||
using TencentCloud.Common;
|
||||
|
||||
public class ResponseHeader : AbstractModel
|
||||
{
|
||||
|
||||
/// <summary>
|
||||
/// 自定义响应头开关,on或off。
|
||||
/// </summary>
|
||||
[JsonProperty("Switch")]
|
||||
public string Switch{ get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 自定义响应头规则数组。
|
||||
/// 注意:此字段可能返回 null,表示取不到有效值。
|
||||
/// </summary>
|
||||
[JsonProperty("HeaderRules")]
|
||||
public HttpHeaderPathRule[] HeaderRules{ 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 + "Switch", this.Switch);
|
||||
this.SetParamArrayObj(map, prefix + "HeaderRules.", this.HeaderRules);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
92
TencentCloud/Ecdn/V20191012/Models/ServerCert.cs
Normal file
92
TencentCloud/Ecdn/V20191012/Models/ServerCert.cs
Normal file
@@ -0,0 +1,92 @@
|
||||
/*
|
||||
* 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.Ecdn.V20191012.Models
|
||||
{
|
||||
using Newtonsoft.Json;
|
||||
using System.Collections.Generic;
|
||||
using TencentCloud.Common;
|
||||
|
||||
public class ServerCert : AbstractModel
|
||||
{
|
||||
|
||||
/// <summary>
|
||||
/// 服务器证书id,当证书为腾讯云托管证书时必填。
|
||||
/// 注意:此字段可能返回 null,表示取不到有效值。
|
||||
/// </summary>
|
||||
[JsonProperty("CertId")]
|
||||
public string CertId{ get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 服务器证书名称,当证书为腾讯云托管证书时必填。
|
||||
/// 注意:此字段可能返回 null,表示取不到有效值。
|
||||
/// </summary>
|
||||
[JsonProperty("CertName")]
|
||||
public string CertName{ get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 服务器证书信息,上传自有证书时必填,必须包含完整的证书链信息。
|
||||
/// 注意:此字段可能返回 null,表示取不到有效值。
|
||||
/// </summary>
|
||||
[JsonProperty("Certificate")]
|
||||
public string Certificate{ get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 服务器密钥信息,上传自有证书时必填。
|
||||
/// 注意:此字段可能返回 null,表示取不到有效值。
|
||||
/// </summary>
|
||||
[JsonProperty("PrivateKey")]
|
||||
public string PrivateKey{ get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 证书过期时间。
|
||||
/// 注意:此字段可能返回 null,表示取不到有效值。
|
||||
/// </summary>
|
||||
[JsonProperty("ExpireTime")]
|
||||
public string ExpireTime{ get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 证书颁发时间。
|
||||
/// 注意:此字段可能返回 null,表示取不到有效值。
|
||||
/// </summary>
|
||||
[JsonProperty("DeployTime")]
|
||||
public string DeployTime{ get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 证书备注信息。
|
||||
/// 注意:此字段可能返回 null,表示取不到有效值。
|
||||
/// </summary>
|
||||
[JsonProperty("Message")]
|
||||
public string Message{ 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 + "CertId", this.CertId);
|
||||
this.SetParamSimple(map, prefix + "CertName", this.CertName);
|
||||
this.SetParamSimple(map, prefix + "Certificate", this.Certificate);
|
||||
this.SetParamSimple(map, prefix + "PrivateKey", this.PrivateKey);
|
||||
this.SetParamSimple(map, prefix + "ExpireTime", this.ExpireTime);
|
||||
this.SetParamSimple(map, prefix + "DeployTime", this.DeployTime);
|
||||
this.SetParamSimple(map, prefix + "Message", this.Message);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
52
TencentCloud/Ecdn/V20191012/Models/Sort.cs
Normal file
52
TencentCloud/Ecdn/V20191012/Models/Sort.cs
Normal file
@@ -0,0 +1,52 @@
|
||||
/*
|
||||
* 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.Ecdn.V20191012.Models
|
||||
{
|
||||
using Newtonsoft.Json;
|
||||
using System.Collections.Generic;
|
||||
using TencentCloud.Common;
|
||||
|
||||
public class Sort : AbstractModel
|
||||
{
|
||||
|
||||
/// <summary>
|
||||
/// 排序字段,当前支持:
|
||||
/// createTime,域名创建时间
|
||||
/// certExpireTime,证书过期时间
|
||||
/// </summary>
|
||||
[JsonProperty("Key")]
|
||||
public string Key{ get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// asc/desc,默认desc。
|
||||
/// </summary>
|
||||
[JsonProperty("Sequence")]
|
||||
public string Sequence{ 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 + "Key", this.Key);
|
||||
this.SetParamSimple(map, prefix + "Sequence", this.Sequence);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
43
TencentCloud/Ecdn/V20191012/Models/StartEcdnDomainRequest.cs
Normal file
43
TencentCloud/Ecdn/V20191012/Models/StartEcdnDomainRequest.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.Ecdn.V20191012.Models
|
||||
{
|
||||
using Newtonsoft.Json;
|
||||
using System.Collections.Generic;
|
||||
using TencentCloud.Common;
|
||||
|
||||
public class StartEcdnDomainRequest : AbstractModel
|
||||
{
|
||||
|
||||
/// <summary>
|
||||
/// 待启用域名。
|
||||
/// </summary>
|
||||
[JsonProperty("Domain")]
|
||||
public string Domain{ 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 + "Domain", this.Domain);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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.Ecdn.V20191012.Models
|
||||
{
|
||||
using Newtonsoft.Json;
|
||||
using System.Collections.Generic;
|
||||
using TencentCloud.Common;
|
||||
|
||||
public class StartEcdnDomainResponse : 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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
43
TencentCloud/Ecdn/V20191012/Models/StopEcdnDomainRequest.cs
Normal file
43
TencentCloud/Ecdn/V20191012/Models/StopEcdnDomainRequest.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.Ecdn.V20191012.Models
|
||||
{
|
||||
using Newtonsoft.Json;
|
||||
using System.Collections.Generic;
|
||||
using TencentCloud.Common;
|
||||
|
||||
public class StopEcdnDomainRequest : AbstractModel
|
||||
{
|
||||
|
||||
/// <summary>
|
||||
/// 待停用域名。
|
||||
/// </summary>
|
||||
[JsonProperty("Domain")]
|
||||
public string Domain{ 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 + "Domain", this.Domain);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
43
TencentCloud/Ecdn/V20191012/Models/StopEcdnDomainResponse.cs
Normal file
43
TencentCloud/Ecdn/V20191012/Models/StopEcdnDomainResponse.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.Ecdn.V20191012.Models
|
||||
{
|
||||
using Newtonsoft.Json;
|
||||
using System.Collections.Generic;
|
||||
using TencentCloud.Common;
|
||||
|
||||
public class StopEcdnDomainResponse : 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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
51
TencentCloud/Ecdn/V20191012/Models/TimestampData.cs
Normal file
51
TencentCloud/Ecdn/V20191012/Models/TimestampData.cs
Normal file
@@ -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.Ecdn.V20191012.Models
|
||||
{
|
||||
using Newtonsoft.Json;
|
||||
using System.Collections.Generic;
|
||||
using TencentCloud.Common;
|
||||
|
||||
public class TimestampData : AbstractModel
|
||||
{
|
||||
|
||||
/// <summary>
|
||||
/// 数据统计时间点,采用向前汇总模式
|
||||
/// 以 5 分钟粒度为例,13:35:00 时间点代表的统计数据区间为 13:35:00 至 13:39:59
|
||||
/// </summary>
|
||||
[JsonProperty("Time")]
|
||||
public string Time{ get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 数据值
|
||||
/// </summary>
|
||||
[JsonProperty("Value")]
|
||||
public float?[] Value{ 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 + "Time", this.Time);
|
||||
this.SetParamArraySimple(map, prefix + "Value.", this.Value);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
113
TencentCloud/Ecdn/V20191012/Models/UpdateDomainConfigRequest.cs
Normal file
113
TencentCloud/Ecdn/V20191012/Models/UpdateDomainConfigRequest.cs
Normal file
@@ -0,0 +1,113 @@
|
||||
/*
|
||||
* 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.Ecdn.V20191012.Models
|
||||
{
|
||||
using Newtonsoft.Json;
|
||||
using System.Collections.Generic;
|
||||
using TencentCloud.Common;
|
||||
|
||||
public class UpdateDomainConfigRequest : AbstractModel
|
||||
{
|
||||
|
||||
/// <summary>
|
||||
/// 域名。
|
||||
/// </summary>
|
||||
[JsonProperty("Domain")]
|
||||
public string Domain{ get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 源站配置。
|
||||
/// </summary>
|
||||
[JsonProperty("Origin")]
|
||||
public Origin Origin{ get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 项目id。
|
||||
/// </summary>
|
||||
[JsonProperty("ProjectId")]
|
||||
public long? ProjectId{ get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// IP黑白名单配置。
|
||||
/// </summary>
|
||||
[JsonProperty("IpFilter")]
|
||||
public IpFilter IpFilter{ get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// IP限频配置。
|
||||
/// </summary>
|
||||
[JsonProperty("IpFreqLimit")]
|
||||
public IpFreqLimit IpFreqLimit{ get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 源站响应头部配置。
|
||||
/// </summary>
|
||||
[JsonProperty("ResponseHeader")]
|
||||
public ResponseHeader ResponseHeader{ get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 节点缓存配置。
|
||||
/// </summary>
|
||||
[JsonProperty("CacheKey")]
|
||||
public CacheKey CacheKey{ get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 缓存规则配置。
|
||||
/// </summary>
|
||||
[JsonProperty("Cache")]
|
||||
public Cache Cache{ get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Https配置。
|
||||
/// </summary>
|
||||
[JsonProperty("Https")]
|
||||
public Https Https{ get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 访问协议强制跳转配置。
|
||||
/// </summary>
|
||||
[JsonProperty("ForceRedirect")]
|
||||
public ForceRedirect ForceRedirect{ get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 域名加速区域,mainland,overseas或global,分别表示中国境内加速,海外加速或全球加速。
|
||||
/// </summary>
|
||||
[JsonProperty("Area")]
|
||||
public string Area{ 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 + "Domain", this.Domain);
|
||||
this.SetParamObj(map, prefix + "Origin.", this.Origin);
|
||||
this.SetParamSimple(map, prefix + "ProjectId", this.ProjectId);
|
||||
this.SetParamObj(map, prefix + "IpFilter.", this.IpFilter);
|
||||
this.SetParamObj(map, prefix + "IpFreqLimit.", this.IpFreqLimit);
|
||||
this.SetParamObj(map, prefix + "ResponseHeader.", this.ResponseHeader);
|
||||
this.SetParamObj(map, prefix + "CacheKey.", this.CacheKey);
|
||||
this.SetParamObj(map, prefix + "Cache.", this.Cache);
|
||||
this.SetParamObj(map, prefix + "Https.", this.Https);
|
||||
this.SetParamObj(map, prefix + "ForceRedirect.", this.ForceRedirect);
|
||||
this.SetParamSimple(map, prefix + "Area", this.Area);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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.Ecdn.V20191012.Models
|
||||
{
|
||||
using Newtonsoft.Json;
|
||||
using System.Collections.Generic;
|
||||
using TencentCloud.Common;
|
||||
|
||||
public class UpdateDomainConfigResponse : 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