Files
g.hnyhua.cn/TencentCloud/Ssl/V20191205/Models/ApplyCertificateRequest.cs

121 lines
4.1 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.Ssl.V20191205.Models
{
using Newtonsoft.Json;
using System.Collections.Generic;
using TencentCloud.Common;
public class ApplyCertificateRequest : AbstractModel
{
/// <summary>
/// 验证方式DNS_AUTO = 自动DNS验证DNS = 手动DNS验证FILE = 文件验证。
/// </summary>
[JsonProperty("DvAuthMethod")]
public string DvAuthMethod{ get; set; }
/// <summary>
/// 域名。
/// </summary>
[JsonProperty("DomainName")]
public string DomainName{ get; set; }
/// <summary>
/// 项目 ID。
/// </summary>
[JsonProperty("ProjectId")]
public ulong? ProjectId{ get; set; }
/// <summary>
/// 证书类型目前仅支持类型2。2 = TrustAsia TLS RSA CA。
/// </summary>
[JsonProperty("PackageType")]
public string PackageType{ get; set; }
/// <summary>
/// 邮箱。
/// </summary>
[JsonProperty("ContactEmail")]
public string ContactEmail{ get; set; }
/// <summary>
/// 手机。
/// </summary>
[JsonProperty("ContactPhone")]
public string ContactPhone{ get; set; }
/// <summary>
/// 有效期默认12个月目前仅支持12个月。
/// </summary>
[JsonProperty("ValidityPeriod")]
public string ValidityPeriod{ get; set; }
/// <summary>
/// 加密算法,仅支持 RSA。
/// </summary>
[JsonProperty("CsrEncryptAlgo")]
public string CsrEncryptAlgo{ get; set; }
/// <summary>
/// 密钥对参数仅支持2048。
/// </summary>
[JsonProperty("CsrKeyParameter")]
public string CsrKeyParameter{ get; set; }
/// <summary>
/// CSR 的加密密码。
/// </summary>
[JsonProperty("CsrKeyPassword")]
public string CsrKeyPassword{ get; set; }
/// <summary>
/// 备注名称。
/// </summary>
[JsonProperty("Alias")]
public string Alias{ get; set; }
/// <summary>
/// 原证书 ID用于重新申请。
/// </summary>
[JsonProperty("OldCertificateId")]
public string OldCertificateId{ 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 + "DvAuthMethod", this.DvAuthMethod);
this.SetParamSimple(map, prefix + "DomainName", this.DomainName);
this.SetParamSimple(map, prefix + "ProjectId", this.ProjectId);
this.SetParamSimple(map, prefix + "PackageType", this.PackageType);
this.SetParamSimple(map, prefix + "ContactEmail", this.ContactEmail);
this.SetParamSimple(map, prefix + "ContactPhone", this.ContactPhone);
this.SetParamSimple(map, prefix + "ValidityPeriod", this.ValidityPeriod);
this.SetParamSimple(map, prefix + "CsrEncryptAlgo", this.CsrEncryptAlgo);
this.SetParamSimple(map, prefix + "CsrKeyParameter", this.CsrKeyParameter);
this.SetParamSimple(map, prefix + "CsrKeyPassword", this.CsrKeyPassword);
this.SetParamSimple(map, prefix + "Alias", this.Alias);
this.SetParamSimple(map, prefix + "OldCertificateId", this.OldCertificateId);
}
}
}