// This file is auto-generated, don't edit it import * as $dara from '@darabonba/typescript'; export class DetachKeyPairResponseBodyResultsResult extends $dara.Model { code?: string; instanceId?: string; message?: string; success?: string; static names(): { [key: string]: string } { return { code: 'Code', instanceId: 'InstanceId', message: 'Message', success: 'Success', }; } static types(): { [key: string]: any } { return { code: 'string', instanceId: 'string', message: 'string', success: 'string', }; } validate() { super.validate(); } constructor(map?: { [key: string]: any }) { super(map); } } export class DetachKeyPairResponseBodyResults extends $dara.Model { result?: DetachKeyPairResponseBodyResultsResult[]; static names(): { [key: string]: string } { return { result: 'Result', }; } static types(): { [key: string]: any } { return { result: { 'type': 'array', 'itemType': DetachKeyPairResponseBodyResultsResult }, }; } validate() { if(Array.isArray(this.result)) { $dara.Model.validateArray(this.result); } super.validate(); } constructor(map?: { [key: string]: any }) { super(map); } } export class DetachKeyPairResponseBody extends $dara.Model { /** * @remarks * The number of instances from which the SSH key pair failed to be unbound. * * @example * 0 */ failCount?: string; /** * @remarks * The name of the key pair. * * @example * testKeyPairName */ keyPairName?: string; /** * @remarks * The ID of the request. * * @example * 473469C7-AA6F-4DC5-B3DB-A3DC0DE3C83E */ requestId?: string; results?: DetachKeyPairResponseBodyResults; /** * @remarks * The total number of instances from which you want to unbind the SSH key pair. * * @example * 2 */ totalCount?: string; static names(): { [key: string]: string } { return { failCount: 'FailCount', keyPairName: 'KeyPairName', requestId: 'RequestId', results: 'Results', totalCount: 'TotalCount', }; } static types(): { [key: string]: any } { return { failCount: 'string', keyPairName: 'string', requestId: 'string', results: DetachKeyPairResponseBodyResults, totalCount: 'string', }; } validate() { if(this.results && typeof (this.results as any).validate === 'function') { (this.results as any).validate(); } super.validate(); } constructor(map?: { [key: string]: any }) { super(map); } }