/* * 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.Cdn.V20180606.Models { using Newtonsoft.Json; using System.Collections.Generic; using TencentCloud.Common; public class OverseaConfig : AbstractModel { /// /// 时间戳防盗链配置。 /// 注意:此字段可能返回 null,表示取不到有效值。 /// [JsonProperty("Authentication")] public Authentication Authentication{ get; set; } /// /// 带宽封顶配置。 /// 注意:此字段可能返回 null,表示取不到有效值。 /// [JsonProperty("BandwidthAlert")] public BandwidthAlert BandwidthAlert{ get; set; } /// /// 缓存规则配置。 /// 注意:此字段可能返回 null,表示取不到有效值。 /// [JsonProperty("Cache")] public Cache Cache{ get; set; } /// /// 缓存相关配置。 /// 注意:此字段可能返回 null,表示取不到有效值。 /// [JsonProperty("CacheKey")] public CacheKey CacheKey{ get; set; } /// /// 智能压缩配置。 /// 注意:此字段可能返回 null,表示取不到有效值。 /// [JsonProperty("Compression")] public Compression Compression{ get; set; } /// /// 下载限速配置。 /// 注意:此字段可能返回 null,表示取不到有效值。 /// [JsonProperty("DownstreamCapping")] public DownstreamCapping DownstreamCapping{ get; set; } /// /// 错误码重定向配置。 /// 注意:此字段可能返回 null,表示取不到有效值。 /// [JsonProperty("ErrorPage")] public ErrorPage ErrorPage{ get; set; } /// /// 301和302自动回源跟随配置。 /// 注意:此字段可能返回 null,表示取不到有效值。 /// [JsonProperty("FollowRedirect")] public FollowRedirect FollowRedirect{ get; set; } /// /// 访问协议强制跳转配置。 /// 注意:此字段可能返回 null,表示取不到有效值。 /// [JsonProperty("ForceRedirect")] public ForceRedirect ForceRedirect{ get; set; } /// /// Https配置。 /// 注意:此字段可能返回 null,表示取不到有效值。 /// [JsonProperty("Https")] public Https Https{ get; set; } /// /// IP黑白名单配置。 /// 注意:此字段可能返回 null,表示取不到有效值。 /// [JsonProperty("IpFilter")] public IpFilter IpFilter{ get; set; } /// /// IP限频配置。 /// 注意:此字段可能返回 null,表示取不到有效值。 /// [JsonProperty("IpFreqLimit")] public IpFreqLimit IpFreqLimit{ get; set; } /// /// 浏览器缓存规则配置。 /// 注意:此字段可能返回 null,表示取不到有效值。 /// [JsonProperty("MaxAge")] public MaxAge MaxAge{ get; set; } /// /// 源站配置。 /// 注意:此字段可能返回 null,表示取不到有效值。 /// [JsonProperty("Origin")] public Origin Origin{ get; set; } /// /// 跨国优化配置。 /// 注意:此字段可能返回 null,表示取不到有效值。 /// [JsonProperty("OriginPullOptimization")] public OriginPullOptimization OriginPullOptimization{ get; set; } /// /// Range回源配置。 /// 注意:此字段可能返回 null,表示取不到有效值。 /// [JsonProperty("RangeOriginPull")] public RangeOriginPull RangeOriginPull{ get; set; } /// /// 防盗链配置。 /// 注意:此字段可能返回 null,表示取不到有效值。 /// [JsonProperty("Referer")] public Referer Referer{ get; set; } /// /// 回源请求头部配置。 /// 注意:此字段可能返回 null,表示取不到有效值。 /// [JsonProperty("RequestHeader")] public RequestHeader RequestHeader{ get; set; } /// /// 源站响应头部配置。 /// 注意:此字段可能返回 null,表示取不到有效值。 /// [JsonProperty("ResponseHeader")] public ResponseHeader ResponseHeader{ get; set; } /// /// 遵循源站缓存头部配置。 /// 注意:此字段可能返回 null,表示取不到有效值。 /// [JsonProperty("ResponseHeaderCache")] public ResponseHeaderCache ResponseHeaderCache{ get; set; } /// /// seo优化配置。 /// 注意:此字段可能返回 null,表示取不到有效值。 /// [JsonProperty("Seo")] public Seo Seo{ get; set; } /// /// 域名业务类型,web,download,media分别表示静态加速,下载加速和流媒体加速。 /// 注意:此字段可能返回 null,表示取不到有效值。 /// [JsonProperty("ServiceType")] public string ServiceType{ get; set; } /// /// 状态码缓存配置。 /// 注意:此字段可能返回 null,表示取不到有效值。 /// [JsonProperty("StatusCodeCache")] public StatusCodeCache StatusCodeCache{ get; set; } /// /// 视频拖拽配置。 /// 注意:此字段可能返回 null,表示取不到有效值。 /// [JsonProperty("VideoSeek")] public VideoSeek VideoSeek{ get; set; } /// /// For internal usage only. DO NOT USE IT. /// internal override void ToMap(Dictionary map, string prefix) { this.SetParamObj(map, prefix + "Authentication.", this.Authentication); this.SetParamObj(map, prefix + "BandwidthAlert.", this.BandwidthAlert); this.SetParamObj(map, prefix + "Cache.", this.Cache); this.SetParamObj(map, prefix + "CacheKey.", this.CacheKey); this.SetParamObj(map, prefix + "Compression.", this.Compression); this.SetParamObj(map, prefix + "DownstreamCapping.", this.DownstreamCapping); this.SetParamObj(map, prefix + "ErrorPage.", this.ErrorPage); this.SetParamObj(map, prefix + "FollowRedirect.", this.FollowRedirect); this.SetParamObj(map, prefix + "ForceRedirect.", this.ForceRedirect); this.SetParamObj(map, prefix + "Https.", this.Https); this.SetParamObj(map, prefix + "IpFilter.", this.IpFilter); this.SetParamObj(map, prefix + "IpFreqLimit.", this.IpFreqLimit); this.SetParamObj(map, prefix + "MaxAge.", this.MaxAge); this.SetParamObj(map, prefix + "Origin.", this.Origin); this.SetParamObj(map, prefix + "OriginPullOptimization.", this.OriginPullOptimization); this.SetParamObj(map, prefix + "RangeOriginPull.", this.RangeOriginPull); this.SetParamObj(map, prefix + "Referer.", this.Referer); this.SetParamObj(map, prefix + "RequestHeader.", this.RequestHeader); this.SetParamObj(map, prefix + "ResponseHeader.", this.ResponseHeader); this.SetParamObj(map, prefix + "ResponseHeaderCache.", this.ResponseHeaderCache); this.SetParamObj(map, prefix + "Seo.", this.Seo); this.SetParamSimple(map, prefix + "ServiceType", this.ServiceType); this.SetParamObj(map, prefix + "StatusCodeCache.", this.StatusCodeCache); this.SetParamObj(map, prefix + "VideoSeek.", this.VideoSeek); } } }