Files
g.hnyhua.cn/TencentCloud/Ecdn/V20191012/Models/Origin.cs

86 lines
3.2 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.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);
}
}
}