/* * 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.Gaap.V20180529.Models { using Newtonsoft.Json; using System.Collections.Generic; using TencentCloud.Common; public class SetAuthenticationRequest : AbstractModel { /// /// 监听器ID。 /// [JsonProperty("ListenerId")] public string ListenerId{ get; set; } /// /// 需要进行高级配置的域名,该域名为监听器下的转发规则的域名。 /// [JsonProperty("Domain")] public string Domain{ get; set; } /// /// 基础认证开关,其中: /// 0,关闭基础认证; /// 1,开启基础认证。 /// 默认为0。 /// [JsonProperty("BasicAuth")] public long? BasicAuth{ get; set; } /// /// 通道认证开关,用于源站对Gaap的认证,其中: /// 0,关闭通道认证; /// 1,开启通道认证。 /// 默认为0。 /// [JsonProperty("GaapAuth")] public long? GaapAuth{ get; set; } /// /// 源站认证开关,用于Gaap对服务器的认证,其中: /// 0,关闭源站认证; /// 1,开启源站认证。 /// 默认为0。 /// [JsonProperty("RealServerAuth")] public long? RealServerAuth{ get; set; } /// /// 基础认证配置ID,从证书管理页获取。 /// [JsonProperty("BasicAuthConfId")] public string BasicAuthConfId{ get; set; } /// /// 通道SSL证书ID,从证书管理页获取。 /// [JsonProperty("GaapCertificateId")] public string GaapCertificateId{ get; set; } /// /// 源站CA证书ID,从证书管理页获取。源站认证时,填写该参数或RealServerCertificateId参数 /// [JsonProperty("RealServerCertificateId")] public string RealServerCertificateId{ get; set; } /// /// 源站证书域名。 /// [JsonProperty("RealServerCertificateDomain")] public string RealServerCertificateDomain{ get; set; } /// /// 多源站CA证书ID,从证书管理页获取。源站认证时,填写该参数或RealServerCertificateId参数 /// [JsonProperty("PolyRealServerCertificateIds")] public string[] PolyRealServerCertificateIds{ get; set; } /// /// For internal usage only. DO NOT USE IT. /// internal override void ToMap(Dictionary map, string prefix) { this.SetParamSimple(map, prefix + "ListenerId", this.ListenerId); this.SetParamSimple(map, prefix + "Domain", this.Domain); this.SetParamSimple(map, prefix + "BasicAuth", this.BasicAuth); this.SetParamSimple(map, prefix + "GaapAuth", this.GaapAuth); this.SetParamSimple(map, prefix + "RealServerAuth", this.RealServerAuth); this.SetParamSimple(map, prefix + "BasicAuthConfId", this.BasicAuthConfId); this.SetParamSimple(map, prefix + "GaapCertificateId", this.GaapCertificateId); this.SetParamSimple(map, prefix + "RealServerCertificateId", this.RealServerCertificateId); this.SetParamSimple(map, prefix + "RealServerCertificateDomain", this.RealServerCertificateDomain); this.SetParamArraySimple(map, prefix + "PolyRealServerCertificateIds.", this.PolyRealServerCertificateIds); } } }