// This file is auto-generated, don't edit it import * as $dara from '@darabonba/typescript'; import { Tag } from "./Tag"; export class TagResourcesRequest extends $dara.Model { /** * @remarks * The list of resource IDs. * * This parameter is required. */ resourceId?: string[]; /** * @remarks * The resource type. * * This parameter is required. * * @example * Service */ resourceType?: string; /** * @remarks * The labels. * * You can attach up to 20 labels. */ tag?: Tag[]; static names(): { [key: string]: string } { return { resourceId: 'resourceId', resourceType: 'resourceType', tag: 'tag', }; } static types(): { [key: string]: any } { return { resourceId: { 'type': 'array', 'itemType': 'string' }, resourceType: 'string', tag: { 'type': 'array', 'itemType': Tag }, }; } validate() { if(Array.isArray(this.resourceId)) { $dara.Model.validateArray(this.resourceId); } if(Array.isArray(this.tag)) { $dara.Model.validateArray(this.tag); } super.validate(); } constructor(map?: { [key: string]: any }) { super(map); } }