// 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 tag N. * * Valid values of N: 1 to 20. You cannot specify empty strings as tag keys. The tag key can be up to 128 characters in length. The tag key cannot start with `aliyun` or `acs:` and cannot contain `http://` or `https://`. * * @example * operator */ key?: string; /** * @remarks * The value of tag N. * * 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 contain `http://` or `https://`. * * @example * alice */ 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 ID of resource N. * * Valid values of N: 1 to 50. If the ResourceType parameter is set to user, the resource ID is the ID of the RAM user. * * > You must specify only one of the following parameters: `ResourceId` and `ResourcePrincipalName`. */ resourceId?: string[]; /** * @remarks * The name of resource N. * * Valid values of N: 1 to 50. If the ResourceType parameter is set to user, the resource name is the name of the RAM user. * * > You must specify only one of the following parameters: `ResourceId` and `ResourcePrincipalName`. * * @example * TagResources */ resourcePrincipalName?: string[]; /** * @remarks * The type of the resource. Valid value: * * - user: a Resource Access Management (RAM) user. * * @example * user */ resourceType?: string; /** * @remarks * The key of tag N. * * Valid values of N: 1 to 20. You cannot specify empty strings as tag keys. The tag key can be up to 128 characters in length. The tag key cannot start with aliyun or acs: and cannot contain `http://` or `https://`. */ tag?: TagResourcesRequestTag[]; static names(): { [key: string]: string } { return { resourceId: 'ResourceId', resourcePrincipalName: 'ResourcePrincipalName', resourceType: 'ResourceType', tag: 'Tag', }; } static types(): { [key: string]: any } { return { resourceId: { 'type': 'array', 'itemType': 'string' }, resourcePrincipalName: { '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.resourcePrincipalName)) { $dara.Model.validateArray(this.resourcePrincipalName); } if(Array.isArray(this.tag)) { $dara.Model.validateArray(this.tag); } super.validate(); } constructor(map?: { [key: string]: any }) { super(map); } }