// This file is auto-generated, don't edit it import * as $dara from '@darabonba/typescript'; /** */ export class AttachApiProductRequestApis extends $dara.Model { /** * @remarks * The API ID. * * This parameter is required. * * @example * 551877242a4b4f3a84a56b7c3570e4a7 */ apiId?: string; /** * @remarks * The environment. Valid values: * * * **RELEASE**: the production environment * * **PRE**: the staging environment * * **TEST**: the test environment * * This parameter is required. * * @example * RELEASE */ stageName?: string; static names(): { [key: string]: string } { return { apiId: 'ApiId', stageName: 'StageName', }; } static types(): { [key: string]: any } { return { apiId: 'string', stageName: 'string', }; } validate() { super.validate(); } constructor(map?: { [key: string]: any }) { super(map); } } export class AttachApiProductRequest extends $dara.Model { /** * @remarks * The ID of the API product. * * This parameter is required. * * @example * 117b7a64a8b3f064eaa4a47ac62aac5e */ apiProductId?: string; /** * @remarks * The APIs to be attached. * * This parameter is required. */ apis?: AttachApiProductRequestApis[]; securityToken?: string; static names(): { [key: string]: string } { return { apiProductId: 'ApiProductId', apis: 'Apis', securityToken: 'SecurityToken', }; } static types(): { [key: string]: any } { return { apiProductId: 'string', apis: { 'type': 'array', 'itemType': AttachApiProductRequestApis }, securityToken: 'string', }; } validate() { if(Array.isArray(this.apis)) { $dara.Model.validateArray(this.apis); } super.validate(); } constructor(map?: { [key: string]: any }) { super(map); } }