Files
g.hnyhua.cn/TencentCloud/Gaap/V20180529/Models/SetAuthenticationRequest.cs
2026-02-07 15:48:27 +08:00

116 lines
4.3 KiB
C#
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
/*
* 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
{
/// <summary>
/// 监听器ID。
/// </summary>
[JsonProperty("ListenerId")]
public string ListenerId{ get; set; }
/// <summary>
/// 需要进行高级配置的域名,该域名为监听器下的转发规则的域名。
/// </summary>
[JsonProperty("Domain")]
public string Domain{ get; set; }
/// <summary>
/// 基础认证开关,其中:
/// 0关闭基础认证
/// 1开启基础认证。
/// 默认为0。
/// </summary>
[JsonProperty("BasicAuth")]
public long? BasicAuth{ get; set; }
/// <summary>
/// 通道认证开关用于源站对Gaap的认证其中
/// 0关闭通道认证
/// 1开启通道认证。
/// 默认为0。
/// </summary>
[JsonProperty("GaapAuth")]
public long? GaapAuth{ get; set; }
/// <summary>
/// 源站认证开关用于Gaap对服务器的认证其中
/// 0关闭源站认证
/// 1开启源站认证。
/// 默认为0。
/// </summary>
[JsonProperty("RealServerAuth")]
public long? RealServerAuth{ get; set; }
/// <summary>
/// 基础认证配置ID从证书管理页获取。
/// </summary>
[JsonProperty("BasicAuthConfId")]
public string BasicAuthConfId{ get; set; }
/// <summary>
/// 通道SSL证书ID从证书管理页获取。
/// </summary>
[JsonProperty("GaapCertificateId")]
public string GaapCertificateId{ get; set; }
/// <summary>
/// 源站CA证书ID从证书管理页获取。源站认证时填写该参数或RealServerCertificateId参数
/// </summary>
[JsonProperty("RealServerCertificateId")]
public string RealServerCertificateId{ get; set; }
/// <summary>
/// 源站证书域名。
/// </summary>
[JsonProperty("RealServerCertificateDomain")]
public string RealServerCertificateDomain{ get; set; }
/// <summary>
/// 多源站CA证书ID从证书管理页获取。源站认证时填写该参数或RealServerCertificateId参数
/// </summary>
[JsonProperty("PolyRealServerCertificateIds")]
public string[] PolyRealServerCertificateIds{ 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 + "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);
}
}
}