// 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 region ID of the resource. * * This parameter is required. * * @example * cn-hangzhou */ regionId?: string; /** * @remarks * The list of resource IDs. You can specify up to 50 resource IDs. * * This parameter is required. */ resourceIds?: string[]; /** * @remarks * The resource type. * * CLUSTER: cluster. * * This parameter is required. * * @example * CLUSTER */ resourceType?: string; /** * @remarks * The tag key-value pairs of the resource. You can specify up to 20 tag key-value pairs. Note: * * - If you specify this parameter, the value cannot be an empty string and can contain up to 128 characters. * - The value cannot start with `aliyun` or `acs:`. * - The value cannot contain `http://` or `https://`. * * This parameter is required. */ tags?: Tag[]; static names(): { [key: string]: string } { return { regionId: 'region_id', resourceIds: 'resource_ids', resourceType: 'resource_type', tags: 'tags', }; } static types(): { [key: string]: any } { return { regionId: 'string', resourceIds: { 'type': 'array', 'itemType': 'string' }, resourceType: 'string', tags: { 'type': 'array', 'itemType': Tag }, }; } validate() { if(Array.isArray(this.resourceIds)) { $dara.Model.validateArray(this.resourceIds); } if(Array.isArray(this.tags)) { $dara.Model.validateArray(this.tags); } super.validate(); } constructor(map?: { [key: string]: any }) { super(map); } }