// This file is auto-generated, don't edit it import * as $dara from '@darabonba/typescript'; export class DescribeTagsRequestTag extends $dara.Model { /** * @remarks * The tag key of the resource. Valid values of N: 1 to 20. The tag key cannot be an empty string. The tag key can be up to 64 characters in length and cannot start with aliyun or acs:. The tag key cannot contain http:// or https://. * * @example * TestKey */ key?: string; /** * @remarks * The tag value of the resource. Valid values of N: 1 to 20. The tag value can be an empty string. The tag value can be up to 128 characters in length and cannot start with aliyun or acs:. The tag value cannot contain http:// or https://. * * @example * TestValue */ 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 DescribeTagsRequest extends $dara.Model { /** * @remarks * > This parameter is about to be deprecated. To ensure compatibility, use other parameters. * * @example * null */ category?: string; ownerId?: number; /** * @remarks * The page number of the tag list. * * Minimum value: 1. * * Default value: 1. * * @example * 1 */ pageNumber?: number; /** * @remarks * The number of entries per page for a paged query. * * Maximum value: 100. * * Default value: 50. * * @example * 50 */ pageSize?: number; /** * @remarks * The region ID. You can call [DescribeRegions](https://help.aliyun.com/document_detail/25609.html) to query the most recent region list. * * This parameter is required. * * @example * cn-hangzhou */ regionId?: string; /** * @remarks * The ID of the resource to which the tag is attached. For example, if the resource type (ResourceType) is instance, the resource ID is the instance ID. * * @example * s-946ntx4wr**** */ resourceId?: string; resourceOwnerAccount?: string; resourceOwnerId?: number; /** * @remarks * The resource type. Valid values: * * - instance: ECS instance. * - disk: cloud disk. * - snapshot: snapshot. * - image: image. * - securitygroup: security group. * - volume: storage volume. * - eni: network interface controller (NIC). * - ddh: dedicated host. * - keypair: SSH key pair. * - launchtemplate: launch template. * - reservedinstance: reserved instance. * - snapshotpolicy: automatic snapshot policy. * * All valid values are in lowercase. * * @example * snapshot */ resourceType?: string; /** * @remarks * The list of tags. */ tag?: DescribeTagsRequestTag[]; static names(): { [key: string]: string } { return { category: 'Category', ownerId: 'OwnerId', pageNumber: 'PageNumber', pageSize: 'PageSize', regionId: 'RegionId', resourceId: 'ResourceId', resourceOwnerAccount: 'ResourceOwnerAccount', resourceOwnerId: 'ResourceOwnerId', resourceType: 'ResourceType', tag: 'Tag', }; } static types(): { [key: string]: any } { return { category: 'string', ownerId: 'number', pageNumber: 'number', pageSize: 'number', regionId: 'string', resourceId: 'string', resourceOwnerAccount: 'string', resourceOwnerId: 'number', resourceType: 'string', tag: { 'type': 'array', 'itemType': DescribeTagsRequestTag }, }; } validate() { if(Array.isArray(this.tag)) { $dara.Model.validateArray(this.tag); } super.validate(); } constructor(map?: { [key: string]: any }) { super(map); } }