// This file is auto-generated, don't edit it import * as $dara from '@darabonba/typescript'; export class ImportSwaggerResponseBodyFailedApiImportSwaggerFailed extends $dara.Model { errorMsg?: string; httpMethod?: string; path?: string; static names(): { [key: string]: string } { return { errorMsg: 'ErrorMsg', httpMethod: 'HttpMethod', path: 'Path', }; } static types(): { [key: string]: any } { return { errorMsg: 'string', httpMethod: 'string', path: 'string', }; } validate() { super.validate(); } constructor(map?: { [key: string]: any }) { super(map); } } export class ImportSwaggerResponseBodyFailed extends $dara.Model { apiImportSwaggerFailed?: ImportSwaggerResponseBodyFailedApiImportSwaggerFailed[]; static names(): { [key: string]: string } { return { apiImportSwaggerFailed: 'ApiImportSwaggerFailed', }; } static types(): { [key: string]: any } { return { apiImportSwaggerFailed: { 'type': 'array', 'itemType': ImportSwaggerResponseBodyFailedApiImportSwaggerFailed }, }; } validate() { if(Array.isArray(this.apiImportSwaggerFailed)) { $dara.Model.validateArray(this.apiImportSwaggerFailed); } super.validate(); } constructor(map?: { [key: string]: any }) { super(map); } } export class ImportSwaggerResponseBodyModelFailedApiImportModelFailed extends $dara.Model { errorMsg?: string; groupId?: string; modelName?: string; static names(): { [key: string]: string } { return { errorMsg: 'ErrorMsg', groupId: 'GroupId', modelName: 'ModelName', }; } static types(): { [key: string]: any } { return { errorMsg: 'string', groupId: 'string', modelName: 'string', }; } validate() { super.validate(); } constructor(map?: { [key: string]: any }) { super(map); } } export class ImportSwaggerResponseBodyModelFailed extends $dara.Model { apiImportModelFailed?: ImportSwaggerResponseBodyModelFailedApiImportModelFailed[]; static names(): { [key: string]: string } { return { apiImportModelFailed: 'ApiImportModelFailed', }; } static types(): { [key: string]: any } { return { apiImportModelFailed: { 'type': 'array', 'itemType': ImportSwaggerResponseBodyModelFailedApiImportModelFailed }, }; } validate() { if(Array.isArray(this.apiImportModelFailed)) { $dara.Model.validateArray(this.apiImportModelFailed); } super.validate(); } constructor(map?: { [key: string]: any }) { super(map); } } export class ImportSwaggerResponseBodyModelSuccessApiImportModelSuccess extends $dara.Model { groupId?: string; modelName?: string; modelOperation?: string; modelUid?: string; static names(): { [key: string]: string } { return { groupId: 'GroupId', modelName: 'ModelName', modelOperation: 'ModelOperation', modelUid: 'ModelUid', }; } static types(): { [key: string]: any } { return { groupId: 'string', modelName: 'string', modelOperation: 'string', modelUid: 'string', }; } validate() { super.validate(); } constructor(map?: { [key: string]: any }) { super(map); } } export class ImportSwaggerResponseBodyModelSuccess extends $dara.Model { apiImportModelSuccess?: ImportSwaggerResponseBodyModelSuccessApiImportModelSuccess[]; static names(): { [key: string]: string } { return { apiImportModelSuccess: 'ApiImportModelSuccess', }; } static types(): { [key: string]: any } { return { apiImportModelSuccess: { 'type': 'array', 'itemType': ImportSwaggerResponseBodyModelSuccessApiImportModelSuccess }, }; } validate() { if(Array.isArray(this.apiImportModelSuccess)) { $dara.Model.validateArray(this.apiImportModelSuccess); } super.validate(); } constructor(map?: { [key: string]: any }) { super(map); } } export class ImportSwaggerResponseBodySuccessApiImportSwaggerSuccess extends $dara.Model { apiOperation?: string; apiUid?: string; httpMethod?: string; path?: string; static names(): { [key: string]: string } { return { apiOperation: 'ApiOperation', apiUid: 'ApiUid', httpMethod: 'HttpMethod', path: 'Path', }; } static types(): { [key: string]: any } { return { apiOperation: 'string', apiUid: 'string', httpMethod: 'string', path: 'string', }; } validate() { super.validate(); } constructor(map?: { [key: string]: any }) { super(map); } } export class ImportSwaggerResponseBodySuccess extends $dara.Model { apiImportSwaggerSuccess?: ImportSwaggerResponseBodySuccessApiImportSwaggerSuccess[]; static names(): { [key: string]: string } { return { apiImportSwaggerSuccess: 'ApiImportSwaggerSuccess', }; } static types(): { [key: string]: any } { return { apiImportSwaggerSuccess: { 'type': 'array', 'itemType': ImportSwaggerResponseBodySuccessApiImportSwaggerSuccess }, }; } validate() { if(Array.isArray(this.apiImportSwaggerSuccess)) { $dara.Model.validateArray(this.apiImportSwaggerSuccess); } super.validate(); } constructor(map?: { [key: string]: any }) { super(map); } } export class ImportSwaggerResponseBody extends $dara.Model { failed?: ImportSwaggerResponseBodyFailed; modelFailed?: ImportSwaggerResponseBodyModelFailed; modelSuccess?: ImportSwaggerResponseBodyModelSuccess; /** * @remarks * The ID of the request. * * @example * 647CEF05-404C-4125-B3D7-44792EB77392 */ requestId?: string; success?: ImportSwaggerResponseBodySuccess; static names(): { [key: string]: string } { return { failed: 'Failed', modelFailed: 'ModelFailed', modelSuccess: 'ModelSuccess', requestId: 'RequestId', success: 'Success', }; } static types(): { [key: string]: any } { return { failed: ImportSwaggerResponseBodyFailed, modelFailed: ImportSwaggerResponseBodyModelFailed, modelSuccess: ImportSwaggerResponseBodyModelSuccess, requestId: 'string', success: ImportSwaggerResponseBodySuccess, }; } validate() { if(this.failed && typeof (this.failed as any).validate === 'function') { (this.failed as any).validate(); } if(this.modelFailed && typeof (this.modelFailed as any).validate === 'function') { (this.modelFailed as any).validate(); } if(this.modelSuccess && typeof (this.modelSuccess as any).validate === 'function') { (this.modelSuccess as any).validate(); } if(this.success && typeof (this.success as any).validate === 'function') { (this.success as any).validate(); } super.validate(); } constructor(map?: { [key: string]: any }) { super(map); } }