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

122 lines
5.0 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 Origin : AbstractModel
{
/// <summary>
/// 主源站列表
/// 修改源站时,需要同时填充对应的 OriginType
/// 注意:此字段可能返回 null表示取不到有效值。
/// </summary>
[JsonProperty("Origins")]
public string[] Origins{ get; set; }
/// <summary>
/// 主源站类型
/// 入参支持以下几种类型:
/// domain域名类型
/// cos对象存储源站
/// ipIP 列表作为源站
/// ipv6源站列表为一个单独的 IPv6 地址
/// ip_ipv6源站列表为多个 IPv4 地址和一个 IPv6 地址
/// 出参增加以下几种类型:
/// image数据万象源站
/// ftp历史 FTP 托管源源站,现已不维护
/// 修改 Origins 时需要同时填充对应的 OriginType
/// IPv6 功能目前尚未全量,需要先申请试用
/// 注意:此字段可能返回 null表示取不到有效值。
/// </summary>
[JsonProperty("OriginType")]
public string OriginType{ get; set; }
/// <summary>
/// 回主源站时 Host 头部,不填充则默认为加速域名
/// 若接入的是泛域名,则回源 Host 默认为访问时的子域名
/// 注意:此字段可能返回 null表示取不到有效值。
/// </summary>
[JsonProperty("ServerName")]
public string ServerName{ get; set; }
/// <summary>
/// OriginType 为对象存储COS可以指定是否允许访问私有 bucket
/// 注意:需要先授权 CDN 访问该私有 Bucket 的权限后,才可开启此配置。
/// 注意:此字段可能返回 null表示取不到有效值。
/// </summary>
[JsonProperty("CosPrivateAccess")]
public string CosPrivateAccess{ get; set; }
/// <summary>
/// 回源协议配置
/// http强制 http 回源
/// follow协议跟随回源
/// https强制 https 回源https 回源时仅支持源站 443 端口
/// 注意:此字段可能返回 null表示取不到有效值。
/// </summary>
[JsonProperty("OriginPullProtocol")]
public string OriginPullProtocol{ get; set; }
/// <summary>
/// 备源站列表
/// 修改备源站时,需要同时填充对应的 BackupOriginType
/// 注意:此字段可能返回 null表示取不到有效值。
/// </summary>
[JsonProperty("BackupOrigins")]
public string[] BackupOrigins{ get; set; }
/// <summary>
/// 备源站类型,支持以下类型:
/// domain域名类型
/// ipIP 列表作为源站
/// 修改 BackupOrigins 时需要同时填充对应的 BackupOriginType
/// 注意:此字段可能返回 null表示取不到有效值。
/// </summary>
[JsonProperty("BackupOriginType")]
public string BackupOriginType{ get; set; }
/// <summary>
/// 回备源站时 Host 头部,不填充则默认为主源站的 ServerName
/// 注意:此字段可能返回 null表示取不到有效值。
/// </summary>
[JsonProperty("BackupServerName")]
public string BackupServerName{ 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 + "CosPrivateAccess", this.CosPrivateAccess);
this.SetParamSimple(map, prefix + "OriginPullProtocol", this.OriginPullProtocol);
this.SetParamArraySimple(map, prefix + "BackupOrigins.", this.BackupOrigins);
this.SetParamSimple(map, prefix + "BackupOriginType", this.BackupOriginType);
this.SetParamSimple(map, prefix + "BackupServerName", this.BackupServerName);
}
}
}