// This file is auto-generated, don't edit it import * as $dara from '@darabonba/typescript'; export class TagResourcesRequestTag 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 TagResourcesRequest extends $dara.Model { /** * @remarks * The resource IDs. * * This parameter is required. * * @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. * * This parameter is required. * * @example * test */ 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); } }