// This file is auto-generated, don't edit it import * as $dara from '@darabonba/typescript'; export class TagResourcesRequestTag extends $dara.Model { /** * @remarks * The key of the tag. You can create N tag keys at a time. Valid values of N: 1 to 20. The value of this parameter can be an empty string. * * This parameter is required. * * @example * tag1 */ key?: string; /** * @remarks * The value of the tag N. Valid values of N: 1 to 20. * * This parameter is required. * * @example * 001 */ value?: string; static names(): { [key: string]: string } { return { key: 'Key', value: 'Value', }; } static types(): { [key: string]: any } { return { key: 'string', value: 'string', }; } validate() { super.validate(); } constructor(map?: { [key: string]: any }) { super(map); } } export class TagResourcesRequest extends $dara.Model { /** * @remarks * The IDs of resources. * * This parameter is required. */ resourceId?: string[]; /** * @remarks * The type of the resource. Specify savings plan instance as the type of the resource. * * This parameter is required. * * @example * instance */ resourceType?: string; /** * @remarks * The tags. * * This parameter is required. */ tag?: TagResourcesRequestTag[]; 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': TagResourcesRequestTag }, }; } 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); } }