/* * 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 { /// /// 验证方式:DNS_AUTO = 自动DNS验证,DNS = 手动DNS验证,FILE = 文件验证。 /// [JsonProperty("DvAuthMethod")] public string DvAuthMethod{ get; set; } /// /// 域名。 /// [JsonProperty("DomainName")] public string DomainName{ get; set; } /// /// 项目 ID。 /// [JsonProperty("ProjectId")] public ulong? ProjectId{ get; set; } /// /// 证书类型,目前仅支持类型2。2 = TrustAsia TLS RSA CA。 /// [JsonProperty("PackageType")] public string PackageType{ get; set; } /// /// 邮箱。 /// [JsonProperty("ContactEmail")] public string ContactEmail{ get; set; } /// /// 手机。 /// [JsonProperty("ContactPhone")] public string ContactPhone{ get; set; } /// /// 有效期,默认12个月,目前仅支持12个月。 /// [JsonProperty("ValidityPeriod")] public string ValidityPeriod{ get; set; } /// /// 加密算法,仅支持 RSA。 /// [JsonProperty("CsrEncryptAlgo")] public string CsrEncryptAlgo{ get; set; } /// /// 密钥对参数,仅支持2048。 /// [JsonProperty("CsrKeyParameter")] public string CsrKeyParameter{ get; set; } /// /// CSR 的加密密码。 /// [JsonProperty("CsrKeyPassword")] public string CsrKeyPassword{ get; set; } /// /// 备注名称。 /// [JsonProperty("Alias")] public string Alias{ get; set; } /// /// 原证书 ID,用于重新申请。 /// [JsonProperty("OldCertificateId")] public string OldCertificateId{ get; set; } /// /// For internal usage only. DO NOT USE IT. /// internal override void ToMap(Dictionary 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); } } }