/*
* 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 Https : AbstractModel
{
///
/// https配置开关,on或off。开启https配置的域名在部署中状态,开关保持off。
/// 注意:此字段可能返回 null,表示取不到有效值。
///
[JsonProperty("Switch")]
public string Switch{ get; set; }
///
/// 是否开启http2,on或off。
/// 注意:此字段可能返回 null,表示取不到有效值。
///
[JsonProperty("Http2")]
public string Http2{ get; set; }
///
/// 是否开启OCSP功能,on或off。
/// 注意:此字段可能返回 null,表示取不到有效值。
///
[JsonProperty("OcspStapling")]
public string OcspStapling{ get; set; }
///
/// 是否开启客户端证书校验功能,on或off,开启时必选上传客户端证书信息。
/// 注意:此字段可能返回 null,表示取不到有效值。
///
[JsonProperty("VerifyClient")]
public string VerifyClient{ get; set; }
///
/// 服务器证书配置信息。
/// 注意:此字段可能返回 null,表示取不到有效值。
///
[JsonProperty("CertInfo")]
public ServerCert CertInfo{ get; set; }
///
/// 客户端证书配置信息。
/// 注意:此字段可能返回 null,表示取不到有效值。
///
[JsonProperty("ClientCertInfo")]
public ClientCert ClientCertInfo{ get; set; }
///
/// 是否开启Spdy,on或off。
/// 注意:此字段可能返回 null,表示取不到有效值。
///
[JsonProperty("Spdy")]
public string Spdy{ get; set; }
///
/// https证书部署状态,closed,deploying,deployed,failed分别表示已关闭,部署中,部署成功,部署失败。不可作为入参使用。
/// 注意:此字段可能返回 null,表示取不到有效值。
///
[JsonProperty("SslStatus")]
public string SslStatus{ get; set; }
///
/// For internal usage only. DO NOT USE IT.
///
internal override void ToMap(Dictionary map, string prefix)
{
this.SetParamSimple(map, prefix + "Switch", this.Switch);
this.SetParamSimple(map, prefix + "Http2", this.Http2);
this.SetParamSimple(map, prefix + "OcspStapling", this.OcspStapling);
this.SetParamSimple(map, prefix + "VerifyClient", this.VerifyClient);
this.SetParamObj(map, prefix + "CertInfo.", this.CertInfo);
this.SetParamObj(map, prefix + "ClientCertInfo.", this.ClientCertInfo);
this.SetParamSimple(map, prefix + "Spdy", this.Spdy);
this.SetParamSimple(map, prefix + "SslStatus", this.SslStatus);
}
}
}