// This file is auto-generated, don't edit it import * as $dara from '@darabonba/typescript'; export class QueryInstanceByTagRequestTag extends $dara.Model { /** * @remarks * The tag key. * * @example * ecs */ key?: string; /** * @remarks * The tag value. * * @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 QueryInstanceByTagRequest extends $dara.Model { /** * @remarks * The IDs of resources. */ resourceId?: string[]; /** * @remarks * The type of the resource. Specify the savings plan instance as the type of the resource. * * This parameter is required. * * @example * instance */ resourceType?: string; /** * @remarks * The tags. */ tag?: QueryInstanceByTagRequestTag[]; 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': QueryInstanceByTagRequestTag }, }; } 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); } }