Files
g.hnyhua.cn/TencentCloud/Cdn/V20180606/Models/DetailDomain.cs

386 lines
15 KiB
C#
Raw Normal View History

/*
* 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 DetailDomain : 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>
/// 加速服务状态
/// rejected域名审核未通过域名备案过期/被注销导致
/// processing部署中
/// online已启动
/// offline已关闭
/// </summary>
[JsonProperty("Status")]
public string Status{ get; set; }
/// <summary>
/// 项目 ID可前往腾讯云项目管理页面查看
/// </summary>
[JsonProperty("ProjectId")]
public long? ProjectId{ get; set; }
/// <summary>
/// 域名业务类型
/// web静态加速
/// download下载加速
/// media流媒体点播加速
/// </summary>
[JsonProperty("ServiceType")]
public string ServiceType{ 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("StatusCodeCache")]
public StatusCodeCache StatusCodeCache{ get; set; }
/// <summary>
/// 智能压缩配置
/// 注意:此字段可能返回 null表示取不到有效值。
/// </summary>
[JsonProperty("Compression")]
public Compression Compression{ get; set; }
/// <summary>
/// 带宽封顶配置
/// 注意:此字段可能返回 null表示取不到有效值。
/// </summary>
[JsonProperty("BandwidthAlert")]
public BandwidthAlert BandwidthAlert{ get; set; }
/// <summary>
/// Range 回源配置
/// 注意:此字段可能返回 null表示取不到有效值。
/// </summary>
[JsonProperty("RangeOriginPull")]
public RangeOriginPull RangeOriginPull{ get; set; }
/// <summary>
/// 301/302 回源自动跟随配置
/// 注意:此字段可能返回 null表示取不到有效值。
/// </summary>
[JsonProperty("FollowRedirect")]
public FollowRedirect FollowRedirect{ get; set; }
/// <summary>
/// 自定义错误页面配置(功能灰度中,敬请期待)
/// 注意:此字段可能返回 null表示取不到有效值。
/// </summary>
[JsonProperty("ErrorPage")]
public ErrorPage ErrorPage{ get; set; }
/// <summary>
/// 自定义请求头部配置
/// 注意:此字段可能返回 null表示取不到有效值。
/// </summary>
[JsonProperty("RequestHeader")]
public RequestHeader RequestHeader{ get; set; }
/// <summary>
/// 自定义响应头部配置
/// 注意:此字段可能返回 null表示取不到有效值。
/// </summary>
[JsonProperty("ResponseHeader")]
public ResponseHeader ResponseHeader{ get; set; }
/// <summary>
/// 单链接下行限速配置
/// 注意:此字段可能返回 null表示取不到有效值。
/// </summary>
[JsonProperty("DownstreamCapping")]
public DownstreamCapping DownstreamCapping{ get; set; }
/// <summary>
/// 带参/不带参缓存配置
/// 注意:此字段可能返回 null表示取不到有效值。
/// </summary>
[JsonProperty("CacheKey")]
public CacheKey CacheKey{ get; set; }
/// <summary>
/// 源站头部缓存配置
/// 注意:此字段可能返回 null表示取不到有效值。
/// </summary>
[JsonProperty("ResponseHeaderCache")]
public ResponseHeaderCache ResponseHeaderCache{ get; set; }
/// <summary>
/// 视频拖拽配置
/// 注意:此字段可能返回 null表示取不到有效值。
/// </summary>
[JsonProperty("VideoSeek")]
public VideoSeek VideoSeek{ get; set; }
/// <summary>
/// 节点缓存过期规则配置
/// 注意:此字段可能返回 null表示取不到有效值。
/// </summary>
[JsonProperty("Cache")]
public Cache Cache{ get; set; }
/// <summary>
/// 跨国链路优化配置(功能灰度中,敬请期待)
/// 注意:此字段可能返回 null表示取不到有效值。
/// </summary>
[JsonProperty("OriginPullOptimization")]
public OriginPullOptimization OriginPullOptimization{ get; set; }
/// <summary>
/// Https 加速相关配置
/// 注意:此字段可能返回 null表示取不到有效值。
/// </summary>
[JsonProperty("Https")]
public Https Https{ get; set; }
/// <summary>
/// 时间戳防盗链配置
/// 注意:此字段可能返回 null表示取不到有效值。
/// </summary>
[JsonProperty("Authentication")]
public Authentication Authentication{ get; set; }
/// <summary>
/// SEO 优化配置
/// 注意:此字段可能返回 null表示取不到有效值。
/// </summary>
[JsonProperty("Seo")]
public Seo Seo{ get; set; }
/// <summary>
/// 域名封禁状态
/// normal正常状态
/// overdue账号欠费导致域名关闭充值完成后可自行启动加速服务
/// malicious域名出现恶意行为强制关闭加速服务
/// ddos域名被大规模 DDoS 攻击,关闭加速服务
/// idle域名超过 90 天内无任何操作、数据产生,判定为不活跃域名自动关闭加速服务,可自行启动加速服务
/// unlicensed域名未备案/备案注销,自动关闭加速服务,备案完成后可自行启动加速服务
/// capping触发配置的带宽阈值上限
/// readonly域名存在特殊配置被锁定
/// 注意:此字段可能返回 null表示取不到有效值。
/// </summary>
[JsonProperty("Disable")]
public string Disable{ get; set; }
/// <summary>
/// 访问协议强制跳转配置
/// 注意:此字段可能返回 null表示取不到有效值。
/// </summary>
[JsonProperty("ForceRedirect")]
public ForceRedirect ForceRedirect{ get; set; }
/// <summary>
/// Referer 防盗链配置
/// 注意:此字段可能返回 null表示取不到有效值。
/// </summary>
[JsonProperty("Referer")]
public Referer Referer{ get; set; }
/// <summary>
/// 浏览器缓存过期规则配置(功能灰度中,敬请期待)
/// 注意:此字段可能返回 null表示取不到有效值。
/// </summary>
[JsonProperty("MaxAge")]
public MaxAge MaxAge{ get; set; }
/// <summary>
/// Ipv6 配置(功能灰度中,敬请期待)
/// 注意:此字段可能返回 null表示取不到有效值。
/// </summary>
[JsonProperty("Ipv6")]
public Ipv6 Ipv6{ get; set; }
/// <summary>
/// 是否兼容旧版本配置(内部兼容性字段)
/// 注意:此字段可能返回 null表示取不到有效值。
/// </summary>
[JsonProperty("Compatibility")]
public Compatibility Compatibility{ get; set; }
/// <summary>
/// 区域特殊配置
/// 注意:此字段可能返回 null表示取不到有效值。
/// </summary>
[JsonProperty("SpecificConfig")]
public SpecificConfig SpecificConfig{ get; set; }
/// <summary>
/// 加速区域
/// mainland中国境内加速
/// overseas中国境外加速
/// global全球加速
/// 注意:此字段可能返回 null表示取不到有效值。
/// </summary>
[JsonProperty("Area")]
public string Area{ get; set; }
/// <summary>
/// 域名锁定状态
/// normal未锁定
/// mainland中国境内锁定
/// overseas中国境外锁定
/// global全球锁定
/// 注意:此字段可能返回 null表示取不到有效值。
/// </summary>
[JsonProperty("Readonly")]
public string Readonly{ get; set; }
/// <summary>
/// 回源超时配置
/// 注意:此字段可能返回 null表示取不到有效值。
/// </summary>
[JsonProperty("OriginPullTimeout")]
public OriginPullTimeout OriginPullTimeout{ get; set; }
/// <summary>
/// 回源S3鉴权配置
/// 注意:此字段可能返回 null表示取不到有效值。
/// </summary>
[JsonProperty("AwsPrivateAccess")]
public AwsPrivateAccess AwsPrivateAccess{ get; set; }
/// <summary>
/// Scdn配置
/// 注意:此字段可能返回 null表示取不到有效值。
/// </summary>
[JsonProperty("SecurityConfig")]
public SecurityConfig SecurityConfig{ get; set; }
/// <summary>
/// ImageOptimization配置
/// 注意:此字段可能返回 null表示取不到有效值。
/// </summary>
[JsonProperty("ImageOptimization")]
public ImageOptimization ImageOptimization{ 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 + "ServiceType", this.ServiceType);
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 + "StatusCodeCache.", this.StatusCodeCache);
this.SetParamObj(map, prefix + "Compression.", this.Compression);
this.SetParamObj(map, prefix + "BandwidthAlert.", this.BandwidthAlert);
this.SetParamObj(map, prefix + "RangeOriginPull.", this.RangeOriginPull);
this.SetParamObj(map, prefix + "FollowRedirect.", this.FollowRedirect);
this.SetParamObj(map, prefix + "ErrorPage.", this.ErrorPage);
this.SetParamObj(map, prefix + "RequestHeader.", this.RequestHeader);
this.SetParamObj(map, prefix + "ResponseHeader.", this.ResponseHeader);
this.SetParamObj(map, prefix + "DownstreamCapping.", this.DownstreamCapping);
this.SetParamObj(map, prefix + "CacheKey.", this.CacheKey);
this.SetParamObj(map, prefix + "ResponseHeaderCache.", this.ResponseHeaderCache);
this.SetParamObj(map, prefix + "VideoSeek.", this.VideoSeek);
this.SetParamObj(map, prefix + "Cache.", this.Cache);
this.SetParamObj(map, prefix + "OriginPullOptimization.", this.OriginPullOptimization);
this.SetParamObj(map, prefix + "Https.", this.Https);
this.SetParamObj(map, prefix + "Authentication.", this.Authentication);
this.SetParamObj(map, prefix + "Seo.", this.Seo);
this.SetParamSimple(map, prefix + "Disable", this.Disable);
this.SetParamObj(map, prefix + "ForceRedirect.", this.ForceRedirect);
this.SetParamObj(map, prefix + "Referer.", this.Referer);
this.SetParamObj(map, prefix + "MaxAge.", this.MaxAge);
this.SetParamObj(map, prefix + "Ipv6.", this.Ipv6);
this.SetParamObj(map, prefix + "Compatibility.", this.Compatibility);
this.SetParamObj(map, prefix + "SpecificConfig.", this.SpecificConfig);
this.SetParamSimple(map, prefix + "Area", this.Area);
this.SetParamSimple(map, prefix + "Readonly", this.Readonly);
this.SetParamObj(map, prefix + "OriginPullTimeout.", this.OriginPullTimeout);
this.SetParamObj(map, prefix + "AwsPrivateAccess.", this.AwsPrivateAccess);
this.SetParamObj(map, prefix + "SecurityConfig.", this.SecurityConfig);
this.SetParamObj(map, prefix + "ImageOptimization.", this.ImageOptimization);
}
}
}