// 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 the tag. * * @example * Key1 */ key?: string; /** * @remarks * The value of the tag. * * @example * Test1 */ 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. You can specify a maximum of 50 resource IDs. * * This parameter is required. */ resourceId?: string[]; /** * @remarks * The type of the ARMS resources for which you want to modify tags. Valid values: * * * WEB: Browser Monitoring * * APPLICATION: Application Monitoring * * PROMETHEUS: Managed Service for Prometheus * * SYNTHETICTASK: Synthetic Monitoring * * ALERTRULE: Application Monitoring alert rule * * PROMETHEUSALERTRULE: Managed Service for Prometheus alert rule * * XTRACEAPP: Managed Service for OpenTelemetry * * This parameter is required. * * @example * PROMETHEUS */ resourceType?: string; /** * @remarks * The tags to add to the resource. You can specify a maximum of 20 tags. * * This parameter is required. */ 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); } }