tencentcloud-sdk-nodejs-intl-en
Version:
1,697 lines (1,452 loc) • 270 kB
JavaScript
/*
* 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.
*/
const AbstractModel = require("../../common/abstract_model");
/**
* DescribeCertificateBindResourceTaskDetail request structure.
* @class
*/
class DescribeCertificateBindResourceTaskDetailRequest extends AbstractModel {
constructor(){
super();
/**
* Task id, which can be used to query the result of binding cloud resources according to the task id obtained from createcertificatebindresourcesynctask.
* @type {string || null}
*/
this.TaskId = null;
/**
* The number of cloud resources displayed on each page. The default value is 10, and the maximum value is 100.
* @type {string || null}
*/
this.Limit = null;
/**
* Current offset, default is 0.
* @type {string || null}
*/
this.Offset = null;
/**
* Result detail of queried resource type. if not provided, all will be queried. valid values include:.
- clb.
- cdn.
- ddos.
- live.
- vod.
- waf.
- apigateway.
- teo.
- tke.
- cos.
- tse.
- tcb.
* @type {Array.<string> || null}
*/
this.ResourceTypes = null;
/**
* Data of querying region list. clb, tke, waf, api gateway, tcb, cos, and tse support region query, while other resource types do not support.
* @type {Array.<string> || null}
*/
this.Regions = null;
}
/**
* @private
*/
deserialize(params) {
if (!params) {
return;
}
this.TaskId = 'TaskId' in params ? params.TaskId : null;
this.Limit = 'Limit' in params ? params.Limit : null;
this.Offset = 'Offset' in params ? params.Offset : null;
this.ResourceTypes = 'ResourceTypes' in params ? params.ResourceTypes : null;
this.Regions = 'Regions' in params ? params.Regions : null;
}
}
/**
* Cloud-native gateway certificate information
* @class
*/
class GatewayCertificate extends AbstractModel {
constructor(){
super();
/**
* Gateway certificate ID
Note: This field may return null, indicating that no valid value can be obtained.
* @type {string || null}
*/
this.Id = null;
/**
* Gateway certificate information
Note: This field may return null, indicating that no valid value can be obtained.
* @type {string || null}
*/
this.Name = null;
/**
* Bound domain name
Note: This field may return null, indicating that no valid value can be obtained.
* @type {Array.<string> || null}
*/
this.BindDomains = null;
/**
* Certificate source
Note: This field may return null, indicating that no valid value can be obtained.
* @type {string || null}
*/
this.CertSource = null;
/**
* SSL certificate ID that is currently bound
Note: This field may return null, indicating that no valid value can be obtained.
* @type {string || null}
*/
this.CertId = null;
}
/**
* @private
*/
deserialize(params) {
if (!params) {
return;
}
this.Id = 'Id' in params ? params.Id : null;
this.Name = 'Name' in params ? params.Name : null;
this.BindDomains = 'BindDomains' in params ? params.BindDomains : null;
this.CertSource = 'CertSource' in params ? params.CertSource : null;
this.CertId = 'CertId' in params ? params.CertId : null;
}
}
/**
* Errors
* @class
*/
class Error extends AbstractModel {
constructor(){
super();
/**
* The error code.
Note: This field may return null, indicating that no valid values can be obtained.
* @type {string || null}
*/
this.Code = null;
/**
* The error message.
Note: This field may return null, indicating that no valid values can be obtained.
* @type {string || null}
*/
this.Message = null;
}
/**
* @private
*/
deserialize(params) {
if (!params) {
return;
}
this.Code = 'Code' in params ? params.Code : null;
this.Message = 'Message' in params ? params.Message : null;
}
}
/**
* ModifyCSR request structure.
* @class
*/
class ModifyCSRRequest extends AbstractModel {
constructor(){
super();
/**
* The CSR ID.
* @type {number || null}
*/
this.CSRId = null;
/**
* Whether to generate the CSR content. Once the CSR content is generated, the CSR record cannot be modified.
* @type {boolean || null}
*/
this.Generate = null;
/**
* The domain.
* @type {string || null}
*/
this.Domain = null;
/**
* The organization name.
* @type {string || null}
*/
this.Organization = null;
/**
* The department.
* @type {string || null}
*/
this.Department = null;
/**
* The email address.
* @type {string || null}
*/
this.Email = null;
/**
* The province.
* @type {string || null}
*/
this.Province = null;
/**
* The city.
* @type {string || null}
*/
this.City = null;
/**
* The country or region.
* @type {string || null}
*/
this.Country = null;
/**
* The encryption algorithm. RSA and ECC are supported.
* @type {string || null}
*/
this.EncryptAlgo = null;
/**
* The key pair parameter. For RSA, only the 2048-bit and 4096-bit key pairs are supported. For ECC, only prime256v1 is supported.
* @type {string || null}
*/
this.KeyParameter = null;
/**
* The remarks.
* @type {string || null}
*/
this.Remark = null;
/**
* The password of the private key.
* @type {string || null}
*/
this.KeyPassword = null;
}
/**
* @private
*/
deserialize(params) {
if (!params) {
return;
}
this.CSRId = 'CSRId' in params ? params.CSRId : null;
this.Generate = 'Generate' in params ? params.Generate : null;
this.Domain = 'Domain' in params ? params.Domain : null;
this.Organization = 'Organization' in params ? params.Organization : null;
this.Department = 'Department' in params ? params.Department : null;
this.Email = 'Email' in params ? params.Email : null;
this.Province = 'Province' in params ? params.Province : null;
this.City = 'City' in params ? params.City : null;
this.Country = 'Country' in params ? params.Country : null;
this.EncryptAlgo = 'EncryptAlgo' in params ? params.EncryptAlgo : null;
this.KeyParameter = 'KeyParameter' in params ? params.KeyParameter : null;
this.Remark = 'Remark' in params ? params.Remark : null;
this.KeyPassword = 'KeyPassword' in params ? params.KeyPassword : null;
}
}
/**
* TCB access instances
* @class
*/
class TCBAccessInstance extends AbstractModel {
constructor(){
super();
/**
* The domain.
Note: This field may return null, indicating that no valid values can be obtained.
* @type {string || null}
*/
this.Domain = null;
/**
* The status.
Note: This field may return null, indicating that no valid values can be obtained.
* @type {number || null}
*/
this.Status = null;
/**
* The unified domain status.
Note: This field may return null, indicating that no valid values can be obtained.
* @type {number || null}
*/
this.UnionStatus = null;
/**
* Whether the domain is preempted. A preempted domain is one that is already associated with another environment. It must be disassociated or re-associated first.
Note: This field may return null, indicating that no valid values can be obtained.
* @type {boolean || null}
*/
this.IsPreempted = null;
/**
* Whether the domain is added to the ICP blocklist. Valid values: `0` for no and `1` for yes.
Note: This field may return null, indicating that no valid values can be obtained.
* @type {number || null}
*/
this.ICPStatus = null;
/**
* The ID of the associated certificate.
Note: This field may return null, indicating that no valid values can be obtained.
* @type {string || null}
*/
this.OldCertificateId = null;
}
/**
* @private
*/
deserialize(params) {
if (!params) {
return;
}
this.Domain = 'Domain' in params ? params.Domain : null;
this.Status = 'Status' in params ? params.Status : null;
this.UnionStatus = 'UnionStatus' in params ? params.UnionStatus : null;
this.IsPreempted = 'IsPreempted' in params ? params.IsPreempted : null;
this.ICPStatus = 'ICPStatus' in params ? params.ICPStatus : null;
this.OldCertificateId = 'OldCertificateId' in params ? params.OldCertificateId : null;
}
}
/**
* CancelCertificateOrder request structure.
* @class
*/
class CancelCertificateOrderRequest extends AbstractModel {
constructor(){
super();
/**
* Certificate ID
* @type {string || null}
*/
this.CertificateId = null;
}
/**
* @private
*/
deserialize(params) {
if (!params) {
return;
}
this.CertificateId = 'CertificateId' in params ? params.CertificateId : null;
}
}
/**
* ModifyCertificateProject response structure.
* @class
*/
class ModifyCertificateProjectResponse extends AbstractModel {
constructor(){
super();
/**
* List of certificates whose projects were modified successfully
Note: this field may return null, indicating that no valid values can be obtained.
* @type {Array.<string> || null}
*/
this.SuccessCertificates = null;
/**
* List of certificates whose projects failed to be modified
Note: this field may return null, indicating that no valid values can be obtained.
* @type {Array.<string> || null}
*/
this.FailCertificates = null;
/**
* The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.
* @type {string || null}
*/
this.RequestId = null;
}
/**
* @private
*/
deserialize(params) {
if (!params) {
return;
}
this.SuccessCertificates = 'SuccessCertificates' in params ? params.SuccessCertificates : null;
this.FailCertificates = 'FailCertificates' in params ? params.FailCertificates : null;
this.RequestId = 'RequestId' in params ? params.RequestId : null;
}
}
/**
* Content of the `Certificates` parameter returned by `DescribeCertificates`
* @class
*/
class Certificates extends AbstractModel {
constructor(){
super();
/**
* User uin.
* @type {string || null}
*/
this.OwnerUin = null;
/**
* Project id.
* @type {string || null}
*/
this.ProjectId = null;
/**
* Certificate source:.
trustasia.
upload.
wosign.
sheca.
* @type {string || null}
*/
this.From = null;
/**
* Certificate package type:.
Null: user uploads a certificate (without package type),.
2: trustasia tls rsa ca,.
3: securesite enhanced enterprise edition (ev pro),.
4: securesite enhanced (ev).
5: securesite enterprise professional edition (ov pro).
6: securesite enterprise (ov).
7: securesite enterprise (ov) wildcard.
8: geotrust enhanced (ev).
9: geotrust enterprise (ov) cert.
10: geotrust enterprise (ov) wildcard cert.
11: trustasia domain name-based multiple domain names ssl certificate.
12: trustasia domain name-based (dv) wildcard cert.
13: trustasia enterprise wildcard (ov) ssl certificate (d3).
14: trustasia enterprise (ov) ssl certificate (d3).
15: trustasia enterprise multiple domain names (ov) ssl certificate (d3).
16: trustasia enhanced (ev) ssl certificate (d3).
17: trustasia enhanced multiple domain names (ev) ssl certificate (d3).
18: globalsign enterprise (ov) ssl certificate.
19: globalsign enterprise wildcard (ov) ssl certificate.
20: globalsign enhanced (ev) ssl certificate.
21: trustasia enterprise wildcard multiple domain names (ov) ssl certificate (d3).
22: globalsign enterprise multiple domain names (ov) ssl certificate.
23: globalsign enterprise wildcard multiple domain names (ov) ssl certificate.
24: globalsign enhanced multiple domain name (ev) ssl certificate.
25: wotrus domain name cert.
26: wotrus domain name multiple domain name cert.
27: wotrus domain name wildcard cert.
28: wotrus enterprise cert.
29: wotrus enterprise multi - domain name certificate.
30: wotrus enterprise wildcard certificate.
31: wotrus enhanced certificate.
32: wotrus enhanced multi - domain name certificate.
33: wotrus - national cryptography domain - type certificate.
34: wotrus-national cryptography domain certificate (multiple domain names).
35: wotrus-national cryptography domain certificate (wildcard).
37: wotrus-national cryptography enterprise certificate.
38: wotrus-national cryptography enterprise certificate (multiple domain names).
39: wotrus-national cryptography enterprise certificate (wildcard).
40: wotrus - enhanced national cryptography certificate.
41: wotrus - enhanced national cryptography certificate (multiple domain names).
42: trustasia - domain name type certificate (wildcard multiple domain names).
43: DNSPod - enterprise (ov) ssl certificate.
44: DNSPod - enterprise (ov) wildcard ssl certificate.
45: DNSPod - enterprise (ov) multiple domain names ssl certificate.
46: DNSPod - enhanced (ev) ssl certificate.
47: DNSPod - enhanced (ev) multiple domain names ssl certificate.
48: DNSPod - domain name-based (dv) ssl certificate.
49: DNSPod - domain name-based (dv) wildcard ssl certificate.
50: DNSPod - domain name-based (dv) multiple domain names ssl certificate.
51: DNSPod (national cryptography) - enterprise (ov) ssl certificate.
52: DNSPod (national cryptography) - enterprise (ov) wildcard ssl certificate.
53: DNSPod (national cryptography) - enterprise (ov) multiple domain names ssl certificate.
54: DNSPod (national cryptography) - domain name-based (dv) ssl certificate.
55: DNSPod (national cryptography) - domain name-based (dv) wildcard ssl certificate.
56: DNSPod (national cryptography) - domain name-based (dv) multiple domain names ssl certificate.
57: securesite enterprise professional edition multiple domain names (ov pro).
58: securesite enterprise multiple domain names (ov).
59: securesite enhanced professional edition multiple domain names (ev pro).
60: securesite enhanced multiple domain names (ev).
61: geotrust enhanced multiple domain names (ev).
75: securesite enterprise (ov).
76: securesite enterprise (ov) wildcard.
77: securesite enhanced (ev).
78: geotrust enterprise (ov).
79: geotrust enterprise wildcard (ov).
80: geotrust enhanced (ev).
81: globalsign enterprise (ov) ssl certificate.
82: globalsign enterprise wildcard (ov) ssl certificate.
83: trustasia c1 dv free.
85: globalsign enhanced (ev) ssl certificate.
88: globalsign enterprise wildcard multiple domain names (ov) ssl certificate.
89: globalsign enterprise multiple domain names (ov) ssl certificate.
90: globalsign enhanced multiple domain names (ev) ssl certificate.
91: geotrust enhanced multiple domain names (ev).
92: securesite enterprise pro multiple domain names (ov pro).
93: securesite enterprise multiple domain names (ov).
94: securesite enhanced pro multiple domain names (ev pro).
95: securesite enhanced multiple domain names (ev).
96: securesite ev pro.
97: securesite enterprise professional edition (ov pro).
98: cfca enterprise (ov) ssl certificate.
99: cfca enterprise ov ssl certificate for multiple domain names.
100: cfca ov wildcard ssl certificate.
101: cfca enhanced (ev) ssl certificate.
* @type {string || null}
*/
this.PackageType = null;
/**
* Certificate type. ca = client certificate; svr = server certificate.
* @type {string || null}
*/
this.CertificateType = null;
/**
* Certificate product name.
* @type {string || null}
*/
this.ProductZhName = null;
/**
* Primary domain name.
* @type {string || null}
*/
this.Domain = null;
/**
* Remark name.
* @type {string || null}
*/
this.Alias = null;
/**
* Certificate status: 0 = under review, 1 = approved, 2 = review failed, 3 = expired, 4 = dns record added automatically, 5 = enterprise certificate, pending documentation submission, 6 = order cancellation in progress, 7 = canceled, 8 = documents submitted, pending upload of confirmation letter, 9 = certificate revocation in progress, 10 = revoked, 11 = reissue in progress, 12 = pending upload of revocation confirmation letter, 13 = free certificate pending documentation submission, 14 = certificate refunded, 15 = certificate migration in progress.
* @type {number || null}
*/
this.Status = null;
/**
* Certificate extended information.
* @type {CertificateExtra || null}
*/
this.CertificateExtra = null;
/**
* Vulnerability scanning status: INACTIVE = not enabled, ACTIVE = enabled.
* @type {string || null}
*/
this.VulnerabilityStatus = null;
/**
* Status information.
* @type {string || null}
*/
this.StatusMsg = null;
/**
* Validation type: DNS_AUTO = automatic dns validation, DNS = manual dns validation, FILE = file verification, DNS_PROXY = dns proxy validation, FILE_PROXY = file proxy verification.
* @type {string || null}
*/
this.VerifyType = null;
/**
* Certificate validation time.
* @type {string || null}
*/
this.CertBeginTime = null;
/**
* Certificate expiration time.
* @type {string || null}
*/
this.CertEndTime = null;
/**
* Certificate validity period (month).
* @type {string || null}
*/
this.ValidityPeriod = null;
/**
* Creation time.
* @type {string || null}
*/
this.InsertTime = null;
/**
* Certificate id.
* @type {string || null}
*/
this.CertificateId = null;
/**
* Multiple domain names contained in the certificate (including the primary domain name).
* @type {Array.<string> || null}
*/
this.SubjectAltName = null;
/**
* Certificate type name.
* @type {string || null}
*/
this.PackageTypeName = null;
/**
* Status name.
* @type {string || null}
*/
this.StatusName = null;
/**
* Specifies whether the customer is a vip customer. true indicates yes and false indicates no.
* @type {boolean || null}
*/
this.IsVip = null;
/**
* Specifies whether it is a dv version certificate. true indicates yes and false indicates no.
* @type {boolean || null}
*/
this.IsDv = null;
/**
* Specifies whether it is a wildcard domain name certificate. true indicates yes and false indicates no.
* @type {boolean || null}
*/
this.IsWildcard = null;
/**
* Whether the vulnerability scanning feature is enabled.
* @type {boolean || null}
*/
this.IsVulnerability = null;
/**
* Whether it is renewable.
* @type {boolean || null}
*/
this.RenewAble = null;
/**
* Project information.
* @type {ProjectInfo || null}
*/
this.ProjectInfo = null;
/**
* Associated cloud resources are temporarily unavailable.
* @type {Array.<string> || null}
*/
this.BoundResource = null;
/**
* Whether it can be deployed.
* @type {boolean || null}
*/
this.Deployable = null;
/**
* Tag list.
* @type {Array.<Tags> || null}
*/
this.Tags = null;
/**
* Whether expiration notice has been ignored.
* @type {boolean || null}
*/
this.IsIgnore = null;
/**
* Whether it is a China SM certificate.
* @type {boolean || null}
*/
this.IsSM = null;
/**
* Certificate algorithm.
* @type {string || null}
*/
this.EncryptAlgorithm = null;
/**
* Encryption algorithm for upload ca certificate.
* @type {Array.<string> || null}
*/
this.CAEncryptAlgorithms = null;
/**
* Expiration time for upload ca certificate.
* @type {Array.<string> || null}
*/
this.CAEndTimes = null;
/**
* Common name of the upload ca certificate.
* @type {Array.<string> || null}
*/
this.CACommonNames = null;
/**
* Certificate prereview information.
* @type {PreAuditInfo || null}
*/
this.PreAuditInfo = null;
/**
* Whether to auto-renew.
* @type {number || null}
*/
this.AutoRenewFlag = null;
/**
* Hosting status: 0, hosting; 5, resource replacement; 10, hosting completed; -1, not hosted.
* @type {number || null}
*/
this.HostingStatus = null;
/**
* Hosting completion time.
* @type {string || null}
*/
this.HostingCompleteTime = null;
/**
* Manage the new certificate id.
* @type {string || null}
*/
this.HostingRenewCertId = null;
/**
* Existing renewal certificate id.
* @type {string || null}
*/
this.HasRenewOrder = null;
/**
* Indicates whether the original certificate is deleted during reissue.
* @type {boolean || null}
*/
this.ReplaceOriCertIsDelete = null;
/**
* Indicates whether it is about to expire. a certificate is about to expire if it will expire within 30 days.
* @type {boolean || null}
*/
this.IsExpiring = null;
/**
* Add validation expiration date for DV certificate
* @type {string || null}
*/
this.DVAuthDeadline = null;
/**
* Domain verification passed time.
* @type {string || null}
*/
this.ValidationPassedTime = null;
/**
* Multiple domain names associated with the certificate.
* @type {Array.<string> || null}
*/
this.CertSANs = null;
/**
* Domain verification rejection information.
* @type {string || null}
*/
this.AwaitingValidationMsg = null;
/**
* Whether to allow downloading.
* @type {boolean || null}
*/
this.AllowDownload = null;
/**
* Whether all certificate domain names are managed and resolved by dnspod.
* @type {boolean || null}
*/
this.IsDNSPODResolve = null;
/**
* Whether the certificate is purchased with benefit points.
* @type {boolean || null}
*/
this.IsPackage = null;
/**
* Whether there is a private key password.
* @type {boolean || null}
*/
this.KeyPasswordCustomFlag = null;
/**
* Types of web servers supported for download: nginx, apache, iis, tomcat, jks, root, other.
* @type {SupportDownloadType || null}
*/
this.SupportDownloadType = null;
/**
* Certificate revocation completion time.
* @type {string || null}
*/
this.CertRevokedTime = null;
/**
* Hosted resource type list.
* @type {Array.<string> || null}
*/
this.HostingResourceTypes = null;
/**
* Managed configuration information.
* @type {HostingConfig || null}
*/
this.HostingConfig = null;
}
/**
* @private
*/
deserialize(params) {
if (!params) {
return;
}
this.OwnerUin = 'OwnerUin' in params ? params.OwnerUin : null;
this.ProjectId = 'ProjectId' in params ? params.ProjectId : null;
this.From = 'From' in params ? params.From : null;
this.PackageType = 'PackageType' in params ? params.PackageType : null;
this.CertificateType = 'CertificateType' in params ? params.CertificateType : null;
this.ProductZhName = 'ProductZhName' in params ? params.ProductZhName : null;
this.Domain = 'Domain' in params ? params.Domain : null;
this.Alias = 'Alias' in params ? params.Alias : null;
this.Status = 'Status' in params ? params.Status : null;
if (params.CertificateExtra) {
let obj = new CertificateExtra();
obj.deserialize(params.CertificateExtra)
this.CertificateExtra = obj;
}
this.VulnerabilityStatus = 'VulnerabilityStatus' in params ? params.VulnerabilityStatus : null;
this.StatusMsg = 'StatusMsg' in params ? params.StatusMsg : null;
this.VerifyType = 'VerifyType' in params ? params.VerifyType : null;
this.CertBeginTime = 'CertBeginTime' in params ? params.CertBeginTime : null;
this.CertEndTime = 'CertEndTime' in params ? params.CertEndTime : null;
this.ValidityPeriod = 'ValidityPeriod' in params ? params.ValidityPeriod : null;
this.InsertTime = 'InsertTime' in params ? params.InsertTime : null;
this.CertificateId = 'CertificateId' in params ? params.CertificateId : null;
this.SubjectAltName = 'SubjectAltName' in params ? params.SubjectAltName : null;
this.PackageTypeName = 'PackageTypeName' in params ? params.PackageTypeName : null;
this.StatusName = 'StatusName' in params ? params.StatusName : null;
this.IsVip = 'IsVip' in params ? params.IsVip : null;
this.IsDv = 'IsDv' in params ? params.IsDv : null;
this.IsWildcard = 'IsWildcard' in params ? params.IsWildcard : null;
this.IsVulnerability = 'IsVulnerability' in params ? params.IsVulnerability : null;
this.RenewAble = 'RenewAble' in params ? params.RenewAble : null;
if (params.ProjectInfo) {
let obj = new ProjectInfo();
obj.deserialize(params.ProjectInfo)
this.ProjectInfo = obj;
}
this.BoundResource = 'BoundResource' in params ? params.BoundResource : null;
this.Deployable = 'Deployable' in params ? params.Deployable : null;
if (params.Tags) {
this.Tags = new Array();
for (let z in params.Tags) {
let obj = new Tags();
obj.deserialize(params.Tags[z]);
this.Tags.push(obj);
}
}
this.IsIgnore = 'IsIgnore' in params ? params.IsIgnore : null;
this.IsSM = 'IsSM' in params ? params.IsSM : null;
this.EncryptAlgorithm = 'EncryptAlgorithm' in params ? params.EncryptAlgorithm : null;
this.CAEncryptAlgorithms = 'CAEncryptAlgorithms' in params ? params.CAEncryptAlgorithms : null;
this.CAEndTimes = 'CAEndTimes' in params ? params.CAEndTimes : null;
this.CACommonNames = 'CACommonNames' in params ? params.CACommonNames : null;
if (params.PreAuditInfo) {
let obj = new PreAuditInfo();
obj.deserialize(params.PreAuditInfo)
this.PreAuditInfo = obj;
}
this.AutoRenewFlag = 'AutoRenewFlag' in params ? params.AutoRenewFlag : null;
this.HostingStatus = 'HostingStatus' in params ? params.HostingStatus : null;
this.HostingCompleteTime = 'HostingCompleteTime' in params ? params.HostingCompleteTime : null;
this.HostingRenewCertId = 'HostingRenewCertId' in params ? params.HostingRenewCertId : null;
this.HasRenewOrder = 'HasRenewOrder' in params ? params.HasRenewOrder : null;
this.ReplaceOriCertIsDelete = 'ReplaceOriCertIsDelete' in params ? params.ReplaceOriCertIsDelete : null;
this.IsExpiring = 'IsExpiring' in params ? params.IsExpiring : null;
this.DVAuthDeadline = 'DVAuthDeadline' in params ? params.DVAuthDeadline : null;
this.ValidationPassedTime = 'ValidationPassedTime' in params ? params.ValidationPassedTime : null;
this.CertSANs = 'CertSANs' in params ? params.CertSANs : null;
this.AwaitingValidationMsg = 'AwaitingValidationMsg' in params ? params.AwaitingValidationMsg : null;
this.AllowDownload = 'AllowDownload' in params ? params.AllowDownload : null;
this.IsDNSPODResolve = 'IsDNSPODResolve' in params ? params.IsDNSPODResolve : null;
this.IsPackage = 'IsPackage' in params ? params.IsPackage : null;
this.KeyPasswordCustomFlag = 'KeyPasswordCustomFlag' in params ? params.KeyPasswordCustomFlag : null;
if (params.SupportDownloadType) {
let obj = new SupportDownloadType();
obj.deserialize(params.SupportDownloadType)
this.SupportDownloadType = obj;
}
this.CertRevokedTime = 'CertRevokedTime' in params ? params.CertRevokedTime : null;
this.HostingResourceTypes = 'HostingResourceTypes' in params ? params.HostingResourceTypes : null;
if (params.HostingConfig) {
let obj = new HostingConfig();
obj.deserialize(params.HostingConfig)
this.HostingConfig = obj;
}
}
}
/**
* Content of the `CertificateExtra` parameter. `CertificateExtra` is an element of `Certificates` array which is returned by `DescribeCertificates`.
* @class
*/
class CertificateExtra extends AbstractModel {
constructor(){
super();
/**
* Quantity of configurable domain names for the certificate.
* @type {string || null}
*/
this.DomainNumber = null;
/**
* Renew the original certificate id.
Note: this field may return null, indicating that no valid values can be obtained.
* @type {string || null}
*/
this.OriginCertificateId = null;
/**
* Original ID of the new certificate
Note: this field may return null, indicating that no valid values can be obtained.
* @type {string || null}
*/
this.ReplacedBy = null;
/**
* Reissue certificate id.
Note: this field may return null, indicating that no valid values can be obtained.
* @type {string || null}
*/
this.ReplacedFor = null;
/**
* Renewal certificate id.
Note: this field may return null, indicating that no valid values can be obtained.
* @type {string || null}
*/
this.RenewOrder = null;
/**
* Whether it is a China SM certificate.
* @type {number || null}
*/
this.SMCert = null;
/**
* Company type, valid values: 1 (individual); 2 (company).
* @type {number || null}
*/
this.CompanyType = null;
}
/**
* @private
*/
deserialize(params) {
if (!params) {
return;
}
this.DomainNumber = 'DomainNumber' in params ? params.DomainNumber : null;
this.OriginCertificateId = 'OriginCertificateId' in params ? params.OriginCertificateId : null;
this.ReplacedBy = 'ReplacedBy' in params ? params.ReplacedBy : null;
this.ReplacedFor = 'ReplacedFor' in params ? params.ReplacedFor : null;
this.RenewOrder = 'RenewOrder' in params ? params.RenewOrder : null;
this.SMCert = 'SMCert' in params ? params.SMCert : null;
this.CompanyType = 'CompanyType' in params ? params.CompanyType : null;
}
}
/**
* Details of the EDGEONE instances - data structure of an async task for querying associated cloud resources
* @class
*/
class TeoInstanceList extends AbstractModel {
constructor(){
super();
/**
* The list of EDGEONE instances.
Note: This field may return null, indicating that no valid values can be obtained.
* @type {Array.<TeoInstanceDetail> || null}
*/
this.InstanceList = null;
/**
* The total number of EDGEONE instances.
* @type {number || null}
*/
this.TotalCount = null;
/**
* Whether to query exceptions.
Note: this field may return null, indicating that no valid values can be obtained.
* @type {string || null}
*/
this.Error = null;
}
/**
* @private
*/
deserialize(params) {
if (!params) {
return;
}
if (params.InstanceList) {
this.InstanceList = new Array();
for (let z in params.InstanceList) {
let obj = new TeoInstanceDetail();
obj.deserialize(params.InstanceList[z]);
this.InstanceList.push(obj);
}
}
this.TotalCount = 'TotalCount' in params ? params.TotalCount : null;
this.Error = 'Error' in params ? params.Error : null;
}
}
/**
* Root certificate
* @class
*/
class RootCertificates extends AbstractModel {
constructor(){
super();
/**
* Chinese SM signature certificate
Note: This field may return null, indicating that no valid values can be obtained.
* @type {string || null}
*/
this.Sign = null;
/**
* Chinese SM encryption certificate
Note: This field may return null, indicating that no valid values can be obtained.
* @type {string || null}
*/
this.Encrypt = null;
/**
* Standard certificate
Note: This field may return null, indicating that no valid values can be obtained.
* @type {string || null}
*/
this.Standard = null;
}
/**
* @private
*/
deserialize(params) {
if (!params) {
return;
}
this.Sign = 'Sign' in params ? params.Sign : null;
this.Encrypt = 'Encrypt' in params ? params.Encrypt : null;
this.Standard = 'Standard' in params ? params.Standard : null;
}
}
/**
* Details of a CDN instance
* @class
*/
class CdnInstanceDetail extends AbstractModel {
constructor(){
super();
/**
* The domain.
* @type {string || null}
*/
this.Domain = null;
/**
* The ID of the deployed certificate.
* @type {string || null}
*/
this.CertId = null;
/**
* Domain name status: rejected - the domain name failed the review or its registration has expired/been canceled; processing - deploying; online - started; offline - closed.
* @type {string || null}
*/
this.Status = null;
/**
* Domain billing status, where on indicates enable and off indicates disable.
* @type {string || null}
*/
this.HttpsBillingSwitch = null;
}
/**
* @private
*/
deserialize(params) {
if (!params) {
return;
}
this.Domain = 'Domain' in params ? params.Domain : null;
this.CertId = 'CertId' in params ? params.CertId : null;
this.Status = 'Status' in params ? params.Status : null;
this.HttpsBillingSwitch = 'HttpsBillingSwitch' in params ? params.HttpsBillingSwitch : null;
}
}
/**
* DescribeCertificateDetail request structure.
* @class
*/
class DescribeCertificateDetailRequest extends AbstractModel {
constructor(){
super();
/**
* Certificate ID
* @type {string || null}
*/
this.CertificateId = null;
}
/**
* @private
*/
deserialize(params) {
if (!params) {
return;
}
this.CertificateId = 'CertificateId' in params ? params.CertificateId : null;
}
}
/**
* Details of a TKE namespace
* @class
*/
class TkeNameSpaceDetail extends AbstractModel {
constructor(){
super();
/**
* The namespace name.
* @type {string || null}
*/
this.Name = null;
/**
* The secret list.
* @type {Array.<TkeSecretDetail> || null}
*/
this.SecretList = null;
}
/**
* @private
*/
deserialize(params) {
if (!params) {
return;
}
this.Name = 'Name' in params ? params.Name : null;
if (params.SecretList) {
this.SecretList = new Array();
for (let z in params.SecretList) {
let obj = new TkeSecretDetail();
obj.deserialize(params.SecretList[z]);
this.SecretList.push(obj);
}
}
}
}
/**
* CreateCertificateBindResourceSyncTask response structure.
* @class
*/
class CreateCertificateBindResourceSyncTaskResponse extends AbstractModel {
constructor(){
super();
/**
* The IDs of async tasks for querying cloud resources associated with a certificate.
* @type {Array.<CertTaskId> || null}
*/
this.CertTaskIds = null;
/**
* The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.
* @type {string || null}
*/
this.RequestId = null;
}
/**
* @private
*/
deserialize(params) {
if (!params) {
return;
}
if (params.CertTaskIds) {
this.CertTaskIds = new Array();
for (let z in params.CertTaskIds) {
let obj = new CertTaskId();
obj.deserialize(params.CertTaskIds[z]);
this.CertTaskIds.push(obj);
}
}
this.RequestId = 'RequestId' in params ? params.RequestId : null;
}
}
/**
* Details of TCB service instances subject to static hosting
* @class
*/
class TCBHostInstance extends AbstractModel {
constructor(){
super();
/**
* The domain.
Note: This field may return null, indicating that no valid values can be obtained.
* @type {string || null}
*/
this.Domain = null;
/**
* The status.
Note: This field may return null, indicating that no valid values can be obtained.
* @type {string || null}
*/
this.Status = null;
/**
* The resolution status.
Note: This field may return null, indicating that no valid values can be obtained.
* @type {string || null}
*/
this.DNSStatus = null;
/**
* The ID of the associated certificate.
Note: This field may return null, indicating that no valid values can be obtained.
* @type {string || null}
*/
this.OldCertificateId = null;
}
/**
* @private
*/
deserialize(params) {
if (!params) {
return;
}
this.Domain = 'Domain' in params ? params.Domain : null;
this.Status = 'Status' in params ? params.Status : null;
this.DNSStatus = 'DNSStatus' in params ? params.DNSStatus : null;
this.OldCertificateId = 'OldCertificateId' in params ? params.OldCertificateId : null;
}
}
/**
* Details of a CLB instance listener
* @class
*/
class ClbListener extends AbstractModel {
constructor(){
super();
/**
* The listener ID.
* @type {string || null}
*/
this.ListenerId = null;
/**
* The listener name.
* @type {string || null}
*/
this.ListenerName = null;
/**
* Whether to enable SNI. Valid values: `1` (enable) and `0` (disable).
* @type {number || null}
*/
this.SniSwitch = null;
/**
* The listener protocol type. Valid values: `HTTPS` and `TCP_SSL`.
* @type {string || null}
*/
this.Protocol = null;
/**
* Data of certificate bound to the listener.
* @type {Certificate || null}
*/
this.Certificate = null;
/**
* List of listener rules.
* @type {Array.<ClbListenerRule> || null}
*/
this.Rules = null;
/**
* Domain list not matched.
* @type {Array.<string> || null}
*/
this.NoMatchDomains = null;
}
/**
* @private
*/
deserialize(params) {
if (!params) {
return;
}
this.ListenerId = 'ListenerId' in params ? params.ListenerId : null;
this.ListenerName = 'ListenerName' in params ? params.ListenerName : null;
this.SniSwitch = 'SniSwitch' in params ? params.SniSwitch : null;
this.Protocol = 'Protocol' in params ? params.Protocol : null;
if (params.Certificate) {
let obj = new Certificate();
obj.deserialize(params.Certificate)
this.Certificate = obj;
}
if (params.Rules) {
this.Rules = new Array();
for (let z in params.Rules) {
let obj = new ClbListenerRule();
obj.deserialize(params.Rules[z]);
this.Rules.push(obj);
}
}
this.NoMatchDomains = 'NoMatchDomains' in params ? params.NoMatchDomains : null;
}
}
/**
* COS instance details - asynchronous association of cloud resource data structure.
* @class
*/
class COSInstanceList extends AbstractModel {
constructor(){
super();
/**
* Region.
* @type {string || null}
*/
this.Region = null;
/**
* Instance details.
* @type {Array.<CosInstanceDetail> || null}
*/
this.InstanceList = null;
/**
* Total number under the region.
* @type {number || null}
*/
this.TotalCount = null;
/**
* Error message.
* @type {string || null}
*/
this.Error = null;
}
/**
* @private
*/
deserialize(params) {
if (!params) {
return;
}
this.Region = 'Region' in params ? params.Region : null;
if (params.InstanceList) {
this.InstanceList = new Array();
for (let z in params.InstanceList) {
let obj = new CosInstanceDetail();
obj.deserialize(params.InstanceList[z]);
this.InstanceList.push(obj);
}
}
this.TotalCount = 'TotalCount' in params ? params.TotalCount : null;
this.Error = 'Error' in params ? params.Error : null;
}
}
/**
* Content of the `DvAuths` parameter
* @class
*/
class DvAuths extends AbstractModel {
constructor(){
super();
/**
* Certificate domain name verification record key.
Note: this field may return null, indicating that no valid values can be obtained.
* @type {string || null}
*/
this.DvAuthKey = null;
/**
* Certificate domain name verification record value.
Note: this field may return null, indicating that no valid values can be obtained.
* @type {string || null}
*/
this.DvAuthValue = null;
/**
* Certificate domain name verification domain value.
Note: this field may return null, indicating that no valid values can be obtained.
* @type {string || null}
*/
this.DvAuthDomain = null;
/**
* Certificate domain name verification file path, used only for file and file_proxy.
Note: this field may return null, indicating that no valid values can be obtained.
* @type {string || null}
*/
this.DvAuthPath = null;
/**
* Certificate domain name verification subdomain.
Note: this field may return null, indicating that no valid values can be obtained.
* @type {string || null}
*/
this.DvAuthSubDomain = null;
/**
* Certificate domain verification type, valid values:.
TXT: add txt record for dns domain verification.
FILE: domain file verification.
CNAME: add cname record for dns domain verification.
Note: this field may return null, indicating that no valid values can be obtained.
* @type {string || null}
*/
this.DvAuthVerifyType = null;
}
/**
* @private
*/
deserialize(params) {
if (!params) {
return;
}
this.DvAuthKey = 'DvAuthKey' in params ? params.DvAuthKey : null;
this.DvAuthValue = 'DvAuthValue' in params ? params.DvAuthValue : null;
this.DvAuthDomain = 'DvAuthDomain' in params ? params.DvAuthDomain : null;
this.DvAuthPath = 'DvAuthPath' in params ? params.DvAuthPath : null;
this.DvAuthSubDomain = 'DvAuthSubDomain' in params ? params.DvAuthSubDomain : null;
this.DvAuthVerifyType = 'DvAuthVerifyType' in params ? params.DvAuthVerifyType : null;
}
}
/**
* ModifyCertificateAlias request structure.
* @class
*/
class ModifyCertificateAliasRequest extends AbstractModel {
constructor(){
super();
/**
* Certificate ID
* @type {string || null}
*/
this.CertificateId = null;
/**
* Alias
* @type {string || null}
*/
this.Alias = null;
}
/**
* @private
*/
deserialize(params) {
if (!params) {
return;
}
this.CertificateId = 'CertificateId' in params ? params.CertificateId : null;
this.Alias = 'Alias' in params ? params.Alias : null;
}
}
/**
* BatchDeleteCSR request structure.
* @class
*/
class BatchDeleteCSRRequest extends AbstractModel {
constructor(){
super();
/**
* The IDs of the CSRs to be deleted, 100 IDs at most.
* @type {Array.<number> || null}
*/
this.CSRIds = null;
}
/**
* @private
*/
deserialize(params) {
if (!params) {
return;
}
this.CSRIds = 'CSRIds' in params ? params.CSRIds : null;
}
}
/**
* Content of the `ProjectInfo` parameter. `ProjectInfo` is an element of `Certificates` array which is returned by `DescribeCertificates`.
* @class
*/
class ProjectInfo extends AbstractModel {
constructor(){
super();
/**
* Project name
Note: this field may return null, indicating that no valid values can be obtained.
* @type {string || null}
*/
this.ProjectName = null;
/**
* UIN of the project creator
Note: this field may return null, indicating that no valid values can be obtained.
* @type {number || null}
*/
this.ProjectCreatorUin = null;
/**
* Project creation time
Note: this field may return null, indicating that no valid values can be obtained.
* @type {string || null}
*/
this.ProjectCreateTime = null;
/**
* Brief project information
Note: this field may return null, indicating that no valid values can be obtained.
* @type {string || null}
*/
this.ProjectResume = null;
/**
* User UIN
Note: this field may return null, indicating that no valid values can be obtained.
* @type {number || null}
*/
this.OwnerUin = null;
/**
* Project ID
Note: this field may return null, indicating that no valid values can be obtained.
* @type {string || null}
*/
this.ProjectId = null;
}
/**
* @private
*/
deserialize(params) {
if (!params) {
return;
}
this.ProjectName = 'ProjectName' in params ? params.ProjectName : null;
this.ProjectCreatorUin = 'ProjectCreatorUin' in param