// This file is auto-generated, don't edit it import * as $dara from '@darabonba/typescript'; export class ListInstancesResponseBodyInstanceList extends $dara.Model { /** * @remarks * Indicates whether automatic managed renewal is enabled. Valid values: * - enable: enabled. * - disable: disabled. * * @example * enable */ autoReissue?: string; /** * @remarks * The CA brand. Valid values: WoSign, CFCA, DigiCert, GeoTrust, GlobalSign, vTrus, and Alibaba. * * @example * DigiCert */ brand?: string; /** * @remarks * The global certificate ID in the format of certificate ID + "-" + site region ID. This ID is commonly used across Alibaba Cloud services. * - For the China site: certificate ID + "-cn-hangzhou" * - For the China site: certificate ID + "-ap-southeast-1" * * For example, if the certificate ID is 123, the CertIdentifier for the China site is "123-cn-hangzhou", and the CertIdentifier for the International site is "123-ap-southeast-1". * * @example * 21795675-cn-hangzhou */ certIdentifier?: string; /** * @remarks * The domain name of the latest issued certificate. * * @example * abc.com,www.abc.com */ certificateDomain?: string; /** * @remarks * The certificate ID. * * @example * 18541349 */ certificateId?: number; /** * @remarks * The certificate name. * * @example * cert-13216408 */ certificateName?: string; /** * @remarks * The end time of the latest certificate. The value is a UNIX timestamp accurate to seconds. If no certificate has been issued, this field is empty. * * @example * 1801324800000 */ certificateNotAfter?: number; /** * @remarks * The start time of the latest certificate. The value is a UNIX timestamp accurate to seconds. If no certificate has been issued, this field is empty. * * @example * 1776988800000 */ certificateNotBefore?: number; /** * @remarks * The revocation time of the latest certificate. The value is a UNIX timestamp accurate to seconds. * * @example * 1801324800000 */ certificateRevokeTime?: number; /** * @remarks * The status of the certificate. Valid values: * - **issued**: Issued. * - **revoked**: Revoked. * - **willExpire**: About to expire. * - **expired**: Expired. * * @example * issued */ certificateStatus?: string; /** * @remarks * The type of the certificate. Valid values: DV, OV, and EV. * * @example * DV */ certificateType?: string; /** * @remarks * The domain name bound to the certificate. * * @example * test.com */ domain?: string; /** * @remarks * The number of exact-match domain names. * * @example * 1 */ fullDomainCount?: number; /** * @remarks * The expiration time of the instance. The value is a UNIX timestamp accurate to seconds. If no certificate has been issued, this field is empty. * * @example * 1801324800000 */ instanceEndTime?: number; /** * @remarks * The instance ID. * * @example * cas_dv-cn-123 */ instanceId?: string; /** * @remarks * The start time of the instance. The value is a UNIX timestamp accurate to seconds. If no certificate has been issued, this field is empty. * * @example * 1801324800000 */ instanceStartTime?: number; /** * @remarks * The instance type. Valid values: * - BUY: official certificate. * - TEST: test certificate. * * @example * BUY */ instanceType?: string; /** * @remarks * The certificate algorithm. Default value: RSA_2048. Valid values: * - **RSA_2048** * - **RSA_3072** * - **RSA_4096** * - **ECC_256** * - **SM2** * * @example * RSA_2048 */ keyAlgorithm?: string; /** * @remarks * The end time of the instance purchase. The value is a UNIX timestamp accurate to seconds. Used to determine the purchase duration of the instance. * * @example * 1801324800000 */ orderEndTime?: number; /** * @remarks * The start time of the instance purchase. The value is a UNIX timestamp accurate to seconds. Used to determine the refund time limit. * * @example * 1801324800000 */ orderStartTime?: number; /** * @remarks * The result returned by the CA during the last certificate operation. * * @example * pending */ pendingResult?: string; /** * @remarks * The resource group ID. * * @example * 123 */ resourceGroupId?: string; /** * @remarks * The purchased instance specification. * * @example * ss.dv.t */ spec?: string; /** * @remarks * The instance status. Valid values: * - **inactive**: Pending use. * - **pending**: Under review. The latest certificate is being reviewed. * - **willExpire**: About to expire. * - **expired**: Expired. * - **refund**: Refunded. * - **normal**: Normal. * - **closed**: Closed and unavailable. * * @example * inactive */ status?: string; /** * @remarks * The list of cloud services to which the latest certificate is deployed. */ usingProductList?: string[]; /** * @remarks * The number of wildcard domain names. * * @example * 0 */ wildcardDomainCount?: number; static names(): { [key: string]: string } { return { autoReissue: 'AutoReissue', brand: 'Brand', certIdentifier: 'CertIdentifier', certificateDomain: 'CertificateDomain', certificateId: 'CertificateId', certificateName: 'CertificateName', certificateNotAfter: 'CertificateNotAfter', certificateNotBefore: 'CertificateNotBefore', certificateRevokeTime: 'CertificateRevokeTime', certificateStatus: 'CertificateStatus', certificateType: 'CertificateType', domain: 'Domain', fullDomainCount: 'FullDomainCount', instanceEndTime: 'InstanceEndTime', instanceId: 'InstanceId', instanceStartTime: 'InstanceStartTime', instanceType: 'InstanceType', keyAlgorithm: 'KeyAlgorithm', orderEndTime: 'OrderEndTime', orderStartTime: 'OrderStartTime', pendingResult: 'PendingResult', resourceGroupId: 'ResourceGroupId', spec: 'Spec', status: 'Status', usingProductList: 'UsingProductList', wildcardDomainCount: 'WildcardDomainCount', }; } static types(): { [key: string]: any } { return { autoReissue: 'string', brand: 'string', certIdentifier: 'string', certificateDomain: 'string', certificateId: 'number', certificateName: 'string', certificateNotAfter: 'number', certificateNotBefore: 'number', certificateRevokeTime: 'number', certificateStatus: 'string', certificateType: 'string', domain: 'string', fullDomainCount: 'number', instanceEndTime: 'number', instanceId: 'string', instanceStartTime: 'number', instanceType: 'string', keyAlgorithm: 'string', orderEndTime: 'number', orderStartTime: 'number', pendingResult: 'string', resourceGroupId: 'string', spec: 'string', status: 'string', usingProductList: { 'type': 'array', 'itemType': 'string' }, wildcardDomainCount: 'number', }; } validate() { if(Array.isArray(this.usingProductList)) { $dara.Model.validateArray(this.usingProductList); } super.validate(); } constructor(map?: { [key: string]: any }) { super(map); } } export class ListInstancesResponseBody extends $dara.Model { /** * @remarks * The current page number in the paged query. * * @example * 1 */ currentPage?: number; /** * @remarks * The list of instances. */ instanceList?: ListInstancesResponseBodyInstanceList[]; /** * @remarks * The request ID. * * @example * 12345678-1234-1234-1234-123456789ABC */ requestId?: string; /** * @remarks * The number of records displayed per page. * * @example * 20 */ showSize?: number; /** * @remarks * The total number of instances. * * @example * 12 */ totalCount?: number; static names(): { [key: string]: string } { return { currentPage: 'CurrentPage', instanceList: 'InstanceList', requestId: 'RequestId', showSize: 'ShowSize', totalCount: 'TotalCount', }; } static types(): { [key: string]: any } { return { currentPage: 'number', instanceList: { 'type': 'array', 'itemType': ListInstancesResponseBodyInstanceList }, requestId: 'string', showSize: 'number', totalCount: 'number', }; } validate() { if(Array.isArray(this.instanceList)) { $dara.Model.validateArray(this.instanceList); } super.validate(); } constructor(map?: { [key: string]: any }) { super(map); } }