首次推送

This commit is contained in:
lym
2026-03-09 00:13:46 +08:00
commit b19613bb31
13974 changed files with 2767735 additions and 0 deletions

View 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;
}
}
}

View 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>
/// 域名加速区域mainlandoverseas或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);
}
}
}

View 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);
}
}
}

View 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);
}
}
}

View 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);
}
}
}

View 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>
/// 缓存类型支持allfiledirectorypathindex分别表示全部文件后缀类型目录完整路径首页。
/// </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);
}
}
}

View 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);
}
}
}

View 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 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);
}
}
}

View 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 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);
}
}
}

View File

@@ -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);
}
}
}

View 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 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);
}
}
}

View 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);
}
}
}

View 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 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);
}
}
}

View File

@@ -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);
}
}
}

View File

@@ -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);
}
}
}

View File

@@ -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);
}
}
}

View 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 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);
}
}
}

View File

@@ -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 天 151530601202401440
/// 2 ~ 3 天 1530601202401440
/// 4 ~ 7 天 30601202401440
/// 8 ~ 90 天 601202401440
/// </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);
}
}
}

View 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 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);
}
}
}

View File

@@ -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)
{
}
}
}

View 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 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);
}
}
}

View 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 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);
}
}
}

View 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 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);
}
}
}

View 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);
}
}
}

View 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>
/// 域名状态pendingrejectedprocessing onlineofflinedeleted分别表示审核中审核未通过审核通过部署中已开启已关闭已删除。
/// </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>
/// 域名封禁状态normaloverduequotamaliciousddosidleunlicensedcappingreadonly分别表示 正常欠费停服试用客户流量包耗尽恶意用户ddos攻击无流量域名未备案带宽封顶只读
/// </summary>
[JsonProperty("Disable")]
public string Disable{ get; set; }
/// <summary>
/// 加速区域mainlandoversea或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);
}
}
}

View 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);
}
}
}

View 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>
/// 域名状态pendingrejectedprocessing onlineofflinedeleted分别表示审核中审核未通过审核通过部署中已开启已关闭已删除。
/// </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>
/// 域名封禁状态normaloverduequotamaliciousddosidleunlicensedcappingreadonly分别表示 正常欠费停服试用客户流量包耗尽恶意用户ddos攻击无流量域名未备案带宽封顶只读。
/// 注意:此字段可能返回 null表示取不到有效值。
/// </summary>
[JsonProperty("Disable")]
public string Disable{ get; set; }
/// <summary>
/// 访问协议强制跳转配置。
/// 注意:此字段可能返回 null表示取不到有效值。
/// </summary>
[JsonProperty("ForceRedirect")]
public ForceRedirect ForceRedirect{ get; set; }
/// <summary>
/// 加速区域mainlandoverseas或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);
}
}
}

View 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域名状态onlineofflineprocessing。
/// - disable域名封禁状态normalunlicensed。
/// - projectId项目ID。
/// - fullUrlCache全路径缓存on或off。
/// - https是否配置httpsonoff或processing。
/// - originPullProtocol回源协议类型支持httpfollow或https。
/// - area加速区域支持mainlandoverseas或global。
/// </summary>
[JsonProperty("Name")]
public string Name{ get; set; }
/// <summary>
/// 过滤字段值。
/// </summary>
[JsonProperty("Value")]
public string[] Value{ get; set; }
/// <summary>
/// 是否启用模糊查询仅支持过滤字段名为origindomain。
/// </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);
}
}
}

View 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);
}
}
}

View 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>
/// 查询指定的指标名称BandwidthFluxRequestDelay状态码LogBandwidthLogFluxLogRequest
/// </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);
}
}
}

View 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>
/// 强制跳转访问协议类型支持httphttps分别表示请求强制跳转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);
}
}
}

View 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头部设置方式支持addset或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路径规则类型支持allfiledirectory或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);
}
}
}

View 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>
/// 是否开启http2on或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>
/// 是否开启Spdyon或off。
/// 注意:此字段可能返回 null表示取不到有效值。
/// </summary>
[JsonProperty("Spdy")]
public string Spdy{ get; set; }
/// <summary>
/// https证书部署状态closeddeployingdeployedfailed分别表示已关闭部署中部署成功部署失败。不可作为入参使用。
/// 注意:此字段可能返回 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);
}
}
}

View 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);
}
}
}

View 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);
}
}
}

View 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>
/// 主源站类型支持domainip分别表示域名源站ip源站。
/// 设置Origins时必须填写。
/// 注意:此字段可能返回 null表示取不到有效值。
/// </summary>
[JsonProperty("OriginType")]
public string OriginType{ get; set; }
/// <summary>
/// 回源时Host头部值。
/// 注意:此字段可能返回 null表示取不到有效值。
/// </summary>
[JsonProperty("ServerName")]
public string ServerName{ get; set; }
/// <summary>
/// 回源协议类型支持httpfollowhttps分别表示强制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);
}
}
}

View 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);
}
}
}

View 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);
}
}
}

View 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);
}
}
}

View 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);
}
}
}

View 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);
}
}
}

View 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);
}
}
}

View 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);
}
}
}

View 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);
}
}
}

View 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);
}
}
}

View 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);
}
}
}

View 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);
}
}
}

View 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 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);
}
}
}

View 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);
}
}
}

View 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);
}
}
}

View 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);
}
}
}

View 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>
/// 域名加速区域mainlandoverseas或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);
}
}
}

View 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 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);
}
}
}