// This file is auto-generated, don't edit it import * as $dara from '@darabonba/typescript'; export class ListTagResourcesRequestTag extends $dara.Model { /** * @remarks * The tag key. The tag key can be up to 128 characters in length and cannot start with `acs:` or `aliyun`. It cannot contain `http://` or `https://`. * * @example * env */ key?: string; /** * @remarks * The tag value. The tag value can be up to 128 characters in length and cannot start with `acs:` or `aliyun`. It cannot contain `http://` or `https://`. * * @example * product */ 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 ListTagResourcesRequest extends $dara.Model { /** * @remarks * The number of entries per page. Valid values: **1** to **100**. Default value: **20**. * * @example * 20 */ maxResults?: number; /** * @remarks * The pagination token that is used in the next request to retrieve a new page of results. Valid values: * * * You do not need to specify this parameter for the first request. * * You must specify the token that is obtained from the previous query as the value of **NextToken**. * * @example * FFmyTO70tTpLG6I3FmYAXGKPd**** */ nextToken?: string; /** * @remarks * The resource IDs. * * @example * acl-123 */ resourceId?: string[]; /** * @remarks * The type of the resource. Valid values: * * * **acl**: an access control list (ACL) * * **loadbalancer**: an Application Load Balancer (ALB) instance * * **securitypolicy**: a security policy * * **servergroup**: a server group * * This parameter is required. * * @example * loadbalancer */ resourceType?: string; /** * @remarks * The tags. * * @example * test */ tag?: ListTagResourcesRequestTag[]; static names(): { [key: string]: string } { return { maxResults: 'MaxResults', nextToken: 'NextToken', resourceId: 'ResourceId', resourceType: 'ResourceType', tag: 'Tag', }; } static types(): { [key: string]: any } { return { maxResults: 'number', nextToken: 'string', resourceId: { 'type': 'array', 'itemType': 'string' }, resourceType: 'string', tag: { 'type': 'array', 'itemType': ListTagResourcesRequestTag }, }; } 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); } }