114 lines
3.6 KiB
C#
114 lines
3.6 KiB
C#
|
|
/*
|
|||
|
|
* Copyright (c) 2018 THL A29 Limited, a Tencent company. All Rights Reserved.
|
|||
|
|
*
|
|||
|
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|||
|
|
* you may not use this file except in compliance with the License.
|
|||
|
|
* You may obtain a copy of the License at
|
|||
|
|
*
|
|||
|
|
* http://www.apache.org/licenses/LICENSE-2.0
|
|||
|
|
*
|
|||
|
|
* Unless required by applicable law or agreed to in writing,
|
|||
|
|
* software distributed under the License is distributed on an
|
|||
|
|
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
|||
|
|
* KIND, either express or implied. See the License for the
|
|||
|
|
* specific language governing permissions and limitations
|
|||
|
|
* under the License.
|
|||
|
|
*/
|
|||
|
|
|
|||
|
|
namespace TencentCloud.Ecdn.V20191012.Models
|
|||
|
|
{
|
|||
|
|
using Newtonsoft.Json;
|
|||
|
|
using System.Collections.Generic;
|
|||
|
|
using TencentCloud.Common;
|
|||
|
|
|
|||
|
|
public class UpdateDomainConfigRequest : AbstractModel
|
|||
|
|
{
|
|||
|
|
|
|||
|
|
/// <summary>
|
|||
|
|
/// 域名。
|
|||
|
|
/// </summary>
|
|||
|
|
[JsonProperty("Domain")]
|
|||
|
|
public string Domain{ get; set; }
|
|||
|
|
|
|||
|
|
/// <summary>
|
|||
|
|
/// 源站配置。
|
|||
|
|
/// </summary>
|
|||
|
|
[JsonProperty("Origin")]
|
|||
|
|
public Origin Origin{ get; set; }
|
|||
|
|
|
|||
|
|
/// <summary>
|
|||
|
|
/// 项目id。
|
|||
|
|
/// </summary>
|
|||
|
|
[JsonProperty("ProjectId")]
|
|||
|
|
public long? ProjectId{ get; set; }
|
|||
|
|
|
|||
|
|
/// <summary>
|
|||
|
|
/// IP黑白名单配置。
|
|||
|
|
/// </summary>
|
|||
|
|
[JsonProperty("IpFilter")]
|
|||
|
|
public IpFilter IpFilter{ get; set; }
|
|||
|
|
|
|||
|
|
/// <summary>
|
|||
|
|
/// IP限频配置。
|
|||
|
|
/// </summary>
|
|||
|
|
[JsonProperty("IpFreqLimit")]
|
|||
|
|
public IpFreqLimit IpFreqLimit{ get; set; }
|
|||
|
|
|
|||
|
|
/// <summary>
|
|||
|
|
/// 源站响应头部配置。
|
|||
|
|
/// </summary>
|
|||
|
|
[JsonProperty("ResponseHeader")]
|
|||
|
|
public ResponseHeader ResponseHeader{ get; set; }
|
|||
|
|
|
|||
|
|
/// <summary>
|
|||
|
|
/// 节点缓存配置。
|
|||
|
|
/// </summary>
|
|||
|
|
[JsonProperty("CacheKey")]
|
|||
|
|
public CacheKey CacheKey{ get; set; }
|
|||
|
|
|
|||
|
|
/// <summary>
|
|||
|
|
/// 缓存规则配置。
|
|||
|
|
/// </summary>
|
|||
|
|
[JsonProperty("Cache")]
|
|||
|
|
public Cache Cache{ get; set; }
|
|||
|
|
|
|||
|
|
/// <summary>
|
|||
|
|
/// Https配置。
|
|||
|
|
/// </summary>
|
|||
|
|
[JsonProperty("Https")]
|
|||
|
|
public Https Https{ get; set; }
|
|||
|
|
|
|||
|
|
/// <summary>
|
|||
|
|
/// 访问协议强制跳转配置。
|
|||
|
|
/// </summary>
|
|||
|
|
[JsonProperty("ForceRedirect")]
|
|||
|
|
public ForceRedirect ForceRedirect{ get; set; }
|
|||
|
|
|
|||
|
|
/// <summary>
|
|||
|
|
/// 域名加速区域,mainland,overseas或global,分别表示中国境内加速,海外加速或全球加速。
|
|||
|
|
/// </summary>
|
|||
|
|
[JsonProperty("Area")]
|
|||
|
|
public string Area{ get; set; }
|
|||
|
|
|
|||
|
|
|
|||
|
|
/// <summary>
|
|||
|
|
/// For internal usage only. DO NOT USE IT.
|
|||
|
|
/// </summary>
|
|||
|
|
internal override void ToMap(Dictionary<string, string> map, string prefix)
|
|||
|
|
{
|
|||
|
|
this.SetParamSimple(map, prefix + "Domain", this.Domain);
|
|||
|
|
this.SetParamObj(map, prefix + "Origin.", this.Origin);
|
|||
|
|
this.SetParamSimple(map, prefix + "ProjectId", this.ProjectId);
|
|||
|
|
this.SetParamObj(map, prefix + "IpFilter.", this.IpFilter);
|
|||
|
|
this.SetParamObj(map, prefix + "IpFreqLimit.", this.IpFreqLimit);
|
|||
|
|
this.SetParamObj(map, prefix + "ResponseHeader.", this.ResponseHeader);
|
|||
|
|
this.SetParamObj(map, prefix + "CacheKey.", this.CacheKey);
|
|||
|
|
this.SetParamObj(map, prefix + "Cache.", this.Cache);
|
|||
|
|
this.SetParamObj(map, prefix + "Https.", this.Https);
|
|||
|
|
this.SetParamObj(map, prefix + "ForceRedirect.", this.ForceRedirect);
|
|||
|
|
this.SetParamSimple(map, prefix + "Area", this.Area);
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
|