From cc59f18820841c2f02d27b77f2e535c2b78c5e2d Mon Sep 17 00:00:00 2001 From: SDKAuto Date: Fri, 23 Jul 2021 06:49:38 +0000 Subject: [PATCH] CodeGen from PR 15246 in Azure/azure-rest-api-specs Merge 15bc445b5769f86185abf1d2b3e08520eae94276 into 9e9017617ee84fd46b0be3fe6a431e13bde18bd2 --- sdk/monitor/arm-monitor/LICENSE.txt | 2 +- sdk/monitor/arm-monitor/README.md | 8 +- sdk/monitor/arm-monitor/package.json | 2 +- sdk/monitor/arm-monitor/rollup.config.js | 4 +- .../src/models/actionGroupsMappers.ts | 41 +- .../src/models/activityLogAlertsMappers.ts | 41 +- .../src/models/activityLogsMappers.ts | 6 +- .../src/models/alertRuleIncidentsMappers.ts | 6 +- .../src/models/alertRulesMappers.ts | 42 +- .../src/models/autoscaleSettingsMappers.ts | 41 +- .../src/models/baselinesMappers.ts | 6 +- .../models/dataCollectionEndpointsMappers.ts | 126 + .../dataCollectionRuleAssociationsMappers.ts | 125 + .../src/models/dataCollectionRulesMappers.ts | 126 + ...nosticSettingsCategoryOperationsMappers.ts | 41 +- .../diagnosticSettingsOperationsMappers.ts | 41 +- .../src/models/eventCategoriesMappers.ts | 6 +- sdk/monitor/arm-monitor/src/models/index.ts | 3747 +++++++++++++---- .../src/models/logProfilesMappers.ts | 41 +- sdk/monitor/arm-monitor/src/models/mappers.ts | 2953 ++++++++++--- .../src/models/metricAlertsMappers.ts | 42 +- .../src/models/metricAlertsStatusMappers.ts | 6 +- .../src/models/metricBaselineMappers.ts | 18 - .../src/models/metricDefinitionsMappers.ts | 6 +- .../src/models/metricNamespacesMappers.ts | 6 +- .../arm-monitor/src/models/metricsMappers.ts | 6 +- .../src/models/operationsMappers.ts | 4 +- .../arm-monitor/src/models/parameters.ts | 175 +- .../privateEndpointConnectionsMappers.ts | 123 + .../src/models/privateLinkResourcesMappers.ts | 123 + .../privateLinkScopeOperationStatusMappers.ts | 16 + .../privateLinkScopedResourcesMappers.ts | 123 + .../src/models/privateLinkScopesMappers.ts | 124 + .../src/models/scheduledQueryRulesMappers.ts | 42 +- .../src/models/tenantActivityLogsMappers.ts | 6 +- .../src/models/vMInsightsMappers.ts | 39 +- .../src/monitorManagementClient.ts | 29 +- .../src/monitorManagementClientContext.ts | 15 +- .../src/operations/actionGroups.ts | 41 +- .../src/operations/activityLogAlerts.ts | 47 +- .../src/operations/activityLogs.ts | 63 +- .../src/operations/alertRuleIncidents.ts | 17 +- .../arm-monitor/src/operations/alertRules.ts | 68 +- .../src/operations/autoscaleSettings.ts | 53 +- .../arm-monitor/src/operations/baselines.ts | 11 +- .../src/operations/dataCollectionEndpoints.ts | 490 +++ .../dataCollectionRuleAssociations.ts | 421 ++ .../src/operations/dataCollectionRules.ts | 490 +++ .../diagnosticSettingsCategoryOperations.ts | 13 +- .../diagnosticSettingsOperations.ts | 21 +- .../src/operations/eventCategories.ts | 7 +- .../arm-monitor/src/operations/index.ts | 16 +- .../arm-monitor/src/operations/logProfiles.ts | 15 +- .../src/operations/metricAlerts.ts | 49 +- .../src/operations/metricAlertsStatus.ts | 21 +- .../src/operations/metricBaseline.ts | 174 - .../src/operations/metricDefinitions.ts | 11 +- .../src/operations/metricNamespaces.ts | 9 +- .../arm-monitor/src/operations/metrics.ts | 11 +- .../arm-monitor/src/operations/operations.ts | 7 +- .../operations/privateEndpointConnections.ts | 330 ++ .../src/operations/privateLinkResources.ts | 200 + .../privateLinkScopeOperationStatus.ts | 87 + .../operations/privateLinkScopedResources.ts | 335 ++ .../src/operations/privateLinkScopes.ts | 490 +++ .../src/operations/scheduledQueryRules.ts | 71 +- .../src/operations/tenantActivityLogs.ts | 18 +- .../arm-monitor/src/operations/vMInsights.ts | 9 +- 68 files changed, 9928 insertions(+), 1975 deletions(-) create mode 100644 sdk/monitor/arm-monitor/src/models/dataCollectionEndpointsMappers.ts create mode 100644 sdk/monitor/arm-monitor/src/models/dataCollectionRuleAssociationsMappers.ts create mode 100644 sdk/monitor/arm-monitor/src/models/dataCollectionRulesMappers.ts delete mode 100644 sdk/monitor/arm-monitor/src/models/metricBaselineMappers.ts create mode 100644 sdk/monitor/arm-monitor/src/models/privateEndpointConnectionsMappers.ts create mode 100644 sdk/monitor/arm-monitor/src/models/privateLinkResourcesMappers.ts create mode 100644 sdk/monitor/arm-monitor/src/models/privateLinkScopeOperationStatusMappers.ts create mode 100644 sdk/monitor/arm-monitor/src/models/privateLinkScopedResourcesMappers.ts create mode 100644 sdk/monitor/arm-monitor/src/models/privateLinkScopesMappers.ts create mode 100644 sdk/monitor/arm-monitor/src/operations/dataCollectionEndpoints.ts create mode 100644 sdk/monitor/arm-monitor/src/operations/dataCollectionRuleAssociations.ts create mode 100644 sdk/monitor/arm-monitor/src/operations/dataCollectionRules.ts delete mode 100644 sdk/monitor/arm-monitor/src/operations/metricBaseline.ts create mode 100644 sdk/monitor/arm-monitor/src/operations/privateEndpointConnections.ts create mode 100644 sdk/monitor/arm-monitor/src/operations/privateLinkResources.ts create mode 100644 sdk/monitor/arm-monitor/src/operations/privateLinkScopeOperationStatus.ts create mode 100644 sdk/monitor/arm-monitor/src/operations/privateLinkScopedResources.ts create mode 100644 sdk/monitor/arm-monitor/src/operations/privateLinkScopes.ts diff --git a/sdk/monitor/arm-monitor/LICENSE.txt b/sdk/monitor/arm-monitor/LICENSE.txt index b73b4a1293c3..2d3163745319 100644 --- a/sdk/monitor/arm-monitor/LICENSE.txt +++ b/sdk/monitor/arm-monitor/LICENSE.txt @@ -1,6 +1,6 @@ The MIT License (MIT) -Copyright (c) 2019 Microsoft +Copyright (c) 2021 Microsoft Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal diff --git a/sdk/monitor/arm-monitor/README.md b/sdk/monitor/arm-monitor/README.md index 34c0456e346b..fbbd01a9694a 100644 --- a/sdk/monitor/arm-monitor/README.md +++ b/sdk/monitor/arm-monitor/README.md @@ -1,11 +1,11 @@ ## Azure MonitorManagementClient SDK for JavaScript -This package contains an isomorphic SDK (runs both in Node.js and in browsers) for MonitorManagementClient. +This package contains an isomorphic SDK (runs both in node.js and in browsers) for MonitorManagementClient. ### Currently supported environments - [LTS versions of Node.js](https://nodejs.org/about/releases/) -- Latest versions of Safari, Chrome, Edge, and Firefox. +- Latest versions of Safari, Chrome, Edge and Firefox. ### Prerequisites @@ -21,7 +21,6 @@ Install both packages using the below command: ```bash npm install --save @azure/arm-monitor @azure/identity ``` - > **Note**: You may have used either `@azure/ms-rest-nodeauth` or `@azure/ms-rest-browserauth` in the past. These packages are in maintenance mode receiving critical bug fixes, but no new features. If you are on a [Node.js that has LTS status](https://nodejs.org/about/releases/), or are writing a client side browser application, we strongly encourage you to upgrade to `@azure/identity` which uses the latest versions of Azure Active Directory and MSAL APIs and provides more authentication options. @@ -37,7 +36,6 @@ If you are on a [Node.js that has LTS status](https://nodejs.org/about/releases/ In the below samples, we pass the credential and the Azure subscription id to instantiate the client. Once the client is created, explore the operations on it either in your favorite editor or in our [API reference documentation](https://docs.microsoft.com/javascript/api) to get started. - #### nodejs - Authentication, client creation, and listByResourceGroup autoscaleSettings as an example written in JavaScript. ##### Sample code @@ -86,7 +84,7 @@ In browser applications, we recommend using the `InteractiveBrowserCredential` t const credential = new InteractiveBrowserCredential( { clientId: "", - tenantId: "" + tenant: "" }); const client = new Azure.ArmMonitor.MonitorManagementClient(creds, subscriptionId); const resourceGroupName = "testresourceGroupName"; diff --git a/sdk/monitor/arm-monitor/package.json b/sdk/monitor/arm-monitor/package.json index aa2917699e69..1d177af40069 100644 --- a/sdk/monitor/arm-monitor/package.json +++ b/sdk/monitor/arm-monitor/package.json @@ -27,7 +27,7 @@ "rollup-plugin-sourcemaps": "^0.4.2", "uglify-js": "^3.6.0" }, - "homepage": "https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/monitor/arm-monitor", + "homepage": "https://github.com/Azure/azure-sdk-for-js/tree/master/sdk/monitor/arm-monitor", "repository": { "type": "git", "url": "https://github.com/Azure/azure-sdk-for-js.git" diff --git a/sdk/monitor/arm-monitor/rollup.config.js b/sdk/monitor/arm-monitor/rollup.config.js index 60aa3b0cb549..b33f5ee53343 100644 --- a/sdk/monitor/arm-monitor/rollup.config.js +++ b/sdk/monitor/arm-monitor/rollup.config.js @@ -21,8 +21,8 @@ const config = { "@azure/ms-rest-azure-js": "msRestAzure" }, banner: `/* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is regenerated. diff --git a/sdk/monitor/arm-monitor/src/models/actionGroupsMappers.ts b/sdk/monitor/arm-monitor/src/models/actionGroupsMappers.ts index 11486f297d29..ffff16c7d5b9 100644 --- a/sdk/monitor/arm-monitor/src/models/actionGroupsMappers.ts +++ b/sdk/monitor/arm-monitor/src/models/actionGroupsMappers.ts @@ -1,6 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is regenerated. @@ -27,9 +27,28 @@ export { AzNsActionGroup, AzureAppPushReceiver, AzureFunctionReceiver, + AzureMonitorMetricsDestination, + AzureMonitorPrivateLinkScope, + AzureResource, BaseResource, + ConfigurationAccessEndpointSpec, Criteria, + DataCollectionEndpointConfigurationAccess, + DataCollectionEndpointLogsIngestion, + DataCollectionEndpointNetworkAcls, + DataCollectionEndpointResource, + DataCollectionEndpointResourceSystemData, + DataCollectionRuleAssociationProxyOnlyResource, + DataCollectionRuleAssociationProxyOnlyResourceSystemData, + DataCollectionRuleDataSources, + DataCollectionRuleDestinations, + DataCollectionRuleResource, + DataCollectionRuleResourceSystemData, DataContainer, + DataFlow, + DataSourcesSpec, + DestinationsSpec, + DestinationsSpecAzureMonitorMetrics, DiagnosticSettingsCategoryResource, DiagnosticSettingsResource, Dimension, @@ -38,14 +57,19 @@ export { EmailNotification, EmailReceiver, EnableRequest, + ErrorAdditionalInfo, ErrorResponse, + ErrorResponseCommon, + ExtensionDataSource, ItsmReceiver, LocationThresholdRuleCondition, + LogAnalyticsDestination, LogicAppReceiver, LogMetricTrigger, LogProfileResource, LogSearchRuleResource, LogSettings, + LogsIngestionEndpointSpec, LogToMetricAction, ManagementEventAggregationCondition, ManagementEventRuleCondition, @@ -59,6 +83,13 @@ export { MetricSettings, MetricTrigger, MultiMetricCriteria, + NetworkRuleSet, + PerfCounterDataSource, + PrivateEndpointConnection, + PrivateEndpointProperty, + PrivateLinkResource, + PrivateLinkScopesResource, + PrivateLinkServiceConnectionStateProperty, ProxyOnlyResource, ProxyResource, Recurrence, @@ -76,9 +107,13 @@ export { ScaleAction, ScaleCapacity, ScaleRule, + ScaleRuleMetricDimension, Schedule, + ScopedResource, SmsReceiver, Source, + SyslogDataSource, + SystemData, ThresholdRuleCondition, TimeWindow, TriggerCondition, @@ -86,5 +121,7 @@ export { VoiceReceiver, WebhookNotification, WebhookReceiver, + WebtestLocationAvailabilityCriteria, + WindowsEventLogDataSource, WorkspaceInfo } from "../models/mappers"; diff --git a/sdk/monitor/arm-monitor/src/models/activityLogAlertsMappers.ts b/sdk/monitor/arm-monitor/src/models/activityLogAlertsMappers.ts index d949c6e04f10..ebaa0d92d88f 100644 --- a/sdk/monitor/arm-monitor/src/models/activityLogAlertsMappers.ts +++ b/sdk/monitor/arm-monitor/src/models/activityLogAlertsMappers.ts @@ -1,6 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is regenerated. @@ -27,9 +27,28 @@ export { AzNsActionGroup, AzureAppPushReceiver, AzureFunctionReceiver, + AzureMonitorMetricsDestination, + AzureMonitorPrivateLinkScope, + AzureResource, BaseResource, + ConfigurationAccessEndpointSpec, Criteria, + DataCollectionEndpointConfigurationAccess, + DataCollectionEndpointLogsIngestion, + DataCollectionEndpointNetworkAcls, + DataCollectionEndpointResource, + DataCollectionEndpointResourceSystemData, + DataCollectionRuleAssociationProxyOnlyResource, + DataCollectionRuleAssociationProxyOnlyResourceSystemData, + DataCollectionRuleDataSources, + DataCollectionRuleDestinations, + DataCollectionRuleResource, + DataCollectionRuleResourceSystemData, DataContainer, + DataFlow, + DataSourcesSpec, + DestinationsSpec, + DestinationsSpecAzureMonitorMetrics, DiagnosticSettingsCategoryResource, DiagnosticSettingsResource, Dimension, @@ -37,14 +56,19 @@ export { DynamicThresholdFailingPeriods, EmailNotification, EmailReceiver, + ErrorAdditionalInfo, ErrorResponse, + ErrorResponseCommon, + ExtensionDataSource, ItsmReceiver, LocationThresholdRuleCondition, + LogAnalyticsDestination, LogicAppReceiver, LogMetricTrigger, LogProfileResource, LogSearchRuleResource, LogSettings, + LogsIngestionEndpointSpec, LogToMetricAction, ManagementEventAggregationCondition, ManagementEventRuleCondition, @@ -58,6 +82,13 @@ export { MetricSettings, MetricTrigger, MultiMetricCriteria, + NetworkRuleSet, + PerfCounterDataSource, + PrivateEndpointConnection, + PrivateEndpointProperty, + PrivateLinkResource, + PrivateLinkScopesResource, + PrivateLinkServiceConnectionStateProperty, ProxyOnlyResource, ProxyResource, Recurrence, @@ -75,9 +106,13 @@ export { ScaleAction, ScaleCapacity, ScaleRule, + ScaleRuleMetricDimension, Schedule, + ScopedResource, SmsReceiver, Source, + SyslogDataSource, + SystemData, ThresholdRuleCondition, TimeWindow, TriggerCondition, @@ -85,5 +120,7 @@ export { VoiceReceiver, WebhookNotification, WebhookReceiver, + WebtestLocationAvailabilityCriteria, + WindowsEventLogDataSource, WorkspaceInfo } from "../models/mappers"; diff --git a/sdk/monitor/arm-monitor/src/models/activityLogsMappers.ts b/sdk/monitor/arm-monitor/src/models/activityLogsMappers.ts index 80edb96348be..5b349a695d6d 100644 --- a/sdk/monitor/arm-monitor/src/models/activityLogsMappers.ts +++ b/sdk/monitor/arm-monitor/src/models/activityLogsMappers.ts @@ -1,6 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is regenerated. @@ -8,7 +8,9 @@ export { discriminators, + ErrorAdditionalInfo, ErrorResponse, + ErrorResponseCommon, EventData, EventDataCollection, HttpRequestInfo, diff --git a/sdk/monitor/arm-monitor/src/models/alertRuleIncidentsMappers.ts b/sdk/monitor/arm-monitor/src/models/alertRuleIncidentsMappers.ts index 1980277abff7..3f5ce468545e 100644 --- a/sdk/monitor/arm-monitor/src/models/alertRuleIncidentsMappers.ts +++ b/sdk/monitor/arm-monitor/src/models/alertRuleIncidentsMappers.ts @@ -1,6 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is regenerated. @@ -9,7 +9,9 @@ export { discriminators, CloudError, + ErrorAdditionalInfo, ErrorResponse, + ErrorResponseCommon, Incident, IncidentListResult } from "../models/mappers"; diff --git a/sdk/monitor/arm-monitor/src/models/alertRulesMappers.ts b/sdk/monitor/arm-monitor/src/models/alertRulesMappers.ts index 91bb37022f98..491b6c7eec5b 100644 --- a/sdk/monitor/arm-monitor/src/models/alertRulesMappers.ts +++ b/sdk/monitor/arm-monitor/src/models/alertRulesMappers.ts @@ -1,6 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is regenerated. @@ -27,10 +27,28 @@ export { AzNsActionGroup, AzureAppPushReceiver, AzureFunctionReceiver, + AzureMonitorMetricsDestination, + AzureMonitorPrivateLinkScope, + AzureResource, BaseResource, - CloudError, + ConfigurationAccessEndpointSpec, Criteria, + DataCollectionEndpointConfigurationAccess, + DataCollectionEndpointLogsIngestion, + DataCollectionEndpointNetworkAcls, + DataCollectionEndpointResource, + DataCollectionEndpointResourceSystemData, + DataCollectionRuleAssociationProxyOnlyResource, + DataCollectionRuleAssociationProxyOnlyResourceSystemData, + DataCollectionRuleDataSources, + DataCollectionRuleDestinations, + DataCollectionRuleResource, + DataCollectionRuleResourceSystemData, DataContainer, + DataFlow, + DataSourcesSpec, + DestinationsSpec, + DestinationsSpecAzureMonitorMetrics, DiagnosticSettingsCategoryResource, DiagnosticSettingsResource, Dimension, @@ -38,14 +56,19 @@ export { DynamicThresholdFailingPeriods, EmailNotification, EmailReceiver, + ErrorAdditionalInfo, ErrorResponse, + ErrorResponseCommon, + ExtensionDataSource, ItsmReceiver, LocationThresholdRuleCondition, + LogAnalyticsDestination, LogicAppReceiver, LogMetricTrigger, LogProfileResource, LogSearchRuleResource, LogSettings, + LogsIngestionEndpointSpec, LogToMetricAction, ManagementEventAggregationCondition, ManagementEventRuleCondition, @@ -59,6 +82,13 @@ export { MetricSettings, MetricTrigger, MultiMetricCriteria, + NetworkRuleSet, + PerfCounterDataSource, + PrivateEndpointConnection, + PrivateEndpointProperty, + PrivateLinkResource, + PrivateLinkScopesResource, + PrivateLinkServiceConnectionStateProperty, ProxyOnlyResource, ProxyResource, Recurrence, @@ -76,9 +106,13 @@ export { ScaleAction, ScaleCapacity, ScaleRule, + ScaleRuleMetricDimension, Schedule, + ScopedResource, SmsReceiver, Source, + SyslogDataSource, + SystemData, ThresholdRuleCondition, TimeWindow, TriggerCondition, @@ -86,5 +120,7 @@ export { VoiceReceiver, WebhookNotification, WebhookReceiver, + WebtestLocationAvailabilityCriteria, + WindowsEventLogDataSource, WorkspaceInfo } from "../models/mappers"; diff --git a/sdk/monitor/arm-monitor/src/models/autoscaleSettingsMappers.ts b/sdk/monitor/arm-monitor/src/models/autoscaleSettingsMappers.ts index 68da5c7050e0..c026947d1f10 100644 --- a/sdk/monitor/arm-monitor/src/models/autoscaleSettingsMappers.ts +++ b/sdk/monitor/arm-monitor/src/models/autoscaleSettingsMappers.ts @@ -1,6 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is regenerated. @@ -27,9 +27,28 @@ export { AzNsActionGroup, AzureAppPushReceiver, AzureFunctionReceiver, + AzureMonitorMetricsDestination, + AzureMonitorPrivateLinkScope, + AzureResource, BaseResource, + ConfigurationAccessEndpointSpec, Criteria, + DataCollectionEndpointConfigurationAccess, + DataCollectionEndpointLogsIngestion, + DataCollectionEndpointNetworkAcls, + DataCollectionEndpointResource, + DataCollectionEndpointResourceSystemData, + DataCollectionRuleAssociationProxyOnlyResource, + DataCollectionRuleAssociationProxyOnlyResourceSystemData, + DataCollectionRuleDataSources, + DataCollectionRuleDestinations, + DataCollectionRuleResource, + DataCollectionRuleResourceSystemData, DataContainer, + DataFlow, + DataSourcesSpec, + DestinationsSpec, + DestinationsSpecAzureMonitorMetrics, DiagnosticSettingsCategoryResource, DiagnosticSettingsResource, Dimension, @@ -37,14 +56,19 @@ export { DynamicThresholdFailingPeriods, EmailNotification, EmailReceiver, + ErrorAdditionalInfo, ErrorResponse, + ErrorResponseCommon, + ExtensionDataSource, ItsmReceiver, LocationThresholdRuleCondition, + LogAnalyticsDestination, LogicAppReceiver, LogMetricTrigger, LogProfileResource, LogSearchRuleResource, LogSettings, + LogsIngestionEndpointSpec, LogToMetricAction, ManagementEventAggregationCondition, ManagementEventRuleCondition, @@ -58,6 +82,13 @@ export { MetricSettings, MetricTrigger, MultiMetricCriteria, + NetworkRuleSet, + PerfCounterDataSource, + PrivateEndpointConnection, + PrivateEndpointProperty, + PrivateLinkResource, + PrivateLinkScopesResource, + PrivateLinkServiceConnectionStateProperty, ProxyOnlyResource, ProxyResource, Recurrence, @@ -75,9 +106,13 @@ export { ScaleAction, ScaleCapacity, ScaleRule, + ScaleRuleMetricDimension, Schedule, + ScopedResource, SmsReceiver, Source, + SyslogDataSource, + SystemData, ThresholdRuleCondition, TimeWindow, TriggerCondition, @@ -85,5 +120,7 @@ export { VoiceReceiver, WebhookNotification, WebhookReceiver, + WebtestLocationAvailabilityCriteria, + WindowsEventLogDataSource, WorkspaceInfo } from "../models/mappers"; diff --git a/sdk/monitor/arm-monitor/src/models/baselinesMappers.ts b/sdk/monitor/arm-monitor/src/models/baselinesMappers.ts index b49d6f14718e..61db9f41e613 100644 --- a/sdk/monitor/arm-monitor/src/models/baselinesMappers.ts +++ b/sdk/monitor/arm-monitor/src/models/baselinesMappers.ts @@ -1,6 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is regenerated. @@ -9,7 +9,9 @@ export { discriminators, BaselineMetadata, + ErrorAdditionalInfo, ErrorResponse, + ErrorResponseCommon, MetricBaselinesResponse, MetricSingleDimension, SingleBaseline, diff --git a/sdk/monitor/arm-monitor/src/models/dataCollectionEndpointsMappers.ts b/sdk/monitor/arm-monitor/src/models/dataCollectionEndpointsMappers.ts new file mode 100644 index 000000000000..6439a429bd75 --- /dev/null +++ b/sdk/monitor/arm-monitor/src/models/dataCollectionEndpointsMappers.ts @@ -0,0 +1,126 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +export { + discriminators, + Action, + ActionGroupResource, + ActivityLogAlertActionGroup, + ActivityLogAlertActionList, + ActivityLogAlertAllOfCondition, + ActivityLogAlertLeafCondition, + ActivityLogAlertResource, + AlertingAction, + AlertRuleResource, + ArmRoleReceiver, + AutomationRunbookReceiver, + AutoscaleNotification, + AutoscaleProfile, + AutoscaleSettingResource, + AzNsActionGroup, + AzureAppPushReceiver, + AzureFunctionReceiver, + AzureMonitorMetricsDestination, + AzureMonitorPrivateLinkScope, + AzureResource, + BaseResource, + ConfigurationAccessEndpointSpec, + Criteria, + DataCollectionEndpointConfigurationAccess, + DataCollectionEndpointLogsIngestion, + DataCollectionEndpointNetworkAcls, + DataCollectionEndpointResource, + DataCollectionEndpointResourceListResult, + DataCollectionEndpointResourceSystemData, + DataCollectionRuleAssociationProxyOnlyResource, + DataCollectionRuleAssociationProxyOnlyResourceSystemData, + DataCollectionRuleDataSources, + DataCollectionRuleDestinations, + DataCollectionRuleResource, + DataCollectionRuleResourceSystemData, + DataContainer, + DataFlow, + DataSourcesSpec, + DestinationsSpec, + DestinationsSpecAzureMonitorMetrics, + DiagnosticSettingsCategoryResource, + DiagnosticSettingsResource, + Dimension, + DynamicMetricCriteria, + DynamicThresholdFailingPeriods, + EmailNotification, + EmailReceiver, + ErrorAdditionalInfo, + ErrorDetail, + ErrorResponseCommonV2, + ExtensionDataSource, + ItsmReceiver, + LocationThresholdRuleCondition, + LogAnalyticsDestination, + LogicAppReceiver, + LogMetricTrigger, + LogProfileResource, + LogSearchRuleResource, + LogSettings, + LogsIngestionEndpointSpec, + LogToMetricAction, + ManagementEventAggregationCondition, + ManagementEventRuleCondition, + MetricAlertAction, + MetricAlertCriteria, + MetricAlertMultipleResourceMultipleMetricCriteria, + MetricAlertResource, + MetricAlertSingleResourceMultipleMetricCriteria, + MetricCriteria, + MetricDimension, + MetricSettings, + MetricTrigger, + MultiMetricCriteria, + NetworkRuleSet, + PerfCounterDataSource, + PrivateEndpointConnection, + PrivateEndpointProperty, + PrivateLinkResource, + PrivateLinkScopesResource, + PrivateLinkServiceConnectionStateProperty, + ProxyOnlyResource, + ProxyResource, + Recurrence, + RecurrentSchedule, + Resource, + ResourceForUpdate, + RetentionPolicy, + RuleAction, + RuleCondition, + RuleDataSource, + RuleEmailAction, + RuleManagementEventClaimsDataSource, + RuleManagementEventDataSource, + RuleMetricDataSource, + RuleWebhookAction, + ScaleAction, + ScaleCapacity, + ScaleRule, + ScaleRuleMetricDimension, + Schedule, + ScopedResource, + SmsReceiver, + Source, + SyslogDataSource, + SystemData, + ThresholdRuleCondition, + TimeWindow, + TriggerCondition, + VMInsightsOnboardingStatus, + VoiceReceiver, + WebhookNotification, + WebhookReceiver, + WebtestLocationAvailabilityCriteria, + WindowsEventLogDataSource, + WorkspaceInfo +} from "../models/mappers"; diff --git a/sdk/monitor/arm-monitor/src/models/dataCollectionRuleAssociationsMappers.ts b/sdk/monitor/arm-monitor/src/models/dataCollectionRuleAssociationsMappers.ts new file mode 100644 index 000000000000..52aa0f4690da --- /dev/null +++ b/sdk/monitor/arm-monitor/src/models/dataCollectionRuleAssociationsMappers.ts @@ -0,0 +1,125 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +export { + discriminators, + Action, + ActionGroupResource, + ActivityLogAlertActionGroup, + ActivityLogAlertActionList, + ActivityLogAlertAllOfCondition, + ActivityLogAlertLeafCondition, + ActivityLogAlertResource, + AlertingAction, + AlertRuleResource, + ArmRoleReceiver, + AutomationRunbookReceiver, + AutoscaleNotification, + AutoscaleProfile, + AutoscaleSettingResource, + AzNsActionGroup, + AzureAppPushReceiver, + AzureFunctionReceiver, + AzureMonitorMetricsDestination, + AzureMonitorPrivateLinkScope, + AzureResource, + BaseResource, + ConfigurationAccessEndpointSpec, + Criteria, + DataCollectionEndpointConfigurationAccess, + DataCollectionEndpointLogsIngestion, + DataCollectionEndpointNetworkAcls, + DataCollectionEndpointResource, + DataCollectionEndpointResourceSystemData, + DataCollectionRuleAssociationProxyOnlyResource, + DataCollectionRuleAssociationProxyOnlyResourceListResult, + DataCollectionRuleAssociationProxyOnlyResourceSystemData, + DataCollectionRuleDataSources, + DataCollectionRuleDestinations, + DataCollectionRuleResource, + DataCollectionRuleResourceSystemData, + DataContainer, + DataFlow, + DataSourcesSpec, + DestinationsSpec, + DestinationsSpecAzureMonitorMetrics, + DiagnosticSettingsCategoryResource, + DiagnosticSettingsResource, + Dimension, + DynamicMetricCriteria, + DynamicThresholdFailingPeriods, + EmailNotification, + EmailReceiver, + ErrorAdditionalInfo, + ErrorDetail, + ErrorResponseCommonV2, + ExtensionDataSource, + ItsmReceiver, + LocationThresholdRuleCondition, + LogAnalyticsDestination, + LogicAppReceiver, + LogMetricTrigger, + LogProfileResource, + LogSearchRuleResource, + LogSettings, + LogsIngestionEndpointSpec, + LogToMetricAction, + ManagementEventAggregationCondition, + ManagementEventRuleCondition, + MetricAlertAction, + MetricAlertCriteria, + MetricAlertMultipleResourceMultipleMetricCriteria, + MetricAlertResource, + MetricAlertSingleResourceMultipleMetricCriteria, + MetricCriteria, + MetricDimension, + MetricSettings, + MetricTrigger, + MultiMetricCriteria, + NetworkRuleSet, + PerfCounterDataSource, + PrivateEndpointConnection, + PrivateEndpointProperty, + PrivateLinkResource, + PrivateLinkScopesResource, + PrivateLinkServiceConnectionStateProperty, + ProxyOnlyResource, + ProxyResource, + Recurrence, + RecurrentSchedule, + Resource, + RetentionPolicy, + RuleAction, + RuleCondition, + RuleDataSource, + RuleEmailAction, + RuleManagementEventClaimsDataSource, + RuleManagementEventDataSource, + RuleMetricDataSource, + RuleWebhookAction, + ScaleAction, + ScaleCapacity, + ScaleRule, + ScaleRuleMetricDimension, + Schedule, + ScopedResource, + SmsReceiver, + Source, + SyslogDataSource, + SystemData, + ThresholdRuleCondition, + TimeWindow, + TriggerCondition, + VMInsightsOnboardingStatus, + VoiceReceiver, + WebhookNotification, + WebhookReceiver, + WebtestLocationAvailabilityCriteria, + WindowsEventLogDataSource, + WorkspaceInfo +} from "../models/mappers"; diff --git a/sdk/monitor/arm-monitor/src/models/dataCollectionRulesMappers.ts b/sdk/monitor/arm-monitor/src/models/dataCollectionRulesMappers.ts new file mode 100644 index 000000000000..d1187875b64f --- /dev/null +++ b/sdk/monitor/arm-monitor/src/models/dataCollectionRulesMappers.ts @@ -0,0 +1,126 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +export { + discriminators, + Action, + ActionGroupResource, + ActivityLogAlertActionGroup, + ActivityLogAlertActionList, + ActivityLogAlertAllOfCondition, + ActivityLogAlertLeafCondition, + ActivityLogAlertResource, + AlertingAction, + AlertRuleResource, + ArmRoleReceiver, + AutomationRunbookReceiver, + AutoscaleNotification, + AutoscaleProfile, + AutoscaleSettingResource, + AzNsActionGroup, + AzureAppPushReceiver, + AzureFunctionReceiver, + AzureMonitorMetricsDestination, + AzureMonitorPrivateLinkScope, + AzureResource, + BaseResource, + ConfigurationAccessEndpointSpec, + Criteria, + DataCollectionEndpointConfigurationAccess, + DataCollectionEndpointLogsIngestion, + DataCollectionEndpointNetworkAcls, + DataCollectionEndpointResource, + DataCollectionEndpointResourceSystemData, + DataCollectionRuleAssociationProxyOnlyResource, + DataCollectionRuleAssociationProxyOnlyResourceSystemData, + DataCollectionRuleDataSources, + DataCollectionRuleDestinations, + DataCollectionRuleResource, + DataCollectionRuleResourceListResult, + DataCollectionRuleResourceSystemData, + DataContainer, + DataFlow, + DataSourcesSpec, + DestinationsSpec, + DestinationsSpecAzureMonitorMetrics, + DiagnosticSettingsCategoryResource, + DiagnosticSettingsResource, + Dimension, + DynamicMetricCriteria, + DynamicThresholdFailingPeriods, + EmailNotification, + EmailReceiver, + ErrorAdditionalInfo, + ErrorDetail, + ErrorResponseCommonV2, + ExtensionDataSource, + ItsmReceiver, + LocationThresholdRuleCondition, + LogAnalyticsDestination, + LogicAppReceiver, + LogMetricTrigger, + LogProfileResource, + LogSearchRuleResource, + LogSettings, + LogsIngestionEndpointSpec, + LogToMetricAction, + ManagementEventAggregationCondition, + ManagementEventRuleCondition, + MetricAlertAction, + MetricAlertCriteria, + MetricAlertMultipleResourceMultipleMetricCriteria, + MetricAlertResource, + MetricAlertSingleResourceMultipleMetricCriteria, + MetricCriteria, + MetricDimension, + MetricSettings, + MetricTrigger, + MultiMetricCriteria, + NetworkRuleSet, + PerfCounterDataSource, + PrivateEndpointConnection, + PrivateEndpointProperty, + PrivateLinkResource, + PrivateLinkScopesResource, + PrivateLinkServiceConnectionStateProperty, + ProxyOnlyResource, + ProxyResource, + Recurrence, + RecurrentSchedule, + Resource, + ResourceForUpdate, + RetentionPolicy, + RuleAction, + RuleCondition, + RuleDataSource, + RuleEmailAction, + RuleManagementEventClaimsDataSource, + RuleManagementEventDataSource, + RuleMetricDataSource, + RuleWebhookAction, + ScaleAction, + ScaleCapacity, + ScaleRule, + ScaleRuleMetricDimension, + Schedule, + ScopedResource, + SmsReceiver, + Source, + SyslogDataSource, + SystemData, + ThresholdRuleCondition, + TimeWindow, + TriggerCondition, + VMInsightsOnboardingStatus, + VoiceReceiver, + WebhookNotification, + WebhookReceiver, + WebtestLocationAvailabilityCriteria, + WindowsEventLogDataSource, + WorkspaceInfo +} from "../models/mappers"; diff --git a/sdk/monitor/arm-monitor/src/models/diagnosticSettingsCategoryOperationsMappers.ts b/sdk/monitor/arm-monitor/src/models/diagnosticSettingsCategoryOperationsMappers.ts index 7402d3661f02..9dfd2575db31 100644 --- a/sdk/monitor/arm-monitor/src/models/diagnosticSettingsCategoryOperationsMappers.ts +++ b/sdk/monitor/arm-monitor/src/models/diagnosticSettingsCategoryOperationsMappers.ts @@ -1,6 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is regenerated. @@ -25,9 +25,28 @@ export { AzNsActionGroup, AzureAppPushReceiver, AzureFunctionReceiver, + AzureMonitorMetricsDestination, + AzureMonitorPrivateLinkScope, + AzureResource, BaseResource, + ConfigurationAccessEndpointSpec, Criteria, + DataCollectionEndpointConfigurationAccess, + DataCollectionEndpointLogsIngestion, + DataCollectionEndpointNetworkAcls, + DataCollectionEndpointResource, + DataCollectionEndpointResourceSystemData, + DataCollectionRuleAssociationProxyOnlyResource, + DataCollectionRuleAssociationProxyOnlyResourceSystemData, + DataCollectionRuleDataSources, + DataCollectionRuleDestinations, + DataCollectionRuleResource, + DataCollectionRuleResourceSystemData, DataContainer, + DataFlow, + DataSourcesSpec, + DestinationsSpec, + DestinationsSpecAzureMonitorMetrics, DiagnosticSettingsCategoryResource, DiagnosticSettingsCategoryResourceCollection, DiagnosticSettingsResource, @@ -36,14 +55,19 @@ export { DynamicThresholdFailingPeriods, EmailNotification, EmailReceiver, + ErrorAdditionalInfo, ErrorResponse, + ErrorResponseCommon, + ExtensionDataSource, ItsmReceiver, LocationThresholdRuleCondition, + LogAnalyticsDestination, LogicAppReceiver, LogMetricTrigger, LogProfileResource, LogSearchRuleResource, LogSettings, + LogsIngestionEndpointSpec, LogToMetricAction, ManagementEventAggregationCondition, ManagementEventRuleCondition, @@ -57,6 +81,13 @@ export { MetricSettings, MetricTrigger, MultiMetricCriteria, + NetworkRuleSet, + PerfCounterDataSource, + PrivateEndpointConnection, + PrivateEndpointProperty, + PrivateLinkResource, + PrivateLinkScopesResource, + PrivateLinkServiceConnectionStateProperty, ProxyOnlyResource, ProxyResource, Recurrence, @@ -74,9 +105,13 @@ export { ScaleAction, ScaleCapacity, ScaleRule, + ScaleRuleMetricDimension, Schedule, + ScopedResource, SmsReceiver, Source, + SyslogDataSource, + SystemData, ThresholdRuleCondition, TimeWindow, TriggerCondition, @@ -84,5 +119,7 @@ export { VoiceReceiver, WebhookNotification, WebhookReceiver, + WebtestLocationAvailabilityCriteria, + WindowsEventLogDataSource, WorkspaceInfo } from "../models/mappers"; diff --git a/sdk/monitor/arm-monitor/src/models/diagnosticSettingsOperationsMappers.ts b/sdk/monitor/arm-monitor/src/models/diagnosticSettingsOperationsMappers.ts index f0ba9bbf166f..f7f289dcd7ed 100644 --- a/sdk/monitor/arm-monitor/src/models/diagnosticSettingsOperationsMappers.ts +++ b/sdk/monitor/arm-monitor/src/models/diagnosticSettingsOperationsMappers.ts @@ -1,6 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is regenerated. @@ -25,9 +25,28 @@ export { AzNsActionGroup, AzureAppPushReceiver, AzureFunctionReceiver, + AzureMonitorMetricsDestination, + AzureMonitorPrivateLinkScope, + AzureResource, BaseResource, + ConfigurationAccessEndpointSpec, Criteria, + DataCollectionEndpointConfigurationAccess, + DataCollectionEndpointLogsIngestion, + DataCollectionEndpointNetworkAcls, + DataCollectionEndpointResource, + DataCollectionEndpointResourceSystemData, + DataCollectionRuleAssociationProxyOnlyResource, + DataCollectionRuleAssociationProxyOnlyResourceSystemData, + DataCollectionRuleDataSources, + DataCollectionRuleDestinations, + DataCollectionRuleResource, + DataCollectionRuleResourceSystemData, DataContainer, + DataFlow, + DataSourcesSpec, + DestinationsSpec, + DestinationsSpecAzureMonitorMetrics, DiagnosticSettingsCategoryResource, DiagnosticSettingsResource, DiagnosticSettingsResourceCollection, @@ -36,14 +55,19 @@ export { DynamicThresholdFailingPeriods, EmailNotification, EmailReceiver, + ErrorAdditionalInfo, ErrorResponse, + ErrorResponseCommon, + ExtensionDataSource, ItsmReceiver, LocationThresholdRuleCondition, + LogAnalyticsDestination, LogicAppReceiver, LogMetricTrigger, LogProfileResource, LogSearchRuleResource, LogSettings, + LogsIngestionEndpointSpec, LogToMetricAction, ManagementEventAggregationCondition, ManagementEventRuleCondition, @@ -57,6 +81,13 @@ export { MetricSettings, MetricTrigger, MultiMetricCriteria, + NetworkRuleSet, + PerfCounterDataSource, + PrivateEndpointConnection, + PrivateEndpointProperty, + PrivateLinkResource, + PrivateLinkScopesResource, + PrivateLinkServiceConnectionStateProperty, ProxyOnlyResource, ProxyResource, Recurrence, @@ -74,9 +105,13 @@ export { ScaleAction, ScaleCapacity, ScaleRule, + ScaleRuleMetricDimension, Schedule, + ScopedResource, SmsReceiver, Source, + SyslogDataSource, + SystemData, ThresholdRuleCondition, TimeWindow, TriggerCondition, @@ -84,5 +119,7 @@ export { VoiceReceiver, WebhookNotification, WebhookReceiver, + WebtestLocationAvailabilityCriteria, + WindowsEventLogDataSource, WorkspaceInfo } from "../models/mappers"; diff --git a/sdk/monitor/arm-monitor/src/models/eventCategoriesMappers.ts b/sdk/monitor/arm-monitor/src/models/eventCategoriesMappers.ts index 3be0e41dbda8..dcb429afdd01 100644 --- a/sdk/monitor/arm-monitor/src/models/eventCategoriesMappers.ts +++ b/sdk/monitor/arm-monitor/src/models/eventCategoriesMappers.ts @@ -1,6 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is regenerated. @@ -8,7 +8,9 @@ export { discriminators, + ErrorAdditionalInfo, ErrorResponse, + ErrorResponseCommon, EventCategoryCollection, LocalizableString } from "../models/mappers"; diff --git a/sdk/monitor/arm-monitor/src/models/index.ts b/sdk/monitor/arm-monitor/src/models/index.ts index 88cfd9ddd4cf..548884d3d79c 100644 --- a/sdk/monitor/arm-monitor/src/models/index.ts +++ b/sdk/monitor/arm-monitor/src/models/index.ts @@ -1,6 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is regenerated. @@ -38,6 +38,22 @@ export interface Resource extends BaseResource { * Resource tags */ tags?: { [propertyName: string]: string }; + /** + * Metadata used by portal/tooling/etc to render different UX experiences for resources of the + * same type; e.g. ApiApps are a kind of Microsoft.Web/sites type. If supported, the resource + * provider must validate and persist this value. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly kind?: string; + /** + * The etag field is *not* required. If it is provided in the response body, it must also be + * provided as a header per the normal etag convention. Entity tags are used for comparing two + * or more entities from the same requested resource. HTTP/1.1 uses entity tags in the etag + * (section 14.19), If-Match (section 14.24), If-None-Match (section 14.26), and If-Range + * (section 14.27) header fields. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly etag?: string; } /** @@ -60,6 +76,26 @@ export interface ScaleCapacity { default: string; } +/** + * Specifies an auto scale rule metric dimension. + */ +export interface ScaleRuleMetricDimension { + /** + * Name of the dimension. + */ + dimensionName: string; + /** + * the dimension operator. Only 'Equals' and 'NotEquals' are supported. 'Equals' being equal to + * any of the values. 'NotEquals' being not equal to all of the values. Possible values include: + * 'Equals', 'NotEquals' + */ + operator: ScaleRuleMetricDimensionOperationType; + /** + * list of dimension values. For example: ["App1","App2"]. + */ + values: string[]; +} + /** * The trigger that results in a scaling action. */ @@ -68,10 +104,18 @@ export interface MetricTrigger { * the name of the metric that defines what the rule monitors. */ metricName: string; + /** + * the namespace of the metric that defines what the rule monitors. + */ + metricNamespace?: string; /** * the resource identifier of the resource the rule monitors. */ metricResourceUri: string; + /** + * the location of the resource the rule monitors. + */ + metricResourceLocation?: string; /** * the granularity of metrics the rule monitors. Must be one of the predefined values returned * from metric definitions for the metric. Must be between 12 hours and 1 minute. @@ -79,7 +123,7 @@ export interface MetricTrigger { timeGrain: string; /** * the metric statistic type. How the metrics from multiple instances are combined. Possible - * values include: 'Average', 'Min', 'Max', 'Sum' + * values include: 'Average', 'Min', 'Max', 'Sum', 'Count' */ statistic: MetricStatisticType; /** @@ -104,6 +148,15 @@ export interface MetricTrigger { * the threshold of the metric that triggers the scale action. */ threshold: number; + /** + * List of dimension conditions. For example: + * [{"DimensionName":"AppName","Operator":"Equals","Values":["App1"]},{"DimensionName":"Deployment","Operator":"Equals","Values":["default"]}]. + */ + dimensions?: ScaleRuleMetricDimension[]; + /** + * a value indicating whether metric should divide per instance. + */ + dividePerInstance?: boolean; } /** @@ -117,7 +170,7 @@ export interface ScaleAction { direction: ScaleDirection; /** * the type of action that should occur when the scale rule fires. Possible values include: - * 'ChangeCount', 'PercentChangeCount', 'ExactCount' + * 'ChangeCount', 'PercentChangeCount', 'ExactCount', 'ServiceAllowedNextValue' */ type: ScaleType; /** @@ -299,11 +352,12 @@ export interface AutoscaleProfile { */ export interface EmailNotification { /** - * a value indicating whether to send email to subscription administrator. + * a value indicating whether to send email to subscription administrator. Default value: false. */ sendToSubscriptionAdministrator?: boolean; /** - * a value indicating whether to send email to subscription co-administrators. + * a value indicating whether to send email to subscription co-administrators. Default value: + * false. */ sendToSubscriptionCoAdministrators?: boolean; /** @@ -367,6 +421,10 @@ export interface AutoscaleSettingResource extends Resource { * the resource identifier of the resource that the autoscale setting should be added to. */ targetResourceUri?: string; + /** + * the location of the resource that the autoscale setting should be added to. + */ + targetResourceLocation?: string; } /** @@ -399,6 +457,10 @@ export interface AutoscaleSettingResourcePatch { * the resource identifier of the resource that the autoscale setting should be added to. */ targetResourceUri?: string; + /** + * the location of the resource that the autoscale setting should be added to. + */ + targetResourceLocation?: string; } /** @@ -512,6 +574,19 @@ export interface RuleDataSource { * updated for an existing rule. */ resourceUri?: string; + /** + * the legacy resource identifier of the resource the rule monitors. **NOTE**: this property + * cannot be updated for an existing rule. + */ + legacyResourceId?: string; + /** + * the location of the resource. + */ + resourceLocation?: string; + /** + * the namespace of the metric. + */ + metricNamespace?: string; } /** @@ -547,6 +622,19 @@ export interface RuleMetricDataSource { * updated for an existing rule. */ resourceUri?: string; + /** + * the legacy resource identifier of the resource the rule monitors. **NOTE**: this property + * cannot be updated for an existing rule. + */ + legacyResourceId?: string; + /** + * the location of the resource. + */ + resourceLocation?: string; + /** + * the namespace of the metric. + */ + metricNamespace?: string; /** * the name of the metric that defines what the rule monitors. */ @@ -577,6 +665,19 @@ export interface RuleManagementEventDataSource { * updated for an existing rule. */ resourceUri?: string; + /** + * the legacy resource identifier of the resource the rule monitors. **NOTE**: this property + * cannot be updated for an existing rule. + */ + legacyResourceId?: string; + /** + * the location of the resource. + */ + resourceLocation?: string; + /** + * the namespace of the metric. + */ + metricNamespace?: string; /** * the event name. */ @@ -785,6 +886,10 @@ export interface AlertRuleResource extends Resource { * the description of the alert rule that will be included in the alert email. */ description?: string; + /** + * the provisioning state. + */ + provisioningState?: string; /** * the flag that indicates whether the alert rule is enabled. */ @@ -793,6 +898,11 @@ export interface AlertRuleResource extends Resource { * the condition that results in the alert rule being activated. */ condition: RuleConditionUnion; + /** + * action that is performed when the alert rule becomes active, and when an alert condition is + * resolved. + */ + action?: RuleActionUnion; /** * the array of actions that are performed when the alert rule becomes active, and when an alert * condition is resolved. @@ -821,6 +931,10 @@ export interface AlertRuleResourcePatch { * the description of the alert rule that will be included in the alert email. */ description?: string; + /** + * the provisioning state. + */ + provisioningState?: string; /** * the flag that indicates whether the alert rule is enabled. */ @@ -829,6 +943,11 @@ export interface AlertRuleResourcePatch { * the condition that results in the alert rule being activated. */ condition: RuleConditionUnion; + /** + * action that is performed when the alert rule becomes active, and when an alert condition is + * resolved. + */ + action?: RuleActionUnion; /** * the array of actions that are performed when the alert rule becomes active, and when an alert * condition is resolved. @@ -1059,6 +1178,45 @@ export interface DiagnosticSettingsCategoryResourceCollection { value?: DiagnosticSettingsCategoryResource[]; } +/** + * An azure resource object + */ +export interface AzureResource extends BaseResource { + /** + * Azure resource Id + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly id?: string; + /** + * Azure resource name + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly name?: string; + /** + * Azure resource type + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly type?: string; + /** + * Azure resource kind + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly kind?: string; + /** + * Azure resource identity + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly identity?: string; + /** + * Resource location + */ + location: string; + /** + * Resource tags + */ + tags?: { [propertyName: string]: string }; +} + /** * An email receiver. */ @@ -1073,9 +1231,9 @@ export interface EmailReceiver { */ emailAddress: string; /** - * Indicates whether to use common alert schema. + * Indicates whether to use common alert schema. Default value: false. */ - useCommonAlertSchema: boolean; + useCommonAlertSchema?: boolean; /** * The receiver status of the e-mail. Possible values include: 'NotSpecified', 'Enabled', * 'Disabled' @@ -1122,9 +1280,9 @@ export interface WebhookReceiver { */ serviceUri: string; /** - * Indicates whether to use common alert schema. + * Indicates whether to use common alert schema. Default value: false. */ - useCommonAlertSchema: boolean; + useCommonAlertSchema?: boolean; /** * Indicates whether or not use AAD authentication. Default value: false. */ @@ -1216,9 +1374,9 @@ export interface AutomationRunbookReceiver { */ serviceUri?: string; /** - * Indicates whether to use common alert schema. + * Indicates whether to use common alert schema. Default value: false. */ - useCommonAlertSchema: boolean; + useCommonAlertSchema?: boolean; } /** @@ -1258,9 +1416,9 @@ export interface LogicAppReceiver { */ callbackUrl: string; /** - * Indicates whether to use common alert schema. + * Indicates whether to use common alert schema. Default value: false. */ - useCommonAlertSchema: boolean; + useCommonAlertSchema?: boolean; } /** @@ -1285,9 +1443,9 @@ export interface AzureFunctionReceiver { */ httpTriggerUrl: string; /** - * Indicates whether to use common alert schema. + * Indicates whether to use common alert schema. Default value: false. */ - useCommonAlertSchema: boolean; + useCommonAlertSchema?: boolean; } /** @@ -1304,15 +1462,15 @@ export interface ArmRoleReceiver { */ roleId: string; /** - * Indicates whether to use common alert schema. + * Indicates whether to use common alert schema. Default value: false. */ - useCommonAlertSchema: boolean; + useCommonAlertSchema?: boolean; } /** * An action group resource. */ -export interface ActionGroupResource extends Resource { +export interface ActionGroupResource extends AzureResource { /** * The short name of the action group. This will be used in SMS messages. */ @@ -1390,103 +1548,6 @@ export interface ActionGroupPatchBody { enabled?: boolean; } -/** - * An Activity Log alert condition that is met by comparing an activity log field and value. - */ -export interface ActivityLogAlertLeafCondition { - /** - * The name of the field that this condition will examine. The possible values for this field are - * (case-insensitive): 'resourceId', 'category', 'caller', 'level', 'operationName', - * 'resourceGroup', 'resourceProvider', 'status', 'subStatus', 'resourceType', or anything - * beginning with 'properties.'. - */ - field: string; - /** - * The field value will be compared to this value (case-insensitive) to determine if the - * condition is met. - */ - equals: string; -} - -/** - * An Activity Log alert condition that is met when all its member conditions are met. - */ -export interface ActivityLogAlertAllOfCondition { - /** - * The list of activity log alert conditions. - */ - allOf: ActivityLogAlertLeafCondition[]; -} - -/** - * A pointer to an Azure Action Group. - */ -export interface ActivityLogAlertActionGroup { - /** - * The resourceId of the action group. This cannot be null or empty. - */ - actionGroupId: string; - /** - * the dictionary of custom properties to include with the post operation. These data are - * appended to the webhook payload. - */ - webhookProperties?: { [propertyName: string]: string }; -} - -/** - * A list of activity log alert actions. - */ -export interface ActivityLogAlertActionList { - /** - * The list of activity log alerts. - */ - actionGroups?: ActivityLogAlertActionGroup[]; -} - -/** - * An activity log alert resource. - */ -export interface ActivityLogAlertResource extends Resource { - /** - * A list of resourceIds that will be used as prefixes. The alert will only apply to activityLogs - * with resourceIds that fall under one of these prefixes. This list must include at least one - * item. - */ - scopes: string[]; - /** - * Indicates whether this activity log alert is enabled. If an activity log alert is not enabled, - * then none of its actions will be activated. Default value: true. - */ - enabled?: boolean; - /** - * The condition that will cause this alert to activate. - */ - condition: ActivityLogAlertAllOfCondition; - /** - * The actions that will activate when the condition is met. - */ - actions: ActivityLogAlertActionList; - /** - * A description of this activity log alert. - */ - description?: string; -} - -/** - * An activity log alert object for the body of patch operations. - */ -export interface ActivityLogAlertPatchBody { - /** - * Resource tags - */ - tags?: { [propertyName: string]: string }; - /** - * Indicates whether this activity log alert is enabled. If an activity log alert is not enabled, - * then none of its actions will be activated. Default value: true. - */ - enabled?: boolean; -} - /** * The localizable string class. */ @@ -1725,11 +1786,24 @@ export interface MetricDefinition { */ name?: LocalizableString; /** - * the unit of the metric. Possible values include: 'Count', 'Bytes', 'Seconds', + * Detailed description of this metric. + */ + displayDescription?: string; + /** + * Custom category name for this metric. + */ + category?: string; + /** + * The class of the metric. Possible values include: 'Availability', 'Transactions', 'Errors', + * 'Latency', 'Saturation' + */ + metricClass?: MetricClass; + /** + * The unit of the metric. Possible values include: 'Count', 'Bytes', 'Seconds', * 'CountPerSecond', 'BytesPerSecond', 'Percent', 'MilliSeconds', 'ByteSeconds', 'Unspecified', * 'Cores', 'MilliCores', 'NanoCores', 'BitsPerSecond' */ - unit?: Unit; + unit?: MetricUnit; /** * the primary aggregation type value defining how to use the values for display. Possible values * include: 'None', 'Average', 'Count', 'Minimum', 'Maximum', 'Total' @@ -1830,11 +1904,23 @@ export interface Metric { */ name: LocalizableString; /** - * the unit of the metric. Possible values include: 'Count', 'Bytes', 'Seconds', + * Detailed description of this metric. + */ + displayDescription?: string; + /** + * 'Success' or the error details on query failures for this metric. + */ + errorCode?: string; + /** + * Error message encountered querying this specific metric. + */ + errorMessage?: string; + /** + * The unit of the metric. Possible values include: 'Count', 'Bytes', 'Seconds', * 'CountPerSecond', 'BytesPerSecond', 'Percent', 'MilliSeconds', 'ByteSeconds', 'Unspecified', * 'Cores', 'MilliCores', 'NanoCores', 'BitsPerSecond' */ - unit: Unit; + unit: MetricUnit; /** * the time series returned when a data query is performed. */ @@ -1846,7 +1932,7 @@ export interface Metric { */ export interface Response { /** - * The integer value representing the cost of the query, for data case. + * The integer value representing the relative cost of the query. */ cost?: number; /** @@ -1862,11 +1948,11 @@ export interface Response { */ interval?: string; /** - * The namespace of the metrics been queried + * The namespace of the metrics being queried */ namespace?: string; /** - * The region of the resource been queried for metrics. + * The region of the resource being queried for metrics. */ resourceregion?: string; /** @@ -1876,27 +1962,27 @@ export interface Response { } /** - * Represents a baseline metadata value. + * The metric dimension name and value. */ -export interface BaselineMetadataValue { +export interface MetricSingleDimension { /** - * the name of the metadata. + * Name of the dimension. */ - name?: LocalizableString; + name: string; /** - * the value of the metadata. + * Value of the dimension. */ - value?: string; + value: string; } /** * The baseline values for a single sensitivity value. */ -export interface Baseline { +export interface SingleBaseline { /** * the sensitivity of the baseline. Possible values include: 'Low', 'Medium', 'High' */ - sensitivity: Sensitivity; + sensitivity: BaselineSensitivity; /** * The low thresholds of the baseline. */ @@ -1908,160 +1994,43 @@ export interface Baseline { } /** - * The response to a baseline query. + * Represents a baseline metadata value. */ -export interface BaselineResponse { - /** - * the metric baseline Id. - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly id?: string; +export interface BaselineMetadata { /** - * the resource type of the baseline resource. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * Name of the baseline metadata. */ - readonly type?: string; + name: string; /** - * the name and the display name of the metric, i.e. it is localizable string. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * Value of the baseline metadata. */ - readonly name?: LocalizableString; + value: string; +} + +/** + * The baseline values for a single time series. + */ +export interface TimeSeriesBaseline { /** - * The timespan for which the data was retrieved. Its value consists of two datetimes - * concatenated, separated by '/'. This may be adjusted in the future and returned back from - * what was originally requested. + * The aggregation type of the metric. */ - timespan?: string; + aggregation: string; /** - * The interval (window size) for which the metric data was returned in. This may be adjusted in - * the future and returned back from what was originally requested. This is not present if a - * metadata request was made. + * The dimensions of this time series. */ - interval?: string; + dimensions?: MetricSingleDimension[]; /** - * The aggregation type of the metric. + * The list of timestamps of the baselines. */ - aggregation?: string; + timestamps: Date[] | string[]; /** - * the array of timestamps of the baselines. + * The baseline values for each sensitivity. */ - timestamps?: Date[] | string[]; + data: SingleBaseline[]; /** - * the baseline values for each sensitivity. + * The baseline metadata values. */ - baseline?: Baseline[]; - /** - * the baseline metadata values. - */ - metadata?: BaselineMetadataValue[]; -} - -/** - * The time series info needed for calculating the baseline. - */ -export interface TimeSeriesInformation { - /** - * the list of sensitivities for calculating the baseline. - */ - sensitivities: string[]; - /** - * The metric values to calculate the baseline. - */ - values: number[]; - /** - * the array of timestamps of the baselines. - */ - timestamps?: Date[] | string[]; -} - -/** - * The response to a calculate baseline call. - */ -export interface CalculateBaselineResponse { - /** - * the resource type of the baseline resource. - */ - type: string; - /** - * the array of timestamps of the baselines. - */ - timestamps?: Date[] | string[]; - /** - * the baseline values for each sensitivity. - */ - baseline: Baseline[]; -} - -/** - * The metric dimension name and value. - */ -export interface MetricSingleDimension { - /** - * Name of the dimension. - */ - name: string; - /** - * Value of the dimension. - */ - value: string; -} - -/** - * The baseline values for a single sensitivity value. - */ -export interface SingleBaseline { - /** - * the sensitivity of the baseline. Possible values include: 'Low', 'Medium', 'High' - */ - sensitivity: BaselineSensitivity; - /** - * The low thresholds of the baseline. - */ - lowThresholds: number[]; - /** - * The high thresholds of the baseline. - */ - highThresholds: number[]; -} - -/** - * Represents a baseline metadata value. - */ -export interface BaselineMetadata { - /** - * Name of the baseline metadata. - */ - name: string; - /** - * Value of the baseline metadata. - */ - value: string; -} - -/** - * The baseline values for a single time series. - */ -export interface TimeSeriesBaseline { - /** - * The aggregation type of the metric. - */ - aggregation: string; - /** - * The dimensions of this time series. - */ - dimensions?: MetricSingleDimension[]; - /** - * The list of timestamps of the baselines. - */ - timestamps: Date[] | string[]; - /** - * The baseline values for each sensitivity. - */ - data: SingleBaseline[]; - /** - * The baseline metadata values. - */ - metadata?: BaselineMetadata[]; + metadataValues?: BaselineMetadata[]; } /** @@ -2111,15 +2080,16 @@ export interface MetricAlertAction { */ actionGroupId?: string; /** - * The properties of a webhook object. + * This field allows specifying custom properties, which would be appended to the alert payload + * sent as input to the webhook. */ - webhookProperties?: { [propertyName: string]: string }; + webHookProperties?: { [propertyName: string]: string }; } /** * Contains the possible cases for MetricAlertCriteria. */ -export type MetricAlertCriteriaUnion = MetricAlertCriteria | MetricAlertSingleResourceMultipleMetricCriteria | MetricAlertMultipleResourceMultipleMetricCriteria; +export type MetricAlertCriteriaUnion = MetricAlertCriteria | MetricAlertSingleResourceMultipleMetricCriteria | WebtestLocationAvailabilityCriteria | MetricAlertMultipleResourceMultipleMetricCriteria; /** * The rule criteria that defines the conditions of the alert rule. @@ -2142,7 +2112,7 @@ export interface MetricAlertResource extends Resource { /** * the description of the metric alert that will be included in the alert email. */ - description: string; + description?: string; /** * Alert severity {0, 1, 2, 3, 4} */ @@ -2154,7 +2124,7 @@ export interface MetricAlertResource extends Resource { /** * the list of resource id's that this metric alert is scoped to. */ - scopes?: string[]; + scopes: string[]; /** * how often the metric alert is evaluated represented in ISO 8601 duration format. */ @@ -2166,12 +2136,12 @@ export interface MetricAlertResource extends Resource { windowSize: string; /** * the resource type of the target resource(s) on which the alert is created/updated. Mandatory - * for MultipleResourceMultipleMetricCriteria. + * if the scope contains a subscription, resource group, or more than one resource. */ targetResourceType?: string; /** - * the region of the target resource(s) on which the alert is created/updated. Mandatory for - * MultipleResourceMultipleMetricCriteria. + * the region of the target resource(s) on which the alert is created/updated. Mandatory if the + * scope contains a subscription, resource group, or more than one resource. */ targetResourceRegion?: string; /** @@ -2179,7 +2149,7 @@ export interface MetricAlertResource extends Resource { */ criteria: MetricAlertCriteriaUnion; /** - * the flag that indicates whether the alert should be auto resolved or not. + * the flag that indicates whether the alert should be auto resolved or not. The default is true. */ autoMitigate?: boolean; /** @@ -2192,6 +2162,11 @@ export interface MetricAlertResource extends Resource { * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly lastUpdatedTime?: Date; + /** + * the value indicating whether this alert rule is migrated. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly isMigrated?: boolean; } /** @@ -2205,15 +2180,15 @@ export interface MetricAlertResourcePatch { /** * the description of the metric alert that will be included in the alert email. */ - description: string; + description?: string; /** * Alert severity {0, 1, 2, 3, 4} */ - severity: number; + severity?: number; /** * the flag that indicates whether the metric alert is enabled. */ - enabled: boolean; + enabled?: boolean; /** * the list of resource id's that this metric alert is scoped to. */ @@ -2221,12 +2196,12 @@ export interface MetricAlertResourcePatch { /** * how often the metric alert is evaluated represented in ISO 8601 duration format. */ - evaluationFrequency: string; + evaluationFrequency?: string; /** * the period of time (in ISO 8601 duration format) that is used to monitor alert activity based * on the threshold. */ - windowSize: string; + windowSize?: string; /** * the resource type of the target resource(s) on which the alert is created/updated. Mandatory * for MultipleResourceMultipleMetricCriteria. @@ -2240,9 +2215,9 @@ export interface MetricAlertResourcePatch { /** * defines the specific alert criteria information. */ - criteria: MetricAlertCriteriaUnion; + criteria?: MetricAlertCriteriaUnion; /** - * the flag that indicates whether the alert should be auto resolved or not. + * the flag that indicates whether the alert should be auto resolved or not. The default is true. */ autoMitigate?: boolean; /** @@ -2255,6 +2230,11 @@ export interface MetricAlertResourcePatch { * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly lastUpdatedTime?: Date; + /** + * the value indicating whether this alert rule is migrated. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly isMigrated?: boolean; } /** @@ -2333,13 +2313,19 @@ export interface MultiMetricCriteria { */ metricNamespace?: string; /** - * the criteria time aggregation types. + * the criteria time aggregation types. Possible values include: 'Average', 'Count', 'Minimum', + * 'Maximum', 'Total' */ - timeAggregation: any; + timeAggregation: AggregationTypeEnum; /** * List of dimension conditions. */ dimensions?: MetricDimension[]; + /** + * Allows creating an alert rule on a custom metric that isn't yet emitted, by causing the metric + * validation to be skipped. + */ + skipMetricValidation?: boolean; /** * Describes unknown properties. The value of an unknown property can be of "any" type. */ @@ -2367,17 +2353,24 @@ export interface MetricCriteria { */ metricNamespace?: string; /** - * the criteria time aggregation types. + * the criteria time aggregation types. Possible values include: 'Average', 'Count', 'Minimum', + * 'Maximum', 'Total' */ - timeAggregation: any; + timeAggregation: AggregationTypeEnum; /** * List of dimension conditions. */ dimensions?: MetricDimension[]; /** - * the criteria operator. + * Allows creating an alert rule on a custom metric that isn't yet emitted, by causing the metric + * validation to be skipped. + */ + skipMetricValidation?: boolean; + /** + * the criteria operator. Possible values include: 'Equals', 'NotEquals', 'GreaterThan', + * 'GreaterThanOrEqual', 'LessThan', 'LessThanOrEqual' */ - operator: any; + operator: Operator; /** * the criteria threshold value that activates the alert. */ @@ -2398,6 +2391,28 @@ export interface MetricAlertSingleResourceMultipleMetricCriteria { allOf?: MetricCriteria[]; } +/** + * Specifies the metric alert rule criteria for a web test resource. + */ +export interface WebtestLocationAvailabilityCriteria { + /** + * Polymorphic Discriminator + */ + odatatype: "Microsoft.Azure.Monitor.WebtestLocationAvailabilityCriteria"; + /** + * The Application Insights web test Id. + */ + webTestId: string; + /** + * The Application Insights resource Id. + */ + componentId: string; + /** + * The number of failed locations. + */ + failedLocationCount: number; +} + /** * Specifies a metric dimension. */ @@ -2468,22 +2483,29 @@ export interface DynamicMetricCriteria { */ metricNamespace?: string; /** - * the criteria time aggregation types. + * the criteria time aggregation types. Possible values include: 'Average', 'Count', 'Minimum', + * 'Maximum', 'Total' */ - timeAggregation: any; + timeAggregation: AggregationTypeEnum; /** * List of dimension conditions. */ dimensions?: MetricDimension[]; /** - * The operator used to compare the metric value against the threshold. + * Allows creating an alert rule on a custom metric that isn't yet emitted, by causing the metric + * validation to be skipped. + */ + skipMetricValidation?: boolean; + /** + * The operator used to compare the metric value against the threshold. Possible values include: + * 'GreaterThan', 'LessThan', 'GreaterOrLessThan' */ - operator: any; + operator: DynamicThresholdOperator; /** * The extent of deviation required to trigger an alert. This will affect how tight the threshold - * is to the metric series pattern. + * is to the metric series pattern. Possible values include: 'Low', 'Medium', 'High' */ - alertSensitivity: any; + alertSensitivity: DynamicThresholdSensitivity; /** * The minimum number of violations required within the selected lookback time window required to * raise an alert. @@ -2552,10 +2574,29 @@ export interface Action { * The Log Search Rule resource. */ export interface LogSearchRuleResource extends Resource { + /** + * The api-version used when creating this alert rule + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly createdWithApiVersion?: string; + /** + * True if alert rule is legacy Log Analytic rule + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly isLegacyLogAnalyticsRule?: boolean; /** * The description of the Log Search rule. */ description?: string; + /** + * The display name of the alert rule + */ + displayName?: string; + /** + * The flag that indicates whether the alert should be automatically resolved or not. The default + * is false. Default value: false. + */ + autoMitigate?: boolean; /** * The flag which indicates whether the Log Search rule is enabled. Value should be true or * false. Possible values include: 'true', 'false' @@ -2607,7 +2648,8 @@ export interface LogSearchRuleResourcePatch { export interface LogMetricTrigger { /** * Evaluation operation for Metric -'GreaterThan' or 'LessThan' or 'Equal'. Possible values - * include: 'GreaterThan', 'LessThan', 'Equal' + * include: 'GreaterThanOrEqual', 'LessThanOrEqual', 'GreaterThan', 'LessThan', 'Equal'. Default + * value: 'GreaterThanOrEqual'. */ thresholdOperator?: ConditionalOperator; /** @@ -2616,7 +2658,7 @@ export interface LogMetricTrigger { threshold?: number; /** * Metric Trigger Type - 'Consecutive' or 'Total'. Possible values include: 'Consecutive', - * 'Total' + * 'Total'. Default value: 'Consecutive'. */ metricTriggerType?: MetricTriggerType; /** @@ -2631,7 +2673,8 @@ export interface LogMetricTrigger { export interface TriggerCondition { /** * Evaluation operation for rule - 'GreaterThan' or 'LessThan. Possible values include: - * 'GreaterThan', 'LessThan', 'Equal' + * 'GreaterThanOrEqual', 'LessThanOrEqual', 'GreaterThan', 'LessThan', 'Equal'. Default value: + * 'GreaterThanOrEqual'. */ thresholdOperator: ConditionalOperator; /** @@ -2730,6 +2773,16 @@ export interface LogToMetricAction { criteria: Criteria[]; } +/** + * Describes the format of Error response. + */ +export interface ErrorContract { + /** + * The error details. + */ + error?: ErrorResponse; +} + /** * The fully qualified metric namespace name. */ @@ -2745,7 +2798,7 @@ export interface MetricNamespaceName { */ export interface MetricNamespace { /** - * The ID of the metricNamespace. + * The ID of the metric namespace. */ id?: string; /** @@ -2753,9 +2806,13 @@ export interface MetricNamespace { */ type?: string; /** - * The name of the namespace. + * The escaped name of the namespace. */ name?: string; + /** + * Kind of namespace. Possible values include: 'Platform', 'Custom', 'Qos' + */ + classification?: NamespaceClassification; /** * Properties which include the fully qualified namespace name. */ @@ -2863,550 +2920,2620 @@ export interface VMInsightsOnboardingStatus extends ProxyResource { } /** - * Optional Parameters. + * The resource management error additional info. */ -export interface ActivityLogsListOptionalParams extends msRest.RequestOptionsBase { +export interface ErrorAdditionalInfo { /** - * Used to fetch events with only the given properties.
The **$select** argument is a comma - * separated list of property names to be returned. Possible values are: *authorization*, - * *claims*, *correlationId*, *description*, *eventDataId*, *eventName*, *eventTimestamp*, - * *httpRequest*, *level*, *operationId*, *operationName*, *properties*, *resourceGroupName*, - * *resourceProviderName*, *resourceId*, *status*, *submissionTimestamp*, *subStatus*, - * *subscriptionId* + * The additional info type. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - select?: string; + readonly type?: string; + /** + * The additional info. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly info?: any; } /** - * Optional Parameters. + * The resource management error response. */ -export interface TenantActivityLogsListOptionalParams extends msRest.RequestOptionsBase { +export interface ErrorResponseCommon extends ErrorResponse { /** - * Reduces the set of data collected.
The **$filter** is very restricted and allows only the - * following patterns.
- List events for a resource group: $filter=eventTimestamp ge '' and eventTimestamp le '' and eventChannels eq 'Admin, Operation' and - * resourceGroupName eq ''.
- List events for resource: - * $filter=eventTimestamp ge '' and eventTimestamp le '' and eventChannels - * eq 'Admin, Operation' and resourceUri eq ''.
- List events for a subscription: - * $filter=eventTimestamp ge '' and eventTimestamp le '' and eventChannels - * eq 'Admin, Operation'.
- List events for a resource provider: $filter=eventTimestamp ge - * '' and eventTimestamp le '' and eventChannels eq 'Admin, Operation' and - * resourceProvider eq ''.
- List events for a correlation Id: - * api-version=2014-04-01&$filter=eventTimestamp ge '2014-07-16T04:36:37.6407898Z' and - * eventTimestamp le '2014-07-20T04:36:37.6407898Z' and eventChannels eq 'Admin, Operation' and - * correlationId eq ''.
**NOTE**: No other syntax is allowed. + * The error details. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - filter?: string; + readonly details?: ErrorResponseCommon[]; /** - * Used to fetch events with only the given properties.
The **$select** argument is a comma - * separated list of property names to be returned. Possible values are: *authorization*, - * *claims*, *correlationId*, *description*, *eventDataId*, *eventName*, *eventTimestamp*, - * *httpRequest*, *level*, *operationId*, *operationName*, *properties*, *resourceGroupName*, - * *resourceProviderName*, *resourceId*, *status*, *submissionTimestamp*, *subStatus*, - * *subscriptionId* + * The error additional info. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - select?: string; + readonly additionalInfo?: ErrorAdditionalInfo[]; } /** - * Optional Parameters. + * The status of operation. */ -export interface MetricDefinitionsListOptionalParams extends msRest.RequestOptionsBase { +export interface OperationStatus { /** - * Metric namespace to query metric definitions for. + * The operation Id. */ - metricnamespace?: string; -} - -/** - * Optional Parameters. - */ -export interface MetricsListOptionalParams extends msRest.RequestOptionsBase { + id?: string; /** - * The timespan of the query. It is a string with the following format - * 'startDateTime_ISO/endDateTime_ISO'. + * The operation name. */ - timespan?: string; + name?: string; /** - * The interval (i.e. timegrain) of the query. + * Start time of the job in standard ISO8601 format. */ - interval?: string; + startTime?: Date; /** - * The names of the metrics (comma separated) to retrieve. + * End time of the job in standard ISO8601 format. */ - metricnames?: string; + endTime?: Date; /** - * The list of aggregation types (comma separated) to retrieve. + * The status of the operation. */ - aggregation?: string; + status?: string; /** - * The maximum number of records to retrieve. - * Valid only if $filter is specified. - * Defaults to 10. + * The error detail of the operation if any. */ - top?: number; + error?: ErrorResponseCommon; +} + +/** + * An azure resource object + */ +export interface PrivateLinkScopesResource extends BaseResource { /** - * The aggregation to use for sorting results and the direction of the sort. - * Only one order can be specified. - * Examples: sum asc. + * Azure resource Id + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - orderby?: string; + readonly id?: string; /** - * The **$filter** is used to reduce the set of metric data returned.
Example:
Metric - * contains metadata A, B and C.
- Return all time series of C where A = a1 and B = b1 or - * b2
**$filter=A eq ‘a1’ and B eq ‘b1’ or B eq ‘b2’ and C eq ‘*’**
- Invalid - * variant:
**$filter=A eq ‘a1’ and B eq ‘b1’ and C eq ‘*’ or B = ‘b2’**
This is invalid - * because the logical or operator cannot separate two different metadata names.
- Return all - * time series where A = a1, B = b1 and C = c1:
**$filter=A eq ‘a1’ and B eq ‘b1’ and C eq - * ‘c1’**
- Return all time series where A = a1
**$filter=A eq ‘a1’ and B eq ‘*’ and C eq - * ‘*’**. + * Azure resource name + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - filter?: string; + readonly name?: string; /** - * Reduces the set of data collected. The syntax allowed depends on the operation. See the - * operation's description for details. Possible values include: 'Data', 'Metadata' + * Azure resource type + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - resultType?: ResultType; + readonly type?: string; /** - * Metric namespace to query metric definitions for. + * Resource location */ - metricnamespace?: string; + location: string; + /** + * Resource tags + */ + tags?: { [propertyName: string]: string }; } /** - * Optional Parameters. + * A container holding only the Tags for a resource, allowing the user to update the tags on a + * PrivateLinkScope instance. */ -export interface MetricBaselineGetOptionalParams extends msRest.RequestOptionsBase { +export interface TagsResource { /** - * The timespan of the query. It is a string with the following format - * 'startDateTime_ISO/endDateTime_ISO'. + * Resource tags */ - timespan?: string; - /** - * The interval (i.e. timegrain) of the query. - */ - interval?: string; - /** - * The aggregation type of the metric to retrieve the baseline for. - */ - aggregation?: string; - /** - * The list of sensitivities (comma separated) to retrieve. - */ - sensitivities?: string; + tags?: { [propertyName: string]: string }; +} + +/** + * Private endpoint which the connection belongs to. + */ +export interface PrivateEndpointProperty { /** - * Allows retrieving only metadata of the baseline. On data request all information is retrieved. - * Possible values include: 'Data', 'Metadata' + * Resource id of the private endpoint. */ - resultType?: ResultType; + id?: string; } /** - * Optional Parameters. + * State of the private endpoint connection. */ -export interface BaselinesListOptionalParams extends msRest.RequestOptionsBase { +export interface PrivateLinkServiceConnectionStateProperty { /** - * The names of the metrics (comma separated) to retrieve. + * The private link service connection status. */ - metricnames?: string; + status: string; /** - * Metric namespace to query metric definitions for. + * The private link service connection description. */ - metricnamespace?: string; + description: string; /** - * The timespan of the query. It is a string with the following format - * 'startDateTime_ISO/endDateTime_ISO'. + * The actions required for private link service connection. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - timespan?: string; + readonly actionsRequired?: string; +} + +/** + * A private endpoint connection + */ +export interface PrivateEndpointConnection extends ProxyResource { /** - * The interval (i.e. timegrain) of the query. + * Private endpoint which the connection belongs to. */ - interval?: string; + privateEndpoint?: PrivateEndpointProperty; /** - * The list of aggregation types (comma separated) to retrieve. + * Connection state of the private endpoint connection. */ - aggregation?: string; + privateLinkServiceConnectionState?: PrivateLinkServiceConnectionStateProperty; /** - * The list of sensitivities (comma separated) to retrieve. + * State of the private endpoint connection. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - sensitivities?: string; + readonly provisioningState?: string; +} + +/** + * An Azure Monitor PrivateLinkScope definition. + */ +export interface AzureMonitorPrivateLinkScope extends PrivateLinkScopesResource { /** - * The **$filter** is used to reduce the set of metric data returned.
Example:
Metric - * contains metadata A, B and C.
- Return all time series of C where A = a1 and B = b1 or - * b2
**$filter=A eq ‘a1’ and B eq ‘b1’ or B eq ‘b2’ and C eq ‘*’**
- Invalid - * variant:
**$filter=A eq ‘a1’ and B eq ‘b1’ and C eq ‘*’ or B = ‘b2’**
This is invalid - * because the logical or operator cannot separate two different metadata names.
- Return all - * time series where A = a1, B = b1 and C = c1:
**$filter=A eq ‘a1’ and B eq ‘b1’ and C eq - * ‘c1’**
- Return all time series where A = a1
**$filter=A eq ‘a1’ and B eq ‘*’ and C eq - * ‘*’**. + * Current state of this PrivateLinkScope: whether or not is has been provisioned within the + * resource group it is defined. Users cannot change this value but are able to read from it. + * Values will include Provisioning ,Succeeded, Canceled and Failed. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - filter?: string; + readonly provisioningState?: string; /** - * Allows retrieving only metadata of the baseline. On data request all information is retrieved. - * Possible values include: 'Data', 'Metadata' + * List of private endpoint connections. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - resultType?: ResultType; + readonly privateEndpointConnections?: PrivateEndpointConnection[]; } /** - * Optional Parameters. + * A private link resource */ -export interface ScheduledQueryRulesListBySubscriptionOptionalParams extends msRest.RequestOptionsBase { +export interface PrivateLinkResource extends ProxyResource { /** - * The filter to apply on the operation. For more information please see - * https://msdn.microsoft.com/en-us/library/azure/dn931934.aspx + * The private link resource group id. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - filter?: string; + readonly groupId?: string; + /** + * The private link resource required member names. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly requiredMembers?: string[]; } /** - * Optional Parameters. + * A private link scoped resource */ -export interface ScheduledQueryRulesListByResourceGroupOptionalParams extends msRest.RequestOptionsBase { +export interface ScopedResource extends ProxyResource { /** - * The filter to apply on the operation. For more information please see - * https://msdn.microsoft.com/en-us/library/azure/dn931934.aspx + * The resource id of the scoped Azure monitor resource. */ - filter?: string; + linkedResourceId?: string; + /** + * State of the private endpoint connection. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly provisioningState?: string; } /** - * Optional Parameters. + * An Activity Log alert condition that is met by comparing an activity log field and value. */ -export interface MetricNamespacesListOptionalParams extends msRest.RequestOptionsBase { +export interface ActivityLogAlertLeafCondition { /** - * The ISO 8601 conform Date start time from which to query for metric namespaces. + * The name of the field that this condition will examine. The possible values for this field are + * (case-insensitive): 'resourceId', 'category', 'caller', 'level', 'operationName', + * 'resourceGroup', 'resourceProvider', 'status', 'subStatus', 'resourceType', or anything + * beginning with 'properties.'. */ - startTime?: string; + field: string; + /** + * The field value will be compared to this value (case-insensitive) to determine if the + * condition is met. + */ + equals: string; } /** - * An interface representing MonitorManagementClientOptions. + * An Activity Log alert condition that is met when all its member conditions are met. */ -export interface MonitorManagementClientOptions extends AzureServiceClientOptions { - baseUri?: string; +export interface ActivityLogAlertAllOfCondition { + /** + * The list of activity log alert conditions. + */ + allOf: ActivityLogAlertLeafCondition[]; } /** - * @interface - * Represents a collection of autoscale setting resources. - * @extends Array + * A pointer to an Azure Action Group. */ -export interface AutoscaleSettingResourceCollection extends Array { +export interface ActivityLogAlertActionGroup { /** - * URL to get the next set of results. + * The resourceId of the action group. This cannot be null or empty. */ - nextLink?: string; + actionGroupId: string; + /** + * the dictionary of custom properties to include with the post operation. These data are + * appended to the webhook payload. + */ + webhookProperties?: { [propertyName: string]: string }; } /** - * @interface - * The List incidents operation response. - * @extends Array + * A list of activity log alert actions. */ -export interface IncidentListResult extends Array { +export interface ActivityLogAlertActionList { + /** + * The list of activity log alerts. + */ + actionGroups?: ActivityLogAlertActionGroup[]; } /** - * @interface - * Represents a collection of alert rule resources. - * @extends Array + * An activity log alert resource. */ -export interface AlertRuleResourceCollection extends Array { +export interface ActivityLogAlertResource extends Resource { + /** + * A list of resourceIds that will be used as prefixes. The alert will only apply to activityLogs + * with resourceIds that fall under one of these prefixes. This list must include at least one + * item. + */ + scopes: string[]; + /** + * Indicates whether this activity log alert is enabled. If an activity log alert is not enabled, + * then none of its actions will be activated. Default value: true. + */ + enabled?: boolean; + /** + * The condition that will cause this alert to activate. + */ + condition: ActivityLogAlertAllOfCondition; + /** + * The actions that will activate when the condition is met. + */ + actions: ActivityLogAlertActionList; + /** + * A description of this activity log alert. + */ + description?: string; } /** - * @interface - * Represents a collection of log profiles. - * @extends Array + * An activity log alert object for the body of patch operations. */ -export interface LogProfileCollection extends Array { +export interface ActivityLogAlertPatchBody { + /** + * Resource tags + */ + tags?: { [propertyName: string]: string }; + /** + * Indicates whether this activity log alert is enabled. If an activity log alert is not enabled, + * then none of its actions will be activated. Default value: true. + */ + enabled?: boolean; } /** - * @interface - * A list of action groups. - * @extends Array + * Definition of the endpoint used for accessing configuration. */ -export interface ActionGroupList extends Array { +export interface ConfigurationAccessEndpointSpec { /** - * Provides the link to retrieve the next set of elements. + * The endpoint. This property is READ-ONLY. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - nextLink?: string; + readonly endpoint?: string; } /** - * @interface - * A list of activity log alerts. - * @extends Array + * Definition of the endpoint used for ingesting logs. */ -export interface ActivityLogAlertList extends Array { +export interface LogsIngestionEndpointSpec { /** - * Provides the link to retrieve the next set of elements. + * The endpoint. This property is READ-ONLY. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - nextLink?: string; + readonly endpoint?: string; } /** - * @interface - * Represents collection of events. - * @extends Array + * Definition of the network rules. */ -export interface EventDataCollection extends Array { +export interface NetworkRuleSet { /** - * Provides the link to retrieve the next set of events. + * The configuration to set whether network access from public internet to the endpoints are + * allowed. Possible values include: 'Enabled', 'Disabled' */ - nextLink?: string; + publicNetworkAccess?: KnownPublicNetworkAccessOptions; } /** - * @interface - * A collection of event categories. Currently possible values are: Administrative, Security, - * ServiceHealth, Alert, Recommendation, Policy. - * @extends Array + * The endpoint used by agents to access their configuration. */ -export interface EventCategoryCollection extends Array { +export interface DataCollectionEndpointConfigurationAccess extends ConfigurationAccessEndpointSpec { } /** - * @interface - * Represents collection of metric definitions. - * @extends Array + * The endpoint used by clients to ingest logs. */ -export interface MetricDefinitionCollection extends Array { +export interface DataCollectionEndpointLogsIngestion extends LogsIngestionEndpointSpec { } /** - * @interface - * A list of metric baselines. - * @extends Array + * Network access control rules for the endpoints. */ -export interface MetricBaselinesResponse extends Array { +export interface DataCollectionEndpointNetworkAcls extends NetworkRuleSet { } /** - * @interface - * Represents a collection of alert rule resources. - * @extends Array + * Definition of data collection endpoint. */ -export interface MetricAlertResourceCollection extends Array { +export interface DataCollectionEndpoint { + /** + * Description of the data collection endpoint. + */ + description?: string; + /** + * The immutable ID of this data collection endpoint resource. This property is READ-ONLY. + */ + immutableId?: string; + /** + * The endpoint used by agents to access their configuration. + */ + configurationAccess?: DataCollectionEndpointConfigurationAccess; + /** + * The endpoint used by clients to ingest logs. + */ + logsIngestion?: DataCollectionEndpointLogsIngestion; + /** + * Network access control rules for the endpoints. + */ + networkAcls?: DataCollectionEndpointNetworkAcls; + /** + * The resource provisioning state. This property is READ-ONLY. Possible values include: + * 'Creating', 'Updating', 'Deleting', 'Succeeded', 'Failed' + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly provisioningState?: KnownDataCollectionEndpointProvisioningState; } /** - * @interface - * Represents a collection of Log Search rule resources. - * @extends Array + * Metadata pertaining to creation and last modification of the resource. */ -export interface LogSearchRuleResourceCollection extends Array { +export interface SystemData { + /** + * The identity that created the resource. + */ + createdBy?: string; + /** + * The type of identity that created the resource. Possible values include: 'User', + * 'Application', 'ManagedIdentity', 'Key' + */ + createdByType?: CreatedByType; + /** + * The timestamp of resource creation (UTC). + */ + createdAt?: Date; + /** + * The identity that last modified the resource. + */ + lastModifiedBy?: string; + /** + * The type of identity that last modified the resource. Possible values include: 'User', + * 'Application', 'ManagedIdentity', 'Key' + */ + lastModifiedByType?: CreatedByType; + /** + * The timestamp of resource last modification (UTC) + */ + lastModifiedAt?: Date; } /** - * @interface - * Represents collection of metric namespaces. - * @extends Array + * Metadata pertaining to creation and last modification of the resource. */ -export interface MetricNamespaceCollection extends Array { +export interface DataCollectionEndpointResourceSystemData extends SystemData { } /** - * Defines values for MetricStatisticType. - * Possible values include: 'Average', 'Min', 'Max', 'Sum' - * @readonly - * @enum {string} - */ -export type MetricStatisticType = 'Average' | 'Min' | 'Max' | 'Sum'; - -/** - * Defines values for TimeAggregationType. - * Possible values include: 'Average', 'Minimum', 'Maximum', 'Total', 'Count', 'Last' - * @readonly - * @enum {string} - */ -export type TimeAggregationType = 'Average' | 'Minimum' | 'Maximum' | 'Total' | 'Count' | 'Last'; - -/** - * Defines values for ComparisonOperationType. - * Possible values include: 'Equals', 'NotEquals', 'GreaterThan', 'GreaterThanOrEqual', 'LessThan', - * 'LessThanOrEqual' - * @readonly - * @enum {string} + * Definition of ARM tracked top level resource. */ -export type ComparisonOperationType = 'Equals' | 'NotEquals' | 'GreaterThan' | 'GreaterThanOrEqual' | 'LessThan' | 'LessThanOrEqual'; - -/** - * Defines values for ScaleDirection. - * Possible values include: 'None', 'Increase', 'Decrease' - * @readonly - * @enum {string} - */ -export type ScaleDirection = 'None' | 'Increase' | 'Decrease'; +export interface DataCollectionEndpointResource extends BaseResource { + /** + * Description of the data collection endpoint. + */ + description?: string; + /** + * The immutable ID of this data collection endpoint resource. This property is READ-ONLY. + */ + immutableId?: string; + /** + * The endpoint used by agents to access their configuration. + */ + configurationAccess?: DataCollectionEndpointConfigurationAccess; + /** + * The endpoint used by clients to ingest logs. + */ + logsIngestion?: DataCollectionEndpointLogsIngestion; + /** + * Network access control rules for the endpoints. + */ + networkAcls?: DataCollectionEndpointNetworkAcls; + /** + * The resource provisioning state. This property is READ-ONLY. Possible values include: + * 'Creating', 'Updating', 'Deleting', 'Succeeded', 'Failed' + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly provisioningState?: KnownDataCollectionEndpointProvisioningState; + /** + * The geo-location where the resource lives. + */ + location: string; + /** + * Resource tags. + */ + tags?: { [propertyName: string]: string }; + /** + * The kind of the resource. Possible values include: 'Linux', 'Windows' + */ + kind?: KnownDataCollectionEndpointResourceKind; + /** + * Fully qualified ID of the resource. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly id?: string; + /** + * The name of the resource. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly name?: string; + /** + * The type of the resource. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly type?: string; + /** + * Resource entity tag (ETag). + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly etag?: string; + /** + * Metadata pertaining to creation and last modification of the resource. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly systemData?: DataCollectionEndpointResourceSystemData; +} /** - * Defines values for ScaleType. - * Possible values include: 'ChangeCount', 'PercentChangeCount', 'ExactCount' - * @readonly - * @enum {string} + * Definition of ARM tracked top level resource properties for update operation. */ -export type ScaleType = 'ChangeCount' | 'PercentChangeCount' | 'ExactCount'; +export interface ResourceForUpdate { + /** + * Resource tags. + */ + tags?: { [propertyName: string]: string }; +} /** - * Defines values for RecurrenceFrequency. - * Possible values include: 'None', 'Second', 'Minute', 'Hour', 'Day', 'Week', 'Month', 'Year' - * @readonly - * @enum {string} + * The error detail. */ -export type RecurrenceFrequency = 'None' | 'Second' | 'Minute' | 'Hour' | 'Day' | 'Week' | 'Month' | 'Year'; +export interface ErrorDetail { + /** + * The error code. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly code?: string; + /** + * The error message. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly message?: string; + /** + * The error target. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly target?: string; + /** + * The error details. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly details?: ErrorDetail[]; + /** + * The error additional info. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly additionalInfo?: ErrorAdditionalInfo[]; +} /** - * Defines values for ConditionOperator. - * Possible values include: 'GreaterThan', 'GreaterThanOrEqual', 'LessThan', 'LessThanOrEqual' - * @readonly - * @enum {string} + * Common error response for all Azure Resource Manager APIs to return error details for failed + * operations. (This also follows the OData error response format.). + * @summary Error response */ -export type ConditionOperator = 'GreaterThan' | 'GreaterThanOrEqual' | 'LessThan' | 'LessThanOrEqual'; +export interface ErrorResponseCommonV2 { + /** + * The error object. + */ + error?: ErrorDetail; +} /** - * Defines values for TimeAggregationOperator. - * Possible values include: 'Average', 'Minimum', 'Maximum', 'Total', 'Last' - * @readonly - * @enum {string} + * Definition of association of a data collection rule with a monitored Azure resource. */ -export type TimeAggregationOperator = 'Average' | 'Minimum' | 'Maximum' | 'Total' | 'Last'; +export interface DataCollectionRuleAssociation { + /** + * Description of the association. + */ + description?: string; + /** + * The resource ID of the data collection rule that is to be associated. + */ + dataCollectionRuleId?: string; + /** + * The resource ID of the data collection endpoint that is to be associated. + */ + dataCollectionEndpointId?: string; + /** + * The resource provisioning state. Possible values include: 'Creating', 'Updating', 'Deleting', + * 'Succeeded', 'Failed' + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly provisioningState?: KnownDataCollectionRuleAssociationProvisioningState; +} /** - * Defines values for CategoryType. - * Possible values include: 'Metrics', 'Logs' - * @readonly - * @enum {string} + * Metadata pertaining to creation and last modification of the resource. */ -export type CategoryType = 'Metrics' | 'Logs'; +export interface DataCollectionRuleAssociationProxyOnlyResourceSystemData extends SystemData { +} /** - * Defines values for ReceiverStatus. - * Possible values include: 'NotSpecified', 'Enabled', 'Disabled' - * @readonly - * @enum {string} + * Definition of generic ARM proxy resource. */ -export type ReceiverStatus = 'NotSpecified' | 'Enabled' | 'Disabled'; +export interface DataCollectionRuleAssociationProxyOnlyResource extends BaseResource { + /** + * Description of the association. + */ + description?: string; + /** + * The resource ID of the data collection rule that is to be associated. + */ + dataCollectionRuleId?: string; + /** + * The resource ID of the data collection endpoint that is to be associated. + */ + dataCollectionEndpointId?: string; + /** + * The resource provisioning state. Possible values include: 'Creating', 'Updating', 'Deleting', + * 'Succeeded', 'Failed' + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly provisioningState?: KnownDataCollectionRuleAssociationProvisioningState; + /** + * Fully qualified ID of the resource. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly id?: string; + /** + * The name of the resource. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly name?: string; + /** + * The type of the resource. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly type?: string; + /** + * Resource entity tag (ETag). + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly etag?: string; + /** + * Metadata pertaining to creation and last modification of the resource. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly systemData?: DataCollectionRuleAssociationProxyOnlyResourceSystemData; +} /** - * Defines values for EventLevel. - * Possible values include: 'Critical', 'Error', 'Warning', 'Informational', 'Verbose' - * @readonly - * @enum {string} + * Definition of which performance counters will be collected and how they will be collected by + * this data collection rule. + * Collected from both Windows and Linux machines where the counter is present. */ -export type EventLevel = 'Critical' | 'Error' | 'Warning' | 'Informational' | 'Verbose'; +export interface PerfCounterDataSource { + /** + * List of streams that this data source will be sent to. + * A stream indicates what schema will be used for this data and usually what table in Log + * Analytics the data will be sent to. + */ + streams?: KnownPerfCounterDataSourceStreams[]; + /** + * The number of seconds between consecutive counter measurements (samples). + */ + samplingFrequencyInSeconds?: number; + /** + * A list of specifier names of the performance counters you want to collect. + * Use a wildcard (*) to collect a counter for all instances. + * To get a list of performance counters on Windows, run the command 'typeperf'. + */ + counterSpecifiers?: string[]; + /** + * A friendly name for the data source. + * This name should be unique across all data sources (regardless of type) within the data + * collection rule. + */ + name?: string; +} /** - * Defines values for Unit. - * Possible values include: 'Count', 'Bytes', 'Seconds', 'CountPerSecond', 'BytesPerSecond', - * 'Percent', 'MilliSeconds', 'ByteSeconds', 'Unspecified', 'Cores', 'MilliCores', 'NanoCores', - * 'BitsPerSecond' - * @readonly - * @enum {string} + * Definition of which Windows Event Log events will be collected and how they will be collected. + * Only collected from Windows machines. */ -export type Unit = 'Count' | 'Bytes' | 'Seconds' | 'CountPerSecond' | 'BytesPerSecond' | 'Percent' | 'MilliSeconds' | 'ByteSeconds' | 'Unspecified' | 'Cores' | 'MilliCores' | 'NanoCores' | 'BitsPerSecond'; +export interface WindowsEventLogDataSource { + /** + * List of streams that this data source will be sent to. + * A stream indicates what schema will be used for this data and usually what table in Log + * Analytics the data will be sent to. + */ + streams?: KnownWindowsEventLogDataSourceStreams[]; + /** + * A list of Windows Event Log queries in XPATH format. + */ + xPathQueries?: string[]; + /** + * A friendly name for the data source. + * This name should be unique across all data sources (regardless of type) within the data + * collection rule. + */ + name?: string; +} /** - * Defines values for AggregationType. - * Possible values include: 'None', 'Average', 'Count', 'Minimum', 'Maximum', 'Total' - * @readonly - * @enum {string} + * Definition of which syslog data will be collected and how it will be collected. + * Only collected from Linux machines. */ -export type AggregationType = 'None' | 'Average' | 'Count' | 'Minimum' | 'Maximum' | 'Total'; +export interface SyslogDataSource { + /** + * List of streams that this data source will be sent to. + * A stream indicates what schema will be used for this data and usually what table in Log + * Analytics the data will be sent to. + */ + streams?: KnownSyslogDataSourceStreams[]; + /** + * The list of facility names. + */ + facilityNames?: KnownSyslogDataSourceFacilityNames[]; + /** + * The log levels to collect. + */ + logLevels?: KnownSyslogDataSourceLogLevels[]; + /** + * A friendly name for the data source. + * This name should be unique across all data sources (regardless of type) within the data + * collection rule. + */ + name?: string; +} /** - * Defines values for Sensitivity. - * Possible values include: 'Low', 'Medium', 'High' - * @readonly - * @enum {string} + * Definition of which data will be collected from a separate VM extension that integrates with the + * Azure Monitor Agent. + * Collected from either Windows and Linux machines, depending on which extension is defined. */ -export type Sensitivity = 'Low' | 'Medium' | 'High'; +export interface ExtensionDataSource { + /** + * List of streams that this data source will be sent to. + * A stream indicates what schema will be used for this data and usually what table in Log + * Analytics the data will be sent to. + */ + streams?: KnownExtensionDataSourceStreams[]; + /** + * The name of the VM extension. + */ + extensionName: string; + /** + * The extension settings. The format is specific for particular extension. + */ + extensionSettings?: any; + /** + * The list of data sources this extension needs data from. + */ + inputDataSources?: string[]; + /** + * A friendly name for the data source. + * This name should be unique across all data sources (regardless of type) within the data + * collection rule. + */ + name?: string; +} /** - * Defines values for BaselineSensitivity. - * Possible values include: 'Low', 'Medium', 'High' - * @readonly - * @enum {string} + * Specification of data sources that will be collected. */ -export type BaselineSensitivity = 'Low' | 'Medium' | 'High'; +export interface DataSourcesSpec { + /** + * The list of performance counter data source configurations. + */ + performanceCounters?: PerfCounterDataSource[]; + /** + * The list of Windows Event Log data source configurations. + */ + windowsEventLogs?: WindowsEventLogDataSource[]; + /** + * The list of Syslog data source configurations. + */ + syslog?: SyslogDataSource[]; + /** + * The list of Azure VM extension data source configurations. + */ + extensions?: ExtensionDataSource[]; +} /** - * Defines values for Enabled. - * Possible values include: 'true', 'false' - * @readonly - * @enum {string} + * Log Analytics destination. */ -export type Enabled = 'true' | 'false'; +export interface LogAnalyticsDestination { + /** + * The resource ID of the Log Analytics workspace. + */ + workspaceResourceId?: string; + /** + * The Customer ID of the Log Analytics workspace. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly workspaceId?: string; + /** + * A friendly name for the destination. + * This name should be unique across all destinations (regardless of type) within the data + * collection rule. + */ + name?: string; +} /** - * Defines values for ProvisioningState. - * Possible values include: 'Succeeded', 'Deploying', 'Canceled', 'Failed' - * @readonly - * @enum {string} + * Azure Monitor Metrics destination. */ -export type ProvisioningState = 'Succeeded' | 'Deploying' | 'Canceled' | 'Failed'; +export interface AzureMonitorMetricsDestination { + /** + * A friendly name for the destination. + * This name should be unique across all destinations (regardless of type) within the data + * collection rule. + */ + name?: string; +} /** - * Defines values for QueryType. - * Possible values include: 'ResultCount' - * @readonly - * @enum {string} + * Azure Monitor Metrics destination. */ -export type QueryType = 'ResultCount'; +export interface DestinationsSpecAzureMonitorMetrics extends AzureMonitorMetricsDestination { +} /** - * Defines values for ConditionalOperator. - * Possible values include: 'GreaterThan', 'LessThan', 'Equal' - * @readonly - * @enum {string} + * Specification of destinations that can be used in data flows. */ -export type ConditionalOperator = 'GreaterThan' | 'LessThan' | 'Equal'; +export interface DestinationsSpec { + /** + * List of Log Analytics destinations. + */ + logAnalytics?: LogAnalyticsDestination[]; + /** + * Azure Monitor Metrics destination. + */ + azureMonitorMetrics?: DestinationsSpecAzureMonitorMetrics; +} /** - * Defines values for MetricTriggerType. - * Possible values include: 'Consecutive', 'Total' - * @readonly - * @enum {string} + * Definition of which streams are sent to which destinations. */ -export type MetricTriggerType = 'Consecutive' | 'Total'; - -/** - * Defines values for AlertSeverity. - * Possible values include: '0', '1', '2', '3', '4' +export interface DataFlow { + /** + * List of streams for this data flow. + */ + streams?: KnownDataFlowStreams[]; + /** + * List of destinations for this data flow. + */ + destinations?: string[]; +} + +/** + * The specification of data sources. + * This property is optional and can be omitted if the rule is meant to be used via direct calls to + * the provisioned endpoint. + */ +export interface DataCollectionRuleDataSources extends DataSourcesSpec { +} + +/** + * The specification of destinations. + */ +export interface DataCollectionRuleDestinations extends DestinationsSpec { +} + +/** + * Definition of what monitoring data to collect and where that data should be sent. + */ +export interface DataCollectionRule { + /** + * Description of the data collection rule. + */ + description?: string; + /** + * The immutable ID of this data collection rule. This property is READ-ONLY. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly immutableId?: string; + /** + * The specification of data sources. + * This property is optional and can be omitted if the rule is meant to be used via direct calls + * to the provisioned endpoint. + */ + dataSources?: DataCollectionRuleDataSources; + /** + * The specification of destinations. + */ + destinations?: DataCollectionRuleDestinations; + /** + * The specification of data flows. + */ + dataFlows?: DataFlow[]; + /** + * The resource provisioning state. Possible values include: 'Creating', 'Updating', 'Deleting', + * 'Succeeded', 'Failed' + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly provisioningState?: KnownDataCollectionRuleProvisioningState; +} + +/** + * Metadata pertaining to creation and last modification of the resource. + */ +export interface DataCollectionRuleResourceSystemData extends SystemData { +} + +/** + * Definition of ARM tracked top level resource. + */ +export interface DataCollectionRuleResource extends BaseResource { + /** + * Description of the data collection rule. + */ + description?: string; + /** + * The immutable ID of this data collection rule. This property is READ-ONLY. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly immutableId?: string; + /** + * The specification of data sources. + * This property is optional and can be omitted if the rule is meant to be used via direct calls + * to the provisioned endpoint. + */ + dataSources?: DataCollectionRuleDataSources; + /** + * The specification of destinations. + */ + destinations?: DataCollectionRuleDestinations; + /** + * The specification of data flows. + */ + dataFlows?: DataFlow[]; + /** + * The resource provisioning state. Possible values include: 'Creating', 'Updating', 'Deleting', + * 'Succeeded', 'Failed' + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly provisioningState?: KnownDataCollectionRuleProvisioningState; + /** + * The geo-location where the resource lives. + */ + location: string; + /** + * Resource tags. + */ + tags?: { [propertyName: string]: string }; + /** + * The kind of the resource. Possible values include: 'Linux', 'Windows' + */ + kind?: KnownDataCollectionRuleResourceKind; + /** + * Fully qualified ID of the resource. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly id?: string; + /** + * The name of the resource. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly name?: string; + /** + * The type of the resource. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly type?: string; + /** + * Resource entity tag (ETag). + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly etag?: string; + /** + * Metadata pertaining to creation and last modification of the resource. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly systemData?: DataCollectionRuleResourceSystemData; +} + +/** + * Optional Parameters. + */ +export interface ActivityLogsListOptionalParams extends msRest.RequestOptionsBase { + /** + * Used to fetch events with only the given properties.
The **$select** argument is a comma + * separated list of property names to be returned. Possible values are: *authorization*, + * *claims*, *correlationId*, *description*, *eventDataId*, *eventName*, *eventTimestamp*, + * *httpRequest*, *level*, *operationId*, *operationName*, *properties*, *resourceGroupName*, + * *resourceProviderName*, *resourceId*, *status*, *submissionTimestamp*, *subStatus*, + * *subscriptionId* + */ + select?: string; +} + +/** + * Optional Parameters. + */ +export interface ActivityLogsListNextOptionalParams extends msRest.RequestOptionsBase { + /** + * Used to fetch events with only the given properties.
The **$select** argument is a comma + * separated list of property names to be returned. Possible values are: *authorization*, + * *claims*, *correlationId*, *description*, *eventDataId*, *eventName*, *eventTimestamp*, + * *httpRequest*, *level*, *operationId*, *operationName*, *properties*, *resourceGroupName*, + * *resourceProviderName*, *resourceId*, *status*, *submissionTimestamp*, *subStatus*, + * *subscriptionId* + */ + select?: string; +} + +/** + * Optional Parameters. + */ +export interface TenantActivityLogsListOptionalParams extends msRest.RequestOptionsBase { + /** + * Reduces the set of data collected.
The **$filter** is very restricted and allows only the + * following patterns.
- List events for a resource group: $filter=eventTimestamp ge '' and eventTimestamp le '' and eventChannels eq 'Admin, Operation' and + * resourceGroupName eq ''.
- List events for resource: + * $filter=eventTimestamp ge '' and eventTimestamp le '' and eventChannels + * eq 'Admin, Operation' and resourceUri eq ''.
- List events for a subscription: + * $filter=eventTimestamp ge '' and eventTimestamp le '' and eventChannels + * eq 'Admin, Operation'.
- List events for a resource provider: $filter=eventTimestamp ge + * '' and eventTimestamp le '' and eventChannels eq 'Admin, Operation' and + * resourceProvider eq ''.
- List events for a correlation Id: + * api-version=2014-04-01&$filter=eventTimestamp ge '2014-07-16T04:36:37.6407898Z' and + * eventTimestamp le '2014-07-20T04:36:37.6407898Z' and eventChannels eq 'Admin, Operation' and + * correlationId eq ''.
**NOTE**: No other syntax is allowed. + */ + filter?: string; + /** + * Used to fetch events with only the given properties.
The **$select** argument is a comma + * separated list of property names to be returned. Possible values are: *authorization*, + * *claims*, *correlationId*, *description*, *eventDataId*, *eventName*, *eventTimestamp*, + * *httpRequest*, *level*, *operationId*, *operationName*, *properties*, *resourceGroupName*, + * *resourceProviderName*, *resourceId*, *status*, *submissionTimestamp*, *subStatus*, + * *subscriptionId* + */ + select?: string; +} + +/** + * Optional Parameters. + */ +export interface TenantActivityLogsListNextOptionalParams extends msRest.RequestOptionsBase { + /** + * Reduces the set of data collected.
The **$filter** is very restricted and allows only the + * following patterns.
- List events for a resource group: $filter=eventTimestamp ge '' and eventTimestamp le '' and eventChannels eq 'Admin, Operation' and + * resourceGroupName eq ''.
- List events for resource: + * $filter=eventTimestamp ge '' and eventTimestamp le '' and eventChannels + * eq 'Admin, Operation' and resourceUri eq ''.
- List events for a subscription: + * $filter=eventTimestamp ge '' and eventTimestamp le '' and eventChannels + * eq 'Admin, Operation'.
- List events for a resource provider: $filter=eventTimestamp ge + * '' and eventTimestamp le '' and eventChannels eq 'Admin, Operation' and + * resourceProvider eq ''.
- List events for a correlation Id: + * api-version=2014-04-01&$filter=eventTimestamp ge '2014-07-16T04:36:37.6407898Z' and + * eventTimestamp le '2014-07-20T04:36:37.6407898Z' and eventChannels eq 'Admin, Operation' and + * correlationId eq ''.
**NOTE**: No other syntax is allowed. + */ + filter?: string; + /** + * Used to fetch events with only the given properties.
The **$select** argument is a comma + * separated list of property names to be returned. Possible values are: *authorization*, + * *claims*, *correlationId*, *description*, *eventDataId*, *eventName*, *eventTimestamp*, + * *httpRequest*, *level*, *operationId*, *operationName*, *properties*, *resourceGroupName*, + * *resourceProviderName*, *resourceId*, *status*, *submissionTimestamp*, *subStatus*, + * *subscriptionId* + */ + select?: string; +} + +/** + * Optional Parameters. + */ +export interface MetricDefinitionsListOptionalParams extends msRest.RequestOptionsBase { + /** + * Metric namespace to query metric definitions for. + */ + metricnamespace?: string; +} + +/** + * Optional Parameters. + */ +export interface MetricsListOptionalParams extends msRest.RequestOptionsBase { + /** + * The timespan of the query. It is a string with the following format + * 'startDateTime_ISO/endDateTime_ISO'. + */ + timespan?: string; + /** + * The interval (i.e. timegrain) of the query. + */ + interval?: string; + /** + * The names of the metrics (comma separated) to retrieve. Special case: If a metricname itself + * has a comma in it then use %2 to indicate it. Eg: 'Metric,Name1' should be **'Metric%2Name1'** + */ + metricnames?: string; + /** + * The list of aggregation types (comma separated) to retrieve. + */ + aggregation?: string; + /** + * The maximum number of records to retrieve. + * Valid only if $filter is specified. + * Defaults to 10. + */ + top?: number; + /** + * The aggregation to use for sorting results and the direction of the sort. + * Only one order can be specified. + * Examples: sum asc. + */ + orderby?: string; + /** + * The **$filter** is used to reduce the set of metric data returned. Example: Metric contains + * metadata A, B and C. - Return all time series of C where A = a1 and B = b1 or b2 **$filter=A + * eq 'a1' and B eq 'b1' or B eq 'b2' and C eq '*'** - Invalid variant: **$filter=A eq 'a1' and B + * eq 'b1' and C eq '*' or B = 'b2'** This is invalid because the logical or operator cannot + * separate two different metadata names. - Return all time series where A = a1, B = b1 and C = + * c1: **$filter=A eq 'a1' and B eq 'b1' and C eq 'c1'** - Return all time series where A = a1 + * **$filter=A eq 'a1' and B eq '*' and C eq '*'**. Special case: When dimension name or + * dimension value uses round brackets. Eg: When dimension name is **dim (test) 1** Instead of + * using $filter= "dim (test) 1 eq '*' " use **$filter= "dim %2528test%2529 1 eq '*' "** When + * dimension name is **dim (test) 3** and dimension value is **dim3 (test) val** Instead of using + * $filter= "dim (test) 3 eq 'dim3 (test) val' " use **$filter= "dim %2528test%2529 3 eq 'dim3 + * %2528test%2529 val' "** + */ + filter?: string; + /** + * Reduces the set of data collected. The syntax allowed depends on the operation. See the + * operation's description for details. Possible values include: 'Data', 'Metadata' + */ + resultType?: ResultType; + /** + * Metric namespace to query metric definitions for. + */ + metricnamespace?: string; +} + +/** + * Optional Parameters. + */ +export interface BaselinesListOptionalParams extends msRest.RequestOptionsBase { + /** + * The names of the metrics (comma separated) to retrieve. Special case: If a metricname itself + * has a comma in it then use %2 to indicate it. Eg: 'Metric,Name1' should be **'Metric%2Name1'** + */ + metricnames?: string; + /** + * Metric namespace to query metric definitions for. + */ + metricnamespace?: string; + /** + * The timespan of the query. It is a string with the following format + * 'startDateTime_ISO/endDateTime_ISO'. + */ + timespan?: string; + /** + * The interval (i.e. timegrain) of the query. + */ + interval?: string; + /** + * The list of aggregation types (comma separated) to retrieve. + */ + aggregation?: string; + /** + * The list of sensitivities (comma separated) to retrieve. + */ + sensitivities?: string; + /** + * The **$filter** is used to reduce the set of metric data returned. Example: Metric contains + * metadata A, B and C. - Return all time series of C where A = a1 and B = b1 or b2 **$filter=A + * eq 'a1' and B eq 'b1' or B eq 'b2' and C eq '*'** - Invalid variant: **$filter=A eq 'a1' and B + * eq 'b1' and C eq '*' or B = 'b2'** This is invalid because the logical or operator cannot + * separate two different metadata names. - Return all time series where A = a1, B = b1 and C = + * c1: **$filter=A eq 'a1' and B eq 'b1' and C eq 'c1'** - Return all time series where A = a1 + * **$filter=A eq 'a1' and B eq '*' and C eq '*'**. Special case: When dimension name or + * dimension value uses round brackets. Eg: When dimension name is **dim (test) 1** Instead of + * using $filter= "dim (test) 1 eq '*' " use **$filter= "dim %2528test%2529 1 eq '*' "** When + * dimension name is **dim (test) 3** and dimension value is **dim3 (test) val** Instead of using + * $filter= "dim (test) 3 eq 'dim3 (test) val' " use **$filter= "dim %2528test%2529 3 eq 'dim3 + * %2528test%2529 val' "** + */ + filter?: string; + /** + * Allows retrieving only metadata of the baseline. On data request all information is retrieved. + * Possible values include: 'Data', 'Metadata' + */ + resultType?: ResultType; +} + +/** + * Optional Parameters. + */ +export interface ScheduledQueryRulesListBySubscriptionOptionalParams extends msRest.RequestOptionsBase { + /** + * The filter to apply on the operation. For more information please see + * https://msdn.microsoft.com/en-us/library/azure/dn931934.aspx + */ + filter?: string; +} + +/** + * Optional Parameters. + */ +export interface ScheduledQueryRulesListByResourceGroupOptionalParams extends msRest.RequestOptionsBase { + /** + * The filter to apply on the operation. For more information please see + * https://msdn.microsoft.com/en-us/library/azure/dn931934.aspx + */ + filter?: string; +} + +/** + * Optional Parameters. + */ +export interface MetricNamespacesListOptionalParams extends msRest.RequestOptionsBase { + /** + * The ISO 8601 conform Date start time from which to query for metric namespaces. + */ + startTime?: string; +} + +/** + * Optional Parameters. + */ +export interface PrivateLinkScopesUpdateTagsOptionalParams extends msRest.RequestOptionsBase { + /** + * Resource tags + */ + tags?: { [propertyName: string]: string }; +} + +/** + * Optional Parameters. + */ +export interface PrivateLinkScopedResourcesCreateOrUpdateOptionalParams extends msRest.RequestOptionsBase { + /** + * The resource id of the scoped Azure monitor resource. + */ + linkedResourceId?: string; +} + +/** + * Optional Parameters. + */ +export interface PrivateLinkScopedResourcesBeginCreateOrUpdateOptionalParams extends msRest.RequestOptionsBase { + /** + * The resource id of the scoped Azure monitor resource. + */ + linkedResourceId?: string; +} + +/** + * Optional Parameters. + */ +export interface DataCollectionEndpointsCreateOptionalParams extends msRest.RequestOptionsBase { + /** + * The payload + */ + body?: DataCollectionEndpointResource; +} + +/** + * Optional Parameters. + */ +export interface DataCollectionEndpointsUpdateOptionalParams extends msRest.RequestOptionsBase { + /** + * Resource tags. + */ + tags?: { [propertyName: string]: string }; +} + +/** + * Optional Parameters. + */ +export interface DataCollectionRuleAssociationsCreateOptionalParams extends msRest.RequestOptionsBase { + /** + * The payload + */ + body?: DataCollectionRuleAssociationProxyOnlyResource; +} + +/** + * Optional Parameters. + */ +export interface DataCollectionRulesCreateOptionalParams extends msRest.RequestOptionsBase { + /** + * The payload + */ + body?: DataCollectionRuleResource; +} + +/** + * Optional Parameters. + */ +export interface DataCollectionRulesUpdateOptionalParams extends msRest.RequestOptionsBase { + /** + * Resource tags. + */ + tags?: { [propertyName: string]: string }; +} + +/** + * An interface representing MonitorManagementClientOptions. + */ +export interface MonitorManagementClientOptions extends AzureServiceClientOptions { + baseUri?: string; +} + +/** + * @interface + * Represents a collection of autoscale setting resources. + * @extends Array + */ +export interface AutoscaleSettingResourceCollection extends Array { + /** + * URL to get the next set of results. + */ + nextLink?: string; +} + +/** + * @interface + * The List incidents operation response. + * @extends Array + */ +export interface IncidentListResult extends Array { +} + +/** + * @interface + * Represents a collection of alert rule resources. + * @extends Array + */ +export interface AlertRuleResourceCollection extends Array { +} + +/** + * @interface + * Represents a collection of log profiles. + * @extends Array + */ +export interface LogProfileCollection extends Array { +} + +/** + * @interface + * A list of action groups. + * @extends Array + */ +export interface ActionGroupList extends Array { + /** + * Provides the link to retrieve the next set of elements. + */ + nextLink?: string; +} + +/** + * @interface + * Represents collection of events. + * @extends Array + */ +export interface EventDataCollection extends Array { + /** + * Provides the link to retrieve the next set of events. + */ + nextLink?: string; +} + +/** + * @interface + * A collection of event categories. Currently possible values are: Administrative, Security, + * ServiceHealth, Alert, Recommendation, Policy. + * @extends Array + */ +export interface EventCategoryCollection extends Array { +} + +/** + * @interface + * Represents collection of metric definitions. + * @extends Array + */ +export interface MetricDefinitionCollection extends Array { +} + +/** + * @interface + * A list of metric baselines. + * @extends Array + */ +export interface MetricBaselinesResponse extends Array { +} + +/** + * @interface + * Represents a collection of alert rule resources. + * @extends Array + */ +export interface MetricAlertResourceCollection extends Array { +} + +/** + * @interface + * Represents a collection of Log Search rule resources. + * @extends Array + */ +export interface LogSearchRuleResourceCollection extends Array { +} + +/** + * @interface + * Represents collection of metric namespaces. + * @extends Array + */ +export interface MetricNamespaceCollection extends Array { +} + +/** + * @interface + * Describes the list of Azure Monitor PrivateLinkScope resources. + * @extends Array + */ +export interface AzureMonitorPrivateLinkScopeListResult extends Array { + /** + * The URI to get the next set of Azure Monitor PrivateLinkScope definitions if too many + * PrivateLinkScopes where returned in the result set. + */ + nextLink?: string; +} + +/** + * @interface + * A list of private link resources + * @extends Array + */ +export interface PrivateLinkResourceListResult extends Array { + /** + * Link to retrieve next page of results. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly nextLink?: string; +} + +/** + * @interface + * A list of private endpoint connections. + * @extends Array + */ +export interface PrivateEndpointConnectionListResult extends Array { + /** + * Link to retrieve next page of results. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly nextLink?: string; +} + +/** + * @interface + * A list of scoped resources in a private link scope. + * @extends Array + */ +export interface ScopedResourceListResult extends Array { + /** + * Link to retrieve next page of results. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly nextLink?: string; +} + +/** + * @interface + * A list of activity log alerts. + * @extends Array + */ +export interface ActivityLogAlertList extends Array { + /** + * Provides the link to retrieve the next set of elements. + */ + nextLink?: string; +} + +/** + * @interface + * A pageable list of resources. + * @extends Array + */ +export interface DataCollectionEndpointResourceListResult extends Array { + /** + * The URL to use for getting the next set of results. + */ + nextLink?: string; +} + +/** + * @interface + * A pageable list of resources. + * @extends Array + */ +export interface DataCollectionRuleAssociationProxyOnlyResourceListResult extends Array { + /** + * The URL to use for getting the next set of results. + */ + nextLink?: string; +} + +/** + * @interface + * A pageable list of resources. + * @extends Array + */ +export interface DataCollectionRuleResourceListResult extends Array { + /** + * The URL to use for getting the next set of results. + */ + nextLink?: string; +} + +/** + * Defines values for MetricStatisticType. + * Possible values include: 'Average', 'Min', 'Max', 'Sum', 'Count' + * @readonly + * @enum {string} + */ +export type MetricStatisticType = 'Average' | 'Min' | 'Max' | 'Sum' | 'Count'; + +/** + * Defines values for TimeAggregationType. + * Possible values include: 'Average', 'Minimum', 'Maximum', 'Total', 'Count', 'Last' + * @readonly + * @enum {string} + */ +export type TimeAggregationType = 'Average' | 'Minimum' | 'Maximum' | 'Total' | 'Count' | 'Last'; + +/** + * Defines values for ComparisonOperationType. + * Possible values include: 'Equals', 'NotEquals', 'GreaterThan', 'GreaterThanOrEqual', 'LessThan', + * 'LessThanOrEqual' + * @readonly + * @enum {string} + */ +export type ComparisonOperationType = 'Equals' | 'NotEquals' | 'GreaterThan' | 'GreaterThanOrEqual' | 'LessThan' | 'LessThanOrEqual'; + +/** + * Defines values for ScaleRuleMetricDimensionOperationType. + * Possible values include: 'Equals', 'NotEquals' + * @readonly + * @enum {string} + */ +export type ScaleRuleMetricDimensionOperationType = 'Equals' | 'NotEquals'; + +/** + * Defines values for ScaleDirection. + * Possible values include: 'None', 'Increase', 'Decrease' + * @readonly + * @enum {string} + */ +export type ScaleDirection = 'None' | 'Increase' | 'Decrease'; + +/** + * Defines values for ScaleType. + * Possible values include: 'ChangeCount', 'PercentChangeCount', 'ExactCount', + * 'ServiceAllowedNextValue' + * @readonly + * @enum {string} + */ +export type ScaleType = 'ChangeCount' | 'PercentChangeCount' | 'ExactCount' | 'ServiceAllowedNextValue'; + +/** + * Defines values for RecurrenceFrequency. + * Possible values include: 'None', 'Second', 'Minute', 'Hour', 'Day', 'Week', 'Month', 'Year' + * @readonly + * @enum {string} + */ +export type RecurrenceFrequency = 'None' | 'Second' | 'Minute' | 'Hour' | 'Day' | 'Week' | 'Month' | 'Year'; + +/** + * Defines values for ConditionOperator. + * Possible values include: 'GreaterThan', 'GreaterThanOrEqual', 'LessThan', 'LessThanOrEqual' + * @readonly + * @enum {string} + */ +export type ConditionOperator = 'GreaterThan' | 'GreaterThanOrEqual' | 'LessThan' | 'LessThanOrEqual'; + +/** + * Defines values for TimeAggregationOperator. + * Possible values include: 'Average', 'Minimum', 'Maximum', 'Total', 'Last' + * @readonly + * @enum {string} + */ +export type TimeAggregationOperator = 'Average' | 'Minimum' | 'Maximum' | 'Total' | 'Last'; + +/** + * Defines values for CategoryType. + * Possible values include: 'Metrics', 'Logs' + * @readonly + * @enum {string} + */ +export type CategoryType = 'Metrics' | 'Logs'; + +/** + * Defines values for ReceiverStatus. + * Possible values include: 'NotSpecified', 'Enabled', 'Disabled' + * @readonly + * @enum {string} + */ +export type ReceiverStatus = 'NotSpecified' | 'Enabled' | 'Disabled'; + +/** + * Defines values for EventLevel. + * Possible values include: 'Critical', 'Error', 'Warning', 'Informational', 'Verbose' + * @readonly + * @enum {string} + */ +export type EventLevel = 'Critical' | 'Error' | 'Warning' | 'Informational' | 'Verbose'; + +/** + * Defines values for MetricUnit. + * Possible values include: 'Count', 'Bytes', 'Seconds', 'CountPerSecond', 'BytesPerSecond', + * 'Percent', 'MilliSeconds', 'ByteSeconds', 'Unspecified', 'Cores', 'MilliCores', 'NanoCores', + * 'BitsPerSecond' + * @readonly + * @enum {string} + */ +export type MetricUnit = 'Count' | 'Bytes' | 'Seconds' | 'CountPerSecond' | 'BytesPerSecond' | 'Percent' | 'MilliSeconds' | 'ByteSeconds' | 'Unspecified' | 'Cores' | 'MilliCores' | 'NanoCores' | 'BitsPerSecond'; + +/** + * Defines values for AggregationType. + * Possible values include: 'None', 'Average', 'Count', 'Minimum', 'Maximum', 'Total' + * @readonly + * @enum {string} + */ +export type AggregationType = 'None' | 'Average' | 'Count' | 'Minimum' | 'Maximum' | 'Total'; + +/** + * Defines values for MetricClass. + * Possible values include: 'Availability', 'Transactions', 'Errors', 'Latency', 'Saturation' + * @readonly + * @enum {string} + */ +export type MetricClass = 'Availability' | 'Transactions' | 'Errors' | 'Latency' | 'Saturation'; + +/** + * Defines values for BaselineSensitivity. + * Possible values include: 'Low', 'Medium', 'High' + * @readonly + * @enum {string} + */ +export type BaselineSensitivity = 'Low' | 'Medium' | 'High'; + +/** + * Defines values for Operator. + * Possible values include: 'Equals', 'NotEquals', 'GreaterThan', 'GreaterThanOrEqual', 'LessThan', + * 'LessThanOrEqual' + * @readonly + * @enum {string} + */ +export type Operator = 'Equals' | 'NotEquals' | 'GreaterThan' | 'GreaterThanOrEqual' | 'LessThan' | 'LessThanOrEqual'; + +/** + * Defines values for AggregationTypeEnum. + * Possible values include: 'Average', 'Count', 'Minimum', 'Maximum', 'Total' + * @readonly + * @enum {string} + */ +export type AggregationTypeEnum = 'Average' | 'Count' | 'Minimum' | 'Maximum' | 'Total'; + +/** + * Defines values for DynamicThresholdOperator. + * Possible values include: 'GreaterThan', 'LessThan', 'GreaterOrLessThan' + * @readonly + * @enum {string} + */ +export type DynamicThresholdOperator = 'GreaterThan' | 'LessThan' | 'GreaterOrLessThan'; + +/** + * Defines values for DynamicThresholdSensitivity. + * Possible values include: 'Low', 'Medium', 'High' + * @readonly + * @enum {string} + */ +export type DynamicThresholdSensitivity = 'Low' | 'Medium' | 'High'; + +/** + * Defines values for Enabled. + * Possible values include: 'true', 'false' + * @readonly + * @enum {string} + */ +export type Enabled = 'true' | 'false'; + +/** + * Defines values for ProvisioningState. + * Possible values include: 'Succeeded', 'Deploying', 'Canceled', 'Failed' + * @readonly + * @enum {string} + */ +export type ProvisioningState = 'Succeeded' | 'Deploying' | 'Canceled' | 'Failed'; + +/** + * Defines values for QueryType. + * Possible values include: 'ResultCount' + * @readonly + * @enum {string} + */ +export type QueryType = 'ResultCount'; + +/** + * Defines values for ConditionalOperator. + * Possible values include: 'GreaterThanOrEqual', 'LessThanOrEqual', 'GreaterThan', 'LessThan', + * 'Equal' + * @readonly + * @enum {string} + */ +export type ConditionalOperator = 'GreaterThanOrEqual' | 'LessThanOrEqual' | 'GreaterThan' | 'LessThan' | 'Equal'; + +/** + * Defines values for MetricTriggerType. + * Possible values include: 'Consecutive', 'Total' + * @readonly + * @enum {string} + */ +export type MetricTriggerType = 'Consecutive' | 'Total'; + +/** + * Defines values for AlertSeverity. + * Possible values include: '0', '1', '2', '3', '4' + * @readonly + * @enum {string} + */ +export type AlertSeverity = '0' | '1' | '2' | '3' | '4'; + +/** + * Defines values for NamespaceClassification. + * Possible values include: 'Platform', 'Custom', 'Qos' + * @readonly + * @enum {string} + */ +export type NamespaceClassification = 'Platform' | 'Custom' | 'Qos'; + +/** + * Defines values for OnboardingStatus. + * Possible values include: 'onboarded', 'notOnboarded', 'unknown' + * @readonly + * @enum {string} + */ +export type OnboardingStatus = 'onboarded' | 'notOnboarded' | 'unknown'; + +/** + * Defines values for DataStatus. + * Possible values include: 'present', 'notPresent' + * @readonly + * @enum {string} + */ +export type DataStatus = 'present' | 'notPresent'; + +/** + * Defines values for KnownPublicNetworkAccessOptions. + * Possible values include: 'Enabled', 'Disabled' + * @readonly + * @enum {string} + */ +export type KnownPublicNetworkAccessOptions = 'Enabled' | 'Disabled'; + +/** + * Defines values for KnownDataCollectionEndpointProvisioningState. + * Possible values include: 'Creating', 'Updating', 'Deleting', 'Succeeded', 'Failed' + * @readonly + * @enum {string} + */ +export type KnownDataCollectionEndpointProvisioningState = 'Creating' | 'Updating' | 'Deleting' | 'Succeeded' | 'Failed'; + +/** + * Defines values for KnownDataCollectionEndpointResourceKind. + * Possible values include: 'Linux', 'Windows' + * @readonly + * @enum {string} + */ +export type KnownDataCollectionEndpointResourceKind = 'Linux' | 'Windows'; + +/** + * Defines values for CreatedByType. + * Possible values include: 'User', 'Application', 'ManagedIdentity', 'Key' + * @readonly + * @enum {string} + */ +export type CreatedByType = 'User' | 'Application' | 'ManagedIdentity' | 'Key'; + +/** + * Defines values for KnownDataCollectionRuleAssociationProvisioningState. + * Possible values include: 'Creating', 'Updating', 'Deleting', 'Succeeded', 'Failed' + * @readonly + * @enum {string} + */ +export type KnownDataCollectionRuleAssociationProvisioningState = 'Creating' | 'Updating' | 'Deleting' | 'Succeeded' | 'Failed'; + +/** + * Defines values for KnownPerfCounterDataSourceStreams. + * Possible values include: 'Microsoft-Perf', 'Microsoft-InsightsMetrics' + * @readonly + * @enum {string} + */ +export type KnownPerfCounterDataSourceStreams = 'Microsoft-Perf' | 'Microsoft-InsightsMetrics'; + +/** + * Defines values for KnownWindowsEventLogDataSourceStreams. + * Possible values include: 'Microsoft-WindowsEvent', 'Microsoft-Event' + * @readonly + * @enum {string} + */ +export type KnownWindowsEventLogDataSourceStreams = 'Microsoft-WindowsEvent' | 'Microsoft-Event'; + +/** + * Defines values for KnownSyslogDataSourceStreams. + * Possible values include: 'Microsoft-Syslog' + * @readonly + * @enum {string} + */ +export type KnownSyslogDataSourceStreams = 'Microsoft-Syslog'; + +/** + * Defines values for KnownSyslogDataSourceFacilityNames. + * Possible values include: 'auth', 'authpriv', 'cron', 'daemon', 'kern', 'lpr', 'mail', 'mark', + * 'news', 'syslog', 'user', 'uucp', 'local0', 'local1', 'local2', 'local3', 'local4', 'local5', + * 'local6', 'local7', '*' + * @readonly + * @enum {string} + */ +export type KnownSyslogDataSourceFacilityNames = 'auth' | 'authpriv' | 'cron' | 'daemon' | 'kern' | 'lpr' | 'mail' | 'mark' | 'news' | 'syslog' | 'user' | 'uucp' | 'local0' | 'local1' | 'local2' | 'local3' | 'local4' | 'local5' | 'local6' | 'local7' | '*'; + +/** + * Defines values for KnownSyslogDataSourceLogLevels. + * Possible values include: 'Debug', 'Info', 'Notice', 'Warning', 'Error', 'Critical', 'Alert', + * 'Emergency', '*' + * @readonly + * @enum {string} + */ +export type KnownSyslogDataSourceLogLevels = 'Debug' | 'Info' | 'Notice' | 'Warning' | 'Error' | 'Critical' | 'Alert' | 'Emergency' | '*'; + +/** + * Defines values for KnownExtensionDataSourceStreams. + * Possible values include: 'Microsoft-Event', 'Microsoft-InsightsMetrics', 'Microsoft-Perf', + * 'Microsoft-Syslog', 'Microsoft-WindowsEvent' + * @readonly + * @enum {string} + */ +export type KnownExtensionDataSourceStreams = 'Microsoft-Event' | 'Microsoft-InsightsMetrics' | 'Microsoft-Perf' | 'Microsoft-Syslog' | 'Microsoft-WindowsEvent'; + +/** + * Defines values for KnownDataFlowStreams. + * Possible values include: 'Microsoft-Event', 'Microsoft-InsightsMetrics', 'Microsoft-Perf', + * 'Microsoft-Syslog', 'Microsoft-WindowsEvent' + * @readonly + * @enum {string} + */ +export type KnownDataFlowStreams = 'Microsoft-Event' | 'Microsoft-InsightsMetrics' | 'Microsoft-Perf' | 'Microsoft-Syslog' | 'Microsoft-WindowsEvent'; + +/** + * Defines values for KnownDataCollectionRuleProvisioningState. + * Possible values include: 'Creating', 'Updating', 'Deleting', 'Succeeded', 'Failed' + * @readonly + * @enum {string} + */ +export type KnownDataCollectionRuleProvisioningState = 'Creating' | 'Updating' | 'Deleting' | 'Succeeded' | 'Failed'; + +/** + * Defines values for KnownDataCollectionRuleResourceKind. + * Possible values include: 'Linux', 'Windows' + * @readonly + * @enum {string} + */ +export type KnownDataCollectionRuleResourceKind = 'Linux' | 'Windows'; + +/** + * Defines values for ResultType. + * Possible values include: 'Data', 'Metadata' * @readonly * @enum {string} */ -export type AlertSeverity = '0' | '1' | '2' | '3' | '4'; +export type ResultType = 'Data' | 'Metadata'; + +/** + * Contains response data for the listByResourceGroup operation. + */ +export type AutoscaleSettingsListByResourceGroupResponse = AutoscaleSettingResourceCollection & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: AutoscaleSettingResourceCollection; + }; +}; + +/** + * Contains response data for the createOrUpdate operation. + */ +export type AutoscaleSettingsCreateOrUpdateResponse = AutoscaleSettingResource & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: AutoscaleSettingResource; + }; +}; + +/** + * Contains response data for the get operation. + */ +export type AutoscaleSettingsGetResponse = AutoscaleSettingResource & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: AutoscaleSettingResource; + }; +}; + +/** + * Contains response data for the update operation. + */ +export type AutoscaleSettingsUpdateResponse = AutoscaleSettingResource & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: AutoscaleSettingResource; + }; +}; + +/** + * Contains response data for the listBySubscription operation. + */ +export type AutoscaleSettingsListBySubscriptionResponse = AutoscaleSettingResourceCollection & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: AutoscaleSettingResourceCollection; + }; +}; + +/** + * Contains response data for the listByResourceGroupNext operation. + */ +export type AutoscaleSettingsListByResourceGroupNextResponse = AutoscaleSettingResourceCollection & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: AutoscaleSettingResourceCollection; + }; +}; + +/** + * Contains response data for the listBySubscriptionNext operation. + */ +export type AutoscaleSettingsListBySubscriptionNextResponse = AutoscaleSettingResourceCollection & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: AutoscaleSettingResourceCollection; + }; +}; + +/** + * Contains response data for the list operation. + */ +export type OperationsListResponse = OperationListResult & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: OperationListResult; + }; +}; + +/** + * Contains response data for the get operation. + */ +export type AlertRuleIncidentsGetResponse = Incident & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: Incident; + }; +}; + +/** + * Contains response data for the listByAlertRule operation. + */ +export type AlertRuleIncidentsListByAlertRuleResponse = IncidentListResult & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: IncidentListResult; + }; +}; + +/** + * Contains response data for the createOrUpdate operation. + */ +export type AlertRulesCreateOrUpdateResponse = AlertRuleResource & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: AlertRuleResource; + }; +}; + +/** + * Contains response data for the get operation. + */ +export type AlertRulesGetResponse = AlertRuleResource & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: AlertRuleResource; + }; +}; + +/** + * Contains response data for the update operation. + */ +export type AlertRulesUpdateResponse = AlertRuleResource & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: AlertRuleResource; + }; +}; + +/** + * Contains response data for the listByResourceGroup operation. + */ +export type AlertRulesListByResourceGroupResponse = AlertRuleResourceCollection & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: AlertRuleResourceCollection; + }; +}; + +/** + * Contains response data for the listBySubscription operation. + */ +export type AlertRulesListBySubscriptionResponse = AlertRuleResourceCollection & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: AlertRuleResourceCollection; + }; +}; + +/** + * Contains response data for the get operation. + */ +export type LogProfilesGetResponse = LogProfileResource & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: LogProfileResource; + }; +}; + +/** + * Contains response data for the createOrUpdate operation. + */ +export type LogProfilesCreateOrUpdateResponse = LogProfileResource & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: LogProfileResource; + }; +}; + +/** + * Contains response data for the update operation. + */ +export type LogProfilesUpdateResponse = LogProfileResource & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: LogProfileResource; + }; +}; + +/** + * Contains response data for the list operation. + */ +export type LogProfilesListResponse = LogProfileCollection & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: LogProfileCollection; + }; +}; + +/** + * Contains response data for the get operation. + */ +export type DiagnosticSettingsGetResponse = DiagnosticSettingsResource & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: DiagnosticSettingsResource; + }; +}; + +/** + * Contains response data for the createOrUpdate operation. + */ +export type DiagnosticSettingsCreateOrUpdateResponse = DiagnosticSettingsResource & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: DiagnosticSettingsResource; + }; +}; + +/** + * Contains response data for the list operation. + */ +export type DiagnosticSettingsListResponse = DiagnosticSettingsResourceCollection & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: DiagnosticSettingsResourceCollection; + }; +}; + +/** + * Contains response data for the get operation. + */ +export type DiagnosticSettingsCategoryGetResponse = DiagnosticSettingsCategoryResource & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: DiagnosticSettingsCategoryResource; + }; +}; + +/** + * Contains response data for the list operation. + */ +export type DiagnosticSettingsCategoryListResponse = DiagnosticSettingsCategoryResourceCollection & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: DiagnosticSettingsCategoryResourceCollection; + }; +}; + +/** + * Contains response data for the createOrUpdate operation. + */ +export type ActionGroupsCreateOrUpdateResponse = ActionGroupResource & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: ActionGroupResource; + }; +}; + +/** + * Contains response data for the get operation. + */ +export type ActionGroupsGetResponse = ActionGroupResource & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: ActionGroupResource; + }; +}; + +/** + * Contains response data for the update operation. + */ +export type ActionGroupsUpdateResponse = ActionGroupResource & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: ActionGroupResource; + }; +}; /** - * Defines values for OnboardingStatus. - * Possible values include: 'onboarded', 'notOnboarded', 'unknown' - * @readonly - * @enum {string} + * Contains response data for the listBySubscriptionId operation. */ -export type OnboardingStatus = 'onboarded' | 'notOnboarded' | 'unknown'; +export type ActionGroupsListBySubscriptionIdResponse = ActionGroupList & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: ActionGroupList; + }; +}; /** - * Defines values for DataStatus. - * Possible values include: 'present', 'notPresent' - * @readonly - * @enum {string} + * Contains response data for the listByResourceGroup operation. */ -export type DataStatus = 'present' | 'notPresent'; +export type ActionGroupsListByResourceGroupResponse = ActionGroupList & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: ActionGroupList; + }; +}; /** - * Defines values for ResultType. - * Possible values include: 'Data', 'Metadata' - * @readonly - * @enum {string} + * Contains response data for the list operation. */ -export type ResultType = 'Data' | 'Metadata'; +export type ActivityLogsListResponse = EventDataCollection & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: EventDataCollection; + }; +}; + +/** + * Contains response data for the listNext operation. + */ +export type ActivityLogsListNextResponse = EventDataCollection & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: EventDataCollection; + }; +}; + +/** + * Contains response data for the list operation. + */ +export type EventCategoriesListResponse = EventCategoryCollection & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: EventCategoryCollection; + }; +}; + +/** + * Contains response data for the list operation. + */ +export type TenantActivityLogsListResponse = EventDataCollection & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: EventDataCollection; + }; +}; + +/** + * Contains response data for the listNext operation. + */ +export type TenantActivityLogsListNextResponse = EventDataCollection & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: EventDataCollection; + }; +}; + +/** + * Contains response data for the list operation. + */ +export type MetricDefinitionsListResponse = MetricDefinitionCollection & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: MetricDefinitionCollection; + }; +}; + +/** + * Contains response data for the list operation. + */ +export type MetricsListResponse = Response & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: Response; + }; +}; + +/** + * Contains response data for the list operation. + */ +export type BaselinesListResponse = MetricBaselinesResponse & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: MetricBaselinesResponse; + }; +}; + +/** + * Contains response data for the listBySubscription operation. + */ +export type MetricAlertsListBySubscriptionResponse = MetricAlertResourceCollection & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: MetricAlertResourceCollection; + }; +}; /** * Contains response data for the listByResourceGroup operation. */ -export type AutoscaleSettingsListByResourceGroupResponse = AutoscaleSettingResourceCollection & { +export type MetricAlertsListByResourceGroupResponse = MetricAlertResourceCollection & { /** * The underlying HTTP response. */ @@ -3419,14 +5546,14 @@ export type AutoscaleSettingsListByResourceGroupResponse = AutoscaleSettingResou /** * The response body as parsed JSON or XML */ - parsedBody: AutoscaleSettingResourceCollection; + parsedBody: MetricAlertResourceCollection; }; }; /** - * Contains response data for the createOrUpdate operation. + * Contains response data for the get operation. */ -export type AutoscaleSettingsCreateOrUpdateResponse = AutoscaleSettingResource & { +export type MetricAlertsGetResponse = MetricAlertResource & { /** * The underlying HTTP response. */ @@ -3439,14 +5566,14 @@ export type AutoscaleSettingsCreateOrUpdateResponse = AutoscaleSettingResource & /** * The response body as parsed JSON or XML */ - parsedBody: AutoscaleSettingResource; + parsedBody: MetricAlertResource; }; }; /** - * Contains response data for the get operation. + * Contains response data for the createOrUpdate operation. */ -export type AutoscaleSettingsGetResponse = AutoscaleSettingResource & { +export type MetricAlertsCreateOrUpdateResponse = MetricAlertResource & { /** * The underlying HTTP response. */ @@ -3459,14 +5586,14 @@ export type AutoscaleSettingsGetResponse = AutoscaleSettingResource & { /** * The response body as parsed JSON or XML */ - parsedBody: AutoscaleSettingResource; + parsedBody: MetricAlertResource; }; }; /** * Contains response data for the update operation. */ -export type AutoscaleSettingsUpdateResponse = AutoscaleSettingResource & { +export type MetricAlertsUpdateResponse = MetricAlertResource & { /** * The underlying HTTP response. */ @@ -3479,14 +5606,14 @@ export type AutoscaleSettingsUpdateResponse = AutoscaleSettingResource & { /** * The response body as parsed JSON or XML */ - parsedBody: AutoscaleSettingResource; + parsedBody: MetricAlertResource; }; }; /** - * Contains response data for the listBySubscription operation. + * Contains response data for the list operation. */ -export type AutoscaleSettingsListBySubscriptionResponse = AutoscaleSettingResourceCollection & { +export type MetricAlertsStatusListResponse = MetricAlertStatusCollection & { /** * The underlying HTTP response. */ @@ -3499,14 +5626,14 @@ export type AutoscaleSettingsListBySubscriptionResponse = AutoscaleSettingResour /** * The response body as parsed JSON or XML */ - parsedBody: AutoscaleSettingResourceCollection; + parsedBody: MetricAlertStatusCollection; }; }; /** - * Contains response data for the listByResourceGroupNext operation. + * Contains response data for the listByName operation. */ -export type AutoscaleSettingsListByResourceGroupNextResponse = AutoscaleSettingResourceCollection & { +export type MetricAlertsStatusListByNameResponse = MetricAlertStatusCollection & { /** * The underlying HTTP response. */ @@ -3519,14 +5646,14 @@ export type AutoscaleSettingsListByResourceGroupNextResponse = AutoscaleSettingR /** * The response body as parsed JSON or XML */ - parsedBody: AutoscaleSettingResourceCollection; + parsedBody: MetricAlertStatusCollection; }; }; /** - * Contains response data for the listBySubscriptionNext operation. + * Contains response data for the createOrUpdate operation. */ -export type AutoscaleSettingsListBySubscriptionNextResponse = AutoscaleSettingResourceCollection & { +export type ScheduledQueryRulesCreateOrUpdateResponse = LogSearchRuleResource & { /** * The underlying HTTP response. */ @@ -3539,14 +5666,14 @@ export type AutoscaleSettingsListBySubscriptionNextResponse = AutoscaleSettingRe /** * The response body as parsed JSON or XML */ - parsedBody: AutoscaleSettingResourceCollection; + parsedBody: LogSearchRuleResource; }; }; /** - * Contains response data for the list operation. + * Contains response data for the get operation. */ -export type OperationsListResponse = OperationListResult & { +export type ScheduledQueryRulesGetResponse = LogSearchRuleResource & { /** * The underlying HTTP response. */ @@ -3559,14 +5686,14 @@ export type OperationsListResponse = OperationListResult & { /** * The response body as parsed JSON or XML */ - parsedBody: OperationListResult; + parsedBody: LogSearchRuleResource; }; }; /** - * Contains response data for the get operation. + * Contains response data for the update operation. */ -export type AlertRuleIncidentsGetResponse = Incident & { +export type ScheduledQueryRulesUpdateResponse = LogSearchRuleResource & { /** * The underlying HTTP response. */ @@ -3579,14 +5706,14 @@ export type AlertRuleIncidentsGetResponse = Incident & { /** * The response body as parsed JSON or XML */ - parsedBody: Incident; + parsedBody: LogSearchRuleResource; }; }; /** - * Contains response data for the listByAlertRule operation. + * Contains response data for the listBySubscription operation. */ -export type AlertRuleIncidentsListByAlertRuleResponse = IncidentListResult & { +export type ScheduledQueryRulesListBySubscriptionResponse = LogSearchRuleResourceCollection & { /** * The underlying HTTP response. */ @@ -3599,14 +5726,14 @@ export type AlertRuleIncidentsListByAlertRuleResponse = IncidentListResult & { /** * The response body as parsed JSON or XML */ - parsedBody: IncidentListResult; + parsedBody: LogSearchRuleResourceCollection; }; }; /** - * Contains response data for the createOrUpdate operation. + * Contains response data for the listByResourceGroup operation. */ -export type AlertRulesCreateOrUpdateResponse = AlertRuleResource & { +export type ScheduledQueryRulesListByResourceGroupResponse = LogSearchRuleResourceCollection & { /** * The underlying HTTP response. */ @@ -3619,14 +5746,14 @@ export type AlertRulesCreateOrUpdateResponse = AlertRuleResource & { /** * The response body as parsed JSON or XML */ - parsedBody: AlertRuleResource; + parsedBody: LogSearchRuleResourceCollection; }; }; /** - * Contains response data for the get operation. + * Contains response data for the list operation. */ -export type AlertRulesGetResponse = AlertRuleResource & { +export type MetricNamespacesListResponse = MetricNamespaceCollection & { /** * The underlying HTTP response. */ @@ -3639,14 +5766,14 @@ export type AlertRulesGetResponse = AlertRuleResource & { /** * The response body as parsed JSON or XML */ - parsedBody: AlertRuleResource; + parsedBody: MetricNamespaceCollection; }; }; /** - * Contains response data for the update operation. + * Contains response data for the getOnboardingStatus operation. */ -export type AlertRulesUpdateResponse = AlertRuleResource & { +export type VMInsightsGetOnboardingStatusResponse = VMInsightsOnboardingStatus & { /** * The underlying HTTP response. */ @@ -3659,14 +5786,14 @@ export type AlertRulesUpdateResponse = AlertRuleResource & { /** * The response body as parsed JSON or XML */ - parsedBody: AlertRuleResource; + parsedBody: VMInsightsOnboardingStatus; }; }; /** - * Contains response data for the listByResourceGroup operation. + * Contains response data for the list operation. */ -export type AlertRulesListByResourceGroupResponse = AlertRuleResourceCollection & { +export type PrivateLinkScopesListResponse = AzureMonitorPrivateLinkScopeListResult & { /** * The underlying HTTP response. */ @@ -3679,14 +5806,14 @@ export type AlertRulesListByResourceGroupResponse = AlertRuleResourceCollection /** * The response body as parsed JSON or XML */ - parsedBody: AlertRuleResourceCollection; + parsedBody: AzureMonitorPrivateLinkScopeListResult; }; }; /** - * Contains response data for the listBySubscription operation. + * Contains response data for the listByResourceGroup operation. */ -export type AlertRulesListBySubscriptionResponse = AlertRuleResourceCollection & { +export type PrivateLinkScopesListByResourceGroupResponse = AzureMonitorPrivateLinkScopeListResult & { /** * The underlying HTTP response. */ @@ -3699,14 +5826,14 @@ export type AlertRulesListBySubscriptionResponse = AlertRuleResourceCollection & /** * The response body as parsed JSON or XML */ - parsedBody: AlertRuleResourceCollection; + parsedBody: AzureMonitorPrivateLinkScopeListResult; }; }; /** * Contains response data for the get operation. */ -export type LogProfilesGetResponse = LogProfileResource & { +export type PrivateLinkScopesGetResponse = AzureMonitorPrivateLinkScope & { /** * The underlying HTTP response. */ @@ -3719,14 +5846,14 @@ export type LogProfilesGetResponse = LogProfileResource & { /** * The response body as parsed JSON or XML */ - parsedBody: LogProfileResource; + parsedBody: AzureMonitorPrivateLinkScope; }; }; /** * Contains response data for the createOrUpdate operation. */ -export type LogProfilesCreateOrUpdateResponse = LogProfileResource & { +export type PrivateLinkScopesCreateOrUpdateResponse = AzureMonitorPrivateLinkScope & { /** * The underlying HTTP response. */ @@ -3739,14 +5866,14 @@ export type LogProfilesCreateOrUpdateResponse = LogProfileResource & { /** * The response body as parsed JSON or XML */ - parsedBody: LogProfileResource; + parsedBody: AzureMonitorPrivateLinkScope; }; }; /** - * Contains response data for the update operation. + * Contains response data for the updateTags operation. */ -export type LogProfilesUpdateResponse = LogProfileResource & { +export type PrivateLinkScopesUpdateTagsResponse = AzureMonitorPrivateLinkScope & { /** * The underlying HTTP response. */ @@ -3759,14 +5886,14 @@ export type LogProfilesUpdateResponse = LogProfileResource & { /** * The response body as parsed JSON or XML */ - parsedBody: LogProfileResource; + parsedBody: AzureMonitorPrivateLinkScope; }; }; /** - * Contains response data for the list operation. + * Contains response data for the listNext operation. */ -export type LogProfilesListResponse = LogProfileCollection & { +export type PrivateLinkScopesListNextResponse = AzureMonitorPrivateLinkScopeListResult & { /** * The underlying HTTP response. */ @@ -3779,14 +5906,14 @@ export type LogProfilesListResponse = LogProfileCollection & { /** * The response body as parsed JSON or XML */ - parsedBody: LogProfileCollection; + parsedBody: AzureMonitorPrivateLinkScopeListResult; }; }; /** - * Contains response data for the get operation. + * Contains response data for the listByResourceGroupNext operation. */ -export type DiagnosticSettingsGetResponse = DiagnosticSettingsResource & { +export type PrivateLinkScopesListByResourceGroupNextResponse = AzureMonitorPrivateLinkScopeListResult & { /** * The underlying HTTP response. */ @@ -3799,14 +5926,14 @@ export type DiagnosticSettingsGetResponse = DiagnosticSettingsResource & { /** * The response body as parsed JSON or XML */ - parsedBody: DiagnosticSettingsResource; + parsedBody: AzureMonitorPrivateLinkScopeListResult; }; }; /** - * Contains response data for the createOrUpdate operation. + * Contains response data for the get operation. */ -export type DiagnosticSettingsCreateOrUpdateResponse = DiagnosticSettingsResource & { +export type PrivateLinkScopeOperationStatusGetResponse = OperationStatus & { /** * The underlying HTTP response. */ @@ -3819,14 +5946,14 @@ export type DiagnosticSettingsCreateOrUpdateResponse = DiagnosticSettingsResourc /** * The response body as parsed JSON or XML */ - parsedBody: DiagnosticSettingsResource; + parsedBody: OperationStatus; }; }; /** - * Contains response data for the list operation. + * Contains response data for the listByPrivateLinkScope operation. */ -export type DiagnosticSettingsListResponse = DiagnosticSettingsResourceCollection & { +export type PrivateLinkResourcesListByPrivateLinkScopeResponse = PrivateLinkResourceListResult & { /** * The underlying HTTP response. */ @@ -3839,14 +5966,14 @@ export type DiagnosticSettingsListResponse = DiagnosticSettingsResourceCollectio /** * The response body as parsed JSON or XML */ - parsedBody: DiagnosticSettingsResourceCollection; + parsedBody: PrivateLinkResourceListResult; }; }; /** * Contains response data for the get operation. */ -export type DiagnosticSettingsCategoryGetResponse = DiagnosticSettingsCategoryResource & { +export type PrivateLinkResourcesGetResponse = PrivateLinkResource & { /** * The underlying HTTP response. */ @@ -3859,14 +5986,14 @@ export type DiagnosticSettingsCategoryGetResponse = DiagnosticSettingsCategoryRe /** * The response body as parsed JSON or XML */ - parsedBody: DiagnosticSettingsCategoryResource; + parsedBody: PrivateLinkResource; }; }; /** - * Contains response data for the list operation. + * Contains response data for the listByPrivateLinkScopeNext operation. */ -export type DiagnosticSettingsCategoryListResponse = DiagnosticSettingsCategoryResourceCollection & { +export type PrivateLinkResourcesListByPrivateLinkScopeNextResponse = PrivateLinkResourceListResult & { /** * The underlying HTTP response. */ @@ -3879,14 +6006,34 @@ export type DiagnosticSettingsCategoryListResponse = DiagnosticSettingsCategoryR /** * The response body as parsed JSON or XML */ - parsedBody: DiagnosticSettingsCategoryResourceCollection; + parsedBody: PrivateLinkResourceListResult; + }; +}; + +/** + * Contains response data for the get operation. + */ +export type PrivateEndpointConnectionsGetResponse = PrivateEndpointConnection & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: PrivateEndpointConnection; }; }; /** * Contains response data for the createOrUpdate operation. */ -export type ActionGroupsCreateOrUpdateResponse = ActionGroupResource & { +export type PrivateEndpointConnectionsCreateOrUpdateResponse = PrivateEndpointConnection & { /** * The underlying HTTP response. */ @@ -3899,14 +6046,14 @@ export type ActionGroupsCreateOrUpdateResponse = ActionGroupResource & { /** * The response body as parsed JSON or XML */ - parsedBody: ActionGroupResource; + parsedBody: PrivateEndpointConnection; }; }; /** - * Contains response data for the get operation. + * Contains response data for the listByPrivateLinkScope operation. */ -export type ActionGroupsGetResponse = ActionGroupResource & { +export type PrivateEndpointConnectionsListByPrivateLinkScopeResponse = PrivateEndpointConnectionListResult & { /** * The underlying HTTP response. */ @@ -3919,14 +6066,14 @@ export type ActionGroupsGetResponse = ActionGroupResource & { /** * The response body as parsed JSON or XML */ - parsedBody: ActionGroupResource; + parsedBody: PrivateEndpointConnectionListResult; }; }; /** - * Contains response data for the update operation. + * Contains response data for the beginCreateOrUpdate operation. */ -export type ActionGroupsUpdateResponse = ActionGroupResource & { +export type PrivateEndpointConnectionsBeginCreateOrUpdateResponse = PrivateEndpointConnection & { /** * The underlying HTTP response. */ @@ -3939,14 +6086,14 @@ export type ActionGroupsUpdateResponse = ActionGroupResource & { /** * The response body as parsed JSON or XML */ - parsedBody: ActionGroupResource; + parsedBody: PrivateEndpointConnection; }; }; /** - * Contains response data for the listBySubscriptionId operation. + * Contains response data for the listByPrivateLinkScopeNext operation. */ -export type ActionGroupsListBySubscriptionIdResponse = ActionGroupList & { +export type PrivateEndpointConnectionsListByPrivateLinkScopeNextResponse = PrivateEndpointConnectionListResult & { /** * The underlying HTTP response. */ @@ -3959,14 +6106,14 @@ export type ActionGroupsListBySubscriptionIdResponse = ActionGroupList & { /** * The response body as parsed JSON or XML */ - parsedBody: ActionGroupList; + parsedBody: PrivateEndpointConnectionListResult; }; }; /** - * Contains response data for the listByResourceGroup operation. + * Contains response data for the get operation. */ -export type ActionGroupsListByResourceGroupResponse = ActionGroupList & { +export type PrivateLinkScopedResourcesGetResponse = ScopedResource & { /** * The underlying HTTP response. */ @@ -3979,14 +6126,14 @@ export type ActionGroupsListByResourceGroupResponse = ActionGroupList & { /** * The response body as parsed JSON or XML */ - parsedBody: ActionGroupList; + parsedBody: ScopedResource; }; }; /** * Contains response data for the createOrUpdate operation. */ -export type ActivityLogAlertsCreateOrUpdateResponse = ActivityLogAlertResource & { +export type PrivateLinkScopedResourcesCreateOrUpdateResponse = ScopedResource & { /** * The underlying HTTP response. */ @@ -3999,14 +6146,14 @@ export type ActivityLogAlertsCreateOrUpdateResponse = ActivityLogAlertResource & /** * The response body as parsed JSON or XML */ - parsedBody: ActivityLogAlertResource; + parsedBody: ScopedResource; }; }; /** - * Contains response data for the get operation. + * Contains response data for the listByPrivateLinkScope operation. */ -export type ActivityLogAlertsGetResponse = ActivityLogAlertResource & { +export type PrivateLinkScopedResourcesListByPrivateLinkScopeResponse = ScopedResourceListResult & { /** * The underlying HTTP response. */ @@ -4019,14 +6166,14 @@ export type ActivityLogAlertsGetResponse = ActivityLogAlertResource & { /** * The response body as parsed JSON or XML */ - parsedBody: ActivityLogAlertResource; + parsedBody: ScopedResourceListResult; }; }; /** - * Contains response data for the update operation. + * Contains response data for the beginCreateOrUpdate operation. */ -export type ActivityLogAlertsUpdateResponse = ActivityLogAlertResource & { +export type PrivateLinkScopedResourcesBeginCreateOrUpdateResponse = ScopedResource & { /** * The underlying HTTP response. */ @@ -4039,14 +6186,14 @@ export type ActivityLogAlertsUpdateResponse = ActivityLogAlertResource & { /** * The response body as parsed JSON or XML */ - parsedBody: ActivityLogAlertResource; + parsedBody: ScopedResource; }; }; /** - * Contains response data for the listBySubscriptionId operation. + * Contains response data for the listByPrivateLinkScopeNext operation. */ -export type ActivityLogAlertsListBySubscriptionIdResponse = ActivityLogAlertList & { +export type PrivateLinkScopedResourcesListByPrivateLinkScopeNextResponse = ScopedResourceListResult & { /** * The underlying HTTP response. */ @@ -4059,14 +6206,14 @@ export type ActivityLogAlertsListBySubscriptionIdResponse = ActivityLogAlertList /** * The response body as parsed JSON or XML */ - parsedBody: ActivityLogAlertList; + parsedBody: ScopedResourceListResult; }; }; /** - * Contains response data for the listByResourceGroup operation. + * Contains response data for the createOrUpdate operation. */ -export type ActivityLogAlertsListByResourceGroupResponse = ActivityLogAlertList & { +export type ActivityLogAlertsCreateOrUpdateResponse = ActivityLogAlertResource & { /** * The underlying HTTP response. */ @@ -4079,14 +6226,14 @@ export type ActivityLogAlertsListByResourceGroupResponse = ActivityLogAlertList /** * The response body as parsed JSON or XML */ - parsedBody: ActivityLogAlertList; + parsedBody: ActivityLogAlertResource; }; }; /** - * Contains response data for the list operation. + * Contains response data for the get operation. */ -export type ActivityLogsListResponse = EventDataCollection & { +export type ActivityLogAlertsGetResponse = ActivityLogAlertResource & { /** * The underlying HTTP response. */ @@ -4099,14 +6246,14 @@ export type ActivityLogsListResponse = EventDataCollection & { /** * The response body as parsed JSON or XML */ - parsedBody: EventDataCollection; + parsedBody: ActivityLogAlertResource; }; }; /** - * Contains response data for the listNext operation. + * Contains response data for the update operation. */ -export type ActivityLogsListNextResponse = EventDataCollection & { +export type ActivityLogAlertsUpdateResponse = ActivityLogAlertResource & { /** * The underlying HTTP response. */ @@ -4119,14 +6266,14 @@ export type ActivityLogsListNextResponse = EventDataCollection & { /** * The response body as parsed JSON or XML */ - parsedBody: EventDataCollection; + parsedBody: ActivityLogAlertResource; }; }; /** - * Contains response data for the list operation. + * Contains response data for the listBySubscriptionId operation. */ -export type EventCategoriesListResponse = EventCategoryCollection & { +export type ActivityLogAlertsListBySubscriptionIdResponse = ActivityLogAlertList & { /** * The underlying HTTP response. */ @@ -4139,14 +6286,14 @@ export type EventCategoriesListResponse = EventCategoryCollection & { /** * The response body as parsed JSON or XML */ - parsedBody: EventCategoryCollection; + parsedBody: ActivityLogAlertList; }; }; /** - * Contains response data for the list operation. + * Contains response data for the listByResourceGroup operation. */ -export type TenantActivityLogsListResponse = EventDataCollection & { +export type ActivityLogAlertsListByResourceGroupResponse = ActivityLogAlertList & { /** * The underlying HTTP response. */ @@ -4159,14 +6306,14 @@ export type TenantActivityLogsListResponse = EventDataCollection & { /** * The response body as parsed JSON or XML */ - parsedBody: EventDataCollection; + parsedBody: ActivityLogAlertList; }; }; /** - * Contains response data for the listNext operation. + * Contains response data for the listByResourceGroup operation. */ -export type TenantActivityLogsListNextResponse = EventDataCollection & { +export type DataCollectionEndpointsListByResourceGroupResponse = DataCollectionEndpointResourceListResult & { /** * The underlying HTTP response. */ @@ -4179,14 +6326,14 @@ export type TenantActivityLogsListNextResponse = EventDataCollection & { /** * The response body as parsed JSON or XML */ - parsedBody: EventDataCollection; + parsedBody: DataCollectionEndpointResourceListResult; }; }; /** - * Contains response data for the list operation. + * Contains response data for the listBySubscription operation. */ -export type MetricDefinitionsListResponse = MetricDefinitionCollection & { +export type DataCollectionEndpointsListBySubscriptionResponse = DataCollectionEndpointResourceListResult & { /** * The underlying HTTP response. */ @@ -4199,14 +6346,14 @@ export type MetricDefinitionsListResponse = MetricDefinitionCollection & { /** * The response body as parsed JSON or XML */ - parsedBody: MetricDefinitionCollection; + parsedBody: DataCollectionEndpointResourceListResult; }; }; /** - * Contains response data for the list operation. + * Contains response data for the get operation. */ -export type MetricsListResponse = Response & { +export type DataCollectionEndpointsGetResponse = DataCollectionEndpointResource & { /** * The underlying HTTP response. */ @@ -4219,14 +6366,14 @@ export type MetricsListResponse = Response & { /** * The response body as parsed JSON or XML */ - parsedBody: Response; + parsedBody: DataCollectionEndpointResource; }; }; /** - * Contains response data for the get operation. + * Contains response data for the create operation. */ -export type MetricBaselineGetResponse = BaselineResponse & { +export type DataCollectionEndpointsCreateResponse = DataCollectionEndpointResource & { /** * The underlying HTTP response. */ @@ -4239,14 +6386,14 @@ export type MetricBaselineGetResponse = BaselineResponse & { /** * The response body as parsed JSON or XML */ - parsedBody: BaselineResponse; + parsedBody: DataCollectionEndpointResource; }; }; /** - * Contains response data for the calculateBaseline operation. + * Contains response data for the update operation. */ -export type MetricBaselineCalculateBaselineResponse = CalculateBaselineResponse & { +export type DataCollectionEndpointsUpdateResponse = DataCollectionEndpointResource & { /** * The underlying HTTP response. */ @@ -4259,14 +6406,14 @@ export type MetricBaselineCalculateBaselineResponse = CalculateBaselineResponse /** * The response body as parsed JSON or XML */ - parsedBody: CalculateBaselineResponse; + parsedBody: DataCollectionEndpointResource; }; }; /** - * Contains response data for the list operation. + * Contains response data for the listByResourceGroupNext operation. */ -export type BaselinesListResponse = MetricBaselinesResponse & { +export type DataCollectionEndpointsListByResourceGroupNextResponse = DataCollectionEndpointResourceListResult & { /** * The underlying HTTP response. */ @@ -4279,14 +6426,14 @@ export type BaselinesListResponse = MetricBaselinesResponse & { /** * The response body as parsed JSON or XML */ - parsedBody: MetricBaselinesResponse; + parsedBody: DataCollectionEndpointResourceListResult; }; }; /** - * Contains response data for the listBySubscription operation. + * Contains response data for the listBySubscriptionNext operation. */ -export type MetricAlertsListBySubscriptionResponse = MetricAlertResourceCollection & { +export type DataCollectionEndpointsListBySubscriptionNextResponse = DataCollectionEndpointResourceListResult & { /** * The underlying HTTP response. */ @@ -4299,14 +6446,14 @@ export type MetricAlertsListBySubscriptionResponse = MetricAlertResourceCollecti /** * The response body as parsed JSON or XML */ - parsedBody: MetricAlertResourceCollection; + parsedBody: DataCollectionEndpointResourceListResult; }; }; /** - * Contains response data for the listByResourceGroup operation. + * Contains response data for the listByResource operation. */ -export type MetricAlertsListByResourceGroupResponse = MetricAlertResourceCollection & { +export type DataCollectionRuleAssociationsListByResourceResponse = DataCollectionRuleAssociationProxyOnlyResourceListResult & { /** * The underlying HTTP response. */ @@ -4319,14 +6466,14 @@ export type MetricAlertsListByResourceGroupResponse = MetricAlertResourceCollect /** * The response body as parsed JSON or XML */ - parsedBody: MetricAlertResourceCollection; + parsedBody: DataCollectionRuleAssociationProxyOnlyResourceListResult; }; }; /** - * Contains response data for the get operation. + * Contains response data for the listByRule operation. */ -export type MetricAlertsGetResponse = MetricAlertResource & { +export type DataCollectionRuleAssociationsListByRuleResponse = DataCollectionRuleAssociationProxyOnlyResourceListResult & { /** * The underlying HTTP response. */ @@ -4339,14 +6486,14 @@ export type MetricAlertsGetResponse = MetricAlertResource & { /** * The response body as parsed JSON or XML */ - parsedBody: MetricAlertResource; + parsedBody: DataCollectionRuleAssociationProxyOnlyResourceListResult; }; }; /** - * Contains response data for the createOrUpdate operation. + * Contains response data for the get operation. */ -export type MetricAlertsCreateOrUpdateResponse = MetricAlertResource & { +export type DataCollectionRuleAssociationsGetResponse = DataCollectionRuleAssociationProxyOnlyResource & { /** * The underlying HTTP response. */ @@ -4359,14 +6506,14 @@ export type MetricAlertsCreateOrUpdateResponse = MetricAlertResource & { /** * The response body as parsed JSON or XML */ - parsedBody: MetricAlertResource; + parsedBody: DataCollectionRuleAssociationProxyOnlyResource; }; }; /** - * Contains response data for the update operation. + * Contains response data for the create operation. */ -export type MetricAlertsUpdateResponse = MetricAlertResource & { +export type DataCollectionRuleAssociationsCreateResponse = DataCollectionRuleAssociationProxyOnlyResource & { /** * The underlying HTTP response. */ @@ -4379,14 +6526,14 @@ export type MetricAlertsUpdateResponse = MetricAlertResource & { /** * The response body as parsed JSON or XML */ - parsedBody: MetricAlertResource; + parsedBody: DataCollectionRuleAssociationProxyOnlyResource; }; }; /** - * Contains response data for the list operation. + * Contains response data for the listByResourceNext operation. */ -export type MetricAlertsStatusListResponse = MetricAlertStatusCollection & { +export type DataCollectionRuleAssociationsListByResourceNextResponse = DataCollectionRuleAssociationProxyOnlyResourceListResult & { /** * The underlying HTTP response. */ @@ -4399,14 +6546,14 @@ export type MetricAlertsStatusListResponse = MetricAlertStatusCollection & { /** * The response body as parsed JSON or XML */ - parsedBody: MetricAlertStatusCollection; + parsedBody: DataCollectionRuleAssociationProxyOnlyResourceListResult; }; }; /** - * Contains response data for the listByName operation. + * Contains response data for the listByRuleNext operation. */ -export type MetricAlertsStatusListByNameResponse = MetricAlertStatusCollection & { +export type DataCollectionRuleAssociationsListByRuleNextResponse = DataCollectionRuleAssociationProxyOnlyResourceListResult & { /** * The underlying HTTP response. */ @@ -4419,14 +6566,14 @@ export type MetricAlertsStatusListByNameResponse = MetricAlertStatusCollection & /** * The response body as parsed JSON or XML */ - parsedBody: MetricAlertStatusCollection; + parsedBody: DataCollectionRuleAssociationProxyOnlyResourceListResult; }; }; /** - * Contains response data for the createOrUpdate operation. + * Contains response data for the listByResourceGroup operation. */ -export type ScheduledQueryRulesCreateOrUpdateResponse = LogSearchRuleResource & { +export type DataCollectionRulesListByResourceGroupResponse = DataCollectionRuleResourceListResult & { /** * The underlying HTTP response. */ @@ -4439,14 +6586,14 @@ export type ScheduledQueryRulesCreateOrUpdateResponse = LogSearchRuleResource & /** * The response body as parsed JSON or XML */ - parsedBody: LogSearchRuleResource; + parsedBody: DataCollectionRuleResourceListResult; }; }; /** - * Contains response data for the get operation. + * Contains response data for the listBySubscription operation. */ -export type ScheduledQueryRulesGetResponse = LogSearchRuleResource & { +export type DataCollectionRulesListBySubscriptionResponse = DataCollectionRuleResourceListResult & { /** * The underlying HTTP response. */ @@ -4459,14 +6606,14 @@ export type ScheduledQueryRulesGetResponse = LogSearchRuleResource & { /** * The response body as parsed JSON or XML */ - parsedBody: LogSearchRuleResource; + parsedBody: DataCollectionRuleResourceListResult; }; }; /** - * Contains response data for the update operation. + * Contains response data for the get operation. */ -export type ScheduledQueryRulesUpdateResponse = LogSearchRuleResource & { +export type DataCollectionRulesGetResponse = DataCollectionRuleResource & { /** * The underlying HTTP response. */ @@ -4479,14 +6626,14 @@ export type ScheduledQueryRulesUpdateResponse = LogSearchRuleResource & { /** * The response body as parsed JSON or XML */ - parsedBody: LogSearchRuleResource; + parsedBody: DataCollectionRuleResource; }; }; /** - * Contains response data for the listBySubscription operation. + * Contains response data for the create operation. */ -export type ScheduledQueryRulesListBySubscriptionResponse = LogSearchRuleResourceCollection & { +export type DataCollectionRulesCreateResponse = DataCollectionRuleResource & { /** * The underlying HTTP response. */ @@ -4499,14 +6646,14 @@ export type ScheduledQueryRulesListBySubscriptionResponse = LogSearchRuleResourc /** * The response body as parsed JSON or XML */ - parsedBody: LogSearchRuleResourceCollection; + parsedBody: DataCollectionRuleResource; }; }; /** - * Contains response data for the listByResourceGroup operation. + * Contains response data for the update operation. */ -export type ScheduledQueryRulesListByResourceGroupResponse = LogSearchRuleResourceCollection & { +export type DataCollectionRulesUpdateResponse = DataCollectionRuleResource & { /** * The underlying HTTP response. */ @@ -4519,14 +6666,14 @@ export type ScheduledQueryRulesListByResourceGroupResponse = LogSearchRuleResour /** * The response body as parsed JSON or XML */ - parsedBody: LogSearchRuleResourceCollection; + parsedBody: DataCollectionRuleResource; }; }; /** - * Contains response data for the list operation. + * Contains response data for the listByResourceGroupNext operation. */ -export type MetricNamespacesListResponse = MetricNamespaceCollection & { +export type DataCollectionRulesListByResourceGroupNextResponse = DataCollectionRuleResourceListResult & { /** * The underlying HTTP response. */ @@ -4539,14 +6686,14 @@ export type MetricNamespacesListResponse = MetricNamespaceCollection & { /** * The response body as parsed JSON or XML */ - parsedBody: MetricNamespaceCollection; + parsedBody: DataCollectionRuleResourceListResult; }; }; /** - * Contains response data for the getOnboardingStatus operation. + * Contains response data for the listBySubscriptionNext operation. */ -export type VMInsightsGetOnboardingStatusResponse = VMInsightsOnboardingStatus & { +export type DataCollectionRulesListBySubscriptionNextResponse = DataCollectionRuleResourceListResult & { /** * The underlying HTTP response. */ @@ -4559,6 +6706,6 @@ export type VMInsightsGetOnboardingStatusResponse = VMInsightsOnboardingStatus & /** * The response body as parsed JSON or XML */ - parsedBody: VMInsightsOnboardingStatus; + parsedBody: DataCollectionRuleResourceListResult; }; }; diff --git a/sdk/monitor/arm-monitor/src/models/logProfilesMappers.ts b/sdk/monitor/arm-monitor/src/models/logProfilesMappers.ts index a1ad33c209e5..c4647013032c 100644 --- a/sdk/monitor/arm-monitor/src/models/logProfilesMappers.ts +++ b/sdk/monitor/arm-monitor/src/models/logProfilesMappers.ts @@ -1,6 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is regenerated. @@ -25,10 +25,29 @@ export { AzNsActionGroup, AzureAppPushReceiver, AzureFunctionReceiver, + AzureMonitorMetricsDestination, + AzureMonitorPrivateLinkScope, + AzureResource, BaseResource, CloudError, + ConfigurationAccessEndpointSpec, Criteria, + DataCollectionEndpointConfigurationAccess, + DataCollectionEndpointLogsIngestion, + DataCollectionEndpointNetworkAcls, + DataCollectionEndpointResource, + DataCollectionEndpointResourceSystemData, + DataCollectionRuleAssociationProxyOnlyResource, + DataCollectionRuleAssociationProxyOnlyResourceSystemData, + DataCollectionRuleDataSources, + DataCollectionRuleDestinations, + DataCollectionRuleResource, + DataCollectionRuleResourceSystemData, DataContainer, + DataFlow, + DataSourcesSpec, + DestinationsSpec, + DestinationsSpecAzureMonitorMetrics, DiagnosticSettingsCategoryResource, DiagnosticSettingsResource, Dimension, @@ -36,9 +55,13 @@ export { DynamicThresholdFailingPeriods, EmailNotification, EmailReceiver, + ErrorAdditionalInfo, ErrorResponse, + ErrorResponseCommon, + ExtensionDataSource, ItsmReceiver, LocationThresholdRuleCondition, + LogAnalyticsDestination, LogicAppReceiver, LogMetricTrigger, LogProfileCollection, @@ -46,6 +69,7 @@ export { LogProfileResourcePatch, LogSearchRuleResource, LogSettings, + LogsIngestionEndpointSpec, LogToMetricAction, ManagementEventAggregationCondition, ManagementEventRuleCondition, @@ -59,6 +83,13 @@ export { MetricSettings, MetricTrigger, MultiMetricCriteria, + NetworkRuleSet, + PerfCounterDataSource, + PrivateEndpointConnection, + PrivateEndpointProperty, + PrivateLinkResource, + PrivateLinkScopesResource, + PrivateLinkServiceConnectionStateProperty, ProxyOnlyResource, ProxyResource, Recurrence, @@ -76,9 +107,13 @@ export { ScaleAction, ScaleCapacity, ScaleRule, + ScaleRuleMetricDimension, Schedule, + ScopedResource, SmsReceiver, Source, + SyslogDataSource, + SystemData, ThresholdRuleCondition, TimeWindow, TriggerCondition, @@ -86,5 +121,7 @@ export { VoiceReceiver, WebhookNotification, WebhookReceiver, + WebtestLocationAvailabilityCriteria, + WindowsEventLogDataSource, WorkspaceInfo } from "../models/mappers"; diff --git a/sdk/monitor/arm-monitor/src/models/mappers.ts b/sdk/monitor/arm-monitor/src/models/mappers.ts index 3528feefba03..3a73ef305155 100644 --- a/sdk/monitor/arm-monitor/src/models/mappers.ts +++ b/sdk/monitor/arm-monitor/src/models/mappers.ts @@ -1,6 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is regenerated. @@ -56,6 +56,20 @@ export const Resource: msRest.CompositeMapper = { } } } + }, + kind: { + readOnly: true, + serializedName: "kind", + type: { + name: "String" + } + }, + etag: { + readOnly: true, + serializedName: "etag", + type: { + name: "String" + } } } } @@ -92,6 +106,42 @@ export const ScaleCapacity: msRest.CompositeMapper = { } }; +export const ScaleRuleMetricDimension: msRest.CompositeMapper = { + serializedName: "ScaleRuleMetricDimension", + type: { + name: "Composite", + className: "ScaleRuleMetricDimension", + modelProperties: { + dimensionName: { + required: true, + serializedName: "DimensionName", + type: { + name: "String" + } + }, + operator: { + required: true, + serializedName: "Operator", + type: { + name: "String" + } + }, + values: { + required: true, + serializedName: "Values", + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + } + } + } +}; + export const MetricTrigger: msRest.CompositeMapper = { serializedName: "MetricTrigger", type: { @@ -105,6 +155,12 @@ export const MetricTrigger: msRest.CompositeMapper = { name: "String" } }, + metricNamespace: { + serializedName: "metricNamespace", + type: { + name: "String" + } + }, metricResourceUri: { required: true, serializedName: "metricResourceUri", @@ -112,6 +168,12 @@ export const MetricTrigger: msRest.CompositeMapper = { name: "String" } }, + metricResourceLocation: { + serializedName: "metricResourceLocation", + type: { + name: "String" + } + }, timeGrain: { required: true, serializedName: "timeGrain", @@ -128,7 +190,8 @@ export const MetricTrigger: msRest.CompositeMapper = { "Average", "Min", "Max", - "Sum" + "Sum", + "Count" ] } }, @@ -175,6 +238,24 @@ export const MetricTrigger: msRest.CompositeMapper = { type: { name: "Number" } + }, + dimensions: { + serializedName: "dimensions", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ScaleRuleMetricDimension" + } + } + } + }, + dividePerInstance: { + serializedName: "dividePerInstance", + type: { + name: "Boolean" + } } } } @@ -206,7 +287,8 @@ export const ScaleAction: msRest.CompositeMapper = { allowedValues: [ "ChangeCount", "PercentChangeCount", - "ExactCount" + "ExactCount", + "ServiceAllowedNextValue" ] } }, @@ -432,12 +514,14 @@ export const EmailNotification: msRest.CompositeMapper = { modelProperties: { sendToSubscriptionAdministrator: { serializedName: "sendToSubscriptionAdministrator", + defaultValue: false, type: { name: "Boolean" } }, sendToSubscriptionCoAdministrators: { serializedName: "sendToSubscriptionCoAdministrators", + defaultValue: false, type: { name: "Boolean" } @@ -575,6 +659,12 @@ export const AutoscaleSettingResource: msRest.CompositeMapper = { type: { name: "String" } + }, + targetResourceLocation: { + serializedName: "properties.targetResourceLocation", + type: { + name: "String" + } } } } @@ -643,6 +733,12 @@ export const AutoscaleSettingResourcePatch: msRest.CompositeMapper = { type: { name: "String" } + }, + targetResourceLocation: { + serializedName: "properties.targetResourceLocation", + type: { + name: "String" + } } } } @@ -811,6 +907,24 @@ export const RuleDataSource: msRest.CompositeMapper = { name: "String" } }, + legacyResourceId: { + serializedName: "legacyResourceId", + type: { + name: "String" + } + }, + resourceLocation: { + serializedName: "resourceLocation", + type: { + name: "String" + } + }, + metricNamespace: { + serializedName: "metricNamespace", + type: { + name: "String" + } + }, odatatype: { required: true, serializedName: "odata\\.type", @@ -1191,6 +1305,12 @@ export const AlertRuleResource: msRest.CompositeMapper = { name: "String" } }, + provisioningState: { + serializedName: "properties.provisioningState", + type: { + name: "String" + } + }, isEnabled: { required: true, serializedName: "properties.isEnabled", @@ -1206,6 +1326,13 @@ export const AlertRuleResource: msRest.CompositeMapper = { className: "RuleCondition" } }, + action: { + serializedName: "properties.action", + type: { + name: "Composite", + className: "RuleAction" + } + }, actions: { serializedName: "properties.actions", type: { @@ -1259,6 +1386,12 @@ export const AlertRuleResourcePatch: msRest.CompositeMapper = { name: "String" } }, + provisioningState: { + serializedName: "properties.provisioningState", + type: { + name: "String" + } + }, isEnabled: { required: true, serializedName: "properties.isEnabled", @@ -1274,6 +1407,13 @@ export const AlertRuleResourcePatch: msRest.CompositeMapper = { className: "RuleCondition" } }, + action: { + serializedName: "properties.action", + type: { + name: "Composite", + className: "RuleAction" + } + }, actions: { serializedName: "properties.actions", type: { @@ -1678,6 +1818,69 @@ export const DiagnosticSettingsCategoryResourceCollection: msRest.CompositeMappe } }; +export const AzureResource: msRest.CompositeMapper = { + serializedName: "AzureResource", + type: { + name: "Composite", + className: "AzureResource", + modelProperties: { + id: { + readOnly: true, + serializedName: "id", + type: { + name: "String" + } + }, + name: { + readOnly: true, + serializedName: "name", + type: { + name: "String" + } + }, + type: { + readOnly: true, + serializedName: "type", + type: { + name: "String" + } + }, + kind: { + readOnly: true, + serializedName: "kind", + type: { + name: "String" + } + }, + identity: { + readOnly: true, + serializedName: "identity", + type: { + name: "String" + } + }, + location: { + required: true, + serializedName: "location", + type: { + name: "String" + } + }, + tags: { + serializedName: "tags", + type: { + name: "Dictionary", + value: { + type: { + name: "String" + } + } + } + } + } + } +}; + export const EmailReceiver: msRest.CompositeMapper = { serializedName: "EmailReceiver", type: { @@ -1699,8 +1902,8 @@ export const EmailReceiver: msRest.CompositeMapper = { } }, useCommonAlertSchema: { - required: true, serializedName: "useCommonAlertSchema", + defaultValue: false, type: { name: "Boolean" } @@ -1785,8 +1988,8 @@ export const WebhookReceiver: msRest.CompositeMapper = { } }, useCommonAlertSchema: { - required: true, serializedName: "useCommonAlertSchema", + defaultValue: false, type: { name: "Boolean" } @@ -1936,8 +2139,8 @@ export const AutomationRunbookReceiver: msRest.CompositeMapper = { } }, useCommonAlertSchema: { - required: true, serializedName: "useCommonAlertSchema", + defaultValue: false, type: { name: "Boolean" } @@ -2005,8 +2208,8 @@ export const LogicAppReceiver: msRest.CompositeMapper = { } }, useCommonAlertSchema: { - required: true, serializedName: "useCommonAlertSchema", + defaultValue: false, type: { name: "Boolean" } @@ -2050,8 +2253,8 @@ export const AzureFunctionReceiver: msRest.CompositeMapper = { } }, useCommonAlertSchema: { - required: true, serializedName: "useCommonAlertSchema", + defaultValue: false, type: { name: "Boolean" } @@ -2081,8 +2284,8 @@ export const ArmRoleReceiver: msRest.CompositeMapper = { } }, useCommonAlertSchema: { - required: true, serializedName: "useCommonAlertSchema", + defaultValue: false, type: { name: "Boolean" } @@ -2097,7 +2300,7 @@ export const ActionGroupResource: msRest.CompositeMapper = { name: "Composite", className: "ActionGroupResource", modelProperties: { - ...Resource.type.modelProperties, + ...AzureResource.type.modelProperties, groupShortName: { required: true, serializedName: "properties.groupShortName", @@ -2285,22 +2488,21 @@ export const ActionGroupPatchBody: msRest.CompositeMapper = { } }; -export const ActivityLogAlertLeafCondition: msRest.CompositeMapper = { - serializedName: "ActivityLogAlertLeafCondition", +export const LocalizableString: msRest.CompositeMapper = { + serializedName: "LocalizableString", type: { name: "Composite", - className: "ActivityLogAlertLeafCondition", + className: "LocalizableString", modelProperties: { - field: { + value: { required: true, - serializedName: "field", + serializedName: "value", type: { name: "String" } }, - equals: { - required: true, - serializedName: "equals", + localizedValue: { + serializedName: "localizedValue", type: { name: "String" } @@ -2309,218 +2511,42 @@ export const ActivityLogAlertLeafCondition: msRest.CompositeMapper = { } }; -export const ActivityLogAlertAllOfCondition: msRest.CompositeMapper = { - serializedName: "ActivityLogAlertAllOfCondition", +export const SenderAuthorization: msRest.CompositeMapper = { + serializedName: "SenderAuthorization", type: { name: "Composite", - className: "ActivityLogAlertAllOfCondition", + className: "SenderAuthorization", modelProperties: { - allOf: { - required: true, - serializedName: "allOf", + action: { + serializedName: "action", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "ActivityLogAlertLeafCondition" - } - } + name: "String" } - } - } - } -}; - -export const ActivityLogAlertActionGroup: msRest.CompositeMapper = { - serializedName: "ActivityLogAlertActionGroup", - type: { - name: "Composite", - className: "ActivityLogAlertActionGroup", - modelProperties: { - actionGroupId: { - required: true, - serializedName: "actionGroupId", + }, + role: { + serializedName: "role", type: { name: "String" } }, - webhookProperties: { - serializedName: "webhookProperties", + scope: { + serializedName: "scope", type: { - name: "Dictionary", - value: { - type: { - name: "String" - } - } + name: "String" } } } } }; -export const ActivityLogAlertActionList: msRest.CompositeMapper = { - serializedName: "ActivityLogAlertActionList", +export const HttpRequestInfo: msRest.CompositeMapper = { + serializedName: "HttpRequestInfo", type: { name: "Composite", - className: "ActivityLogAlertActionList", + className: "HttpRequestInfo", modelProperties: { - actionGroups: { - serializedName: "actionGroups", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "ActivityLogAlertActionGroup" - } - } - } - } - } - } -}; - -export const ActivityLogAlertResource: msRest.CompositeMapper = { - serializedName: "ActivityLogAlertResource", - type: { - name: "Composite", - className: "ActivityLogAlertResource", - modelProperties: { - ...Resource.type.modelProperties, - scopes: { - required: true, - serializedName: "properties.scopes", - type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } - } - }, - enabled: { - serializedName: "properties.enabled", - defaultValue: true, - type: { - name: "Boolean" - } - }, - condition: { - required: true, - serializedName: "properties.condition", - type: { - name: "Composite", - className: "ActivityLogAlertAllOfCondition" - } - }, - actions: { - required: true, - serializedName: "properties.actions", - type: { - name: "Composite", - className: "ActivityLogAlertActionList" - } - }, - description: { - serializedName: "properties.description", - type: { - name: "String" - } - } - } - } -}; - -export const ActivityLogAlertPatchBody: msRest.CompositeMapper = { - serializedName: "ActivityLogAlertPatchBody", - type: { - name: "Composite", - className: "ActivityLogAlertPatchBody", - modelProperties: { - tags: { - serializedName: "tags", - type: { - name: "Dictionary", - value: { - type: { - name: "String" - } - } - } - }, - enabled: { - serializedName: "properties.enabled", - defaultValue: true, - type: { - name: "Boolean" - } - } - } - } -}; - -export const LocalizableString: msRest.CompositeMapper = { - serializedName: "LocalizableString", - type: { - name: "Composite", - className: "LocalizableString", - modelProperties: { - value: { - required: true, - serializedName: "value", - type: { - name: "String" - } - }, - localizedValue: { - serializedName: "localizedValue", - type: { - name: "String" - } - } - } - } -}; - -export const SenderAuthorization: msRest.CompositeMapper = { - serializedName: "SenderAuthorization", - type: { - name: "Composite", - className: "SenderAuthorization", - modelProperties: { - action: { - serializedName: "action", - type: { - name: "String" - } - }, - role: { - serializedName: "role", - type: { - name: "String" - } - }, - scope: { - serializedName: "scope", - type: { - name: "String" - } - } - } - } -}; - -export const HttpRequestInfo: msRest.CompositeMapper = { - serializedName: "HttpRequestInfo", - type: { - name: "Composite", - className: "HttpRequestInfo", - modelProperties: { - clientRequestId: { - serializedName: "clientRequestId", + clientRequestId: { + serializedName: "clientRequestId", type: { name: "String" } @@ -2804,25 +2830,28 @@ export const MetricDefinition: msRest.CompositeMapper = { className: "LocalizableString" } }, + displayDescription: { + serializedName: "displayDescription", + type: { + name: "String" + } + }, + category: { + serializedName: "category", + type: { + name: "String" + } + }, + metricClass: { + serializedName: "metricClass", + type: { + name: "String" + } + }, unit: { serializedName: "unit", type: { - name: "Enum", - allowedValues: [ - "Count", - "Bytes", - "Seconds", - "CountPerSecond", - "BytesPerSecond", - "Percent", - "MilliSeconds", - "ByteSeconds", - "Unspecified", - "Cores", - "MilliCores", - "NanoCores", - "BitsPerSecond" - ] + name: "String" } }, primaryAggregationType: { @@ -3024,26 +3053,29 @@ export const Metric: msRest.CompositeMapper = { className: "LocalizableString" } }, + displayDescription: { + serializedName: "displayDescription", + type: { + name: "String" + } + }, + errorCode: { + serializedName: "errorCode", + type: { + name: "String" + } + }, + errorMessage: { + serializedName: "errorMessage", + type: { + name: "String" + } + }, unit: { required: true, serializedName: "unit", type: { - name: "Enum", - allowedValues: [ - "Count", - "Bytes", - "Seconds", - "CountPerSecond", - "BytesPerSecond", - "Percent", - "MilliSeconds", - "ByteSeconds", - "Unspecified", - "Cores", - "MilliCores", - "NanoCores", - "BitsPerSecond" - ] + name: "String" } }, timeseries: { @@ -3120,20 +3152,21 @@ export const Response: msRest.CompositeMapper = { } }; -export const BaselineMetadataValue: msRest.CompositeMapper = { - serializedName: "BaselineMetadataValue", +export const MetricSingleDimension: msRest.CompositeMapper = { + serializedName: "MetricSingleDimension", type: { name: "Composite", - className: "BaselineMetadataValue", + className: "MetricSingleDimension", modelProperties: { name: { + required: true, serializedName: "name", type: { - name: "Composite", - className: "LocalizableString" + name: "String" } }, value: { + required: true, serializedName: "value", type: { name: "String" @@ -3143,22 +3176,17 @@ export const BaselineMetadataValue: msRest.CompositeMapper = { } }; -export const Baseline: msRest.CompositeMapper = { - serializedName: "Baseline", +export const SingleBaseline: msRest.CompositeMapper = { + serializedName: "SingleBaseline", type: { name: "Composite", - className: "Baseline", + className: "SingleBaseline", modelProperties: { sensitivity: { required: true, serializedName: "sensitivity", type: { - name: "Enum", - allowedValues: [ - "Low", - "Medium", - "High" - ] + name: "String" } }, lowThresholds: { @@ -3189,287 +3217,51 @@ export const Baseline: msRest.CompositeMapper = { } }; -export const BaselineResponse: msRest.CompositeMapper = { - serializedName: "BaselineResponse", +export const BaselineMetadata: msRest.CompositeMapper = { + serializedName: "BaselineMetadata", type: { name: "Composite", - className: "BaselineResponse", + className: "BaselineMetadata", modelProperties: { - id: { - readOnly: true, - serializedName: "id", - type: { - name: "String" - } - }, - type: { - readOnly: true, - serializedName: "type", - type: { - name: "String" - } - }, name: { - readOnly: true, + required: true, serializedName: "name", - type: { - name: "Composite", - className: "LocalizableString" - } - }, - timespan: { - serializedName: "properties.timespan", type: { name: "String" } }, - interval: { - serializedName: "properties.interval", + value: { + required: true, + serializedName: "value", type: { - name: "TimeSpan" + name: "String" } - }, + } + } + } +}; + +export const TimeSeriesBaseline: msRest.CompositeMapper = { + serializedName: "TimeSeriesBaseline", + type: { + name: "Composite", + className: "TimeSeriesBaseline", + modelProperties: { aggregation: { - serializedName: "properties.aggregation", + required: true, + serializedName: "aggregation", type: { name: "String" } }, - timestamps: { - serializedName: "properties.timestamps", + dimensions: { + serializedName: "dimensions", type: { name: "Sequence", element: { type: { - name: "DateTime" - } - } - } - }, - baseline: { - serializedName: "properties.baseline", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "Baseline" - } - } - } - }, - metadata: { - serializedName: "properties.metadata", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "BaselineMetadataValue" - } - } - } - } - } - } -}; - -export const TimeSeriesInformation: msRest.CompositeMapper = { - serializedName: "TimeSeriesInformation", - type: { - name: "Composite", - className: "TimeSeriesInformation", - modelProperties: { - sensitivities: { - required: true, - serializedName: "sensitivities", - type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } - } - }, - values: { - required: true, - serializedName: "values", - type: { - name: "Sequence", - element: { - type: { - name: "Number" - } - } - } - }, - timestamps: { - serializedName: "timestamps", - type: { - name: "Sequence", - element: { - type: { - name: "DateTime" - } - } - } - } - } - } -}; - -export const CalculateBaselineResponse: msRest.CompositeMapper = { - serializedName: "CalculateBaselineResponse", - type: { - name: "Composite", - className: "CalculateBaselineResponse", - modelProperties: { - type: { - required: true, - serializedName: "type", - type: { - name: "String" - } - }, - timestamps: { - serializedName: "timestamps", - type: { - name: "Sequence", - element: { - type: { - name: "DateTime" - } - } - } - }, - baseline: { - required: true, - serializedName: "baseline", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "Baseline" - } - } - } - } - } - } -}; - -export const MetricSingleDimension: msRest.CompositeMapper = { - serializedName: "MetricSingleDimension", - type: { - name: "Composite", - className: "MetricSingleDimension", - modelProperties: { - name: { - required: true, - serializedName: "name", - type: { - name: "String" - } - }, - value: { - required: true, - serializedName: "value", - type: { - name: "String" - } - } - } - } -}; - -export const SingleBaseline: msRest.CompositeMapper = { - serializedName: "SingleBaseline", - type: { - name: "Composite", - className: "SingleBaseline", - modelProperties: { - sensitivity: { - required: true, - serializedName: "sensitivity", - type: { - name: "String" - } - }, - lowThresholds: { - required: true, - serializedName: "lowThresholds", - type: { - name: "Sequence", - element: { - type: { - name: "Number" - } - } - } - }, - highThresholds: { - required: true, - serializedName: "highThresholds", - type: { - name: "Sequence", - element: { - type: { - name: "Number" - } - } - } - } - } - } -}; - -export const BaselineMetadata: msRest.CompositeMapper = { - serializedName: "BaselineMetadata", - type: { - name: "Composite", - className: "BaselineMetadata", - modelProperties: { - name: { - required: true, - serializedName: "name", - type: { - name: "String" - } - }, - value: { - required: true, - serializedName: "value", - type: { - name: "String" - } - } - } - } -}; - -export const TimeSeriesBaseline: msRest.CompositeMapper = { - serializedName: "TimeSeriesBaseline", - type: { - name: "Composite", - className: "TimeSeriesBaseline", - modelProperties: { - aggregation: { - required: true, - serializedName: "aggregation", - type: { - name: "String" - } - }, - dimensions: { - serializedName: "dimensions", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "MetricSingleDimension" + name: "Composite", + className: "MetricSingleDimension" } } } @@ -3499,8 +3291,8 @@ export const TimeSeriesBaseline: msRest.CompositeMapper = { } } }, - metadata: { - serializedName: "metadata", + metadataValues: { + serializedName: "metadataValues", type: { name: "Sequence", element: { @@ -3591,8 +3383,8 @@ export const MetricAlertAction: msRest.CompositeMapper = { name: "String" } }, - webhookProperties: { - serializedName: "webhookProperties", + webHookProperties: { + serializedName: "webHookProperties", type: { name: "Dictionary", value: { @@ -3641,7 +3433,6 @@ export const MetricAlertResource: msRest.CompositeMapper = { modelProperties: { ...Resource.type.modelProperties, description: { - required: true, serializedName: "properties.description", type: { name: "String" @@ -3662,6 +3453,7 @@ export const MetricAlertResource: msRest.CompositeMapper = { } }, scopes: { + required: true, serializedName: "properties.scopes", type: { name: "Sequence", @@ -3735,6 +3527,13 @@ export const MetricAlertResource: msRest.CompositeMapper = { type: { name: "DateTime" } + }, + isMigrated: { + readOnly: true, + serializedName: "properties.isMigrated", + type: { + name: "Boolean" + } } } } @@ -3758,21 +3557,18 @@ export const MetricAlertResourcePatch: msRest.CompositeMapper = { } }, description: { - required: true, serializedName: "properties.description", type: { name: "String" } }, severity: { - required: true, serializedName: "properties.severity", type: { name: "Number" } }, enabled: { - required: true, serializedName: "properties.enabled", type: { name: "Boolean" @@ -3790,14 +3586,12 @@ export const MetricAlertResourcePatch: msRest.CompositeMapper = { } }, evaluationFrequency: { - required: true, serializedName: "properties.evaluationFrequency", type: { name: "TimeSpan" } }, windowSize: { - required: true, serializedName: "properties.windowSize", type: { name: "TimeSpan" @@ -3816,7 +3610,6 @@ export const MetricAlertResourcePatch: msRest.CompositeMapper = { } }, criteria: { - required: true, serializedName: "properties.criteria", type: { name: "Composite", @@ -3852,6 +3645,13 @@ export const MetricAlertResourcePatch: msRest.CompositeMapper = { type: { name: "DateTime" } + }, + isMigrated: { + readOnly: true, + serializedName: "properties.isMigrated", + type: { + name: "Boolean" + } } } } @@ -3982,7 +3782,7 @@ export const MultiMetricCriteria: msRest.CompositeMapper = { required: true, serializedName: "timeAggregation", type: { - name: "Object" + name: "String" } }, dimensions: { @@ -3997,6 +3797,12 @@ export const MultiMetricCriteria: msRest.CompositeMapper = { } } }, + skipMetricValidation: { + serializedName: "skipMetricValidation", + type: { + name: "Boolean" + } + }, criterionType: { required: true, serializedName: "criterionType", @@ -4026,7 +3832,7 @@ export const MetricCriteria: msRest.CompositeMapper = { required: true, serializedName: "operator", type: { - name: "Object" + name: "String" } }, threshold: { @@ -4068,35 +3874,70 @@ export const MetricAlertSingleResourceMultipleMetricCriteria: msRest.CompositeMa } }; -export const MetricDimension: msRest.CompositeMapper = { - serializedName: "MetricDimension", +export const WebtestLocationAvailabilityCriteria: msRest.CompositeMapper = { + serializedName: "Microsoft.Azure.Monitor.WebtestLocationAvailabilityCriteria", type: { name: "Composite", - className: "MetricDimension", + polymorphicDiscriminator: MetricAlertCriteria.type.polymorphicDiscriminator, + uberParent: "MetricAlertCriteria", + className: "WebtestLocationAvailabilityCriteria", modelProperties: { - name: { + ...MetricAlertCriteria.type.modelProperties, + webTestId: { required: true, - serializedName: "name", + serializedName: "webTestId", type: { name: "String" } }, - operator: { + componentId: { required: true, - serializedName: "operator", + serializedName: "componentId", type: { name: "String" } }, - values: { + failedLocationCount: { required: true, - serializedName: "values", + serializedName: "failedLocationCount", type: { - name: "Sequence", - element: { - type: { - name: "String" - } + name: "Number" + } + } + }, + additionalProperties: MetricAlertCriteria.type.additionalProperties + } +}; + +export const MetricDimension: msRest.CompositeMapper = { + serializedName: "MetricDimension", + type: { + name: "Composite", + className: "MetricDimension", + modelProperties: { + name: { + required: true, + serializedName: "name", + type: { + name: "String" + } + }, + operator: { + required: true, + serializedName: "operator", + type: { + name: "String" + } + }, + values: { + required: true, + serializedName: "values", + type: { + name: "Sequence", + element: { + type: { + name: "String" + } } } } @@ -4172,14 +4013,14 @@ export const DynamicMetricCriteria: msRest.CompositeMapper = { required: true, serializedName: "operator", type: { - name: "Object" + name: "String" } }, alertSensitivity: { required: true, serializedName: "alertSensitivity", type: { - name: "Object" + name: "String" } }, failingPeriods: { @@ -4294,12 +4135,39 @@ export const LogSearchRuleResource: msRest.CompositeMapper = { className: "LogSearchRuleResource", modelProperties: { ...Resource.type.modelProperties, + createdWithApiVersion: { + readOnly: true, + serializedName: "properties.createdWithApiVersion", + type: { + name: "String" + } + }, + isLegacyLogAnalyticsRule: { + readOnly: true, + serializedName: "properties.isLegacyLogAnalyticsRule", + type: { + name: "Boolean" + } + }, description: { serializedName: "properties.description", type: { name: "String" } }, + displayName: { + serializedName: "properties.displayName", + type: { + name: "String" + } + }, + autoMitigate: { + serializedName: "properties.autoMitigate", + defaultValue: false, + type: { + name: "Boolean" + } + }, enabled: { serializedName: "properties.enabled", type: { @@ -4382,6 +4250,7 @@ export const LogMetricTrigger: msRest.CompositeMapper = { modelProperties: { thresholdOperator: { serializedName: "thresholdOperator", + defaultValue: 'GreaterThanOrEqual', type: { name: "String" } @@ -4394,6 +4263,7 @@ export const LogMetricTrigger: msRest.CompositeMapper = { }, metricTriggerType: { serializedName: "metricTriggerType", + defaultValue: 'Consecutive', type: { name: "String" } @@ -4417,6 +4287,7 @@ export const TriggerCondition: msRest.CompositeMapper = { thresholdOperator: { required: true, serializedName: "thresholdOperator", + defaultValue: 'GreaterThanOrEqual', type: { name: "String" } @@ -4606,6 +4477,23 @@ export const LogToMetricAction: msRest.CompositeMapper = { } }; +export const ErrorContract: msRest.CompositeMapper = { + serializedName: "ErrorContract", + type: { + name: "Composite", + className: "ErrorContract", + modelProperties: { + error: { + serializedName: "error", + type: { + name: "Composite", + className: "ErrorResponse" + } + } + } + } +}; + export const MetricNamespaceName: msRest.CompositeMapper = { serializedName: "MetricNamespaceName", type: { @@ -4646,6 +4534,12 @@ export const MetricNamespace: msRest.CompositeMapper = { name: "String" } }, + classification: { + serializedName: "classification", + type: { + name: "String" + } + }, properties: { serializedName: "properties", type: { @@ -4822,49 +4716,59 @@ export const VMInsightsOnboardingStatus: msRest.CompositeMapper = { } }; -export const AutoscaleSettingResourceCollection: msRest.CompositeMapper = { - serializedName: "AutoscaleSettingResourceCollection", +export const ErrorAdditionalInfo: msRest.CompositeMapper = { + serializedName: "ErrorAdditionalInfo", type: { name: "Composite", - className: "AutoscaleSettingResourceCollection", + className: "ErrorAdditionalInfo", modelProperties: { - value: { - required: true, - serializedName: "", + type: { + readOnly: true, + serializedName: "type", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "AutoscaleSettingResource" - } - } + name: "String" } }, - nextLink: { - serializedName: "nextLink", + info: { + readOnly: true, + serializedName: "info", type: { - name: "String" + name: "Object" } } } } }; -export const IncidentListResult: msRest.CompositeMapper = { - serializedName: "IncidentListResult", +export const ErrorResponseCommon: msRest.CompositeMapper = { + serializedName: "ErrorResponseCommon", type: { name: "Composite", - className: "IncidentListResult", + className: "ErrorResponseCommon", modelProperties: { - value: { - serializedName: "", + ...ErrorResponse.type.modelProperties, + details: { + readOnly: true, + serializedName: "details", type: { name: "Sequence", element: { type: { name: "Composite", - className: "Incident" + className: "ErrorResponseCommon" + } + } + } + }, + additionalInfo: { + readOnly: true, + serializedName: "additionalInfo", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ErrorAdditionalInfo" } } } @@ -4873,43 +4777,97 @@ export const IncidentListResult: msRest.CompositeMapper = { } }; -export const AlertRuleResourceCollection: msRest.CompositeMapper = { - serializedName: "AlertRuleResourceCollection", +export const OperationStatus: msRest.CompositeMapper = { + serializedName: "OperationStatus", type: { name: "Composite", - className: "AlertRuleResourceCollection", + className: "OperationStatus", modelProperties: { - value: { - serializedName: "", + id: { + serializedName: "id", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "AlertRuleResource" - } - } + name: "String" + } + }, + name: { + serializedName: "name", + type: { + name: "String" + } + }, + startTime: { + nullable: true, + serializedName: "startTime", + type: { + name: "DateTime" + } + }, + endTime: { + nullable: true, + serializedName: "endTime", + type: { + name: "DateTime" + } + }, + status: { + serializedName: "status", + type: { + name: "String" + } + }, + error: { + nullable: true, + serializedName: "error", + type: { + name: "Composite", + className: "ErrorResponseCommon" } } } } }; -export const LogProfileCollection: msRest.CompositeMapper = { - serializedName: "LogProfileCollection", +export const PrivateLinkScopesResource: msRest.CompositeMapper = { + serializedName: "PrivateLinkScopesResource", type: { name: "Composite", - className: "LogProfileCollection", + className: "PrivateLinkScopesResource", modelProperties: { - value: { + id: { + readOnly: true, + serializedName: "id", + type: { + name: "String" + } + }, + name: { + readOnly: true, + serializedName: "name", + type: { + name: "String" + } + }, + type: { + readOnly: true, + serializedName: "type", + type: { + name: "String" + } + }, + location: { required: true, - serializedName: "", + serializedName: "location", type: { - name: "Sequence", - element: { + name: "String" + } + }, + tags: { + serializedName: "tags", + type: { + name: "Dictionary", + value: { type: { - name: "Composite", - className: "LogProfileResource" + name: "String" } } } @@ -4918,20 +4876,19 @@ export const LogProfileCollection: msRest.CompositeMapper = { } }; -export const ActionGroupList: msRest.CompositeMapper = { - serializedName: "ActionGroupList", +export const TagsResource: msRest.CompositeMapper = { + serializedName: "TagsResource", type: { name: "Composite", - className: "ActionGroupList", + className: "TagsResource", modelProperties: { - value: { - serializedName: "", + tags: { + serializedName: "tags", type: { - name: "Sequence", - element: { + name: "Dictionary", + value: { type: { - name: "Composite", - className: "ActionGroupResource" + name: "String" } } } @@ -4940,49 +4897,45 @@ export const ActionGroupList: msRest.CompositeMapper = { } }; -export const ActivityLogAlertList: msRest.CompositeMapper = { - serializedName: "ActivityLogAlertList", +export const PrivateEndpointProperty: msRest.CompositeMapper = { + serializedName: "PrivateEndpointProperty", type: { name: "Composite", - className: "ActivityLogAlertList", + className: "PrivateEndpointProperty", modelProperties: { - value: { - serializedName: "", + id: { + serializedName: "id", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "ActivityLogAlertResource" - } - } + name: "String" } } } } }; -export const EventDataCollection: msRest.CompositeMapper = { - serializedName: "EventDataCollection", +export const PrivateLinkServiceConnectionStateProperty: msRest.CompositeMapper = { + serializedName: "PrivateLinkServiceConnectionStateProperty", type: { name: "Composite", - className: "EventDataCollection", + className: "PrivateLinkServiceConnectionStateProperty", modelProperties: { - value: { + status: { required: true, - serializedName: "", + serializedName: "status", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "EventData" - } - } + name: "String" } }, - nextLink: { - serializedName: "nextLink", + description: { + required: true, + serializedName: "description", + type: { + name: "String" + } + }, + actionsRequired: { + readOnly: true, + serializedName: "actionsRequired", type: { name: "String" } @@ -4991,8 +4944,1523 @@ export const EventDataCollection: msRest.CompositeMapper = { } }; -export const EventCategoryCollection: msRest.CompositeMapper = { - serializedName: "EventCategoryCollection", +export const PrivateEndpointConnection: msRest.CompositeMapper = { + serializedName: "PrivateEndpointConnection", + type: { + name: "Composite", + className: "PrivateEndpointConnection", + modelProperties: { + ...ProxyResource.type.modelProperties, + privateEndpoint: { + serializedName: "properties.privateEndpoint", + type: { + name: "Composite", + className: "PrivateEndpointProperty" + } + }, + privateLinkServiceConnectionState: { + serializedName: "properties.privateLinkServiceConnectionState", + type: { + name: "Composite", + className: "PrivateLinkServiceConnectionStateProperty" + } + }, + provisioningState: { + readOnly: true, + serializedName: "properties.provisioningState", + type: { + name: "String" + } + } + } + } +}; + +export const AzureMonitorPrivateLinkScope: msRest.CompositeMapper = { + serializedName: "AzureMonitorPrivateLinkScope", + type: { + name: "Composite", + className: "AzureMonitorPrivateLinkScope", + modelProperties: { + ...PrivateLinkScopesResource.type.modelProperties, + provisioningState: { + readOnly: true, + serializedName: "properties.provisioningState", + type: { + name: "String" + } + }, + privateEndpointConnections: { + readOnly: true, + serializedName: "properties.privateEndpointConnections", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "PrivateEndpointConnection" + } + } + } + } + } + } +}; + +export const PrivateLinkResource: msRest.CompositeMapper = { + serializedName: "PrivateLinkResource", + type: { + name: "Composite", + className: "PrivateLinkResource", + modelProperties: { + ...ProxyResource.type.modelProperties, + groupId: { + readOnly: true, + serializedName: "properties.groupId", + type: { + name: "String" + } + }, + requiredMembers: { + readOnly: true, + serializedName: "properties.requiredMembers", + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + } + } + } +}; + +export const ScopedResource: msRest.CompositeMapper = { + serializedName: "ScopedResource", + type: { + name: "Composite", + className: "ScopedResource", + modelProperties: { + ...ProxyResource.type.modelProperties, + linkedResourceId: { + serializedName: "properties.linkedResourceId", + type: { + name: "String" + } + }, + provisioningState: { + readOnly: true, + serializedName: "properties.provisioningState", + type: { + name: "String" + } + } + } + } +}; + +export const ActivityLogAlertLeafCondition: msRest.CompositeMapper = { + serializedName: "ActivityLogAlertLeafCondition", + type: { + name: "Composite", + className: "ActivityLogAlertLeafCondition", + modelProperties: { + field: { + required: true, + serializedName: "field", + type: { + name: "String" + } + }, + equals: { + required: true, + serializedName: "equals", + type: { + name: "String" + } + } + } + } +}; + +export const ActivityLogAlertAllOfCondition: msRest.CompositeMapper = { + serializedName: "ActivityLogAlertAllOfCondition", + type: { + name: "Composite", + className: "ActivityLogAlertAllOfCondition", + modelProperties: { + allOf: { + required: true, + serializedName: "allOf", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ActivityLogAlertLeafCondition" + } + } + } + } + } + } +}; + +export const ActivityLogAlertActionGroup: msRest.CompositeMapper = { + serializedName: "ActivityLogAlertActionGroup", + type: { + name: "Composite", + className: "ActivityLogAlertActionGroup", + modelProperties: { + actionGroupId: { + required: true, + serializedName: "actionGroupId", + type: { + name: "String" + } + }, + webhookProperties: { + serializedName: "webhookProperties", + type: { + name: "Dictionary", + value: { + type: { + name: "String" + } + } + } + } + } + } +}; + +export const ActivityLogAlertActionList: msRest.CompositeMapper = { + serializedName: "ActivityLogAlertActionList", + type: { + name: "Composite", + className: "ActivityLogAlertActionList", + modelProperties: { + actionGroups: { + serializedName: "actionGroups", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ActivityLogAlertActionGroup" + } + } + } + } + } + } +}; + +export const ActivityLogAlertResource: msRest.CompositeMapper = { + serializedName: "ActivityLogAlertResource", + type: { + name: "Composite", + className: "ActivityLogAlertResource", + modelProperties: { + ...Resource.type.modelProperties, + scopes: { + required: true, + serializedName: "properties.scopes", + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + }, + enabled: { + serializedName: "properties.enabled", + defaultValue: true, + type: { + name: "Boolean" + } + }, + condition: { + required: true, + serializedName: "properties.condition", + type: { + name: "Composite", + className: "ActivityLogAlertAllOfCondition" + } + }, + actions: { + required: true, + serializedName: "properties.actions", + type: { + name: "Composite", + className: "ActivityLogAlertActionList" + } + }, + description: { + serializedName: "properties.description", + type: { + name: "String" + } + } + } + } +}; + +export const ActivityLogAlertPatchBody: msRest.CompositeMapper = { + serializedName: "ActivityLogAlertPatchBody", + type: { + name: "Composite", + className: "ActivityLogAlertPatchBody", + modelProperties: { + tags: { + serializedName: "tags", + type: { + name: "Dictionary", + value: { + type: { + name: "String" + } + } + } + }, + enabled: { + serializedName: "properties.enabled", + defaultValue: true, + type: { + name: "Boolean" + } + } + } + } +}; + +export const ConfigurationAccessEndpointSpec: msRest.CompositeMapper = { + serializedName: "ConfigurationAccessEndpointSpec", + type: { + name: "Composite", + className: "ConfigurationAccessEndpointSpec", + modelProperties: { + endpoint: { + readOnly: true, + serializedName: "endpoint", + type: { + name: "String" + } + } + } + } +}; + +export const LogsIngestionEndpointSpec: msRest.CompositeMapper = { + serializedName: "LogsIngestionEndpointSpec", + type: { + name: "Composite", + className: "LogsIngestionEndpointSpec", + modelProperties: { + endpoint: { + readOnly: true, + serializedName: "endpoint", + type: { + name: "String" + } + } + } + } +}; + +export const NetworkRuleSet: msRest.CompositeMapper = { + serializedName: "NetworkRuleSet", + type: { + name: "Composite", + className: "NetworkRuleSet", + modelProperties: { + publicNetworkAccess: { + serializedName: "publicNetworkAccess", + type: { + name: "String" + } + } + } + } +}; + +export const DataCollectionEndpointConfigurationAccess: msRest.CompositeMapper = { + serializedName: "DataCollectionEndpoint_configurationAccess", + type: { + name: "Composite", + className: "DataCollectionEndpointConfigurationAccess", + modelProperties: { + ...ConfigurationAccessEndpointSpec.type.modelProperties + } + } +}; + +export const DataCollectionEndpointLogsIngestion: msRest.CompositeMapper = { + serializedName: "DataCollectionEndpoint_logsIngestion", + type: { + name: "Composite", + className: "DataCollectionEndpointLogsIngestion", + modelProperties: { + ...LogsIngestionEndpointSpec.type.modelProperties + } + } +}; + +export const DataCollectionEndpointNetworkAcls: msRest.CompositeMapper = { + serializedName: "DataCollectionEndpoint_networkAcls", + type: { + name: "Composite", + className: "DataCollectionEndpointNetworkAcls", + modelProperties: { + ...NetworkRuleSet.type.modelProperties + } + } +}; + +export const DataCollectionEndpoint: msRest.CompositeMapper = { + serializedName: "DataCollectionEndpoint", + type: { + name: "Composite", + className: "DataCollectionEndpoint", + modelProperties: { + description: { + serializedName: "description", + type: { + name: "String" + } + }, + immutableId: { + serializedName: "immutableId", + type: { + name: "String" + } + }, + configurationAccess: { + serializedName: "configurationAccess", + type: { + name: "Composite", + className: "DataCollectionEndpointConfigurationAccess" + } + }, + logsIngestion: { + serializedName: "logsIngestion", + type: { + name: "Composite", + className: "DataCollectionEndpointLogsIngestion" + } + }, + networkAcls: { + serializedName: "networkAcls", + type: { + name: "Composite", + className: "DataCollectionEndpointNetworkAcls" + } + }, + provisioningState: { + readOnly: true, + serializedName: "provisioningState", + type: { + name: "String" + } + } + } + } +}; + +export const SystemData: msRest.CompositeMapper = { + serializedName: "systemData", + type: { + name: "Composite", + className: "SystemData", + modelProperties: { + createdBy: { + serializedName: "createdBy", + type: { + name: "String" + } + }, + createdByType: { + serializedName: "createdByType", + type: { + name: "String" + } + }, + createdAt: { + serializedName: "createdAt", + type: { + name: "DateTime" + } + }, + lastModifiedBy: { + serializedName: "lastModifiedBy", + type: { + name: "String" + } + }, + lastModifiedByType: { + serializedName: "lastModifiedByType", + type: { + name: "String" + } + }, + lastModifiedAt: { + serializedName: "lastModifiedAt", + type: { + name: "DateTime" + } + } + } + } +}; + +export const DataCollectionEndpointResourceSystemData: msRest.CompositeMapper = { + serializedName: "DataCollectionEndpointResource_systemData", + type: { + name: "Composite", + className: "DataCollectionEndpointResourceSystemData", + modelProperties: { + ...SystemData.type.modelProperties + } + } +}; + +export const DataCollectionEndpointResource: msRest.CompositeMapper = { + serializedName: "DataCollectionEndpointResource", + type: { + name: "Composite", + className: "DataCollectionEndpointResource", + modelProperties: { + description: { + serializedName: "properties.description", + type: { + name: "String" + } + }, + immutableId: { + serializedName: "properties.immutableId", + type: { + name: "String" + } + }, + configurationAccess: { + serializedName: "properties.configurationAccess", + type: { + name: "Composite", + className: "DataCollectionEndpointConfigurationAccess" + } + }, + logsIngestion: { + serializedName: "properties.logsIngestion", + type: { + name: "Composite", + className: "DataCollectionEndpointLogsIngestion" + } + }, + networkAcls: { + serializedName: "properties.networkAcls", + type: { + name: "Composite", + className: "DataCollectionEndpointNetworkAcls" + } + }, + provisioningState: { + readOnly: true, + serializedName: "properties.provisioningState", + type: { + name: "String" + } + }, + location: { + required: true, + serializedName: "location", + type: { + name: "String" + } + }, + tags: { + serializedName: "tags", + type: { + name: "Dictionary", + value: { + type: { + name: "String" + } + } + } + }, + kind: { + serializedName: "kind", + type: { + name: "String" + } + }, + id: { + readOnly: true, + serializedName: "id", + type: { + name: "String" + } + }, + name: { + readOnly: true, + serializedName: "name", + type: { + name: "String" + } + }, + type: { + readOnly: true, + serializedName: "type", + type: { + name: "String" + } + }, + etag: { + readOnly: true, + serializedName: "etag", + type: { + name: "String" + } + }, + systemData: { + readOnly: true, + serializedName: "systemData", + type: { + name: "Composite", + className: "DataCollectionEndpointResourceSystemData" + } + } + } + } +}; + +export const ResourceForUpdate: msRest.CompositeMapper = { + serializedName: "ResourceForUpdate", + type: { + name: "Composite", + className: "ResourceForUpdate", + modelProperties: { + tags: { + serializedName: "tags", + type: { + name: "Dictionary", + value: { + type: { + name: "String" + } + } + } + } + } + } +}; + +export const ErrorDetail: msRest.CompositeMapper = { + serializedName: "ErrorDetail", + type: { + name: "Composite", + className: "ErrorDetail", + modelProperties: { + code: { + readOnly: true, + serializedName: "code", + type: { + name: "String" + } + }, + message: { + readOnly: true, + serializedName: "message", + type: { + name: "String" + } + }, + target: { + readOnly: true, + serializedName: "target", + type: { + name: "String" + } + }, + details: { + readOnly: true, + serializedName: "details", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ErrorDetail" + } + } + } + }, + additionalInfo: { + readOnly: true, + serializedName: "additionalInfo", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ErrorAdditionalInfo" + } + } + } + } + } + } +}; + +export const ErrorResponseCommonV2: msRest.CompositeMapper = { + serializedName: "ErrorResponseCommonV2", + type: { + name: "Composite", + className: "ErrorResponseCommonV2", + modelProperties: { + error: { + serializedName: "error", + type: { + name: "Composite", + className: "ErrorDetail" + } + } + } + } +}; + +export const DataCollectionRuleAssociation: msRest.CompositeMapper = { + serializedName: "DataCollectionRuleAssociation", + type: { + name: "Composite", + className: "DataCollectionRuleAssociation", + modelProperties: { + description: { + serializedName: "description", + type: { + name: "String" + } + }, + dataCollectionRuleId: { + serializedName: "dataCollectionRuleId", + type: { + name: "String" + } + }, + dataCollectionEndpointId: { + serializedName: "dataCollectionEndpointId", + type: { + name: "String" + } + }, + provisioningState: { + readOnly: true, + serializedName: "provisioningState", + type: { + name: "String" + } + } + } + } +}; + +export const DataCollectionRuleAssociationProxyOnlyResourceSystemData: msRest.CompositeMapper = { + serializedName: "DataCollectionRuleAssociationProxyOnlyResource_systemData", + type: { + name: "Composite", + className: "DataCollectionRuleAssociationProxyOnlyResourceSystemData", + modelProperties: { + ...SystemData.type.modelProperties + } + } +}; + +export const DataCollectionRuleAssociationProxyOnlyResource: msRest.CompositeMapper = { + serializedName: "DataCollectionRuleAssociationProxyOnlyResource", + type: { + name: "Composite", + className: "DataCollectionRuleAssociationProxyOnlyResource", + modelProperties: { + description: { + serializedName: "properties.description", + type: { + name: "String" + } + }, + dataCollectionRuleId: { + serializedName: "properties.dataCollectionRuleId", + type: { + name: "String" + } + }, + dataCollectionEndpointId: { + serializedName: "properties.dataCollectionEndpointId", + type: { + name: "String" + } + }, + provisioningState: { + readOnly: true, + serializedName: "properties.provisioningState", + type: { + name: "String" + } + }, + id: { + readOnly: true, + serializedName: "id", + type: { + name: "String" + } + }, + name: { + readOnly: true, + serializedName: "name", + type: { + name: "String" + } + }, + type: { + readOnly: true, + serializedName: "type", + type: { + name: "String" + } + }, + etag: { + readOnly: true, + serializedName: "etag", + type: { + name: "String" + } + }, + systemData: { + readOnly: true, + serializedName: "systemData", + type: { + name: "Composite", + className: "DataCollectionRuleAssociationProxyOnlyResourceSystemData" + } + } + } + } +}; + +export const PerfCounterDataSource: msRest.CompositeMapper = { + serializedName: "PerfCounterDataSource", + type: { + name: "Composite", + className: "PerfCounterDataSource", + modelProperties: { + streams: { + serializedName: "streams", + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + }, + samplingFrequencyInSeconds: { + serializedName: "samplingFrequencyInSeconds", + type: { + name: "Number" + } + }, + counterSpecifiers: { + serializedName: "counterSpecifiers", + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + }, + name: { + serializedName: "name", + type: { + name: "String" + } + } + } + } +}; + +export const WindowsEventLogDataSource: msRest.CompositeMapper = { + serializedName: "WindowsEventLogDataSource", + type: { + name: "Composite", + className: "WindowsEventLogDataSource", + modelProperties: { + streams: { + serializedName: "streams", + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + }, + xPathQueries: { + serializedName: "xPathQueries", + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + }, + name: { + serializedName: "name", + type: { + name: "String" + } + } + } + } +}; + +export const SyslogDataSource: msRest.CompositeMapper = { + serializedName: "SyslogDataSource", + type: { + name: "Composite", + className: "SyslogDataSource", + modelProperties: { + streams: { + serializedName: "streams", + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + }, + facilityNames: { + serializedName: "facilityNames", + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + }, + logLevels: { + serializedName: "logLevels", + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + }, + name: { + serializedName: "name", + type: { + name: "String" + } + } + } + } +}; + +export const ExtensionDataSource: msRest.CompositeMapper = { + serializedName: "ExtensionDataSource", + type: { + name: "Composite", + className: "ExtensionDataSource", + modelProperties: { + streams: { + serializedName: "streams", + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + }, + extensionName: { + required: true, + serializedName: "extensionName", + type: { + name: "String" + } + }, + extensionSettings: { + serializedName: "extensionSettings", + type: { + name: "Object" + } + }, + inputDataSources: { + serializedName: "inputDataSources", + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + }, + name: { + serializedName: "name", + type: { + name: "String" + } + } + } + } +}; + +export const DataSourcesSpec: msRest.CompositeMapper = { + serializedName: "DataSourcesSpec", + type: { + name: "Composite", + className: "DataSourcesSpec", + modelProperties: { + performanceCounters: { + serializedName: "performanceCounters", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "PerfCounterDataSource" + } + } + } + }, + windowsEventLogs: { + serializedName: "windowsEventLogs", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "WindowsEventLogDataSource" + } + } + } + }, + syslog: { + serializedName: "syslog", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "SyslogDataSource" + } + } + } + }, + extensions: { + serializedName: "extensions", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ExtensionDataSource" + } + } + } + } + } + } +}; + +export const LogAnalyticsDestination: msRest.CompositeMapper = { + serializedName: "LogAnalyticsDestination", + type: { + name: "Composite", + className: "LogAnalyticsDestination", + modelProperties: { + workspaceResourceId: { + serializedName: "workspaceResourceId", + type: { + name: "String" + } + }, + workspaceId: { + readOnly: true, + serializedName: "workspaceId", + type: { + name: "String" + } + }, + name: { + serializedName: "name", + type: { + name: "String" + } + } + } + } +}; + +export const AzureMonitorMetricsDestination: msRest.CompositeMapper = { + serializedName: "AzureMonitorMetricsDestination", + type: { + name: "Composite", + className: "AzureMonitorMetricsDestination", + modelProperties: { + name: { + serializedName: "name", + type: { + name: "String" + } + } + } + } +}; + +export const DestinationsSpecAzureMonitorMetrics: msRest.CompositeMapper = { + serializedName: "DestinationsSpec_azureMonitorMetrics", + type: { + name: "Composite", + className: "DestinationsSpecAzureMonitorMetrics", + modelProperties: { + ...AzureMonitorMetricsDestination.type.modelProperties + } + } +}; + +export const DestinationsSpec: msRest.CompositeMapper = { + serializedName: "DestinationsSpec", + type: { + name: "Composite", + className: "DestinationsSpec", + modelProperties: { + logAnalytics: { + serializedName: "logAnalytics", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "LogAnalyticsDestination" + } + } + } + }, + azureMonitorMetrics: { + serializedName: "azureMonitorMetrics", + type: { + name: "Composite", + className: "DestinationsSpecAzureMonitorMetrics" + } + } + } + } +}; + +export const DataFlow: msRest.CompositeMapper = { + serializedName: "DataFlow", + type: { + name: "Composite", + className: "DataFlow", + modelProperties: { + streams: { + serializedName: "streams", + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + }, + destinations: { + serializedName: "destinations", + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + } + } + } +}; + +export const DataCollectionRuleDataSources: msRest.CompositeMapper = { + serializedName: "DataCollectionRule_dataSources", + type: { + name: "Composite", + className: "DataCollectionRuleDataSources", + modelProperties: { + ...DataSourcesSpec.type.modelProperties + } + } +}; + +export const DataCollectionRuleDestinations: msRest.CompositeMapper = { + serializedName: "DataCollectionRule_destinations", + type: { + name: "Composite", + className: "DataCollectionRuleDestinations", + modelProperties: { + ...DestinationsSpec.type.modelProperties + } + } +}; + +export const DataCollectionRule: msRest.CompositeMapper = { + serializedName: "DataCollectionRule", + type: { + name: "Composite", + className: "DataCollectionRule", + modelProperties: { + description: { + serializedName: "description", + type: { + name: "String" + } + }, + immutableId: { + readOnly: true, + serializedName: "immutableId", + type: { + name: "String" + } + }, + dataSources: { + serializedName: "dataSources", + type: { + name: "Composite", + className: "DataCollectionRuleDataSources" + } + }, + destinations: { + serializedName: "destinations", + type: { + name: "Composite", + className: "DataCollectionRuleDestinations" + } + }, + dataFlows: { + serializedName: "dataFlows", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "DataFlow" + } + } + } + }, + provisioningState: { + readOnly: true, + serializedName: "provisioningState", + type: { + name: "String" + } + } + } + } +}; + +export const DataCollectionRuleResourceSystemData: msRest.CompositeMapper = { + serializedName: "DataCollectionRuleResource_systemData", + type: { + name: "Composite", + className: "DataCollectionRuleResourceSystemData", + modelProperties: { + ...SystemData.type.modelProperties + } + } +}; + +export const DataCollectionRuleResource: msRest.CompositeMapper = { + serializedName: "DataCollectionRuleResource", + type: { + name: "Composite", + className: "DataCollectionRuleResource", + modelProperties: { + description: { + serializedName: "properties.description", + type: { + name: "String" + } + }, + immutableId: { + readOnly: true, + serializedName: "properties.immutableId", + type: { + name: "String" + } + }, + dataSources: { + serializedName: "properties.dataSources", + type: { + name: "Composite", + className: "DataCollectionRuleDataSources" + } + }, + destinations: { + serializedName: "properties.destinations", + type: { + name: "Composite", + className: "DataCollectionRuleDestinations" + } + }, + dataFlows: { + serializedName: "properties.dataFlows", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "DataFlow" + } + } + } + }, + provisioningState: { + readOnly: true, + serializedName: "properties.provisioningState", + type: { + name: "String" + } + }, + location: { + required: true, + serializedName: "location", + type: { + name: "String" + } + }, + tags: { + serializedName: "tags", + type: { + name: "Dictionary", + value: { + type: { + name: "String" + } + } + } + }, + kind: { + serializedName: "kind", + type: { + name: "String" + } + }, + id: { + readOnly: true, + serializedName: "id", + type: { + name: "String" + } + }, + name: { + readOnly: true, + serializedName: "name", + type: { + name: "String" + } + }, + type: { + readOnly: true, + serializedName: "type", + type: { + name: "String" + } + }, + etag: { + readOnly: true, + serializedName: "etag", + type: { + name: "String" + } + }, + systemData: { + readOnly: true, + serializedName: "systemData", + type: { + name: "Composite", + className: "DataCollectionRuleResourceSystemData" + } + } + } + } +}; + +export const AutoscaleSettingResourceCollection: msRest.CompositeMapper = { + serializedName: "AutoscaleSettingResourceCollection", + type: { + name: "Composite", + className: "AutoscaleSettingResourceCollection", + modelProperties: { + value: { + required: true, + serializedName: "", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "AutoscaleSettingResource" + } + } + } + }, + nextLink: { + serializedName: "nextLink", + type: { + name: "String" + } + } + } + } +}; + +export const IncidentListResult: msRest.CompositeMapper = { + serializedName: "IncidentListResult", + type: { + name: "Composite", + className: "IncidentListResult", + modelProperties: { + value: { + serializedName: "", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "Incident" + } + } + } + } + } + } +}; + +export const AlertRuleResourceCollection: msRest.CompositeMapper = { + serializedName: "AlertRuleResourceCollection", + type: { + name: "Composite", + className: "AlertRuleResourceCollection", + modelProperties: { + value: { + serializedName: "", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "AlertRuleResource" + } + } + } + } + } + } +}; + +export const LogProfileCollection: msRest.CompositeMapper = { + serializedName: "LogProfileCollection", + type: { + name: "Composite", + className: "LogProfileCollection", + modelProperties: { + value: { + required: true, + serializedName: "", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "LogProfileResource" + } + } + } + } + } + } +}; + +export const ActionGroupList: msRest.CompositeMapper = { + serializedName: "ActionGroupList", + type: { + name: "Composite", + className: "ActionGroupList", + modelProperties: { + value: { + serializedName: "", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ActionGroupResource" + } + } + } + } + } + } +}; + +export const EventDataCollection: msRest.CompositeMapper = { + serializedName: "EventDataCollection", + type: { + name: "Composite", + className: "EventDataCollection", + modelProperties: { + value: { + required: true, + serializedName: "", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "EventData" + } + } + } + }, + nextLink: { + serializedName: "nextLink", + type: { + name: "String" + } + } + } + } +}; + +export const EventCategoryCollection: msRest.CompositeMapper = { + serializedName: "EventCategoryCollection", type: { name: "Composite", className: "EventCategoryCollection", @@ -5126,6 +6594,234 @@ export const MetricNamespaceCollection: msRest.CompositeMapper = { } }; +export const AzureMonitorPrivateLinkScopeListResult: msRest.CompositeMapper = { + serializedName: "AzureMonitorPrivateLinkScopeListResult", + type: { + name: "Composite", + className: "AzureMonitorPrivateLinkScopeListResult", + modelProperties: { + value: { + required: true, + serializedName: "", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "AzureMonitorPrivateLinkScope" + } + } + } + }, + nextLink: { + serializedName: "nextLink", + type: { + name: "String" + } + } + } + } +}; + +export const PrivateLinkResourceListResult: msRest.CompositeMapper = { + serializedName: "PrivateLinkResourceListResult", + type: { + name: "Composite", + className: "PrivateLinkResourceListResult", + modelProperties: { + value: { + readOnly: true, + serializedName: "", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "PrivateLinkResource" + } + } + } + }, + nextLink: { + readOnly: true, + serializedName: "nextLink", + type: { + name: "String" + } + } + } + } +}; + +export const PrivateEndpointConnectionListResult: msRest.CompositeMapper = { + serializedName: "PrivateEndpointConnectionListResult", + type: { + name: "Composite", + className: "PrivateEndpointConnectionListResult", + modelProperties: { + value: { + readOnly: true, + serializedName: "", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "PrivateEndpointConnection" + } + } + } + }, + nextLink: { + readOnly: true, + serializedName: "nextLink", + type: { + name: "String" + } + } + } + } +}; + +export const ScopedResourceListResult: msRest.CompositeMapper = { + serializedName: "ScopedResourceListResult", + type: { + name: "Composite", + className: "ScopedResourceListResult", + modelProperties: { + value: { + readOnly: true, + serializedName: "", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ScopedResource" + } + } + } + }, + nextLink: { + readOnly: true, + serializedName: "nextLink", + type: { + name: "String" + } + } + } + } +}; + +export const ActivityLogAlertList: msRest.CompositeMapper = { + serializedName: "ActivityLogAlertList", + type: { + name: "Composite", + className: "ActivityLogAlertList", + modelProperties: { + value: { + serializedName: "", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ActivityLogAlertResource" + } + } + } + } + } + } +}; + +export const DataCollectionEndpointResourceListResult: msRest.CompositeMapper = { + serializedName: "DataCollectionEndpointResourceListResult", + type: { + name: "Composite", + className: "DataCollectionEndpointResourceListResult", + modelProperties: { + value: { + required: true, + serializedName: "", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "DataCollectionEndpointResource" + } + } + } + }, + nextLink: { + serializedName: "nextLink", + type: { + name: "String" + } + } + } + } +}; + +export const DataCollectionRuleAssociationProxyOnlyResourceListResult: msRest.CompositeMapper = { + serializedName: "DataCollectionRuleAssociationProxyOnlyResourceListResult", + type: { + name: "Composite", + className: "DataCollectionRuleAssociationProxyOnlyResourceListResult", + modelProperties: { + value: { + required: true, + serializedName: "", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "DataCollectionRuleAssociationProxyOnlyResource" + } + } + } + }, + nextLink: { + serializedName: "nextLink", + type: { + name: "String" + } + } + } + } +}; + +export const DataCollectionRuleResourceListResult: msRest.CompositeMapper = { + serializedName: "DataCollectionRuleResourceListResult", + type: { + name: "Composite", + className: "DataCollectionRuleResourceListResult", + modelProperties: { + value: { + required: true, + serializedName: "", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "DataCollectionRuleResource" + } + } + } + }, + nextLink: { + serializedName: "nextLink", + type: { + name: "String" + } + } + } + } +}; + export const discriminators = { 'RuleDataSource' : RuleDataSource, 'RuleCondition' : RuleCondition, @@ -5140,6 +6836,7 @@ export const discriminators = { 'MetricAlertCriteria' : MetricAlertCriteria, 'MultiMetricCriteria.StaticThresholdCriterion' : MetricCriteria, 'MetricAlertCriteria.Microsoft.Azure.Monitor.SingleResourceMultipleMetricCriteria' : MetricAlertSingleResourceMultipleMetricCriteria, + 'MetricAlertCriteria.Microsoft.Azure.Monitor.WebtestLocationAvailabilityCriteria' : WebtestLocationAvailabilityCriteria, 'MultiMetricCriteria' : MultiMetricCriteria, 'MetricAlertCriteria.Microsoft.Azure.Monitor.MultipleResourceMultipleMetricCriteria' : MetricAlertMultipleResourceMultipleMetricCriteria, 'MultiMetricCriteria.DynamicThresholdCriterion' : DynamicMetricCriteria, diff --git a/sdk/monitor/arm-monitor/src/models/metricAlertsMappers.ts b/sdk/monitor/arm-monitor/src/models/metricAlertsMappers.ts index a6d76f72efbc..457d15eb558a 100644 --- a/sdk/monitor/arm-monitor/src/models/metricAlertsMappers.ts +++ b/sdk/monitor/arm-monitor/src/models/metricAlertsMappers.ts @@ -1,6 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is regenerated. @@ -25,10 +25,28 @@ export { AzNsActionGroup, AzureAppPushReceiver, AzureFunctionReceiver, + AzureMonitorMetricsDestination, + AzureMonitorPrivateLinkScope, + AzureResource, BaseResource, - CloudError, + ConfigurationAccessEndpointSpec, Criteria, + DataCollectionEndpointConfigurationAccess, + DataCollectionEndpointLogsIngestion, + DataCollectionEndpointNetworkAcls, + DataCollectionEndpointResource, + DataCollectionEndpointResourceSystemData, + DataCollectionRuleAssociationProxyOnlyResource, + DataCollectionRuleAssociationProxyOnlyResourceSystemData, + DataCollectionRuleDataSources, + DataCollectionRuleDestinations, + DataCollectionRuleResource, + DataCollectionRuleResourceSystemData, DataContainer, + DataFlow, + DataSourcesSpec, + DestinationsSpec, + DestinationsSpecAzureMonitorMetrics, DiagnosticSettingsCategoryResource, DiagnosticSettingsResource, Dimension, @@ -36,14 +54,19 @@ export { DynamicThresholdFailingPeriods, EmailNotification, EmailReceiver, + ErrorAdditionalInfo, ErrorResponse, + ErrorResponseCommon, + ExtensionDataSource, ItsmReceiver, LocationThresholdRuleCondition, + LogAnalyticsDestination, LogicAppReceiver, LogMetricTrigger, LogProfileResource, LogSearchRuleResource, LogSettings, + LogsIngestionEndpointSpec, LogToMetricAction, ManagementEventAggregationCondition, ManagementEventRuleCondition, @@ -59,6 +82,13 @@ export { MetricSettings, MetricTrigger, MultiMetricCriteria, + NetworkRuleSet, + PerfCounterDataSource, + PrivateEndpointConnection, + PrivateEndpointProperty, + PrivateLinkResource, + PrivateLinkScopesResource, + PrivateLinkServiceConnectionStateProperty, ProxyOnlyResource, ProxyResource, Recurrence, @@ -76,9 +106,13 @@ export { ScaleAction, ScaleCapacity, ScaleRule, + ScaleRuleMetricDimension, Schedule, + ScopedResource, SmsReceiver, Source, + SyslogDataSource, + SystemData, ThresholdRuleCondition, TimeWindow, TriggerCondition, @@ -86,5 +120,7 @@ export { VoiceReceiver, WebhookNotification, WebhookReceiver, + WebtestLocationAvailabilityCriteria, + WindowsEventLogDataSource, WorkspaceInfo } from "../models/mappers"; diff --git a/sdk/monitor/arm-monitor/src/models/metricAlertsStatusMappers.ts b/sdk/monitor/arm-monitor/src/models/metricAlertsStatusMappers.ts index a044e8994582..71a9f0e1f606 100644 --- a/sdk/monitor/arm-monitor/src/models/metricAlertsStatusMappers.ts +++ b/sdk/monitor/arm-monitor/src/models/metricAlertsStatusMappers.ts @@ -1,6 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is regenerated. @@ -8,7 +8,9 @@ export { discriminators, + ErrorAdditionalInfo, ErrorResponse, + ErrorResponseCommon, MetricAlertStatus, MetricAlertStatusCollection, MetricAlertStatusProperties diff --git a/sdk/monitor/arm-monitor/src/models/metricBaselineMappers.ts b/sdk/monitor/arm-monitor/src/models/metricBaselineMappers.ts deleted file mode 100644 index 7fbb371a4578..000000000000 --- a/sdk/monitor/arm-monitor/src/models/metricBaselineMappers.ts +++ /dev/null @@ -1,18 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -export { - discriminators, - Baseline, - BaselineMetadataValue, - BaselineResponse, - CalculateBaselineResponse, - ErrorResponse, - LocalizableString, - TimeSeriesInformation -} from "../models/mappers"; diff --git a/sdk/monitor/arm-monitor/src/models/metricDefinitionsMappers.ts b/sdk/monitor/arm-monitor/src/models/metricDefinitionsMappers.ts index 31046db255a5..cf0ee29a2ca9 100644 --- a/sdk/monitor/arm-monitor/src/models/metricDefinitionsMappers.ts +++ b/sdk/monitor/arm-monitor/src/models/metricDefinitionsMappers.ts @@ -1,6 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is regenerated. @@ -8,7 +8,9 @@ export { discriminators, + ErrorAdditionalInfo, ErrorResponse, + ErrorResponseCommon, LocalizableString, MetricAvailability, MetricDefinition, diff --git a/sdk/monitor/arm-monitor/src/models/metricNamespacesMappers.ts b/sdk/monitor/arm-monitor/src/models/metricNamespacesMappers.ts index 2e78b28244cd..603f6e6ff31f 100644 --- a/sdk/monitor/arm-monitor/src/models/metricNamespacesMappers.ts +++ b/sdk/monitor/arm-monitor/src/models/metricNamespacesMappers.ts @@ -1,6 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is regenerated. @@ -8,7 +8,9 @@ export { discriminators, + ErrorAdditionalInfo, ErrorResponse, + ErrorResponseCommon, MetricNamespace, MetricNamespaceCollection, MetricNamespaceName diff --git a/sdk/monitor/arm-monitor/src/models/metricsMappers.ts b/sdk/monitor/arm-monitor/src/models/metricsMappers.ts index 0796246e9fe7..da2f999891f9 100644 --- a/sdk/monitor/arm-monitor/src/models/metricsMappers.ts +++ b/sdk/monitor/arm-monitor/src/models/metricsMappers.ts @@ -1,6 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is regenerated. @@ -8,7 +8,9 @@ export { discriminators, + ErrorAdditionalInfo, ErrorResponse, + ErrorResponseCommon, LocalizableString, MetadataValue, Metric, diff --git a/sdk/monitor/arm-monitor/src/models/operationsMappers.ts b/sdk/monitor/arm-monitor/src/models/operationsMappers.ts index 65fc7dd1800a..1cf01eeef205 100644 --- a/sdk/monitor/arm-monitor/src/models/operationsMappers.ts +++ b/sdk/monitor/arm-monitor/src/models/operationsMappers.ts @@ -1,6 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is regenerated. diff --git a/sdk/monitor/arm-monitor/src/models/parameters.ts b/sdk/monitor/arm-monitor/src/models/parameters.ts index eac83a80fc9e..215cfe1fb390 100644 --- a/sdk/monitor/arm-monitor/src/models/parameters.ts +++ b/sdk/monitor/arm-monitor/src/models/parameters.ts @@ -1,7 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is @@ -59,6 +58,9 @@ export const apiVersion0: msRest.OperationQueryParameter = { isConstant: true, serializedName: "api-version", defaultValue: '2015-04-01', + constraints: { + MinLength: 1 + }, type: { name: "String" } @@ -71,6 +73,9 @@ export const apiVersion1: msRest.OperationQueryParameter = { isConstant: true, serializedName: "api-version", defaultValue: '2016-03-01', + constraints: { + MinLength: 1 + }, type: { name: "String" } @@ -82,7 +87,10 @@ export const apiVersion10: msRest.OperationQueryParameter = { required: true, isConstant: true, serializedName: "api-version", - defaultValue: '2017-12-01-preview', + defaultValue: '2019-10-17-preview', + constraints: { + MinLength: 1 + }, type: { name: "String" } @@ -94,7 +102,25 @@ export const apiVersion11: msRest.OperationQueryParameter = { required: true, isConstant: true, serializedName: "api-version", - defaultValue: '2018-11-27-preview', + defaultValue: '2017-04-01', + constraints: { + MinLength: 1 + }, + type: { + name: "String" + } + } +}; +export const apiVersion12: msRest.OperationQueryParameter = { + parameterPath: "apiVersion", + mapper: { + required: true, + isConstant: true, + serializedName: "api-version", + defaultValue: '2021-04-01', + constraints: { + MinLength: 1 + }, type: { name: "String" } @@ -107,6 +133,9 @@ export const apiVersion2: msRest.OperationQueryParameter = { isConstant: true, serializedName: "api-version", defaultValue: '2017-05-01-preview', + constraints: { + MinLength: 1 + }, type: { name: "String" } @@ -119,6 +148,9 @@ export const apiVersion3: msRest.OperationQueryParameter = { isConstant: true, serializedName: "api-version", defaultValue: '2019-06-01', + constraints: { + MinLength: 1 + }, type: { name: "String" } @@ -130,7 +162,10 @@ export const apiVersion4: msRest.OperationQueryParameter = { required: true, isConstant: true, serializedName: "api-version", - defaultValue: '2017-04-01', + defaultValue: '2018-01-01', + constraints: { + MinLength: 1 + }, type: { name: "String" } @@ -142,7 +177,10 @@ export const apiVersion5: msRest.OperationQueryParameter = { required: true, isConstant: true, serializedName: "api-version", - defaultValue: '2018-01-01', + defaultValue: '2019-03-01', + constraints: { + MinLength: 1 + }, type: { name: "String" } @@ -154,7 +192,10 @@ export const apiVersion6: msRest.OperationQueryParameter = { required: true, isConstant: true, serializedName: "api-version", - defaultValue: '2017-11-01-preview', + defaultValue: '2018-03-01', + constraints: { + MinLength: 1 + }, type: { name: "String" } @@ -166,7 +207,10 @@ export const apiVersion7: msRest.OperationQueryParameter = { required: true, isConstant: true, serializedName: "api-version", - defaultValue: '2019-03-01', + defaultValue: '2018-04-16', + constraints: { + MinLength: 1 + }, type: { name: "String" } @@ -178,7 +222,10 @@ export const apiVersion8: msRest.OperationQueryParameter = { required: true, isConstant: true, serializedName: "api-version", - defaultValue: '2018-03-01', + defaultValue: '2017-12-01-preview', + constraints: { + MinLength: 1 + }, type: { name: "String" } @@ -190,7 +237,30 @@ export const apiVersion9: msRest.OperationQueryParameter = { required: true, isConstant: true, serializedName: "api-version", - defaultValue: '2018-04-16', + defaultValue: '2018-11-27-preview', + constraints: { + MinLength: 1 + }, + type: { + name: "String" + } + } +}; +export const associationName: msRest.OperationURLParameter = { + parameterPath: "associationName", + mapper: { + required: true, + serializedName: "associationName", + type: { + name: "String" + } + } +}; +export const asyncOperationId: msRest.OperationURLParameter = { + parameterPath: "asyncOperationId", + mapper: { + required: true, + serializedName: "asyncOperationId", type: { name: "String" } @@ -206,6 +276,26 @@ export const autoscaleSettingName: msRest.OperationURLParameter = { } } }; +export const dataCollectionEndpointName: msRest.OperationURLParameter = { + parameterPath: "dataCollectionEndpointName", + mapper: { + required: true, + serializedName: "dataCollectionEndpointName", + type: { + name: "String" + } + } +}; +export const dataCollectionRuleName: msRest.OperationURLParameter = { + parameterPath: "dataCollectionRuleName", + mapper: { + required: true, + serializedName: "dataCollectionRuleName", + type: { + name: "String" + } + } +}; export const filter0: msRest.OperationQueryParameter = { parameterPath: "filter", mapper: { @@ -228,6 +318,16 @@ export const filter1: msRest.OperationQueryParameter = { } } }; +export const groupName: msRest.OperationURLParameter = { + parameterPath: "groupName", + mapper: { + required: true, + serializedName: "groupName", + type: { + name: "String" + } + } +}; export const incidentName: msRest.OperationURLParameter = { parameterPath: "incidentName", mapper: { @@ -260,16 +360,6 @@ export const logProfileName: msRest.OperationURLParameter = { } } }; -export const metricName: msRest.OperationURLParameter = { - parameterPath: "metricName", - mapper: { - required: true, - serializedName: "metricName", - type: { - name: "String" - } - } -}; export const metricnames: msRest.OperationQueryParameter = { parameterPath: [ "options", @@ -327,17 +417,45 @@ export const orderby: msRest.OperationQueryParameter = { } } }; +export const privateEndpointConnectionName: msRest.OperationURLParameter = { + parameterPath: "privateEndpointConnectionName", + mapper: { + required: true, + serializedName: "privateEndpointConnectionName", + type: { + name: "String" + } + } +}; export const resourceGroupName: msRest.OperationURLParameter = { parameterPath: "resourceGroupName", mapper: { required: true, serializedName: "resourceGroupName", + constraints: { + MaxLength: 90, + MinLength: 1 + }, type: { name: "String" } } }; -export const resourceUri: msRest.OperationURLParameter = { +export const resourceUri0: msRest.OperationURLParameter = { + parameterPath: "resourceUri", + mapper: { + required: true, + serializedName: "resourceUri", + constraints: { + MinLength: 1 + }, + type: { + name: "String" + } + }, + skipEncoding: true +}; +export const resourceUri1: msRest.OperationURLParameter = { parameterPath: "resourceUri", mapper: { required: true, @@ -374,6 +492,16 @@ export const ruleName: msRest.OperationURLParameter = { } } }; +export const scopeName: msRest.OperationURLParameter = { + parameterPath: "scopeName", + mapper: { + required: true, + serializedName: "scopeName", + type: { + name: "String" + } + } +}; export const select: msRest.OperationQueryParameter = { parameterPath: [ "options", @@ -425,6 +553,9 @@ export const subscriptionId: msRest.OperationURLParameter = { mapper: { required: true, serializedName: "subscriptionId", + constraints: { + MinLength: 1 + }, type: { name: "String" } diff --git a/sdk/monitor/arm-monitor/src/models/privateEndpointConnectionsMappers.ts b/sdk/monitor/arm-monitor/src/models/privateEndpointConnectionsMappers.ts new file mode 100644 index 000000000000..840a917b12e6 --- /dev/null +++ b/sdk/monitor/arm-monitor/src/models/privateEndpointConnectionsMappers.ts @@ -0,0 +1,123 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +export { + discriminators, + Action, + ActionGroupResource, + ActivityLogAlertActionGroup, + ActivityLogAlertActionList, + ActivityLogAlertAllOfCondition, + ActivityLogAlertLeafCondition, + ActivityLogAlertResource, + AlertingAction, + AlertRuleResource, + ArmRoleReceiver, + AutomationRunbookReceiver, + AutoscaleNotification, + AutoscaleProfile, + AutoscaleSettingResource, + AzNsActionGroup, + AzureAppPushReceiver, + AzureFunctionReceiver, + AzureMonitorMetricsDestination, + AzureMonitorPrivateLinkScope, + AzureResource, + BaseResource, + CloudError, + ConfigurationAccessEndpointSpec, + Criteria, + DataCollectionEndpointConfigurationAccess, + DataCollectionEndpointLogsIngestion, + DataCollectionEndpointNetworkAcls, + DataCollectionEndpointResource, + DataCollectionEndpointResourceSystemData, + DataCollectionRuleAssociationProxyOnlyResource, + DataCollectionRuleAssociationProxyOnlyResourceSystemData, + DataCollectionRuleDataSources, + DataCollectionRuleDestinations, + DataCollectionRuleResource, + DataCollectionRuleResourceSystemData, + DataContainer, + DataFlow, + DataSourcesSpec, + DestinationsSpec, + DestinationsSpecAzureMonitorMetrics, + DiagnosticSettingsCategoryResource, + DiagnosticSettingsResource, + Dimension, + DynamicMetricCriteria, + DynamicThresholdFailingPeriods, + EmailNotification, + EmailReceiver, + ExtensionDataSource, + ItsmReceiver, + LocationThresholdRuleCondition, + LogAnalyticsDestination, + LogicAppReceiver, + LogMetricTrigger, + LogProfileResource, + LogSearchRuleResource, + LogSettings, + LogsIngestionEndpointSpec, + LogToMetricAction, + ManagementEventAggregationCondition, + ManagementEventRuleCondition, + MetricAlertAction, + MetricAlertCriteria, + MetricAlertMultipleResourceMultipleMetricCriteria, + MetricAlertResource, + MetricAlertSingleResourceMultipleMetricCriteria, + MetricCriteria, + MetricDimension, + MetricSettings, + MetricTrigger, + MultiMetricCriteria, + NetworkRuleSet, + PerfCounterDataSource, + PrivateEndpointConnection, + PrivateEndpointConnectionListResult, + PrivateEndpointProperty, + PrivateLinkResource, + PrivateLinkScopesResource, + PrivateLinkServiceConnectionStateProperty, + ProxyOnlyResource, + ProxyResource, + Recurrence, + RecurrentSchedule, + Resource, + RetentionPolicy, + RuleAction, + RuleCondition, + RuleDataSource, + RuleEmailAction, + RuleManagementEventClaimsDataSource, + RuleManagementEventDataSource, + RuleMetricDataSource, + RuleWebhookAction, + ScaleAction, + ScaleCapacity, + ScaleRule, + ScaleRuleMetricDimension, + Schedule, + ScopedResource, + SmsReceiver, + Source, + SyslogDataSource, + SystemData, + ThresholdRuleCondition, + TimeWindow, + TriggerCondition, + VMInsightsOnboardingStatus, + VoiceReceiver, + WebhookNotification, + WebhookReceiver, + WebtestLocationAvailabilityCriteria, + WindowsEventLogDataSource, + WorkspaceInfo +} from "../models/mappers"; diff --git a/sdk/monitor/arm-monitor/src/models/privateLinkResourcesMappers.ts b/sdk/monitor/arm-monitor/src/models/privateLinkResourcesMappers.ts new file mode 100644 index 000000000000..2a4af55e8703 --- /dev/null +++ b/sdk/monitor/arm-monitor/src/models/privateLinkResourcesMappers.ts @@ -0,0 +1,123 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +export { + discriminators, + Action, + ActionGroupResource, + ActivityLogAlertActionGroup, + ActivityLogAlertActionList, + ActivityLogAlertAllOfCondition, + ActivityLogAlertLeafCondition, + ActivityLogAlertResource, + AlertingAction, + AlertRuleResource, + ArmRoleReceiver, + AutomationRunbookReceiver, + AutoscaleNotification, + AutoscaleProfile, + AutoscaleSettingResource, + AzNsActionGroup, + AzureAppPushReceiver, + AzureFunctionReceiver, + AzureMonitorMetricsDestination, + AzureMonitorPrivateLinkScope, + AzureResource, + BaseResource, + CloudError, + ConfigurationAccessEndpointSpec, + Criteria, + DataCollectionEndpointConfigurationAccess, + DataCollectionEndpointLogsIngestion, + DataCollectionEndpointNetworkAcls, + DataCollectionEndpointResource, + DataCollectionEndpointResourceSystemData, + DataCollectionRuleAssociationProxyOnlyResource, + DataCollectionRuleAssociationProxyOnlyResourceSystemData, + DataCollectionRuleDataSources, + DataCollectionRuleDestinations, + DataCollectionRuleResource, + DataCollectionRuleResourceSystemData, + DataContainer, + DataFlow, + DataSourcesSpec, + DestinationsSpec, + DestinationsSpecAzureMonitorMetrics, + DiagnosticSettingsCategoryResource, + DiagnosticSettingsResource, + Dimension, + DynamicMetricCriteria, + DynamicThresholdFailingPeriods, + EmailNotification, + EmailReceiver, + ExtensionDataSource, + ItsmReceiver, + LocationThresholdRuleCondition, + LogAnalyticsDestination, + LogicAppReceiver, + LogMetricTrigger, + LogProfileResource, + LogSearchRuleResource, + LogSettings, + LogsIngestionEndpointSpec, + LogToMetricAction, + ManagementEventAggregationCondition, + ManagementEventRuleCondition, + MetricAlertAction, + MetricAlertCriteria, + MetricAlertMultipleResourceMultipleMetricCriteria, + MetricAlertResource, + MetricAlertSingleResourceMultipleMetricCriteria, + MetricCriteria, + MetricDimension, + MetricSettings, + MetricTrigger, + MultiMetricCriteria, + NetworkRuleSet, + PerfCounterDataSource, + PrivateEndpointConnection, + PrivateEndpointProperty, + PrivateLinkResource, + PrivateLinkResourceListResult, + PrivateLinkScopesResource, + PrivateLinkServiceConnectionStateProperty, + ProxyOnlyResource, + ProxyResource, + Recurrence, + RecurrentSchedule, + Resource, + RetentionPolicy, + RuleAction, + RuleCondition, + RuleDataSource, + RuleEmailAction, + RuleManagementEventClaimsDataSource, + RuleManagementEventDataSource, + RuleMetricDataSource, + RuleWebhookAction, + ScaleAction, + ScaleCapacity, + ScaleRule, + ScaleRuleMetricDimension, + Schedule, + ScopedResource, + SmsReceiver, + Source, + SyslogDataSource, + SystemData, + ThresholdRuleCondition, + TimeWindow, + TriggerCondition, + VMInsightsOnboardingStatus, + VoiceReceiver, + WebhookNotification, + WebhookReceiver, + WebtestLocationAvailabilityCriteria, + WindowsEventLogDataSource, + WorkspaceInfo +} from "../models/mappers"; diff --git a/sdk/monitor/arm-monitor/src/models/privateLinkScopeOperationStatusMappers.ts b/sdk/monitor/arm-monitor/src/models/privateLinkScopeOperationStatusMappers.ts new file mode 100644 index 000000000000..4149507d15d1 --- /dev/null +++ b/sdk/monitor/arm-monitor/src/models/privateLinkScopeOperationStatusMappers.ts @@ -0,0 +1,16 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +export { + discriminators, + CloudError, + ErrorAdditionalInfo, + ErrorResponse, + ErrorResponseCommon, + OperationStatus +} from "../models/mappers"; diff --git a/sdk/monitor/arm-monitor/src/models/privateLinkScopedResourcesMappers.ts b/sdk/monitor/arm-monitor/src/models/privateLinkScopedResourcesMappers.ts new file mode 100644 index 000000000000..ea32e8db752c --- /dev/null +++ b/sdk/monitor/arm-monitor/src/models/privateLinkScopedResourcesMappers.ts @@ -0,0 +1,123 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +export { + discriminators, + Action, + ActionGroupResource, + ActivityLogAlertActionGroup, + ActivityLogAlertActionList, + ActivityLogAlertAllOfCondition, + ActivityLogAlertLeafCondition, + ActivityLogAlertResource, + AlertingAction, + AlertRuleResource, + ArmRoleReceiver, + AutomationRunbookReceiver, + AutoscaleNotification, + AutoscaleProfile, + AutoscaleSettingResource, + AzNsActionGroup, + AzureAppPushReceiver, + AzureFunctionReceiver, + AzureMonitorMetricsDestination, + AzureMonitorPrivateLinkScope, + AzureResource, + BaseResource, + CloudError, + ConfigurationAccessEndpointSpec, + Criteria, + DataCollectionEndpointConfigurationAccess, + DataCollectionEndpointLogsIngestion, + DataCollectionEndpointNetworkAcls, + DataCollectionEndpointResource, + DataCollectionEndpointResourceSystemData, + DataCollectionRuleAssociationProxyOnlyResource, + DataCollectionRuleAssociationProxyOnlyResourceSystemData, + DataCollectionRuleDataSources, + DataCollectionRuleDestinations, + DataCollectionRuleResource, + DataCollectionRuleResourceSystemData, + DataContainer, + DataFlow, + DataSourcesSpec, + DestinationsSpec, + DestinationsSpecAzureMonitorMetrics, + DiagnosticSettingsCategoryResource, + DiagnosticSettingsResource, + Dimension, + DynamicMetricCriteria, + DynamicThresholdFailingPeriods, + EmailNotification, + EmailReceiver, + ExtensionDataSource, + ItsmReceiver, + LocationThresholdRuleCondition, + LogAnalyticsDestination, + LogicAppReceiver, + LogMetricTrigger, + LogProfileResource, + LogSearchRuleResource, + LogSettings, + LogsIngestionEndpointSpec, + LogToMetricAction, + ManagementEventAggregationCondition, + ManagementEventRuleCondition, + MetricAlertAction, + MetricAlertCriteria, + MetricAlertMultipleResourceMultipleMetricCriteria, + MetricAlertResource, + MetricAlertSingleResourceMultipleMetricCriteria, + MetricCriteria, + MetricDimension, + MetricSettings, + MetricTrigger, + MultiMetricCriteria, + NetworkRuleSet, + PerfCounterDataSource, + PrivateEndpointConnection, + PrivateEndpointProperty, + PrivateLinkResource, + PrivateLinkScopesResource, + PrivateLinkServiceConnectionStateProperty, + ProxyOnlyResource, + ProxyResource, + Recurrence, + RecurrentSchedule, + Resource, + RetentionPolicy, + RuleAction, + RuleCondition, + RuleDataSource, + RuleEmailAction, + RuleManagementEventClaimsDataSource, + RuleManagementEventDataSource, + RuleMetricDataSource, + RuleWebhookAction, + ScaleAction, + ScaleCapacity, + ScaleRule, + ScaleRuleMetricDimension, + Schedule, + ScopedResource, + ScopedResourceListResult, + SmsReceiver, + Source, + SyslogDataSource, + SystemData, + ThresholdRuleCondition, + TimeWindow, + TriggerCondition, + VMInsightsOnboardingStatus, + VoiceReceiver, + WebhookNotification, + WebhookReceiver, + WebtestLocationAvailabilityCriteria, + WindowsEventLogDataSource, + WorkspaceInfo +} from "../models/mappers"; diff --git a/sdk/monitor/arm-monitor/src/models/privateLinkScopesMappers.ts b/sdk/monitor/arm-monitor/src/models/privateLinkScopesMappers.ts new file mode 100644 index 000000000000..1b1c5eba6bb0 --- /dev/null +++ b/sdk/monitor/arm-monitor/src/models/privateLinkScopesMappers.ts @@ -0,0 +1,124 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +export { + discriminators, + Action, + ActionGroupResource, + ActivityLogAlertActionGroup, + ActivityLogAlertActionList, + ActivityLogAlertAllOfCondition, + ActivityLogAlertLeafCondition, + ActivityLogAlertResource, + AlertingAction, + AlertRuleResource, + ArmRoleReceiver, + AutomationRunbookReceiver, + AutoscaleNotification, + AutoscaleProfile, + AutoscaleSettingResource, + AzNsActionGroup, + AzureAppPushReceiver, + AzureFunctionReceiver, + AzureMonitorMetricsDestination, + AzureMonitorPrivateLinkScope, + AzureMonitorPrivateLinkScopeListResult, + AzureResource, + BaseResource, + CloudError, + ConfigurationAccessEndpointSpec, + Criteria, + DataCollectionEndpointConfigurationAccess, + DataCollectionEndpointLogsIngestion, + DataCollectionEndpointNetworkAcls, + DataCollectionEndpointResource, + DataCollectionEndpointResourceSystemData, + DataCollectionRuleAssociationProxyOnlyResource, + DataCollectionRuleAssociationProxyOnlyResourceSystemData, + DataCollectionRuleDataSources, + DataCollectionRuleDestinations, + DataCollectionRuleResource, + DataCollectionRuleResourceSystemData, + DataContainer, + DataFlow, + DataSourcesSpec, + DestinationsSpec, + DestinationsSpecAzureMonitorMetrics, + DiagnosticSettingsCategoryResource, + DiagnosticSettingsResource, + Dimension, + DynamicMetricCriteria, + DynamicThresholdFailingPeriods, + EmailNotification, + EmailReceiver, + ExtensionDataSource, + ItsmReceiver, + LocationThresholdRuleCondition, + LogAnalyticsDestination, + LogicAppReceiver, + LogMetricTrigger, + LogProfileResource, + LogSearchRuleResource, + LogSettings, + LogsIngestionEndpointSpec, + LogToMetricAction, + ManagementEventAggregationCondition, + ManagementEventRuleCondition, + MetricAlertAction, + MetricAlertCriteria, + MetricAlertMultipleResourceMultipleMetricCriteria, + MetricAlertResource, + MetricAlertSingleResourceMultipleMetricCriteria, + MetricCriteria, + MetricDimension, + MetricSettings, + MetricTrigger, + MultiMetricCriteria, + NetworkRuleSet, + PerfCounterDataSource, + PrivateEndpointConnection, + PrivateEndpointProperty, + PrivateLinkResource, + PrivateLinkScopesResource, + PrivateLinkServiceConnectionStateProperty, + ProxyOnlyResource, + ProxyResource, + Recurrence, + RecurrentSchedule, + Resource, + RetentionPolicy, + RuleAction, + RuleCondition, + RuleDataSource, + RuleEmailAction, + RuleManagementEventClaimsDataSource, + RuleManagementEventDataSource, + RuleMetricDataSource, + RuleWebhookAction, + ScaleAction, + ScaleCapacity, + ScaleRule, + ScaleRuleMetricDimension, + Schedule, + ScopedResource, + SmsReceiver, + Source, + SyslogDataSource, + SystemData, + TagsResource, + ThresholdRuleCondition, + TimeWindow, + TriggerCondition, + VMInsightsOnboardingStatus, + VoiceReceiver, + WebhookNotification, + WebhookReceiver, + WebtestLocationAvailabilityCriteria, + WindowsEventLogDataSource, + WorkspaceInfo +} from "../models/mappers"; diff --git a/sdk/monitor/arm-monitor/src/models/scheduledQueryRulesMappers.ts b/sdk/monitor/arm-monitor/src/models/scheduledQueryRulesMappers.ts index 0fffe5f5617c..1d2281734ab0 100644 --- a/sdk/monitor/arm-monitor/src/models/scheduledQueryRulesMappers.ts +++ b/sdk/monitor/arm-monitor/src/models/scheduledQueryRulesMappers.ts @@ -1,6 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is regenerated. @@ -25,9 +25,28 @@ export { AzNsActionGroup, AzureAppPushReceiver, AzureFunctionReceiver, + AzureMonitorMetricsDestination, + AzureMonitorPrivateLinkScope, + AzureResource, BaseResource, + ConfigurationAccessEndpointSpec, Criteria, + DataCollectionEndpointConfigurationAccess, + DataCollectionEndpointLogsIngestion, + DataCollectionEndpointNetworkAcls, + DataCollectionEndpointResource, + DataCollectionEndpointResourceSystemData, + DataCollectionRuleAssociationProxyOnlyResource, + DataCollectionRuleAssociationProxyOnlyResourceSystemData, + DataCollectionRuleDataSources, + DataCollectionRuleDestinations, + DataCollectionRuleResource, + DataCollectionRuleResourceSystemData, DataContainer, + DataFlow, + DataSourcesSpec, + DestinationsSpec, + DestinationsSpecAzureMonitorMetrics, DiagnosticSettingsCategoryResource, DiagnosticSettingsResource, Dimension, @@ -35,9 +54,14 @@ export { DynamicThresholdFailingPeriods, EmailNotification, EmailReceiver, + ErrorAdditionalInfo, + ErrorContract, ErrorResponse, + ErrorResponseCommon, + ExtensionDataSource, ItsmReceiver, LocationThresholdRuleCondition, + LogAnalyticsDestination, LogicAppReceiver, LogMetricTrigger, LogProfileResource, @@ -45,6 +69,7 @@ export { LogSearchRuleResourceCollection, LogSearchRuleResourcePatch, LogSettings, + LogsIngestionEndpointSpec, LogToMetricAction, ManagementEventAggregationCondition, ManagementEventRuleCondition, @@ -58,6 +83,13 @@ export { MetricSettings, MetricTrigger, MultiMetricCriteria, + NetworkRuleSet, + PerfCounterDataSource, + PrivateEndpointConnection, + PrivateEndpointProperty, + PrivateLinkResource, + PrivateLinkScopesResource, + PrivateLinkServiceConnectionStateProperty, ProxyOnlyResource, ProxyResource, Recurrence, @@ -75,9 +107,13 @@ export { ScaleAction, ScaleCapacity, ScaleRule, + ScaleRuleMetricDimension, Schedule, + ScopedResource, SmsReceiver, Source, + SyslogDataSource, + SystemData, ThresholdRuleCondition, TimeWindow, TriggerCondition, @@ -85,5 +121,7 @@ export { VoiceReceiver, WebhookNotification, WebhookReceiver, + WebtestLocationAvailabilityCriteria, + WindowsEventLogDataSource, WorkspaceInfo } from "../models/mappers"; diff --git a/sdk/monitor/arm-monitor/src/models/tenantActivityLogsMappers.ts b/sdk/monitor/arm-monitor/src/models/tenantActivityLogsMappers.ts index 80edb96348be..5b349a695d6d 100644 --- a/sdk/monitor/arm-monitor/src/models/tenantActivityLogsMappers.ts +++ b/sdk/monitor/arm-monitor/src/models/tenantActivityLogsMappers.ts @@ -1,6 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is regenerated. @@ -8,7 +8,9 @@ export { discriminators, + ErrorAdditionalInfo, ErrorResponse, + ErrorResponseCommon, EventData, EventDataCollection, HttpRequestInfo, diff --git a/sdk/monitor/arm-monitor/src/models/vMInsightsMappers.ts b/sdk/monitor/arm-monitor/src/models/vMInsightsMappers.ts index 3e0639f45f11..889dd79d6965 100644 --- a/sdk/monitor/arm-monitor/src/models/vMInsightsMappers.ts +++ b/sdk/monitor/arm-monitor/src/models/vMInsightsMappers.ts @@ -1,6 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is regenerated. @@ -25,9 +25,28 @@ export { AzNsActionGroup, AzureAppPushReceiver, AzureFunctionReceiver, + AzureMonitorMetricsDestination, + AzureMonitorPrivateLinkScope, + AzureResource, BaseResource, + ConfigurationAccessEndpointSpec, Criteria, + DataCollectionEndpointConfigurationAccess, + DataCollectionEndpointLogsIngestion, + DataCollectionEndpointNetworkAcls, + DataCollectionEndpointResource, + DataCollectionEndpointResourceSystemData, + DataCollectionRuleAssociationProxyOnlyResource, + DataCollectionRuleAssociationProxyOnlyResourceSystemData, + DataCollectionRuleDataSources, + DataCollectionRuleDestinations, + DataCollectionRuleResource, + DataCollectionRuleResourceSystemData, DataContainer, + DataFlow, + DataSourcesSpec, + DestinationsSpec, + DestinationsSpecAzureMonitorMetrics, DiagnosticSettingsCategoryResource, DiagnosticSettingsResource, Dimension, @@ -36,13 +55,16 @@ export { EmailNotification, EmailReceiver, ErrorModel, + ExtensionDataSource, ItsmReceiver, LocationThresholdRuleCondition, + LogAnalyticsDestination, LogicAppReceiver, LogMetricTrigger, LogProfileResource, LogSearchRuleResource, LogSettings, + LogsIngestionEndpointSpec, LogToMetricAction, ManagementEventAggregationCondition, ManagementEventRuleCondition, @@ -56,6 +78,13 @@ export { MetricSettings, MetricTrigger, MultiMetricCriteria, + NetworkRuleSet, + PerfCounterDataSource, + PrivateEndpointConnection, + PrivateEndpointProperty, + PrivateLinkResource, + PrivateLinkScopesResource, + PrivateLinkServiceConnectionStateProperty, ProxyOnlyResource, ProxyResource, Recurrence, @@ -74,9 +103,13 @@ export { ScaleAction, ScaleCapacity, ScaleRule, + ScaleRuleMetricDimension, Schedule, + ScopedResource, SmsReceiver, Source, + SyslogDataSource, + SystemData, ThresholdRuleCondition, TimeWindow, TriggerCondition, @@ -84,5 +117,7 @@ export { VoiceReceiver, WebhookNotification, WebhookReceiver, + WebtestLocationAvailabilityCriteria, + WindowsEventLogDataSource, WorkspaceInfo } from "../models/mappers"; diff --git a/sdk/monitor/arm-monitor/src/monitorManagementClient.ts b/sdk/monitor/arm-monitor/src/monitorManagementClient.ts index 8f76eb98ccbb..01306e22cff9 100644 --- a/sdk/monitor/arm-monitor/src/monitorManagementClient.ts +++ b/sdk/monitor/arm-monitor/src/monitorManagementClient.ts @@ -1,7 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is @@ -26,19 +25,26 @@ class MonitorManagementClient extends MonitorManagementClientContext { diagnosticSettings: operations.DiagnosticSettingsOperations; diagnosticSettingsCategory: operations.DiagnosticSettingsCategoryOperations; actionGroups: operations.ActionGroups; - activityLogAlerts: operations.ActivityLogAlerts; activityLogs: operations.ActivityLogs; eventCategories: operations.EventCategories; tenantActivityLogs: operations.TenantActivityLogs; metricDefinitions: operations.MetricDefinitions; metrics: operations.Metrics; - metricBaseline: operations.MetricBaseline; baselines: operations.Baselines; metricAlerts: operations.MetricAlerts; metricAlertsStatus: operations.MetricAlertsStatus; scheduledQueryRules: operations.ScheduledQueryRules; metricNamespaces: operations.MetricNamespaces; vMInsights: operations.VMInsights; + privateLinkScopes: operations.PrivateLinkScopes; + privateLinkScopeOperationStatus: operations.PrivateLinkScopeOperationStatus; + privateLinkResources: operations.PrivateLinkResources; + privateEndpointConnections: operations.PrivateEndpointConnections; + privateLinkScopedResources: operations.PrivateLinkScopedResources; + activityLogAlerts: operations.ActivityLogAlerts; + dataCollectionEndpoints: operations.DataCollectionEndpoints; + dataCollectionRuleAssociations: operations.DataCollectionRuleAssociations; + dataCollectionRules: operations.DataCollectionRules; /** * Initializes a new instance of the MonitorManagementClient class. @@ -48,7 +54,7 @@ class MonitorManagementClient extends MonitorManagementClientContext { * {@link https://www.npmjs.com/package/@azure/identity}. Credentials implementing the * ServiceClientCredentials interface from the older packages @azure/ms-rest-nodeauth and * @azure/ms-rest-browserauth are also supported. - * @param subscriptionId The Azure subscription Id. + * @param subscriptionId The ID of the target subscription. * @param [options] The parameter options */ constructor(credentials: msRest.ServiceClientCredentials | TokenCredential, subscriptionId: string, options?: Models.MonitorManagementClientOptions) { @@ -61,19 +67,26 @@ class MonitorManagementClient extends MonitorManagementClientContext { this.diagnosticSettings = new operations.DiagnosticSettingsOperations(this); this.diagnosticSettingsCategory = new operations.DiagnosticSettingsCategoryOperations(this); this.actionGroups = new operations.ActionGroups(this); - this.activityLogAlerts = new operations.ActivityLogAlerts(this); this.activityLogs = new operations.ActivityLogs(this); this.eventCategories = new operations.EventCategories(this); this.tenantActivityLogs = new operations.TenantActivityLogs(this); this.metricDefinitions = new operations.MetricDefinitions(this); this.metrics = new operations.Metrics(this); - this.metricBaseline = new operations.MetricBaseline(this); this.baselines = new operations.Baselines(this); this.metricAlerts = new operations.MetricAlerts(this); this.metricAlertsStatus = new operations.MetricAlertsStatus(this); this.scheduledQueryRules = new operations.ScheduledQueryRules(this); this.metricNamespaces = new operations.MetricNamespaces(this); this.vMInsights = new operations.VMInsights(this); + this.privateLinkScopes = new operations.PrivateLinkScopes(this); + this.privateLinkScopeOperationStatus = new operations.PrivateLinkScopeOperationStatus(this); + this.privateLinkResources = new operations.PrivateLinkResources(this); + this.privateEndpointConnections = new operations.PrivateEndpointConnections(this); + this.privateLinkScopedResources = new operations.PrivateLinkScopedResources(this); + this.activityLogAlerts = new operations.ActivityLogAlerts(this); + this.dataCollectionEndpoints = new operations.DataCollectionEndpoints(this); + this.dataCollectionRuleAssociations = new operations.DataCollectionRuleAssociations(this); + this.dataCollectionRules = new operations.DataCollectionRules(this); } } diff --git a/sdk/monitor/arm-monitor/src/monitorManagementClientContext.ts b/sdk/monitor/arm-monitor/src/monitorManagementClientContext.ts index 3212c44711f3..ea593910eef8 100644 --- a/sdk/monitor/arm-monitor/src/monitorManagementClientContext.ts +++ b/sdk/monitor/arm-monitor/src/monitorManagementClientContext.ts @@ -1,7 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is @@ -10,8 +9,8 @@ import * as Models from "./models"; import * as msRest from "@azure/ms-rest-js"; -import { TokenCredential } from "@azure/core-auth"; import * as msRestAzure from "@azure/ms-rest-azure-js"; +import { TokenCredential } from "@azure/core-auth"; const packageName = "@azure/arm-monitor"; const packageVersion = "6.1.0"; @@ -28,7 +27,7 @@ export class MonitorManagementClientContext extends msRestAzure.AzureServiceClie * {@link https://www.npmjs.com/package/@azure/identity}. Credentials implementing the * ServiceClientCredentials interface from the older packages @azure/ms-rest-nodeauth and * @azure/ms-rest-browserauth are also supported. - * @param subscriptionId The Azure subscription Id. + * @param subscriptionId The ID of the target subscription. * @param [options] The parameter options */ constructor(credentials: msRest.ServiceClientCredentials | TokenCredential, subscriptionId: string, options?: Models.MonitorManagementClientOptions) { @@ -42,7 +41,7 @@ export class MonitorManagementClientContext extends msRestAzure.AzureServiceClie if (!options) { options = {}; } - if(!options.userAgent) { + if (!options.userAgent) { const defaultUserAgent = msRestAzure.getDefaultUserAgentValue(); options.userAgent = `${packageName}/${packageVersion} ${defaultUserAgent}`; } @@ -56,10 +55,10 @@ export class MonitorManagementClientContext extends msRestAzure.AzureServiceClie this.credentials = credentials; this.subscriptionId = subscriptionId; - if(options.acceptLanguage !== null && options.acceptLanguage !== undefined) { + if (options.acceptLanguage !== null && options.acceptLanguage !== undefined) { this.acceptLanguage = options.acceptLanguage; } - if(options.longRunningOperationRetryTimeout !== null && options.longRunningOperationRetryTimeout !== undefined) { + if (options.longRunningOperationRetryTimeout !== null && options.longRunningOperationRetryTimeout !== undefined) { this.longRunningOperationRetryTimeout = options.longRunningOperationRetryTimeout; } } diff --git a/sdk/monitor/arm-monitor/src/operations/actionGroups.ts b/sdk/monitor/arm-monitor/src/operations/actionGroups.ts index f0d61a682139..c2ca9ab1a322 100644 --- a/sdk/monitor/arm-monitor/src/operations/actionGroups.ts +++ b/sdk/monitor/arm-monitor/src/operations/actionGroups.ts @@ -1,7 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is @@ -28,7 +27,7 @@ export class ActionGroups { /** * Create a new action group or update an existing one. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param actionGroupName The name of the action group. * @param actionGroup The action group to create or use for the update. * @param [options] The optional parameters @@ -36,14 +35,14 @@ export class ActionGroups { */ createOrUpdate(resourceGroupName: string, actionGroupName: string, actionGroup: Models.ActionGroupResource, options?: msRest.RequestOptionsBase): Promise; /** - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param actionGroupName The name of the action group. * @param actionGroup The action group to create or use for the update. * @param callback The callback */ createOrUpdate(resourceGroupName: string, actionGroupName: string, actionGroup: Models.ActionGroupResource, callback: msRest.ServiceCallback): void; /** - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param actionGroupName The name of the action group. * @param actionGroup The action group to create or use for the update. * @param options The optional parameters @@ -64,20 +63,20 @@ export class ActionGroups { /** * Get an action group. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param actionGroupName The name of the action group. * @param [options] The optional parameters * @returns Promise */ get(resourceGroupName: string, actionGroupName: string, options?: msRest.RequestOptionsBase): Promise; /** - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param actionGroupName The name of the action group. * @param callback The callback */ get(resourceGroupName: string, actionGroupName: string, callback: msRest.ServiceCallback): void; /** - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param actionGroupName The name of the action group. * @param options The optional parameters * @param callback The callback @@ -96,20 +95,20 @@ export class ActionGroups { /** * Delete an action group. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param actionGroupName The name of the action group. * @param [options] The optional parameters * @returns Promise */ deleteMethod(resourceGroupName: string, actionGroupName: string, options?: msRest.RequestOptionsBase): Promise; /** - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param actionGroupName The name of the action group. * @param callback The callback */ deleteMethod(resourceGroupName: string, actionGroupName: string, callback: msRest.ServiceCallback): void; /** - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param actionGroupName The name of the action group. * @param options The optional parameters * @param callback The callback @@ -128,7 +127,7 @@ export class ActionGroups { /** * Updates an existing action group's tags. To update other fields use the CreateOrUpdate method. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param actionGroupName The name of the action group. * @param actionGroupPatch Parameters supplied to the operation. * @param [options] The optional parameters @@ -136,14 +135,14 @@ export class ActionGroups { */ update(resourceGroupName: string, actionGroupName: string, actionGroupPatch: Models.ActionGroupPatchBody, options?: msRest.RequestOptionsBase): Promise; /** - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param actionGroupName The name of the action group. * @param actionGroupPatch Parameters supplied to the operation. * @param callback The callback */ update(resourceGroupName: string, actionGroupName: string, actionGroupPatch: Models.ActionGroupPatchBody, callback: msRest.ServiceCallback): void; /** - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param actionGroupName The name of the action group. * @param actionGroupPatch Parameters supplied to the operation. * @param options The optional parameters @@ -188,18 +187,18 @@ export class ActionGroups { /** * Get a list of all action groups in a resource group. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param [options] The optional parameters * @returns Promise */ listByResourceGroup(resourceGroupName: string, options?: msRest.RequestOptionsBase): Promise; /** - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param callback The callback */ listByResourceGroup(resourceGroupName: string, callback: msRest.ServiceCallback): void; /** - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param options The optional parameters * @param callback The callback */ @@ -217,7 +216,7 @@ export class ActionGroups { /** * Enable a receiver in an action group. This changes the receiver's status from Disabled to * Enabled. This operation is only supported for Email or SMS receivers. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param actionGroupName The name of the action group. * @param receiverName The name of the receiver to resubscribe. * @param [options] The optional parameters @@ -225,14 +224,14 @@ export class ActionGroups { */ enableReceiver(resourceGroupName: string, actionGroupName: string, receiverName: string, options?: msRest.RequestOptionsBase): Promise; /** - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param actionGroupName The name of the action group. * @param receiverName The name of the receiver to resubscribe. * @param callback The callback */ enableReceiver(resourceGroupName: string, actionGroupName: string, receiverName: string, callback: msRest.ServiceCallback): void; /** - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param actionGroupName The name of the action group. * @param receiverName The name of the receiver to resubscribe. * @param options The optional parameters diff --git a/sdk/monitor/arm-monitor/src/operations/activityLogAlerts.ts b/sdk/monitor/arm-monitor/src/operations/activityLogAlerts.ts index 257a6277a91e..4c86269c1c79 100644 --- a/sdk/monitor/arm-monitor/src/operations/activityLogAlerts.ts +++ b/sdk/monitor/arm-monitor/src/operations/activityLogAlerts.ts @@ -1,7 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is @@ -28,7 +27,7 @@ export class ActivityLogAlerts { /** * Create a new activity log alert or update an existing one. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param activityLogAlertName The name of the activity log alert. * @param activityLogAlert The activity log alert to create or use for the update. * @param [options] The optional parameters @@ -36,14 +35,14 @@ export class ActivityLogAlerts { */ createOrUpdate(resourceGroupName: string, activityLogAlertName: string, activityLogAlert: Models.ActivityLogAlertResource, options?: msRest.RequestOptionsBase): Promise; /** - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param activityLogAlertName The name of the activity log alert. * @param activityLogAlert The activity log alert to create or use for the update. * @param callback The callback */ createOrUpdate(resourceGroupName: string, activityLogAlertName: string, activityLogAlert: Models.ActivityLogAlertResource, callback: msRest.ServiceCallback): void; /** - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param activityLogAlertName The name of the activity log alert. * @param activityLogAlert The activity log alert to create or use for the update. * @param options The optional parameters @@ -64,20 +63,20 @@ export class ActivityLogAlerts { /** * Get an activity log alert. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param activityLogAlertName The name of the activity log alert. * @param [options] The optional parameters * @returns Promise */ get(resourceGroupName: string, activityLogAlertName: string, options?: msRest.RequestOptionsBase): Promise; /** - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param activityLogAlertName The name of the activity log alert. * @param callback The callback */ get(resourceGroupName: string, activityLogAlertName: string, callback: msRest.ServiceCallback): void; /** - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param activityLogAlertName The name of the activity log alert. * @param options The optional parameters * @param callback The callback @@ -96,20 +95,20 @@ export class ActivityLogAlerts { /** * Delete an activity log alert. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param activityLogAlertName The name of the activity log alert. * @param [options] The optional parameters * @returns Promise */ deleteMethod(resourceGroupName: string, activityLogAlertName: string, options?: msRest.RequestOptionsBase): Promise; /** - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param activityLogAlertName The name of the activity log alert. * @param callback The callback */ deleteMethod(resourceGroupName: string, activityLogAlertName: string, callback: msRest.ServiceCallback): void; /** - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param activityLogAlertName The name of the activity log alert. * @param options The optional parameters * @param callback The callback @@ -129,7 +128,7 @@ export class ActivityLogAlerts { /** * Updates an existing ActivityLogAlertResource's tags. To update other fields use the * CreateOrUpdate method. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param activityLogAlertName The name of the activity log alert. * @param activityLogAlertPatch Parameters supplied to the operation. * @param [options] The optional parameters @@ -137,14 +136,14 @@ export class ActivityLogAlerts { */ update(resourceGroupName: string, activityLogAlertName: string, activityLogAlertPatch: Models.ActivityLogAlertPatchBody, options?: msRest.RequestOptionsBase): Promise; /** - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param activityLogAlertName The name of the activity log alert. * @param activityLogAlertPatch Parameters supplied to the operation. * @param callback The callback */ update(resourceGroupName: string, activityLogAlertName: string, activityLogAlertPatch: Models.ActivityLogAlertPatchBody, callback: msRest.ServiceCallback): void; /** - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param activityLogAlertName The name of the activity log alert. * @param activityLogAlertPatch Parameters supplied to the operation. * @param options The optional parameters @@ -189,18 +188,18 @@ export class ActivityLogAlerts { /** * Get a list of all activity log alerts in a resource group. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param [options] The optional parameters * @returns Promise */ listByResourceGroup(resourceGroupName: string, options?: msRest.RequestOptionsBase): Promise; /** - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param callback The callback */ listByResourceGroup(resourceGroupName: string, callback: msRest.ServiceCallback): void; /** - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param options The optional parameters * @param callback The callback */ @@ -227,7 +226,7 @@ const createOrUpdateOperationSpec: msRest.OperationSpec = { Parameters.activityLogAlertName ], queryParameters: [ - Parameters.apiVersion4 + Parameters.apiVersion11 ], headerParameters: [ Parameters.acceptLanguage @@ -262,7 +261,7 @@ const getOperationSpec: msRest.OperationSpec = { Parameters.activityLogAlertName ], queryParameters: [ - Parameters.apiVersion4 + Parameters.apiVersion11 ], headerParameters: [ Parameters.acceptLanguage @@ -287,7 +286,7 @@ const deleteMethodOperationSpec: msRest.OperationSpec = { Parameters.activityLogAlertName ], queryParameters: [ - Parameters.apiVersion4 + Parameters.apiVersion11 ], headerParameters: [ Parameters.acceptLanguage @@ -311,7 +310,7 @@ const updateOperationSpec: msRest.OperationSpec = { Parameters.activityLogAlertName ], queryParameters: [ - Parameters.apiVersion4 + Parameters.apiVersion11 ], headerParameters: [ Parameters.acceptLanguage @@ -341,7 +340,7 @@ const listBySubscriptionIdOperationSpec: msRest.OperationSpec = { Parameters.subscriptionId ], queryParameters: [ - Parameters.apiVersion4 + Parameters.apiVersion11 ], headerParameters: [ Parameters.acceptLanguage @@ -365,7 +364,7 @@ const listByResourceGroupOperationSpec: msRest.OperationSpec = { Parameters.resourceGroupName ], queryParameters: [ - Parameters.apiVersion4 + Parameters.apiVersion11 ], headerParameters: [ Parameters.acceptLanguage diff --git a/sdk/monitor/arm-monitor/src/operations/activityLogs.ts b/sdk/monitor/arm-monitor/src/operations/activityLogs.ts index 561f7d7f4eba..6551740000b0 100644 --- a/sdk/monitor/arm-monitor/src/operations/activityLogs.ts +++ b/sdk/monitor/arm-monitor/src/operations/activityLogs.ts @@ -1,7 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is @@ -96,25 +95,68 @@ export class ActivityLogs { /** * Provides the list of records from the activity logs. * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param filter Reduces the set of data collected.
This argument is required and it also + * requires at least the start date/time.
The **$filter** argument is very restricted and allows + * only the following patterns.
- *List events for a resource group*: $filter=eventTimestamp ge + * '2014-07-16T04:36:37.6407898Z' and eventTimestamp le '2014-07-20T04:36:37.6407898Z' and + * resourceGroupName eq 'resourceGroupName'.
- *List events for resource*: + * $filter=eventTimestamp ge '2014-07-16T04:36:37.6407898Z' and eventTimestamp le + * '2014-07-20T04:36:37.6407898Z' and resourceUri eq 'resourceURI'.
- *List events for a + * subscription in a time range*: $filter=eventTimestamp ge '2014-07-16T04:36:37.6407898Z' and + * eventTimestamp le '2014-07-20T04:36:37.6407898Z'.
- *List events for a resource provider*: + * $filter=eventTimestamp ge '2014-07-16T04:36:37.6407898Z' and eventTimestamp le + * '2014-07-20T04:36:37.6407898Z' and resourceProvider eq 'resourceProviderName'.
- *List events + * for a correlation Id*: $filter=eventTimestamp ge '2014-07-16T04:36:37.6407898Z' and + * eventTimestamp le '2014-07-20T04:36:37.6407898Z' and correlationId eq + * 'correlationID'.

**NOTE**: No other syntax is allowed. * @param [options] The optional parameters * @returns Promise */ - listNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; + listNext(nextPageLink: string, filter: string, options?: Models.ActivityLogsListNextOptionalParams): Promise; /** * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param filter Reduces the set of data collected.
This argument is required and it also + * requires at least the start date/time.
The **$filter** argument is very restricted and allows + * only the following patterns.
- *List events for a resource group*: $filter=eventTimestamp ge + * '2014-07-16T04:36:37.6407898Z' and eventTimestamp le '2014-07-20T04:36:37.6407898Z' and + * resourceGroupName eq 'resourceGroupName'.
- *List events for resource*: + * $filter=eventTimestamp ge '2014-07-16T04:36:37.6407898Z' and eventTimestamp le + * '2014-07-20T04:36:37.6407898Z' and resourceUri eq 'resourceURI'.
- *List events for a + * subscription in a time range*: $filter=eventTimestamp ge '2014-07-16T04:36:37.6407898Z' and + * eventTimestamp le '2014-07-20T04:36:37.6407898Z'.
- *List events for a resource provider*: + * $filter=eventTimestamp ge '2014-07-16T04:36:37.6407898Z' and eventTimestamp le + * '2014-07-20T04:36:37.6407898Z' and resourceProvider eq 'resourceProviderName'.
- *List events + * for a correlation Id*: $filter=eventTimestamp ge '2014-07-16T04:36:37.6407898Z' and + * eventTimestamp le '2014-07-20T04:36:37.6407898Z' and correlationId eq + * 'correlationID'.

**NOTE**: No other syntax is allowed. * @param callback The callback */ - listNext(nextPageLink: string, callback: msRest.ServiceCallback): void; + listNext(nextPageLink: string, filter: string, callback: msRest.ServiceCallback): void; /** * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param filter Reduces the set of data collected.
This argument is required and it also + * requires at least the start date/time.
The **$filter** argument is very restricted and allows + * only the following patterns.
- *List events for a resource group*: $filter=eventTimestamp ge + * '2014-07-16T04:36:37.6407898Z' and eventTimestamp le '2014-07-20T04:36:37.6407898Z' and + * resourceGroupName eq 'resourceGroupName'.
- *List events for resource*: + * $filter=eventTimestamp ge '2014-07-16T04:36:37.6407898Z' and eventTimestamp le + * '2014-07-20T04:36:37.6407898Z' and resourceUri eq 'resourceURI'.
- *List events for a + * subscription in a time range*: $filter=eventTimestamp ge '2014-07-16T04:36:37.6407898Z' and + * eventTimestamp le '2014-07-20T04:36:37.6407898Z'.
- *List events for a resource provider*: + * $filter=eventTimestamp ge '2014-07-16T04:36:37.6407898Z' and eventTimestamp le + * '2014-07-20T04:36:37.6407898Z' and resourceProvider eq 'resourceProviderName'.
- *List events + * for a correlation Id*: $filter=eventTimestamp ge '2014-07-16T04:36:37.6407898Z' and + * eventTimestamp le '2014-07-20T04:36:37.6407898Z' and correlationId eq + * 'correlationID'.

**NOTE**: No other syntax is allowed. * @param options The optional parameters * @param callback The callback */ - listNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + listNext(nextPageLink: string, filter: string, options: Models.ActivityLogsListNextOptionalParams, callback: msRest.ServiceCallback): void; + listNext(nextPageLink: string, filter: string, options?: Models.ActivityLogsListNextOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { nextPageLink, + filter, options }, listNextOperationSpec, @@ -126,7 +168,7 @@ export class ActivityLogs { const serializer = new msRest.Serializer(Mappers); const listOperationSpec: msRest.OperationSpec = { httpMethod: "GET", - path: "subscriptions/{subscriptionId}/providers/microsoft.insights/eventtypes/management/values", + path: "subscriptions/{subscriptionId}/providers/Microsoft.Insights/eventtypes/management/values", urlParameters: [ Parameters.subscriptionId ], @@ -156,6 +198,11 @@ const listNextOperationSpec: msRest.OperationSpec = { urlParameters: [ Parameters.nextPageLink ], + queryParameters: [ + Parameters.apiVersion0, + Parameters.filter0, + Parameters.select + ], headerParameters: [ Parameters.acceptLanguage ], diff --git a/sdk/monitor/arm-monitor/src/operations/alertRuleIncidents.ts b/sdk/monitor/arm-monitor/src/operations/alertRuleIncidents.ts index 77453e3b2b0f..a48fe57adec0 100644 --- a/sdk/monitor/arm-monitor/src/operations/alertRuleIncidents.ts +++ b/sdk/monitor/arm-monitor/src/operations/alertRuleIncidents.ts @@ -1,7 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is @@ -28,7 +27,7 @@ export class AlertRuleIncidents { /** * Gets an incident associated to an alert rule - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param ruleName The name of the rule. * @param incidentName The name of the incident to retrieve. * @param [options] The optional parameters @@ -36,14 +35,14 @@ export class AlertRuleIncidents { */ get(resourceGroupName: string, ruleName: string, incidentName: string, options?: msRest.RequestOptionsBase): Promise; /** - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param ruleName The name of the rule. * @param incidentName The name of the incident to retrieve. * @param callback The callback */ get(resourceGroupName: string, ruleName: string, incidentName: string, callback: msRest.ServiceCallback): void; /** - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param ruleName The name of the rule. * @param incidentName The name of the incident to retrieve. * @param options The optional parameters @@ -64,20 +63,20 @@ export class AlertRuleIncidents { /** * Gets a list of incidents associated to an alert rule - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param ruleName The name of the rule. * @param [options] The optional parameters * @returns Promise */ listByAlertRule(resourceGroupName: string, ruleName: string, options?: msRest.RequestOptionsBase): Promise; /** - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param ruleName The name of the rule. * @param callback The callback */ listByAlertRule(resourceGroupName: string, ruleName: string, callback: msRest.ServiceCallback): void; /** - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param ruleName The name of the rule. * @param options The optional parameters * @param callback The callback diff --git a/sdk/monitor/arm-monitor/src/operations/alertRules.ts b/sdk/monitor/arm-monitor/src/operations/alertRules.ts index 79429b70aaf1..7c4cfc58330a 100644 --- a/sdk/monitor/arm-monitor/src/operations/alertRules.ts +++ b/sdk/monitor/arm-monitor/src/operations/alertRules.ts @@ -1,7 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is @@ -27,8 +26,8 @@ export class AlertRules { } /** - * Creates or updates an alert rule. - * @param resourceGroupName The name of the resource group. + * Creates or updates a classic metric alert rule. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param ruleName The name of the rule. * @param parameters The parameters of the rule to create or update. * @param [options] The optional parameters @@ -36,14 +35,14 @@ export class AlertRules { */ createOrUpdate(resourceGroupName: string, ruleName: string, parameters: Models.AlertRuleResource, options?: msRest.RequestOptionsBase): Promise; /** - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param ruleName The name of the rule. * @param parameters The parameters of the rule to create or update. * @param callback The callback */ createOrUpdate(resourceGroupName: string, ruleName: string, parameters: Models.AlertRuleResource, callback: msRest.ServiceCallback): void; /** - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param ruleName The name of the rule. * @param parameters The parameters of the rule to create or update. * @param options The optional parameters @@ -63,21 +62,21 @@ export class AlertRules { } /** - * Deletes an alert rule - * @param resourceGroupName The name of the resource group. + * Deletes a classic metric alert rule + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param ruleName The name of the rule. * @param [options] The optional parameters * @returns Promise */ deleteMethod(resourceGroupName: string, ruleName: string, options?: msRest.RequestOptionsBase): Promise; /** - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param ruleName The name of the rule. * @param callback The callback */ deleteMethod(resourceGroupName: string, ruleName: string, callback: msRest.ServiceCallback): void; /** - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param ruleName The name of the rule. * @param options The optional parameters * @param callback The callback @@ -95,21 +94,21 @@ export class AlertRules { } /** - * Gets an alert rule - * @param resourceGroupName The name of the resource group. + * Gets a classic metric alert rule + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param ruleName The name of the rule. * @param [options] The optional parameters * @returns Promise */ get(resourceGroupName: string, ruleName: string, options?: msRest.RequestOptionsBase): Promise; /** - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param ruleName The name of the rule. * @param callback The callback */ get(resourceGroupName: string, ruleName: string, callback: msRest.ServiceCallback): void; /** - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param ruleName The name of the rule. * @param options The optional parameters * @param callback The callback @@ -127,8 +126,9 @@ export class AlertRules { } /** - * Updates an existing AlertRuleResource. To update other fields use the CreateOrUpdate method. - * @param resourceGroupName The name of the resource group. + * Updates an existing classic metric AlertRuleResource. To update other fields use the + * CreateOrUpdate method. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param ruleName The name of the rule. * @param alertRulesResource Parameters supplied to the operation. * @param [options] The optional parameters @@ -136,14 +136,14 @@ export class AlertRules { */ update(resourceGroupName: string, ruleName: string, alertRulesResource: Models.AlertRuleResourcePatch, options?: msRest.RequestOptionsBase): Promise; /** - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param ruleName The name of the rule. * @param alertRulesResource Parameters supplied to the operation. * @param callback The callback */ update(resourceGroupName: string, ruleName: string, alertRulesResource: Models.AlertRuleResourcePatch, callback: msRest.ServiceCallback): void; /** - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param ruleName The name of the rule. * @param alertRulesResource Parameters supplied to the operation. * @param options The optional parameters @@ -163,19 +163,19 @@ export class AlertRules { } /** - * List the alert rules within a resource group. - * @param resourceGroupName The name of the resource group. + * List the classic metric alert rules within a resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param [options] The optional parameters * @returns Promise */ listByResourceGroup(resourceGroupName: string, options?: msRest.RequestOptionsBase): Promise; /** - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param callback The callback */ listByResourceGroup(resourceGroupName: string, callback: msRest.ServiceCallback): void; /** - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param options The optional parameters * @param callback The callback */ @@ -191,7 +191,7 @@ export class AlertRules { } /** - * List the alert rules within a subscription. + * List the classic metric alert rules within a subscription. * @param [options] The optional parameters * @returns Promise */ @@ -219,7 +219,7 @@ export class AlertRules { const serializer = new msRest.Serializer(Mappers); const createOrUpdateOperationSpec: msRest.OperationSpec = { httpMethod: "PUT", - path: "subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/microsoft.insights/alertrules/{ruleName}", + path: "subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.Insights/alertrules/{ruleName}", urlParameters: [ Parameters.resourceGroupName, Parameters.ruleName, @@ -254,7 +254,7 @@ const createOrUpdateOperationSpec: msRest.OperationSpec = { const deleteMethodOperationSpec: msRest.OperationSpec = { httpMethod: "DELETE", - path: "subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/microsoft.insights/alertrules/{ruleName}", + path: "subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.Insights/alertrules/{ruleName}", urlParameters: [ Parameters.resourceGroupName, Parameters.ruleName, @@ -270,7 +270,7 @@ const deleteMethodOperationSpec: msRest.OperationSpec = { 200: {}, 204: {}, default: { - bodyMapper: Mappers.CloudError + bodyMapper: Mappers.ErrorResponse } }, serializer @@ -278,7 +278,7 @@ const deleteMethodOperationSpec: msRest.OperationSpec = { const getOperationSpec: msRest.OperationSpec = { httpMethod: "GET", - path: "subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/microsoft.insights/alertrules/{ruleName}", + path: "subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.Insights/alertrules/{ruleName}", urlParameters: [ Parameters.resourceGroupName, Parameters.ruleName, @@ -295,7 +295,7 @@ const getOperationSpec: msRest.OperationSpec = { bodyMapper: Mappers.AlertRuleResource }, default: { - bodyMapper: Mappers.CloudError + bodyMapper: Mappers.ErrorResponse } }, serializer @@ -303,7 +303,7 @@ const getOperationSpec: msRest.OperationSpec = { const updateOperationSpec: msRest.OperationSpec = { httpMethod: "PATCH", - path: "subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/microsoft.insights/alertrules/{ruleName}", + path: "subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.Insights/alertrules/{ruleName}", urlParameters: [ Parameters.subscriptionId, Parameters.resourceGroupName, @@ -338,7 +338,7 @@ const updateOperationSpec: msRest.OperationSpec = { const listByResourceGroupOperationSpec: msRest.OperationSpec = { httpMethod: "GET", - path: "subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/microsoft.insights/alertrules", + path: "subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.Insights/alertrules", urlParameters: [ Parameters.resourceGroupName, Parameters.subscriptionId @@ -354,7 +354,7 @@ const listByResourceGroupOperationSpec: msRest.OperationSpec = { bodyMapper: Mappers.AlertRuleResourceCollection }, default: { - bodyMapper: Mappers.CloudError + bodyMapper: Mappers.ErrorResponse } }, serializer @@ -362,7 +362,7 @@ const listByResourceGroupOperationSpec: msRest.OperationSpec = { const listBySubscriptionOperationSpec: msRest.OperationSpec = { httpMethod: "GET", - path: "subscriptions/{subscriptionId}/providers/microsoft.insights/alertrules", + path: "subscriptions/{subscriptionId}/providers/Microsoft.Insights/alertrules", urlParameters: [ Parameters.subscriptionId ], @@ -377,7 +377,7 @@ const listBySubscriptionOperationSpec: msRest.OperationSpec = { bodyMapper: Mappers.AlertRuleResourceCollection }, default: { - bodyMapper: Mappers.CloudError + bodyMapper: Mappers.ErrorResponse } }, serializer diff --git a/sdk/monitor/arm-monitor/src/operations/autoscaleSettings.ts b/sdk/monitor/arm-monitor/src/operations/autoscaleSettings.ts index fa3828276d8e..cd8409b3058e 100644 --- a/sdk/monitor/arm-monitor/src/operations/autoscaleSettings.ts +++ b/sdk/monitor/arm-monitor/src/operations/autoscaleSettings.ts @@ -1,7 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is @@ -28,18 +27,18 @@ export class AutoscaleSettings { /** * Lists the autoscale settings for a resource group - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param [options] The optional parameters * @returns Promise */ listByResourceGroup(resourceGroupName: string, options?: msRest.RequestOptionsBase): Promise; /** - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param callback The callback */ listByResourceGroup(resourceGroupName: string, callback: msRest.ServiceCallback): void; /** - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param options The optional parameters * @param callback The callback */ @@ -56,7 +55,7 @@ export class AutoscaleSettings { /** * Creates or updates an autoscale setting. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param autoscaleSettingName The autoscale setting name. * @param parameters Parameters supplied to the operation. * @param [options] The optional parameters @@ -64,14 +63,14 @@ export class AutoscaleSettings { */ createOrUpdate(resourceGroupName: string, autoscaleSettingName: string, parameters: Models.AutoscaleSettingResource, options?: msRest.RequestOptionsBase): Promise; /** - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param autoscaleSettingName The autoscale setting name. * @param parameters Parameters supplied to the operation. * @param callback The callback */ createOrUpdate(resourceGroupName: string, autoscaleSettingName: string, parameters: Models.AutoscaleSettingResource, callback: msRest.ServiceCallback): void; /** - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param autoscaleSettingName The autoscale setting name. * @param parameters Parameters supplied to the operation. * @param options The optional parameters @@ -92,20 +91,20 @@ export class AutoscaleSettings { /** * Deletes and autoscale setting - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param autoscaleSettingName The autoscale setting name. * @param [options] The optional parameters * @returns Promise */ deleteMethod(resourceGroupName: string, autoscaleSettingName: string, options?: msRest.RequestOptionsBase): Promise; /** - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param autoscaleSettingName The autoscale setting name. * @param callback The callback */ deleteMethod(resourceGroupName: string, autoscaleSettingName: string, callback: msRest.ServiceCallback): void; /** - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param autoscaleSettingName The autoscale setting name. * @param options The optional parameters * @param callback The callback @@ -124,20 +123,20 @@ export class AutoscaleSettings { /** * Gets an autoscale setting - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param autoscaleSettingName The autoscale setting name. * @param [options] The optional parameters * @returns Promise */ get(resourceGroupName: string, autoscaleSettingName: string, options?: msRest.RequestOptionsBase): Promise; /** - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param autoscaleSettingName The autoscale setting name. * @param callback The callback */ get(resourceGroupName: string, autoscaleSettingName: string, callback: msRest.ServiceCallback): void; /** - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param autoscaleSettingName The autoscale setting name. * @param options The optional parameters * @param callback The callback @@ -157,7 +156,7 @@ export class AutoscaleSettings { /** * Updates an existing AutoscaleSettingsResource. To update other fields use the CreateOrUpdate * method. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param autoscaleSettingName The autoscale setting name. * @param autoscaleSettingResource Parameters supplied to the operation. * @param [options] The optional parameters @@ -165,14 +164,14 @@ export class AutoscaleSettings { */ update(resourceGroupName: string, autoscaleSettingName: string, autoscaleSettingResource: Models.AutoscaleSettingResourcePatch, options?: msRest.RequestOptionsBase): Promise; /** - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param autoscaleSettingName The autoscale setting name. * @param autoscaleSettingResource Parameters supplied to the operation. * @param callback The callback */ update(resourceGroupName: string, autoscaleSettingName: string, autoscaleSettingResource: Models.AutoscaleSettingResourcePatch, callback: msRest.ServiceCallback): void; /** - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param autoscaleSettingName The autoscale setting name. * @param autoscaleSettingResource Parameters supplied to the operation. * @param options The optional parameters @@ -276,7 +275,7 @@ export class AutoscaleSettings { const serializer = new msRest.Serializer(Mappers); const listByResourceGroupOperationSpec: msRest.OperationSpec = { httpMethod: "GET", - path: "subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/microsoft.insights/autoscalesettings", + path: "subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.Insights/autoscalesettings", urlParameters: [ Parameters.resourceGroupName, Parameters.subscriptionId @@ -300,7 +299,7 @@ const listByResourceGroupOperationSpec: msRest.OperationSpec = { const createOrUpdateOperationSpec: msRest.OperationSpec = { httpMethod: "PUT", - path: "subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/microsoft.insights/autoscalesettings/{autoscaleSettingName}", + path: "subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.Insights/autoscalesettings/{autoscaleSettingName}", urlParameters: [ Parameters.resourceGroupName, Parameters.autoscaleSettingName, @@ -335,7 +334,7 @@ const createOrUpdateOperationSpec: msRest.OperationSpec = { const deleteMethodOperationSpec: msRest.OperationSpec = { httpMethod: "DELETE", - path: "subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/microsoft.insights/autoscalesettings/{autoscaleSettingName}", + path: "subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.Insights/autoscalesettings/{autoscaleSettingName}", urlParameters: [ Parameters.resourceGroupName, Parameters.autoscaleSettingName, @@ -359,7 +358,7 @@ const deleteMethodOperationSpec: msRest.OperationSpec = { const getOperationSpec: msRest.OperationSpec = { httpMethod: "GET", - path: "subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/microsoft.insights/autoscalesettings/{autoscaleSettingName}", + path: "subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.Insights/autoscalesettings/{autoscaleSettingName}", urlParameters: [ Parameters.resourceGroupName, Parameters.autoscaleSettingName, @@ -384,7 +383,7 @@ const getOperationSpec: msRest.OperationSpec = { const updateOperationSpec: msRest.OperationSpec = { httpMethod: "PATCH", - path: "subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/microsoft.insights/autoscalesettings/{autoscaleSettingName}", + path: "subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.Insights/autoscalesettings/{autoscaleSettingName}", urlParameters: [ Parameters.subscriptionId, Parameters.resourceGroupName, @@ -416,7 +415,7 @@ const updateOperationSpec: msRest.OperationSpec = { const listBySubscriptionOperationSpec: msRest.OperationSpec = { httpMethod: "GET", - path: "subscriptions/{subscriptionId}/providers/microsoft.insights/autoscalesettings", + path: "subscriptions/{subscriptionId}/providers/Microsoft.Insights/autoscalesettings", urlParameters: [ Parameters.subscriptionId ], @@ -444,6 +443,9 @@ const listByResourceGroupNextOperationSpec: msRest.OperationSpec = { urlParameters: [ Parameters.nextPageLink ], + queryParameters: [ + Parameters.apiVersion0 + ], headerParameters: [ Parameters.acceptLanguage ], @@ -465,6 +467,9 @@ const listBySubscriptionNextOperationSpec: msRest.OperationSpec = { urlParameters: [ Parameters.nextPageLink ], + queryParameters: [ + Parameters.apiVersion0 + ], headerParameters: [ Parameters.acceptLanguage ], diff --git a/sdk/monitor/arm-monitor/src/operations/baselines.ts b/sdk/monitor/arm-monitor/src/operations/baselines.ts index 60e9fb93f39a..4e9dded77a27 100644 --- a/sdk/monitor/arm-monitor/src/operations/baselines.ts +++ b/sdk/monitor/arm-monitor/src/operations/baselines.ts @@ -1,7 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is @@ -59,9 +58,9 @@ export class Baselines { const serializer = new msRest.Serializer(Mappers); const listOperationSpec: msRest.OperationSpec = { httpMethod: "GET", - path: "{resourceUri}/providers/microsoft.insights/metricBaselines", + path: "{resourceUri}/providers/Microsoft.Insights/metricBaselines", urlParameters: [ - Parameters.resourceUri + Parameters.resourceUri0 ], queryParameters: [ Parameters.metricnames, @@ -72,7 +71,7 @@ const listOperationSpec: msRest.OperationSpec = { Parameters.sensitivities, Parameters.filter1, Parameters.resultType, - Parameters.apiVersion7 + Parameters.apiVersion5 ], headerParameters: [ Parameters.acceptLanguage diff --git a/sdk/monitor/arm-monitor/src/operations/dataCollectionEndpoints.ts b/sdk/monitor/arm-monitor/src/operations/dataCollectionEndpoints.ts new file mode 100644 index 000000000000..5da7bcd156d3 --- /dev/null +++ b/sdk/monitor/arm-monitor/src/operations/dataCollectionEndpoints.ts @@ -0,0 +1,490 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is + * regenerated. + */ + +import * as msRest from "@azure/ms-rest-js"; +import * as Models from "../models"; +import * as Mappers from "../models/dataCollectionEndpointsMappers"; +import * as Parameters from "../models/parameters"; +import { MonitorManagementClientContext } from "../monitorManagementClientContext"; + +/** Class representing a DataCollectionEndpoints. */ +export class DataCollectionEndpoints { + private readonly client: MonitorManagementClientContext; + + /** + * Create a DataCollectionEndpoints. + * @param {MonitorManagementClientContext} client Reference to the service client. + */ + constructor(client: MonitorManagementClientContext) { + this.client = client; + } + + /** + * @summary Lists all data collection endpoints in the specified resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param [options] The optional parameters + * @returns Promise + */ + listByResourceGroup(resourceGroupName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param callback The callback + */ + listByResourceGroup(resourceGroupName: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param options The optional parameters + * @param callback The callback + */ + listByResourceGroup(resourceGroupName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listByResourceGroup(resourceGroupName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + options + }, + listByResourceGroupOperationSpec, + callback) as Promise; + } + + /** + * @summary Lists all data collection endpoints in the specified subscription + * @param [options] The optional parameters + * @returns Promise + */ + listBySubscription(options?: msRest.RequestOptionsBase): Promise; + /** + * @param callback The callback + */ + listBySubscription(callback: msRest.ServiceCallback): void; + /** + * @param options The optional parameters + * @param callback The callback + */ + listBySubscription(options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listBySubscription(options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + options + }, + listBySubscriptionOperationSpec, + callback) as Promise; + } + + /** + * @summary Returns the specified data collection endpoint. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param dataCollectionEndpointName The name of the data collection endpoint. The name is case + * insensitive. + * @param [options] The optional parameters + * @returns Promise + */ + get(resourceGroupName: string, dataCollectionEndpointName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param dataCollectionEndpointName The name of the data collection endpoint. The name is case + * insensitive. + * @param callback The callback + */ + get(resourceGroupName: string, dataCollectionEndpointName: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param dataCollectionEndpointName The name of the data collection endpoint. The name is case + * insensitive. + * @param options The optional parameters + * @param callback The callback + */ + get(resourceGroupName: string, dataCollectionEndpointName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + get(resourceGroupName: string, dataCollectionEndpointName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + dataCollectionEndpointName, + options + }, + getOperationSpec, + callback) as Promise; + } + + /** + * @summary Creates or updates a data collection endpoint. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param dataCollectionEndpointName The name of the data collection endpoint. The name is case + * insensitive. + * @param [options] The optional parameters + * @returns Promise + */ + create(resourceGroupName: string, dataCollectionEndpointName: string, options?: Models.DataCollectionEndpointsCreateOptionalParams): Promise; + /** + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param dataCollectionEndpointName The name of the data collection endpoint. The name is case + * insensitive. + * @param callback The callback + */ + create(resourceGroupName: string, dataCollectionEndpointName: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param dataCollectionEndpointName The name of the data collection endpoint. The name is case + * insensitive. + * @param options The optional parameters + * @param callback The callback + */ + create(resourceGroupName: string, dataCollectionEndpointName: string, options: Models.DataCollectionEndpointsCreateOptionalParams, callback: msRest.ServiceCallback): void; + create(resourceGroupName: string, dataCollectionEndpointName: string, options?: Models.DataCollectionEndpointsCreateOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + dataCollectionEndpointName, + options + }, + createOperationSpec, + callback) as Promise; + } + + /** + * @summary Updates part of a data collection endpoint. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param dataCollectionEndpointName The name of the data collection endpoint. The name is case + * insensitive. + * @param [options] The optional parameters + * @returns Promise + */ + update(resourceGroupName: string, dataCollectionEndpointName: string, options?: Models.DataCollectionEndpointsUpdateOptionalParams): Promise; + /** + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param dataCollectionEndpointName The name of the data collection endpoint. The name is case + * insensitive. + * @param callback The callback + */ + update(resourceGroupName: string, dataCollectionEndpointName: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param dataCollectionEndpointName The name of the data collection endpoint. The name is case + * insensitive. + * @param options The optional parameters + * @param callback The callback + */ + update(resourceGroupName: string, dataCollectionEndpointName: string, options: Models.DataCollectionEndpointsUpdateOptionalParams, callback: msRest.ServiceCallback): void; + update(resourceGroupName: string, dataCollectionEndpointName: string, options?: Models.DataCollectionEndpointsUpdateOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + dataCollectionEndpointName, + options + }, + updateOperationSpec, + callback) as Promise; + } + + /** + * @summary Deletes a data collection endpoint. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param dataCollectionEndpointName The name of the data collection endpoint. The name is case + * insensitive. + * @param [options] The optional parameters + * @returns Promise + */ + deleteMethod(resourceGroupName: string, dataCollectionEndpointName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param dataCollectionEndpointName The name of the data collection endpoint. The name is case + * insensitive. + * @param callback The callback + */ + deleteMethod(resourceGroupName: string, dataCollectionEndpointName: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param dataCollectionEndpointName The name of the data collection endpoint. The name is case + * insensitive. + * @param options The optional parameters + * @param callback The callback + */ + deleteMethod(resourceGroupName: string, dataCollectionEndpointName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + deleteMethod(resourceGroupName: string, dataCollectionEndpointName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + dataCollectionEndpointName, + options + }, + deleteMethodOperationSpec, + callback); + } + + /** + * @summary Lists all data collection endpoints in the specified resource group. + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param [options] The optional parameters + * @returns Promise + */ + listByResourceGroupNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param callback The callback + */ + listByResourceGroupNext(nextPageLink: string, callback: msRest.ServiceCallback): void; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param options The optional parameters + * @param callback The callback + */ + listByResourceGroupNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listByResourceGroupNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + nextPageLink, + options + }, + listByResourceGroupNextOperationSpec, + callback) as Promise; + } + + /** + * @summary Lists all data collection endpoints in the specified subscription + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param [options] The optional parameters + * @returns Promise + */ + listBySubscriptionNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param callback The callback + */ + listBySubscriptionNext(nextPageLink: string, callback: msRest.ServiceCallback): void; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param options The optional parameters + * @param callback The callback + */ + listBySubscriptionNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listBySubscriptionNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + nextPageLink, + options + }, + listBySubscriptionNextOperationSpec, + callback) as Promise; + } +} + +// Operation Specifications +const serializer = new msRest.Serializer(Mappers); +const listByResourceGroupOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/dataCollectionEndpoints", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName + ], + queryParameters: [ + Parameters.apiVersion12 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.DataCollectionEndpointResourceListResult + }, + default: { + bodyMapper: Mappers.ErrorResponseCommonV2 + } + }, + serializer +}; + +const listBySubscriptionOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/providers/Microsoft.Insights/dataCollectionEndpoints", + urlParameters: [ + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion12 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.DataCollectionEndpointResourceListResult + }, + default: { + bodyMapper: Mappers.ErrorResponseCommonV2 + } + }, + serializer +}; + +const getOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/dataCollectionEndpoints/{dataCollectionEndpointName}", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.dataCollectionEndpointName + ], + queryParameters: [ + Parameters.apiVersion12 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.DataCollectionEndpointResource + }, + default: { + bodyMapper: Mappers.ErrorResponseCommonV2 + } + }, + serializer +}; + +const createOperationSpec: msRest.OperationSpec = { + httpMethod: "PUT", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/dataCollectionEndpoints/{dataCollectionEndpointName}", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.dataCollectionEndpointName + ], + queryParameters: [ + Parameters.apiVersion12 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + requestBody: { + parameterPath: [ + "options", + "body" + ], + mapper: Mappers.DataCollectionEndpointResource + }, + responses: { + 200: { + bodyMapper: Mappers.DataCollectionEndpointResource + }, + 201: { + bodyMapper: Mappers.DataCollectionEndpointResource + }, + default: { + bodyMapper: Mappers.ErrorResponseCommonV2 + } + }, + serializer +}; + +const updateOperationSpec: msRest.OperationSpec = { + httpMethod: "PATCH", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/dataCollectionEndpoints/{dataCollectionEndpointName}", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.dataCollectionEndpointName + ], + queryParameters: [ + Parameters.apiVersion12 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + requestBody: { + parameterPath: { + tags: [ + "options", + "tags" + ] + }, + mapper: Mappers.ResourceForUpdate + }, + responses: { + 200: { + bodyMapper: Mappers.DataCollectionEndpointResource + }, + default: { + bodyMapper: Mappers.ErrorResponseCommonV2 + } + }, + serializer +}; + +const deleteMethodOperationSpec: msRest.OperationSpec = { + httpMethod: "DELETE", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/dataCollectionEndpoints/{dataCollectionEndpointName}", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.dataCollectionEndpointName + ], + queryParameters: [ + Parameters.apiVersion12 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: {}, + 204: {}, + default: { + bodyMapper: Mappers.ErrorResponseCommonV2 + } + }, + serializer +}; + +const listByResourceGroupNextOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + baseUrl: "https://management.azure.com", + path: "{nextLink}", + urlParameters: [ + Parameters.nextPageLink + ], + queryParameters: [ + Parameters.apiVersion12 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.DataCollectionEndpointResourceListResult + }, + default: { + bodyMapper: Mappers.ErrorResponseCommonV2 + } + }, + serializer +}; + +const listBySubscriptionNextOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + baseUrl: "https://management.azure.com", + path: "{nextLink}", + urlParameters: [ + Parameters.nextPageLink + ], + queryParameters: [ + Parameters.apiVersion12 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.DataCollectionEndpointResourceListResult + }, + default: { + bodyMapper: Mappers.ErrorResponseCommonV2 + } + }, + serializer +}; diff --git a/sdk/monitor/arm-monitor/src/operations/dataCollectionRuleAssociations.ts b/sdk/monitor/arm-monitor/src/operations/dataCollectionRuleAssociations.ts new file mode 100644 index 000000000000..d73ce10d4824 --- /dev/null +++ b/sdk/monitor/arm-monitor/src/operations/dataCollectionRuleAssociations.ts @@ -0,0 +1,421 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is + * regenerated. + */ + +import * as msRest from "@azure/ms-rest-js"; +import * as Models from "../models"; +import * as Mappers from "../models/dataCollectionRuleAssociationsMappers"; +import * as Parameters from "../models/parameters"; +import { MonitorManagementClientContext } from "../monitorManagementClientContext"; + +/** Class representing a DataCollectionRuleAssociations. */ +export class DataCollectionRuleAssociations { + private readonly client: MonitorManagementClientContext; + + /** + * Create a DataCollectionRuleAssociations. + * @param {MonitorManagementClientContext} client Reference to the service client. + */ + constructor(client: MonitorManagementClientContext) { + this.client = client; + } + + /** + * @summary Lists associations for the specified resource. + * @param resourceUri The identifier of the resource. + * @param [options] The optional parameters + * @returns Promise + */ + listByResource(resourceUri: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceUri The identifier of the resource. + * @param callback The callback + */ + listByResource(resourceUri: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceUri The identifier of the resource. + * @param options The optional parameters + * @param callback The callback + */ + listByResource(resourceUri: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listByResource(resourceUri: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceUri, + options + }, + listByResourceOperationSpec, + callback) as Promise; + } + + /** + * @summary Lists associations for the specified data collection rule. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param dataCollectionRuleName The name of the data collection rule. The name is case + * insensitive. + * @param [options] The optional parameters + * @returns Promise + */ + listByRule(resourceGroupName: string, dataCollectionRuleName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param dataCollectionRuleName The name of the data collection rule. The name is case + * insensitive. + * @param callback The callback + */ + listByRule(resourceGroupName: string, dataCollectionRuleName: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param dataCollectionRuleName The name of the data collection rule. The name is case + * insensitive. + * @param options The optional parameters + * @param callback The callback + */ + listByRule(resourceGroupName: string, dataCollectionRuleName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listByRule(resourceGroupName: string, dataCollectionRuleName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + dataCollectionRuleName, + options + }, + listByRuleOperationSpec, + callback) as Promise; + } + + /** + * @summary Returns the specified association. + * @param resourceUri The identifier of the resource. + * @param associationName The name of the association. The name is case insensitive. + * @param [options] The optional parameters + * @returns Promise + */ + get(resourceUri: string, associationName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceUri The identifier of the resource. + * @param associationName The name of the association. The name is case insensitive. + * @param callback The callback + */ + get(resourceUri: string, associationName: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceUri The identifier of the resource. + * @param associationName The name of the association. The name is case insensitive. + * @param options The optional parameters + * @param callback The callback + */ + get(resourceUri: string, associationName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + get(resourceUri: string, associationName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceUri, + associationName, + options + }, + getOperationSpec, + callback) as Promise; + } + + /** + * @summary Creates or updates an association. + * @param resourceUri The identifier of the resource. + * @param associationName The name of the association. The name is case insensitive. + * @param [options] The optional parameters + * @returns Promise + */ + create(resourceUri: string, associationName: string, options?: Models.DataCollectionRuleAssociationsCreateOptionalParams): Promise; + /** + * @param resourceUri The identifier of the resource. + * @param associationName The name of the association. The name is case insensitive. + * @param callback The callback + */ + create(resourceUri: string, associationName: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceUri The identifier of the resource. + * @param associationName The name of the association. The name is case insensitive. + * @param options The optional parameters + * @param callback The callback + */ + create(resourceUri: string, associationName: string, options: Models.DataCollectionRuleAssociationsCreateOptionalParams, callback: msRest.ServiceCallback): void; + create(resourceUri: string, associationName: string, options?: Models.DataCollectionRuleAssociationsCreateOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceUri, + associationName, + options + }, + createOperationSpec, + callback) as Promise; + } + + /** + * @summary Deletes an association. + * @param resourceUri The identifier of the resource. + * @param associationName The name of the association. The name is case insensitive. + * @param [options] The optional parameters + * @returns Promise + */ + deleteMethod(resourceUri: string, associationName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceUri The identifier of the resource. + * @param associationName The name of the association. The name is case insensitive. + * @param callback The callback + */ + deleteMethod(resourceUri: string, associationName: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceUri The identifier of the resource. + * @param associationName The name of the association. The name is case insensitive. + * @param options The optional parameters + * @param callback The callback + */ + deleteMethod(resourceUri: string, associationName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + deleteMethod(resourceUri: string, associationName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceUri, + associationName, + options + }, + deleteMethodOperationSpec, + callback); + } + + /** + * @summary Lists associations for the specified resource. + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param [options] The optional parameters + * @returns Promise + */ + listByResourceNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param callback The callback + */ + listByResourceNext(nextPageLink: string, callback: msRest.ServiceCallback): void; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param options The optional parameters + * @param callback The callback + */ + listByResourceNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listByResourceNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + nextPageLink, + options + }, + listByResourceNextOperationSpec, + callback) as Promise; + } + + /** + * @summary Lists associations for the specified data collection rule. + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param [options] The optional parameters + * @returns Promise + */ + listByRuleNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param callback The callback + */ + listByRuleNext(nextPageLink: string, callback: msRest.ServiceCallback): void; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param options The optional parameters + * @param callback The callback + */ + listByRuleNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listByRuleNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + nextPageLink, + options + }, + listByRuleNextOperationSpec, + callback) as Promise; + } +} + +// Operation Specifications +const serializer = new msRest.Serializer(Mappers); +const listByResourceOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "{resourceUri}/providers/Microsoft.Insights/dataCollectionRuleAssociations", + urlParameters: [ + Parameters.resourceUri0 + ], + queryParameters: [ + Parameters.apiVersion12 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.DataCollectionRuleAssociationProxyOnlyResourceListResult + }, + default: { + bodyMapper: Mappers.ErrorResponseCommonV2 + } + }, + serializer +}; + +const listByRuleOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/dataCollectionRules/{dataCollectionRuleName}/associations", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.dataCollectionRuleName + ], + queryParameters: [ + Parameters.apiVersion12 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.DataCollectionRuleAssociationProxyOnlyResourceListResult + }, + default: { + bodyMapper: Mappers.ErrorResponseCommonV2 + } + }, + serializer +}; + +const getOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "{resourceUri}/providers/Microsoft.Insights/dataCollectionRuleAssociations/{associationName}", + urlParameters: [ + Parameters.resourceUri0, + Parameters.associationName + ], + queryParameters: [ + Parameters.apiVersion12 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.DataCollectionRuleAssociationProxyOnlyResource + }, + default: { + bodyMapper: Mappers.ErrorResponseCommonV2 + } + }, + serializer +}; + +const createOperationSpec: msRest.OperationSpec = { + httpMethod: "PUT", + path: "{resourceUri}/providers/Microsoft.Insights/dataCollectionRuleAssociations/{associationName}", + urlParameters: [ + Parameters.resourceUri0, + Parameters.associationName + ], + queryParameters: [ + Parameters.apiVersion12 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + requestBody: { + parameterPath: [ + "options", + "body" + ], + mapper: Mappers.DataCollectionRuleAssociationProxyOnlyResource + }, + responses: { + 200: { + bodyMapper: Mappers.DataCollectionRuleAssociationProxyOnlyResource + }, + 201: { + bodyMapper: Mappers.DataCollectionRuleAssociationProxyOnlyResource + }, + default: { + bodyMapper: Mappers.ErrorResponseCommonV2 + } + }, + serializer +}; + +const deleteMethodOperationSpec: msRest.OperationSpec = { + httpMethod: "DELETE", + path: "{resourceUri}/providers/Microsoft.Insights/dataCollectionRuleAssociations/{associationName}", + urlParameters: [ + Parameters.resourceUri0, + Parameters.associationName + ], + queryParameters: [ + Parameters.apiVersion12 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: {}, + 204: {}, + default: { + bodyMapper: Mappers.ErrorResponseCommonV2 + } + }, + serializer +}; + +const listByResourceNextOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + baseUrl: "https://management.azure.com", + path: "{nextLink}", + urlParameters: [ + Parameters.nextPageLink + ], + queryParameters: [ + Parameters.apiVersion12 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.DataCollectionRuleAssociationProxyOnlyResourceListResult + }, + default: { + bodyMapper: Mappers.ErrorResponseCommonV2 + } + }, + serializer +}; + +const listByRuleNextOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + baseUrl: "https://management.azure.com", + path: "{nextLink}", + urlParameters: [ + Parameters.nextPageLink + ], + queryParameters: [ + Parameters.apiVersion12 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.DataCollectionRuleAssociationProxyOnlyResourceListResult + }, + default: { + bodyMapper: Mappers.ErrorResponseCommonV2 + } + }, + serializer +}; diff --git a/sdk/monitor/arm-monitor/src/operations/dataCollectionRules.ts b/sdk/monitor/arm-monitor/src/operations/dataCollectionRules.ts new file mode 100644 index 000000000000..61476e510162 --- /dev/null +++ b/sdk/monitor/arm-monitor/src/operations/dataCollectionRules.ts @@ -0,0 +1,490 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is + * regenerated. + */ + +import * as msRest from "@azure/ms-rest-js"; +import * as Models from "../models"; +import * as Mappers from "../models/dataCollectionRulesMappers"; +import * as Parameters from "../models/parameters"; +import { MonitorManagementClientContext } from "../monitorManagementClientContext"; + +/** Class representing a DataCollectionRules. */ +export class DataCollectionRules { + private readonly client: MonitorManagementClientContext; + + /** + * Create a DataCollectionRules. + * @param {MonitorManagementClientContext} client Reference to the service client. + */ + constructor(client: MonitorManagementClientContext) { + this.client = client; + } + + /** + * @summary Lists all data collection rules in the specified resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param [options] The optional parameters + * @returns Promise + */ + listByResourceGroup(resourceGroupName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param callback The callback + */ + listByResourceGroup(resourceGroupName: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param options The optional parameters + * @param callback The callback + */ + listByResourceGroup(resourceGroupName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listByResourceGroup(resourceGroupName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + options + }, + listByResourceGroupOperationSpec, + callback) as Promise; + } + + /** + * @summary Lists all data collection rules in the specified subscription. + * @param [options] The optional parameters + * @returns Promise + */ + listBySubscription(options?: msRest.RequestOptionsBase): Promise; + /** + * @param callback The callback + */ + listBySubscription(callback: msRest.ServiceCallback): void; + /** + * @param options The optional parameters + * @param callback The callback + */ + listBySubscription(options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listBySubscription(options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + options + }, + listBySubscriptionOperationSpec, + callback) as Promise; + } + + /** + * @summary Returns the specified data collection rule. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param dataCollectionRuleName The name of the data collection rule. The name is case + * insensitive. + * @param [options] The optional parameters + * @returns Promise + */ + get(resourceGroupName: string, dataCollectionRuleName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param dataCollectionRuleName The name of the data collection rule. The name is case + * insensitive. + * @param callback The callback + */ + get(resourceGroupName: string, dataCollectionRuleName: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param dataCollectionRuleName The name of the data collection rule. The name is case + * insensitive. + * @param options The optional parameters + * @param callback The callback + */ + get(resourceGroupName: string, dataCollectionRuleName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + get(resourceGroupName: string, dataCollectionRuleName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + dataCollectionRuleName, + options + }, + getOperationSpec, + callback) as Promise; + } + + /** + * @summary Creates or updates a data collection rule. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param dataCollectionRuleName The name of the data collection rule. The name is case + * insensitive. + * @param [options] The optional parameters + * @returns Promise + */ + create(resourceGroupName: string, dataCollectionRuleName: string, options?: Models.DataCollectionRulesCreateOptionalParams): Promise; + /** + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param dataCollectionRuleName The name of the data collection rule. The name is case + * insensitive. + * @param callback The callback + */ + create(resourceGroupName: string, dataCollectionRuleName: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param dataCollectionRuleName The name of the data collection rule. The name is case + * insensitive. + * @param options The optional parameters + * @param callback The callback + */ + create(resourceGroupName: string, dataCollectionRuleName: string, options: Models.DataCollectionRulesCreateOptionalParams, callback: msRest.ServiceCallback): void; + create(resourceGroupName: string, dataCollectionRuleName: string, options?: Models.DataCollectionRulesCreateOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + dataCollectionRuleName, + options + }, + createOperationSpec, + callback) as Promise; + } + + /** + * @summary Updates part of a data collection rule. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param dataCollectionRuleName The name of the data collection rule. The name is case + * insensitive. + * @param [options] The optional parameters + * @returns Promise + */ + update(resourceGroupName: string, dataCollectionRuleName: string, options?: Models.DataCollectionRulesUpdateOptionalParams): Promise; + /** + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param dataCollectionRuleName The name of the data collection rule. The name is case + * insensitive. + * @param callback The callback + */ + update(resourceGroupName: string, dataCollectionRuleName: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param dataCollectionRuleName The name of the data collection rule. The name is case + * insensitive. + * @param options The optional parameters + * @param callback The callback + */ + update(resourceGroupName: string, dataCollectionRuleName: string, options: Models.DataCollectionRulesUpdateOptionalParams, callback: msRest.ServiceCallback): void; + update(resourceGroupName: string, dataCollectionRuleName: string, options?: Models.DataCollectionRulesUpdateOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + dataCollectionRuleName, + options + }, + updateOperationSpec, + callback) as Promise; + } + + /** + * @summary Deletes a data collection rule. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param dataCollectionRuleName The name of the data collection rule. The name is case + * insensitive. + * @param [options] The optional parameters + * @returns Promise + */ + deleteMethod(resourceGroupName: string, dataCollectionRuleName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param dataCollectionRuleName The name of the data collection rule. The name is case + * insensitive. + * @param callback The callback + */ + deleteMethod(resourceGroupName: string, dataCollectionRuleName: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param dataCollectionRuleName The name of the data collection rule. The name is case + * insensitive. + * @param options The optional parameters + * @param callback The callback + */ + deleteMethod(resourceGroupName: string, dataCollectionRuleName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + deleteMethod(resourceGroupName: string, dataCollectionRuleName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + dataCollectionRuleName, + options + }, + deleteMethodOperationSpec, + callback); + } + + /** + * @summary Lists all data collection rules in the specified resource group. + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param [options] The optional parameters + * @returns Promise + */ + listByResourceGroupNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param callback The callback + */ + listByResourceGroupNext(nextPageLink: string, callback: msRest.ServiceCallback): void; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param options The optional parameters + * @param callback The callback + */ + listByResourceGroupNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listByResourceGroupNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + nextPageLink, + options + }, + listByResourceGroupNextOperationSpec, + callback) as Promise; + } + + /** + * @summary Lists all data collection rules in the specified subscription. + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param [options] The optional parameters + * @returns Promise + */ + listBySubscriptionNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param callback The callback + */ + listBySubscriptionNext(nextPageLink: string, callback: msRest.ServiceCallback): void; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param options The optional parameters + * @param callback The callback + */ + listBySubscriptionNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listBySubscriptionNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + nextPageLink, + options + }, + listBySubscriptionNextOperationSpec, + callback) as Promise; + } +} + +// Operation Specifications +const serializer = new msRest.Serializer(Mappers); +const listByResourceGroupOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/dataCollectionRules", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName + ], + queryParameters: [ + Parameters.apiVersion12 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.DataCollectionRuleResourceListResult + }, + default: { + bodyMapper: Mappers.ErrorResponseCommonV2 + } + }, + serializer +}; + +const listBySubscriptionOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/providers/Microsoft.Insights/dataCollectionRules", + urlParameters: [ + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion12 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.DataCollectionRuleResourceListResult + }, + default: { + bodyMapper: Mappers.ErrorResponseCommonV2 + } + }, + serializer +}; + +const getOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/dataCollectionRules/{dataCollectionRuleName}", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.dataCollectionRuleName + ], + queryParameters: [ + Parameters.apiVersion12 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.DataCollectionRuleResource + }, + default: { + bodyMapper: Mappers.ErrorResponseCommonV2 + } + }, + serializer +}; + +const createOperationSpec: msRest.OperationSpec = { + httpMethod: "PUT", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/dataCollectionRules/{dataCollectionRuleName}", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.dataCollectionRuleName + ], + queryParameters: [ + Parameters.apiVersion12 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + requestBody: { + parameterPath: [ + "options", + "body" + ], + mapper: Mappers.DataCollectionRuleResource + }, + responses: { + 200: { + bodyMapper: Mappers.DataCollectionRuleResource + }, + 201: { + bodyMapper: Mappers.DataCollectionRuleResource + }, + default: { + bodyMapper: Mappers.ErrorResponseCommonV2 + } + }, + serializer +}; + +const updateOperationSpec: msRest.OperationSpec = { + httpMethod: "PATCH", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/dataCollectionRules/{dataCollectionRuleName}", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.dataCollectionRuleName + ], + queryParameters: [ + Parameters.apiVersion12 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + requestBody: { + parameterPath: { + tags: [ + "options", + "tags" + ] + }, + mapper: Mappers.ResourceForUpdate + }, + responses: { + 200: { + bodyMapper: Mappers.DataCollectionRuleResource + }, + default: { + bodyMapper: Mappers.ErrorResponseCommonV2 + } + }, + serializer +}; + +const deleteMethodOperationSpec: msRest.OperationSpec = { + httpMethod: "DELETE", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/dataCollectionRules/{dataCollectionRuleName}", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.dataCollectionRuleName + ], + queryParameters: [ + Parameters.apiVersion12 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: {}, + 204: {}, + default: { + bodyMapper: Mappers.ErrorResponseCommonV2 + } + }, + serializer +}; + +const listByResourceGroupNextOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + baseUrl: "https://management.azure.com", + path: "{nextLink}", + urlParameters: [ + Parameters.nextPageLink + ], + queryParameters: [ + Parameters.apiVersion12 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.DataCollectionRuleResourceListResult + }, + default: { + bodyMapper: Mappers.ErrorResponseCommonV2 + } + }, + serializer +}; + +const listBySubscriptionNextOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + baseUrl: "https://management.azure.com", + path: "{nextLink}", + urlParameters: [ + Parameters.nextPageLink + ], + queryParameters: [ + Parameters.apiVersion12 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.DataCollectionRuleResourceListResult + }, + default: { + bodyMapper: Mappers.ErrorResponseCommonV2 + } + }, + serializer +}; diff --git a/sdk/monitor/arm-monitor/src/operations/diagnosticSettingsCategoryOperations.ts b/sdk/monitor/arm-monitor/src/operations/diagnosticSettingsCategoryOperations.ts index 696518269cd8..863155193b4e 100644 --- a/sdk/monitor/arm-monitor/src/operations/diagnosticSettingsCategoryOperations.ts +++ b/sdk/monitor/arm-monitor/src/operations/diagnosticSettingsCategoryOperations.ts @@ -1,7 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is @@ -91,9 +90,9 @@ export class DiagnosticSettingsCategoryOperations { const serializer = new msRest.Serializer(Mappers); const getOperationSpec: msRest.OperationSpec = { httpMethod: "GET", - path: "{resourceUri}/providers/microsoft.insights/diagnosticSettingsCategories/{name}", + path: "{resourceUri}/providers/Microsoft.Insights/diagnosticSettingsCategories/{name}", urlParameters: [ - Parameters.resourceUri, + Parameters.resourceUri0, Parameters.name ], queryParameters: [ @@ -115,9 +114,9 @@ const getOperationSpec: msRest.OperationSpec = { const listOperationSpec: msRest.OperationSpec = { httpMethod: "GET", - path: "{resourceUri}/providers/microsoft.insights/diagnosticSettingsCategories", + path: "{resourceUri}/providers/Microsoft.Insights/diagnosticSettingsCategories", urlParameters: [ - Parameters.resourceUri + Parameters.resourceUri0 ], queryParameters: [ Parameters.apiVersion2 diff --git a/sdk/monitor/arm-monitor/src/operations/diagnosticSettingsOperations.ts b/sdk/monitor/arm-monitor/src/operations/diagnosticSettingsOperations.ts index 8153aa322d65..f8f191c34f16 100644 --- a/sdk/monitor/arm-monitor/src/operations/diagnosticSettingsOperations.ts +++ b/sdk/monitor/arm-monitor/src/operations/diagnosticSettingsOperations.ts @@ -1,7 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is @@ -159,9 +158,9 @@ export class DiagnosticSettingsOperations { const serializer = new msRest.Serializer(Mappers); const getOperationSpec: msRest.OperationSpec = { httpMethod: "GET", - path: "{resourceUri}/providers/microsoft.insights/diagnosticSettings/{name}", + path: "{resourceUri}/providers/Microsoft.Insights/diagnosticSettings/{name}", urlParameters: [ - Parameters.resourceUri, + Parameters.resourceUri0, Parameters.name ], queryParameters: [ @@ -183,9 +182,9 @@ const getOperationSpec: msRest.OperationSpec = { const createOrUpdateOperationSpec: msRest.OperationSpec = { httpMethod: "PUT", - path: "{resourceUri}/providers/microsoft.insights/diagnosticSettings/{name}", + path: "{resourceUri}/providers/Microsoft.Insights/diagnosticSettings/{name}", urlParameters: [ - Parameters.resourceUri, + Parameters.resourceUri0, Parameters.name ], queryParameters: [ @@ -214,9 +213,9 @@ const createOrUpdateOperationSpec: msRest.OperationSpec = { const deleteMethodOperationSpec: msRest.OperationSpec = { httpMethod: "DELETE", - path: "{resourceUri}/providers/microsoft.insights/diagnosticSettings/{name}", + path: "{resourceUri}/providers/Microsoft.Insights/diagnosticSettings/{name}", urlParameters: [ - Parameters.resourceUri, + Parameters.resourceUri0, Parameters.name ], queryParameters: [ @@ -237,9 +236,9 @@ const deleteMethodOperationSpec: msRest.OperationSpec = { const listOperationSpec: msRest.OperationSpec = { httpMethod: "GET", - path: "{resourceUri}/providers/microsoft.insights/diagnosticSettings", + path: "{resourceUri}/providers/Microsoft.Insights/diagnosticSettings", urlParameters: [ - Parameters.resourceUri + Parameters.resourceUri0 ], queryParameters: [ Parameters.apiVersion2 diff --git a/sdk/monitor/arm-monitor/src/operations/eventCategories.ts b/sdk/monitor/arm-monitor/src/operations/eventCategories.ts index 67bd8f4311b4..487cfcfc17f1 100644 --- a/sdk/monitor/arm-monitor/src/operations/eventCategories.ts +++ b/sdk/monitor/arm-monitor/src/operations/eventCategories.ts @@ -1,7 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is @@ -57,7 +56,7 @@ export class EventCategories { const serializer = new msRest.Serializer(Mappers); const listOperationSpec: msRest.OperationSpec = { httpMethod: "GET", - path: "providers/microsoft.insights/eventcategories", + path: "providers/Microsoft.Insights/eventcategories", queryParameters: [ Parameters.apiVersion0 ], diff --git a/sdk/monitor/arm-monitor/src/operations/index.ts b/sdk/monitor/arm-monitor/src/operations/index.ts index a7964c5cac32..c1323c7bfe35 100644 --- a/sdk/monitor/arm-monitor/src/operations/index.ts +++ b/sdk/monitor/arm-monitor/src/operations/index.ts @@ -1,7 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is @@ -16,16 +15,23 @@ export * from "./logProfiles"; export * from "./diagnosticSettingsOperations"; export * from "./diagnosticSettingsCategoryOperations"; export * from "./actionGroups"; -export * from "./activityLogAlerts"; export * from "./activityLogs"; export * from "./eventCategories"; export * from "./tenantActivityLogs"; export * from "./metricDefinitions"; export * from "./metrics"; -export * from "./metricBaseline"; export * from "./baselines"; export * from "./metricAlerts"; export * from "./metricAlertsStatus"; export * from "./scheduledQueryRules"; export * from "./metricNamespaces"; export * from "./vMInsights"; +export * from "./privateLinkScopes"; +export * from "./privateLinkScopeOperationStatus"; +export * from "./privateLinkResources"; +export * from "./privateEndpointConnections"; +export * from "./privateLinkScopedResources"; +export * from "./activityLogAlerts"; +export * from "./dataCollectionEndpoints"; +export * from "./dataCollectionRuleAssociations"; +export * from "./dataCollectionRules"; diff --git a/sdk/monitor/arm-monitor/src/operations/logProfiles.ts b/sdk/monitor/arm-monitor/src/operations/logProfiles.ts index 1ae52e5613b7..9a0eed92db61 100644 --- a/sdk/monitor/arm-monitor/src/operations/logProfiles.ts +++ b/sdk/monitor/arm-monitor/src/operations/logProfiles.ts @@ -1,7 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is @@ -175,7 +174,7 @@ export class LogProfiles { const serializer = new msRest.Serializer(Mappers); const deleteMethodOperationSpec: msRest.OperationSpec = { httpMethod: "DELETE", - path: "subscriptions/{subscriptionId}/providers/microsoft.insights/logprofiles/{logProfileName}", + path: "subscriptions/{subscriptionId}/providers/Microsoft.Insights/logprofiles/{logProfileName}", urlParameters: [ Parameters.logProfileName, Parameters.subscriptionId @@ -197,7 +196,7 @@ const deleteMethodOperationSpec: msRest.OperationSpec = { const getOperationSpec: msRest.OperationSpec = { httpMethod: "GET", - path: "subscriptions/{subscriptionId}/providers/microsoft.insights/logprofiles/{logProfileName}", + path: "subscriptions/{subscriptionId}/providers/Microsoft.Insights/logprofiles/{logProfileName}", urlParameters: [ Parameters.logProfileName, Parameters.subscriptionId @@ -221,7 +220,7 @@ const getOperationSpec: msRest.OperationSpec = { const createOrUpdateOperationSpec: msRest.OperationSpec = { httpMethod: "PUT", - path: "subscriptions/{subscriptionId}/providers/microsoft.insights/logprofiles/{logProfileName}", + path: "subscriptions/{subscriptionId}/providers/Microsoft.Insights/logprofiles/{logProfileName}", urlParameters: [ Parameters.logProfileName, Parameters.subscriptionId @@ -252,7 +251,7 @@ const createOrUpdateOperationSpec: msRest.OperationSpec = { const updateOperationSpec: msRest.OperationSpec = { httpMethod: "PATCH", - path: "subscriptions/{subscriptionId}/providers/microsoft.insights/logprofiles/{logProfileName}", + path: "subscriptions/{subscriptionId}/providers/Microsoft.Insights/logprofiles/{logProfileName}", urlParameters: [ Parameters.subscriptionId, Parameters.logProfileName @@ -283,7 +282,7 @@ const updateOperationSpec: msRest.OperationSpec = { const listOperationSpec: msRest.OperationSpec = { httpMethod: "GET", - path: "subscriptions/{subscriptionId}/providers/microsoft.insights/logprofiles", + path: "subscriptions/{subscriptionId}/providers/Microsoft.Insights/logprofiles", urlParameters: [ Parameters.subscriptionId ], diff --git a/sdk/monitor/arm-monitor/src/operations/metricAlerts.ts b/sdk/monitor/arm-monitor/src/operations/metricAlerts.ts index f7d435bd6048..59dc94c62c59 100644 --- a/sdk/monitor/arm-monitor/src/operations/metricAlerts.ts +++ b/sdk/monitor/arm-monitor/src/operations/metricAlerts.ts @@ -1,7 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is @@ -52,18 +51,18 @@ export class MetricAlerts { /** * Retrieve alert rule definitions in a resource group. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param [options] The optional parameters * @returns Promise */ listByResourceGroup(resourceGroupName: string, options?: msRest.RequestOptionsBase): Promise; /** - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param callback The callback */ listByResourceGroup(resourceGroupName: string, callback: msRest.ServiceCallback): void; /** - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param options The optional parameters * @param callback The callback */ @@ -80,20 +79,20 @@ export class MetricAlerts { /** * Retrieve an alert rule definition. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param ruleName The name of the rule. * @param [options] The optional parameters * @returns Promise */ get(resourceGroupName: string, ruleName: string, options?: msRest.RequestOptionsBase): Promise; /** - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param ruleName The name of the rule. * @param callback The callback */ get(resourceGroupName: string, ruleName: string, callback: msRest.ServiceCallback): void; /** - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param ruleName The name of the rule. * @param options The optional parameters * @param callback The callback @@ -112,7 +111,7 @@ export class MetricAlerts { /** * Create or update an metric alert definition. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param ruleName The name of the rule. * @param parameters The parameters of the rule to create or update. * @param [options] The optional parameters @@ -120,14 +119,14 @@ export class MetricAlerts { */ createOrUpdate(resourceGroupName: string, ruleName: string, parameters: Models.MetricAlertResource, options?: msRest.RequestOptionsBase): Promise; /** - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param ruleName The name of the rule. * @param parameters The parameters of the rule to create or update. * @param callback The callback */ createOrUpdate(resourceGroupName: string, ruleName: string, parameters: Models.MetricAlertResource, callback: msRest.ServiceCallback): void; /** - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param ruleName The name of the rule. * @param parameters The parameters of the rule to create or update. * @param options The optional parameters @@ -148,7 +147,7 @@ export class MetricAlerts { /** * Update an metric alert definition. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param ruleName The name of the rule. * @param parameters The parameters of the rule to update. * @param [options] The optional parameters @@ -156,14 +155,14 @@ export class MetricAlerts { */ update(resourceGroupName: string, ruleName: string, parameters: Models.MetricAlertResourcePatch, options?: msRest.RequestOptionsBase): Promise; /** - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param ruleName The name of the rule. * @param parameters The parameters of the rule to update. * @param callback The callback */ update(resourceGroupName: string, ruleName: string, parameters: Models.MetricAlertResourcePatch, callback: msRest.ServiceCallback): void; /** - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param ruleName The name of the rule. * @param parameters The parameters of the rule to update. * @param options The optional parameters @@ -184,20 +183,20 @@ export class MetricAlerts { /** * Delete an alert rule definition. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param ruleName The name of the rule. * @param [options] The optional parameters * @returns Promise */ deleteMethod(resourceGroupName: string, ruleName: string, options?: msRest.RequestOptionsBase): Promise; /** - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param ruleName The name of the rule. * @param callback The callback */ deleteMethod(resourceGroupName: string, ruleName: string, callback: msRest.ServiceCallback): void; /** - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param ruleName The name of the rule. * @param options The optional parameters * @param callback The callback @@ -224,7 +223,7 @@ const listBySubscriptionOperationSpec: msRest.OperationSpec = { Parameters.subscriptionId ], queryParameters: [ - Parameters.apiVersion8 + Parameters.apiVersion6 ], headerParameters: [ Parameters.acceptLanguage @@ -248,7 +247,7 @@ const listByResourceGroupOperationSpec: msRest.OperationSpec = { Parameters.resourceGroupName ], queryParameters: [ - Parameters.apiVersion8 + Parameters.apiVersion6 ], headerParameters: [ Parameters.acceptLanguage @@ -273,7 +272,7 @@ const getOperationSpec: msRest.OperationSpec = { Parameters.ruleName ], queryParameters: [ - Parameters.apiVersion8 + Parameters.apiVersion6 ], headerParameters: [ Parameters.acceptLanguage @@ -298,7 +297,7 @@ const createOrUpdateOperationSpec: msRest.OperationSpec = { Parameters.ruleName ], queryParameters: [ - Parameters.apiVersion8 + Parameters.apiVersion6 ], headerParameters: [ Parameters.acceptLanguage @@ -330,7 +329,7 @@ const updateOperationSpec: msRest.OperationSpec = { Parameters.ruleName ], queryParameters: [ - Parameters.apiVersion8 + Parameters.apiVersion6 ], headerParameters: [ Parameters.acceptLanguage @@ -362,7 +361,7 @@ const deleteMethodOperationSpec: msRest.OperationSpec = { Parameters.ruleName ], queryParameters: [ - Parameters.apiVersion8 + Parameters.apiVersion6 ], headerParameters: [ Parameters.acceptLanguage @@ -371,7 +370,7 @@ const deleteMethodOperationSpec: msRest.OperationSpec = { 200: {}, 204: {}, default: { - bodyMapper: Mappers.CloudError + bodyMapper: Mappers.ErrorResponse } }, serializer diff --git a/sdk/monitor/arm-monitor/src/operations/metricAlertsStatus.ts b/sdk/monitor/arm-monitor/src/operations/metricAlertsStatus.ts index 018c13a6bff6..f57ea04c8f8f 100644 --- a/sdk/monitor/arm-monitor/src/operations/metricAlertsStatus.ts +++ b/sdk/monitor/arm-monitor/src/operations/metricAlertsStatus.ts @@ -1,7 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is @@ -28,20 +27,20 @@ export class MetricAlertsStatus { /** * Retrieve an alert rule status. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param ruleName The name of the rule. * @param [options] The optional parameters * @returns Promise */ list(resourceGroupName: string, ruleName: string, options?: msRest.RequestOptionsBase): Promise; /** - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param ruleName The name of the rule. * @param callback The callback */ list(resourceGroupName: string, ruleName: string, callback: msRest.ServiceCallback): void; /** - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param ruleName The name of the rule. * @param options The optional parameters * @param callback The callback @@ -60,7 +59,7 @@ export class MetricAlertsStatus { /** * Retrieve an alert rule status. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param ruleName The name of the rule. * @param statusName The name of the status. * @param [options] The optional parameters @@ -68,14 +67,14 @@ export class MetricAlertsStatus { */ listByName(resourceGroupName: string, ruleName: string, statusName: string, options?: msRest.RequestOptionsBase): Promise; /** - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param ruleName The name of the rule. * @param statusName The name of the status. * @param callback The callback */ listByName(resourceGroupName: string, ruleName: string, statusName: string, callback: msRest.ServiceCallback): void; /** - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param ruleName The name of the rule. * @param statusName The name of the status. * @param options The optional parameters @@ -106,7 +105,7 @@ const listOperationSpec: msRest.OperationSpec = { Parameters.ruleName ], queryParameters: [ - Parameters.apiVersion8 + Parameters.apiVersion6 ], headerParameters: [ Parameters.acceptLanguage @@ -132,7 +131,7 @@ const listByNameOperationSpec: msRest.OperationSpec = { Parameters.statusName ], queryParameters: [ - Parameters.apiVersion8 + Parameters.apiVersion6 ], headerParameters: [ Parameters.acceptLanguage diff --git a/sdk/monitor/arm-monitor/src/operations/metricBaseline.ts b/sdk/monitor/arm-monitor/src/operations/metricBaseline.ts deleted file mode 100644 index 0cd73b9d1c3e..000000000000 --- a/sdk/monitor/arm-monitor/src/operations/metricBaseline.ts +++ /dev/null @@ -1,174 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is - * regenerated. - */ - -import * as msRest from "@azure/ms-rest-js"; -import * as Models from "../models"; -import * as Mappers from "../models/metricBaselineMappers"; -import * as Parameters from "../models/parameters"; -import { MonitorManagementClientContext } from "../monitorManagementClientContext"; - -/** Class representing a MetricBaseline. */ -export class MetricBaseline { - private readonly client: MonitorManagementClientContext; - - /** - * Create a MetricBaseline. - * @param {MonitorManagementClientContext} client Reference to the service client. - */ - constructor(client: MonitorManagementClientContext) { - this.client = client; - } - - /** - * **Gets the baseline values for a specific metric**. - * @param resourceUri The identifier of the resource. It has the following structure: - * subscriptions/{subscriptionName}/resourceGroups/{resourceGroupName}/providers/{providerName}/{resourceName}. - * For example: - * subscriptions/b368ca2f-e298-46b7-b0ab-012281956afa/resourceGroups/vms/providers/Microsoft.Compute/virtualMachines/vm1 - * @param metricName The name of the metric to retrieve the baseline for. - * @param [options] The optional parameters - * @returns Promise - */ - get(resourceUri: string, metricName: string, options?: Models.MetricBaselineGetOptionalParams): Promise; - /** - * @param resourceUri The identifier of the resource. It has the following structure: - * subscriptions/{subscriptionName}/resourceGroups/{resourceGroupName}/providers/{providerName}/{resourceName}. - * For example: - * subscriptions/b368ca2f-e298-46b7-b0ab-012281956afa/resourceGroups/vms/providers/Microsoft.Compute/virtualMachines/vm1 - * @param metricName The name of the metric to retrieve the baseline for. - * @param callback The callback - */ - get(resourceUri: string, metricName: string, callback: msRest.ServiceCallback): void; - /** - * @param resourceUri The identifier of the resource. It has the following structure: - * subscriptions/{subscriptionName}/resourceGroups/{resourceGroupName}/providers/{providerName}/{resourceName}. - * For example: - * subscriptions/b368ca2f-e298-46b7-b0ab-012281956afa/resourceGroups/vms/providers/Microsoft.Compute/virtualMachines/vm1 - * @param metricName The name of the metric to retrieve the baseline for. - * @param options The optional parameters - * @param callback The callback - */ - get(resourceUri: string, metricName: string, options: Models.MetricBaselineGetOptionalParams, callback: msRest.ServiceCallback): void; - get(resourceUri: string, metricName: string, options?: Models.MetricBaselineGetOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { - return this.client.sendOperationRequest( - { - resourceUri, - metricName, - options - }, - getOperationSpec, - callback) as Promise; - } - - /** - * **Lists the baseline values for a resource**. - * @param resourceUri The identifier of the resource. It has the following structure: - * subscriptions/{subscriptionName}/resourceGroups/{resourceGroupName}/providers/{providerName}/{resourceName}. - * For example: - * subscriptions/b368ca2f-e298-46b7-b0ab-012281956afa/resourceGroups/vms/providers/Microsoft.Compute/virtualMachines/vm1 - * @param timeSeriesInformation Information that need to be specified to calculate a baseline on a - * time series. - * @param [options] The optional parameters - * @returns Promise - */ - calculateBaseline(resourceUri: string, timeSeriesInformation: Models.TimeSeriesInformation, options?: msRest.RequestOptionsBase): Promise; - /** - * @param resourceUri The identifier of the resource. It has the following structure: - * subscriptions/{subscriptionName}/resourceGroups/{resourceGroupName}/providers/{providerName}/{resourceName}. - * For example: - * subscriptions/b368ca2f-e298-46b7-b0ab-012281956afa/resourceGroups/vms/providers/Microsoft.Compute/virtualMachines/vm1 - * @param timeSeriesInformation Information that need to be specified to calculate a baseline on a - * time series. - * @param callback The callback - */ - calculateBaseline(resourceUri: string, timeSeriesInformation: Models.TimeSeriesInformation, callback: msRest.ServiceCallback): void; - /** - * @param resourceUri The identifier of the resource. It has the following structure: - * subscriptions/{subscriptionName}/resourceGroups/{resourceGroupName}/providers/{providerName}/{resourceName}. - * For example: - * subscriptions/b368ca2f-e298-46b7-b0ab-012281956afa/resourceGroups/vms/providers/Microsoft.Compute/virtualMachines/vm1 - * @param timeSeriesInformation Information that need to be specified to calculate a baseline on a - * time series. - * @param options The optional parameters - * @param callback The callback - */ - calculateBaseline(resourceUri: string, timeSeriesInformation: Models.TimeSeriesInformation, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - calculateBaseline(resourceUri: string, timeSeriesInformation: Models.TimeSeriesInformation, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { - return this.client.sendOperationRequest( - { - resourceUri, - timeSeriesInformation, - options - }, - calculateBaselineOperationSpec, - callback) as Promise; - } -} - -// Operation Specifications -const serializer = new msRest.Serializer(Mappers); -const getOperationSpec: msRest.OperationSpec = { - httpMethod: "GET", - path: "{resourceUri}/providers/microsoft.insights/baseline/{metricName}", - urlParameters: [ - Parameters.resourceUri, - Parameters.metricName - ], - queryParameters: [ - Parameters.timespan, - Parameters.interval, - Parameters.aggregation, - Parameters.sensitivities, - Parameters.resultType, - Parameters.apiVersion6 - ], - headerParameters: [ - Parameters.acceptLanguage - ], - responses: { - 200: { - bodyMapper: Mappers.BaselineResponse - }, - default: { - bodyMapper: Mappers.ErrorResponse - } - }, - serializer -}; - -const calculateBaselineOperationSpec: msRest.OperationSpec = { - httpMethod: "POST", - path: "{resourceUri}/providers/microsoft.insights/calculatebaseline", - urlParameters: [ - Parameters.resourceUri - ], - queryParameters: [ - Parameters.apiVersion6 - ], - headerParameters: [ - Parameters.acceptLanguage - ], - requestBody: { - parameterPath: "timeSeriesInformation", - mapper: { - ...Mappers.TimeSeriesInformation, - required: true - } - }, - responses: { - 200: { - bodyMapper: Mappers.CalculateBaselineResponse - }, - default: { - bodyMapper: Mappers.ErrorResponse - } - }, - serializer -}; diff --git a/sdk/monitor/arm-monitor/src/operations/metricDefinitions.ts b/sdk/monitor/arm-monitor/src/operations/metricDefinitions.ts index 23a9932d767b..501c39cff85f 100644 --- a/sdk/monitor/arm-monitor/src/operations/metricDefinitions.ts +++ b/sdk/monitor/arm-monitor/src/operations/metricDefinitions.ts @@ -1,7 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is @@ -59,12 +58,12 @@ export class MetricDefinitions { const serializer = new msRest.Serializer(Mappers); const listOperationSpec: msRest.OperationSpec = { httpMethod: "GET", - path: "{resourceUri}/providers/microsoft.insights/metricDefinitions", + path: "{resourceUri}/providers/Microsoft.Insights/metricDefinitions", urlParameters: [ - Parameters.resourceUri + Parameters.resourceUri0 ], queryParameters: [ - Parameters.apiVersion5, + Parameters.apiVersion4, Parameters.metricnamespace ], headerParameters: [ diff --git a/sdk/monitor/arm-monitor/src/operations/metricNamespaces.ts b/sdk/monitor/arm-monitor/src/operations/metricNamespaces.ts index 447750b8340e..c139e92b55f9 100644 --- a/sdk/monitor/arm-monitor/src/operations/metricNamespaces.ts +++ b/sdk/monitor/arm-monitor/src/operations/metricNamespaces.ts @@ -1,7 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is @@ -61,10 +60,10 @@ const listOperationSpec: msRest.OperationSpec = { httpMethod: "GET", path: "{resourceUri}/providers/microsoft.insights/metricNamespaces", urlParameters: [ - Parameters.resourceUri + Parameters.resourceUri0 ], queryParameters: [ - Parameters.apiVersion10, + Parameters.apiVersion8, Parameters.startTime ], headerParameters: [ diff --git a/sdk/monitor/arm-monitor/src/operations/metrics.ts b/sdk/monitor/arm-monitor/src/operations/metrics.ts index 9f613ea4236f..a4a215d6bdda 100644 --- a/sdk/monitor/arm-monitor/src/operations/metrics.ts +++ b/sdk/monitor/arm-monitor/src/operations/metrics.ts @@ -1,7 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is @@ -59,9 +58,9 @@ export class Metrics { const serializer = new msRest.Serializer(Mappers); const listOperationSpec: msRest.OperationSpec = { httpMethod: "GET", - path: "{resourceUri}/providers/microsoft.insights/metrics", + path: "{resourceUri}/providers/Microsoft.Insights/metrics", urlParameters: [ - Parameters.resourceUri + Parameters.resourceUri0 ], queryParameters: [ Parameters.timespan, @@ -72,7 +71,7 @@ const listOperationSpec: msRest.OperationSpec = { Parameters.orderby, Parameters.filter1, Parameters.resultType, - Parameters.apiVersion5, + Parameters.apiVersion4, Parameters.metricnamespace ], headerParameters: [ diff --git a/sdk/monitor/arm-monitor/src/operations/operations.ts b/sdk/monitor/arm-monitor/src/operations/operations.ts index a6faf8a59a89..4162c74ff3b8 100644 --- a/sdk/monitor/arm-monitor/src/operations/operations.ts +++ b/sdk/monitor/arm-monitor/src/operations/operations.ts @@ -1,7 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is @@ -55,7 +54,7 @@ export class Operations { const serializer = new msRest.Serializer(Mappers); const listOperationSpec: msRest.OperationSpec = { httpMethod: "GET", - path: "providers/microsoft.insights/operations", + path: "providers/Microsoft.Insights/operations", queryParameters: [ Parameters.apiVersion0 ], diff --git a/sdk/monitor/arm-monitor/src/operations/privateEndpointConnections.ts b/sdk/monitor/arm-monitor/src/operations/privateEndpointConnections.ts new file mode 100644 index 000000000000..4d3b2a87a335 --- /dev/null +++ b/sdk/monitor/arm-monitor/src/operations/privateEndpointConnections.ts @@ -0,0 +1,330 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is + * regenerated. + */ + +import * as msRest from "@azure/ms-rest-js"; +import * as msRestAzure from "@azure/ms-rest-azure-js"; +import * as Models from "../models"; +import * as Mappers from "../models/privateEndpointConnectionsMappers"; +import * as Parameters from "../models/parameters"; +import { MonitorManagementClientContext } from "../monitorManagementClientContext"; + +/** Class representing a PrivateEndpointConnections. */ +export class PrivateEndpointConnections { + private readonly client: MonitorManagementClientContext; + + /** + * Create a PrivateEndpointConnections. + * @param {MonitorManagementClientContext} client Reference to the service client. + */ + constructor(client: MonitorManagementClientContext) { + this.client = client; + } + + /** + * Gets a private endpoint connection. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param scopeName The name of the Azure Monitor PrivateLinkScope resource. + * @param privateEndpointConnectionName The name of the private endpoint connection. + * @param [options] The optional parameters + * @returns Promise + */ + get(resourceGroupName: string, scopeName: string, privateEndpointConnectionName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param scopeName The name of the Azure Monitor PrivateLinkScope resource. + * @param privateEndpointConnectionName The name of the private endpoint connection. + * @param callback The callback + */ + get(resourceGroupName: string, scopeName: string, privateEndpointConnectionName: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param scopeName The name of the Azure Monitor PrivateLinkScope resource. + * @param privateEndpointConnectionName The name of the private endpoint connection. + * @param options The optional parameters + * @param callback The callback + */ + get(resourceGroupName: string, scopeName: string, privateEndpointConnectionName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + get(resourceGroupName: string, scopeName: string, privateEndpointConnectionName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + scopeName, + privateEndpointConnectionName, + options + }, + getOperationSpec, + callback) as Promise; + } + + /** + * Approve or reject a private endpoint connection with a given name. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param scopeName The name of the Azure Monitor PrivateLinkScope resource. + * @param privateEndpointConnectionName The name of the private endpoint connection. + * @param parameters + * @param [options] The optional parameters + * @returns Promise + */ + createOrUpdate(resourceGroupName: string, scopeName: string, privateEndpointConnectionName: string, parameters: Models.PrivateEndpointConnection, options?: msRest.RequestOptionsBase): Promise { + return this.beginCreateOrUpdate(resourceGroupName,scopeName,privateEndpointConnectionName,parameters,options) + .then(lroPoller => lroPoller.pollUntilFinished()) as Promise; + } + + /** + * Deletes a private endpoint connection with a given name. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param scopeName The name of the Azure Monitor PrivateLinkScope resource. + * @param privateEndpointConnectionName The name of the private endpoint connection. + * @param [options] The optional parameters + * @returns Promise + */ + deleteMethod(resourceGroupName: string, scopeName: string, privateEndpointConnectionName: string, options?: msRest.RequestOptionsBase): Promise { + return this.beginDeleteMethod(resourceGroupName,scopeName,privateEndpointConnectionName,options) + .then(lroPoller => lroPoller.pollUntilFinished()); + } + + /** + * Gets all private endpoint connections on a private link scope. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param scopeName The name of the Azure Monitor PrivateLinkScope resource. + * @param [options] The optional parameters + * @returns Promise + */ + listByPrivateLinkScope(resourceGroupName: string, scopeName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param scopeName The name of the Azure Monitor PrivateLinkScope resource. + * @param callback The callback + */ + listByPrivateLinkScope(resourceGroupName: string, scopeName: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param scopeName The name of the Azure Monitor PrivateLinkScope resource. + * @param options The optional parameters + * @param callback The callback + */ + listByPrivateLinkScope(resourceGroupName: string, scopeName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listByPrivateLinkScope(resourceGroupName: string, scopeName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + scopeName, + options + }, + listByPrivateLinkScopeOperationSpec, + callback) as Promise; + } + + /** + * Approve or reject a private endpoint connection with a given name. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param scopeName The name of the Azure Monitor PrivateLinkScope resource. + * @param privateEndpointConnectionName The name of the private endpoint connection. + * @param parameters + * @param [options] The optional parameters + * @returns Promise + */ + beginCreateOrUpdate(resourceGroupName: string, scopeName: string, privateEndpointConnectionName: string, parameters: Models.PrivateEndpointConnection, options?: msRest.RequestOptionsBase): Promise { + return this.client.sendLRORequest( + { + resourceGroupName, + scopeName, + privateEndpointConnectionName, + parameters, + options + }, + beginCreateOrUpdateOperationSpec, + options); + } + + /** + * Deletes a private endpoint connection with a given name. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param scopeName The name of the Azure Monitor PrivateLinkScope resource. + * @param privateEndpointConnectionName The name of the private endpoint connection. + * @param [options] The optional parameters + * @returns Promise + */ + beginDeleteMethod(resourceGroupName: string, scopeName: string, privateEndpointConnectionName: string, options?: msRest.RequestOptionsBase): Promise { + return this.client.sendLRORequest( + { + resourceGroupName, + scopeName, + privateEndpointConnectionName, + options + }, + beginDeleteMethodOperationSpec, + options); + } + + /** + * Gets all private endpoint connections on a private link scope. + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param [options] The optional parameters + * @returns Promise + */ + listByPrivateLinkScopeNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param callback The callback + */ + listByPrivateLinkScopeNext(nextPageLink: string, callback: msRest.ServiceCallback): void; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param options The optional parameters + * @param callback The callback + */ + listByPrivateLinkScopeNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listByPrivateLinkScopeNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + nextPageLink, + options + }, + listByPrivateLinkScopeNextOperationSpec, + callback) as Promise; + } +} + +// Operation Specifications +const serializer = new msRest.Serializer(Mappers); +const getOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/privateLinkScopes/{scopeName}/privateEndpointConnections/{privateEndpointConnectionName}", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.scopeName, + Parameters.privateEndpointConnectionName + ], + queryParameters: [ + Parameters.apiVersion10 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.PrivateEndpointConnection + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const listByPrivateLinkScopeOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/privateLinkScopes/{scopeName}/privateEndpointConnections", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.scopeName + ], + queryParameters: [ + Parameters.apiVersion10 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.PrivateEndpointConnectionListResult + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const beginCreateOrUpdateOperationSpec: msRest.OperationSpec = { + httpMethod: "PUT", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/privateLinkScopes/{scopeName}/privateEndpointConnections/{privateEndpointConnectionName}", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.scopeName, + Parameters.privateEndpointConnectionName + ], + queryParameters: [ + Parameters.apiVersion10 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + requestBody: { + parameterPath: "parameters", + mapper: { + ...Mappers.PrivateEndpointConnection, + required: true + } + }, + responses: { + 200: { + bodyMapper: Mappers.PrivateEndpointConnection + }, + 202: {}, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const beginDeleteMethodOperationSpec: msRest.OperationSpec = { + httpMethod: "DELETE", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/privateLinkScopes/{scopeName}/privateEndpointConnections/{privateEndpointConnectionName}", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.scopeName, + Parameters.privateEndpointConnectionName + ], + queryParameters: [ + Parameters.apiVersion10 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: {}, + 202: {}, + 204: {}, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const listByPrivateLinkScopeNextOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + baseUrl: "https://management.azure.com", + path: "{nextLink}", + urlParameters: [ + Parameters.nextPageLink + ], + queryParameters: [ + Parameters.apiVersion10 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.PrivateEndpointConnectionListResult + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; diff --git a/sdk/monitor/arm-monitor/src/operations/privateLinkResources.ts b/sdk/monitor/arm-monitor/src/operations/privateLinkResources.ts new file mode 100644 index 000000000000..7a0463c176ed --- /dev/null +++ b/sdk/monitor/arm-monitor/src/operations/privateLinkResources.ts @@ -0,0 +1,200 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is + * regenerated. + */ + +import * as msRest from "@azure/ms-rest-js"; +import * as Models from "../models"; +import * as Mappers from "../models/privateLinkResourcesMappers"; +import * as Parameters from "../models/parameters"; +import { MonitorManagementClientContext } from "../monitorManagementClientContext"; + +/** Class representing a PrivateLinkResources. */ +export class PrivateLinkResources { + private readonly client: MonitorManagementClientContext; + + /** + * Create a PrivateLinkResources. + * @param {MonitorManagementClientContext} client Reference to the service client. + */ + constructor(client: MonitorManagementClientContext) { + this.client = client; + } + + /** + * Gets the private link resources that need to be created for a Azure Monitor PrivateLinkScope. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param scopeName The name of the Azure Monitor PrivateLinkScope resource. + * @param [options] The optional parameters + * @returns Promise + */ + listByPrivateLinkScope(resourceGroupName: string, scopeName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param scopeName The name of the Azure Monitor PrivateLinkScope resource. + * @param callback The callback + */ + listByPrivateLinkScope(resourceGroupName: string, scopeName: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param scopeName The name of the Azure Monitor PrivateLinkScope resource. + * @param options The optional parameters + * @param callback The callback + */ + listByPrivateLinkScope(resourceGroupName: string, scopeName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listByPrivateLinkScope(resourceGroupName: string, scopeName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + scopeName, + options + }, + listByPrivateLinkScopeOperationSpec, + callback) as Promise; + } + + /** + * Gets the private link resources that need to be created for a Azure Monitor PrivateLinkScope. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param scopeName The name of the Azure Monitor PrivateLinkScope resource. + * @param groupName The name of the private link resource. + * @param [options] The optional parameters + * @returns Promise + */ + get(resourceGroupName: string, scopeName: string, groupName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param scopeName The name of the Azure Monitor PrivateLinkScope resource. + * @param groupName The name of the private link resource. + * @param callback The callback + */ + get(resourceGroupName: string, scopeName: string, groupName: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param scopeName The name of the Azure Monitor PrivateLinkScope resource. + * @param groupName The name of the private link resource. + * @param options The optional parameters + * @param callback The callback + */ + get(resourceGroupName: string, scopeName: string, groupName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + get(resourceGroupName: string, scopeName: string, groupName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + scopeName, + groupName, + options + }, + getOperationSpec, + callback) as Promise; + } + + /** + * Gets the private link resources that need to be created for a Azure Monitor PrivateLinkScope. + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param [options] The optional parameters + * @returns Promise + */ + listByPrivateLinkScopeNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param callback The callback + */ + listByPrivateLinkScopeNext(nextPageLink: string, callback: msRest.ServiceCallback): void; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param options The optional parameters + * @param callback The callback + */ + listByPrivateLinkScopeNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listByPrivateLinkScopeNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + nextPageLink, + options + }, + listByPrivateLinkScopeNextOperationSpec, + callback) as Promise; + } +} + +// Operation Specifications +const serializer = new msRest.Serializer(Mappers); +const listByPrivateLinkScopeOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/privateLinkScopes/{scopeName}/privateLinkResources", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.scopeName + ], + queryParameters: [ + Parameters.apiVersion10 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.PrivateLinkResourceListResult + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const getOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/privateLinkScopes/{scopeName}/privateLinkResources/{groupName}", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.scopeName, + Parameters.groupName + ], + queryParameters: [ + Parameters.apiVersion10 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.PrivateLinkResource + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const listByPrivateLinkScopeNextOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + baseUrl: "https://management.azure.com", + path: "{nextLink}", + urlParameters: [ + Parameters.nextPageLink + ], + queryParameters: [ + Parameters.apiVersion10 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.PrivateLinkResourceListResult + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; diff --git a/sdk/monitor/arm-monitor/src/operations/privateLinkScopeOperationStatus.ts b/sdk/monitor/arm-monitor/src/operations/privateLinkScopeOperationStatus.ts new file mode 100644 index 000000000000..e00a1cb52b98 --- /dev/null +++ b/sdk/monitor/arm-monitor/src/operations/privateLinkScopeOperationStatus.ts @@ -0,0 +1,87 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is + * regenerated. + */ + +import * as msRest from "@azure/ms-rest-js"; +import * as Models from "../models"; +import * as Mappers from "../models/privateLinkScopeOperationStatusMappers"; +import * as Parameters from "../models/parameters"; +import { MonitorManagementClientContext } from "../monitorManagementClientContext"; + +/** Class representing a PrivateLinkScopeOperationStatus. */ +export class PrivateLinkScopeOperationStatus { + private readonly client: MonitorManagementClientContext; + + /** + * Create a PrivateLinkScopeOperationStatus. + * @param {MonitorManagementClientContext} client Reference to the service client. + */ + constructor(client: MonitorManagementClientContext) { + this.client = client; + } + + /** + * Get the status of an azure asynchronous operation associated with a private link scope + * operation. + * @param asyncOperationId The operation Id. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param [options] The optional parameters + * @returns Promise + */ + get(asyncOperationId: string, resourceGroupName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param asyncOperationId The operation Id. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param callback The callback + */ + get(asyncOperationId: string, resourceGroupName: string, callback: msRest.ServiceCallback): void; + /** + * @param asyncOperationId The operation Id. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param options The optional parameters + * @param callback The callback + */ + get(asyncOperationId: string, resourceGroupName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + get(asyncOperationId: string, resourceGroupName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + asyncOperationId, + resourceGroupName, + options + }, + getOperationSpec, + callback) as Promise; + } +} + +// Operation Specifications +const serializer = new msRest.Serializer(Mappers); +const getOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/microsoft.insights/privateLinkScopeOperationStatuses/{asyncOperationId}", + urlParameters: [ + Parameters.asyncOperationId, + Parameters.resourceGroupName, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion10 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.OperationStatus + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; diff --git a/sdk/monitor/arm-monitor/src/operations/privateLinkScopedResources.ts b/sdk/monitor/arm-monitor/src/operations/privateLinkScopedResources.ts new file mode 100644 index 000000000000..ac68b1a00097 --- /dev/null +++ b/sdk/monitor/arm-monitor/src/operations/privateLinkScopedResources.ts @@ -0,0 +1,335 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is + * regenerated. + */ + +import * as msRest from "@azure/ms-rest-js"; +import * as msRestAzure from "@azure/ms-rest-azure-js"; +import * as Models from "../models"; +import * as Mappers from "../models/privateLinkScopedResourcesMappers"; +import * as Parameters from "../models/parameters"; +import { MonitorManagementClientContext } from "../monitorManagementClientContext"; + +/** Class representing a PrivateLinkScopedResources. */ +export class PrivateLinkScopedResources { + private readonly client: MonitorManagementClientContext; + + /** + * Create a PrivateLinkScopedResources. + * @param {MonitorManagementClientContext} client Reference to the service client. + */ + constructor(client: MonitorManagementClientContext) { + this.client = client; + } + + /** + * Gets a scoped resource in a private link scope. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param scopeName The name of the Azure Monitor PrivateLinkScope resource. + * @param name The name of the scoped resource object. + * @param [options] The optional parameters + * @returns Promise + */ + get(resourceGroupName: string, scopeName: string, name: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param scopeName The name of the Azure Monitor PrivateLinkScope resource. + * @param name The name of the scoped resource object. + * @param callback The callback + */ + get(resourceGroupName: string, scopeName: string, name: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param scopeName The name of the Azure Monitor PrivateLinkScope resource. + * @param name The name of the scoped resource object. + * @param options The optional parameters + * @param callback The callback + */ + get(resourceGroupName: string, scopeName: string, name: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + get(resourceGroupName: string, scopeName: string, name: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + scopeName, + name, + options + }, + getOperationSpec, + callback) as Promise; + } + + /** + * Approve or reject a private endpoint connection with a given name. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param scopeName The name of the Azure Monitor PrivateLinkScope resource. + * @param name The name of the scoped resource object. + * @param [options] The optional parameters + * @returns Promise + */ + createOrUpdate(resourceGroupName: string, scopeName: string, name: string, options?: Models.PrivateLinkScopedResourcesCreateOrUpdateOptionalParams): Promise { + return this.beginCreateOrUpdate(resourceGroupName,scopeName,name,options) + .then(lroPoller => lroPoller.pollUntilFinished()) as Promise; + } + + /** + * Deletes a private endpoint connection with a given name. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param scopeName The name of the Azure Monitor PrivateLinkScope resource. + * @param name The name of the scoped resource object. + * @param [options] The optional parameters + * @returns Promise + */ + deleteMethod(resourceGroupName: string, scopeName: string, name: string, options?: msRest.RequestOptionsBase): Promise { + return this.beginDeleteMethod(resourceGroupName,scopeName,name,options) + .then(lroPoller => lroPoller.pollUntilFinished()); + } + + /** + * Gets all private endpoint connections on a private link scope. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param scopeName The name of the Azure Monitor PrivateLinkScope resource. + * @param [options] The optional parameters + * @returns Promise + */ + listByPrivateLinkScope(resourceGroupName: string, scopeName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param scopeName The name of the Azure Monitor PrivateLinkScope resource. + * @param callback The callback + */ + listByPrivateLinkScope(resourceGroupName: string, scopeName: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param scopeName The name of the Azure Monitor PrivateLinkScope resource. + * @param options The optional parameters + * @param callback The callback + */ + listByPrivateLinkScope(resourceGroupName: string, scopeName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listByPrivateLinkScope(resourceGroupName: string, scopeName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + scopeName, + options + }, + listByPrivateLinkScopeOperationSpec, + callback) as Promise; + } + + /** + * Approve or reject a private endpoint connection with a given name. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param scopeName The name of the Azure Monitor PrivateLinkScope resource. + * @param name The name of the scoped resource object. + * @param [options] The optional parameters + * @returns Promise + */ + beginCreateOrUpdate(resourceGroupName: string, scopeName: string, name: string, options?: Models.PrivateLinkScopedResourcesBeginCreateOrUpdateOptionalParams): Promise { + return this.client.sendLRORequest( + { + resourceGroupName, + scopeName, + name, + options + }, + beginCreateOrUpdateOperationSpec, + options); + } + + /** + * Deletes a private endpoint connection with a given name. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param scopeName The name of the Azure Monitor PrivateLinkScope resource. + * @param name The name of the scoped resource object. + * @param [options] The optional parameters + * @returns Promise + */ + beginDeleteMethod(resourceGroupName: string, scopeName: string, name: string, options?: msRest.RequestOptionsBase): Promise { + return this.client.sendLRORequest( + { + resourceGroupName, + scopeName, + name, + options + }, + beginDeleteMethodOperationSpec, + options); + } + + /** + * Gets all private endpoint connections on a private link scope. + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param [options] The optional parameters + * @returns Promise + */ + listByPrivateLinkScopeNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param callback The callback + */ + listByPrivateLinkScopeNext(nextPageLink: string, callback: msRest.ServiceCallback): void; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param options The optional parameters + * @param callback The callback + */ + listByPrivateLinkScopeNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listByPrivateLinkScopeNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + nextPageLink, + options + }, + listByPrivateLinkScopeNextOperationSpec, + callback) as Promise; + } +} + +// Operation Specifications +const serializer = new msRest.Serializer(Mappers); +const getOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/privateLinkScopes/{scopeName}/scopedResources/{name}", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.scopeName, + Parameters.name + ], + queryParameters: [ + Parameters.apiVersion10 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.ScopedResource + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const listByPrivateLinkScopeOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/privateLinkScopes/{scopeName}/scopedResources", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.scopeName + ], + queryParameters: [ + Parameters.apiVersion10 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.ScopedResourceListResult + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const beginCreateOrUpdateOperationSpec: msRest.OperationSpec = { + httpMethod: "PUT", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/privateLinkScopes/{scopeName}/scopedResources/{name}", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.scopeName, + Parameters.name + ], + queryParameters: [ + Parameters.apiVersion10 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + requestBody: { + parameterPath: { + linkedResourceId: [ + "options", + "linkedResourceId" + ] + }, + mapper: { + ...Mappers.ScopedResource, + required: true + } + }, + responses: { + 200: { + bodyMapper: Mappers.ScopedResource + }, + 201: { + bodyMapper: Mappers.ScopedResource + }, + 202: {}, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const beginDeleteMethodOperationSpec: msRest.OperationSpec = { + httpMethod: "DELETE", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/privateLinkScopes/{scopeName}/scopedResources/{name}", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.scopeName, + Parameters.name + ], + queryParameters: [ + Parameters.apiVersion10 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: {}, + 202: {}, + 204: {}, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const listByPrivateLinkScopeNextOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + baseUrl: "https://management.azure.com", + path: "{nextLink}", + urlParameters: [ + Parameters.nextPageLink + ], + queryParameters: [ + Parameters.apiVersion10 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.ScopedResourceListResult + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; diff --git a/sdk/monitor/arm-monitor/src/operations/privateLinkScopes.ts b/sdk/monitor/arm-monitor/src/operations/privateLinkScopes.ts new file mode 100644 index 000000000000..52fa0651687a --- /dev/null +++ b/sdk/monitor/arm-monitor/src/operations/privateLinkScopes.ts @@ -0,0 +1,490 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is + * regenerated. + */ + +import * as msRest from "@azure/ms-rest-js"; +import * as msRestAzure from "@azure/ms-rest-azure-js"; +import * as Models from "../models"; +import * as Mappers from "../models/privateLinkScopesMappers"; +import * as Parameters from "../models/parameters"; +import { MonitorManagementClientContext } from "../monitorManagementClientContext"; + +/** Class representing a PrivateLinkScopes. */ +export class PrivateLinkScopes { + private readonly client: MonitorManagementClientContext; + + /** + * Create a PrivateLinkScopes. + * @param {MonitorManagementClientContext} client Reference to the service client. + */ + constructor(client: MonitorManagementClientContext) { + this.client = client; + } + + /** + * Gets a list of all Azure Monitor PrivateLinkScopes within a subscription. + * @param [options] The optional parameters + * @returns Promise + */ + list(options?: msRest.RequestOptionsBase): Promise; + /** + * @param callback The callback + */ + list(callback: msRest.ServiceCallback): void; + /** + * @param options The optional parameters + * @param callback The callback + */ + list(options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + list(options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + options + }, + listOperationSpec, + callback) as Promise; + } + + /** + * Gets a list of Azure Monitor PrivateLinkScopes within a resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param [options] The optional parameters + * @returns Promise + */ + listByResourceGroup(resourceGroupName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param callback The callback + */ + listByResourceGroup(resourceGroupName: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param options The optional parameters + * @param callback The callback + */ + listByResourceGroup(resourceGroupName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listByResourceGroup(resourceGroupName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + options + }, + listByResourceGroupOperationSpec, + callback) as Promise; + } + + /** + * Deletes a Azure Monitor PrivateLinkScope. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param scopeName The name of the Azure Monitor PrivateLinkScope resource. + * @param [options] The optional parameters + * @returns Promise + */ + deleteMethod(resourceGroupName: string, scopeName: string, options?: msRest.RequestOptionsBase): Promise { + return this.beginDeleteMethod(resourceGroupName,scopeName,options) + .then(lroPoller => lroPoller.pollUntilFinished()); + } + + /** + * Returns a Azure Monitor PrivateLinkScope. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param scopeName The name of the Azure Monitor PrivateLinkScope resource. + * @param [options] The optional parameters + * @returns Promise + */ + get(resourceGroupName: string, scopeName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param scopeName The name of the Azure Monitor PrivateLinkScope resource. + * @param callback The callback + */ + get(resourceGroupName: string, scopeName: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param scopeName The name of the Azure Monitor PrivateLinkScope resource. + * @param options The optional parameters + * @param callback The callback + */ + get(resourceGroupName: string, scopeName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + get(resourceGroupName: string, scopeName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + scopeName, + options + }, + getOperationSpec, + callback) as Promise; + } + + /** + * Creates (or updates) a Azure Monitor PrivateLinkScope. Note: You cannot specify a different + * value for InstrumentationKey nor AppId in the Put operation. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param scopeName The name of the Azure Monitor PrivateLinkScope resource. + * @param azureMonitorPrivateLinkScopePayload Properties that need to be specified to create or + * update a Azure Monitor PrivateLinkScope. + * @param [options] The optional parameters + * @returns Promise + */ + createOrUpdate(resourceGroupName: string, scopeName: string, azureMonitorPrivateLinkScopePayload: Models.AzureMonitorPrivateLinkScope, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param scopeName The name of the Azure Monitor PrivateLinkScope resource. + * @param azureMonitorPrivateLinkScopePayload Properties that need to be specified to create or + * update a Azure Monitor PrivateLinkScope. + * @param callback The callback + */ + createOrUpdate(resourceGroupName: string, scopeName: string, azureMonitorPrivateLinkScopePayload: Models.AzureMonitorPrivateLinkScope, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param scopeName The name of the Azure Monitor PrivateLinkScope resource. + * @param azureMonitorPrivateLinkScopePayload Properties that need to be specified to create or + * update a Azure Monitor PrivateLinkScope. + * @param options The optional parameters + * @param callback The callback + */ + createOrUpdate(resourceGroupName: string, scopeName: string, azureMonitorPrivateLinkScopePayload: Models.AzureMonitorPrivateLinkScope, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + createOrUpdate(resourceGroupName: string, scopeName: string, azureMonitorPrivateLinkScopePayload: Models.AzureMonitorPrivateLinkScope, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + scopeName, + azureMonitorPrivateLinkScopePayload, + options + }, + createOrUpdateOperationSpec, + callback) as Promise; + } + + /** + * Updates an existing PrivateLinkScope's tags. To update other fields use the CreateOrUpdate + * method. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param scopeName The name of the Azure Monitor PrivateLinkScope resource. + * @param [options] The optional parameters + * @returns Promise + */ + updateTags(resourceGroupName: string, scopeName: string, options?: Models.PrivateLinkScopesUpdateTagsOptionalParams): Promise; + /** + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param scopeName The name of the Azure Monitor PrivateLinkScope resource. + * @param callback The callback + */ + updateTags(resourceGroupName: string, scopeName: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param scopeName The name of the Azure Monitor PrivateLinkScope resource. + * @param options The optional parameters + * @param callback The callback + */ + updateTags(resourceGroupName: string, scopeName: string, options: Models.PrivateLinkScopesUpdateTagsOptionalParams, callback: msRest.ServiceCallback): void; + updateTags(resourceGroupName: string, scopeName: string, options?: Models.PrivateLinkScopesUpdateTagsOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + scopeName, + options + }, + updateTagsOperationSpec, + callback) as Promise; + } + + /** + * Deletes a Azure Monitor PrivateLinkScope. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param scopeName The name of the Azure Monitor PrivateLinkScope resource. + * @param [options] The optional parameters + * @returns Promise + */ + beginDeleteMethod(resourceGroupName: string, scopeName: string, options?: msRest.RequestOptionsBase): Promise { + return this.client.sendLRORequest( + { + resourceGroupName, + scopeName, + options + }, + beginDeleteMethodOperationSpec, + options); + } + + /** + * Gets a list of all Azure Monitor PrivateLinkScopes within a subscription. + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param [options] The optional parameters + * @returns Promise + */ + listNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param callback The callback + */ + listNext(nextPageLink: string, callback: msRest.ServiceCallback): void; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param options The optional parameters + * @param callback The callback + */ + listNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + nextPageLink, + options + }, + listNextOperationSpec, + callback) as Promise; + } + + /** + * Gets a list of Azure Monitor PrivateLinkScopes within a resource group. + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param [options] The optional parameters + * @returns Promise + */ + listByResourceGroupNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param callback The callback + */ + listByResourceGroupNext(nextPageLink: string, callback: msRest.ServiceCallback): void; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param options The optional parameters + * @param callback The callback + */ + listByResourceGroupNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listByResourceGroupNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + nextPageLink, + options + }, + listByResourceGroupNextOperationSpec, + callback) as Promise; + } +} + +// Operation Specifications +const serializer = new msRest.Serializer(Mappers); +const listOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/providers/microsoft.insights/privateLinkScopes", + urlParameters: [ + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion10 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.AzureMonitorPrivateLinkScopeListResult + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const listByResourceGroupOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/microsoft.insights/privateLinkScopes", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion10 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.AzureMonitorPrivateLinkScopeListResult + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const getOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/microsoft.insights/privateLinkScopes/{scopeName}", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.subscriptionId, + Parameters.scopeName + ], + queryParameters: [ + Parameters.apiVersion10 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.AzureMonitorPrivateLinkScope + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const createOrUpdateOperationSpec: msRest.OperationSpec = { + httpMethod: "PUT", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/microsoft.insights/privateLinkScopes/{scopeName}", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.subscriptionId, + Parameters.scopeName + ], + queryParameters: [ + Parameters.apiVersion10 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + requestBody: { + parameterPath: "azureMonitorPrivateLinkScopePayload", + mapper: { + ...Mappers.AzureMonitorPrivateLinkScope, + required: true + } + }, + responses: { + 200: { + bodyMapper: Mappers.AzureMonitorPrivateLinkScope + }, + 201: { + bodyMapper: Mappers.AzureMonitorPrivateLinkScope + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const updateTagsOperationSpec: msRest.OperationSpec = { + httpMethod: "PATCH", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/microsoft.insights/privateLinkScopes/{scopeName}", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.subscriptionId, + Parameters.scopeName + ], + queryParameters: [ + Parameters.apiVersion10 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + requestBody: { + parameterPath: { + tags: [ + "options", + "tags" + ] + }, + mapper: { + ...Mappers.TagsResource, + required: true + } + }, + responses: { + 200: { + bodyMapper: Mappers.AzureMonitorPrivateLinkScope + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const beginDeleteMethodOperationSpec: msRest.OperationSpec = { + httpMethod: "DELETE", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/microsoft.insights/privateLinkScopes/{scopeName}", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.subscriptionId, + Parameters.scopeName + ], + queryParameters: [ + Parameters.apiVersion10 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: {}, + 202: {}, + 204: {}, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const listNextOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + baseUrl: "https://management.azure.com", + path: "{nextLink}", + urlParameters: [ + Parameters.nextPageLink + ], + queryParameters: [ + Parameters.apiVersion10 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.AzureMonitorPrivateLinkScopeListResult + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const listByResourceGroupNextOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + baseUrl: "https://management.azure.com", + path: "{nextLink}", + urlParameters: [ + Parameters.nextPageLink + ], + queryParameters: [ + Parameters.apiVersion10 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.AzureMonitorPrivateLinkScopeListResult + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; diff --git a/sdk/monitor/arm-monitor/src/operations/scheduledQueryRules.ts b/sdk/monitor/arm-monitor/src/operations/scheduledQueryRules.ts index 2e49d3d94545..bc54cb834681 100644 --- a/sdk/monitor/arm-monitor/src/operations/scheduledQueryRules.ts +++ b/sdk/monitor/arm-monitor/src/operations/scheduledQueryRules.ts @@ -1,7 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is @@ -28,7 +27,7 @@ export class ScheduledQueryRules { /** * Creates or updates an log search rule. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param ruleName The name of the rule. * @param parameters The parameters of the rule to create or update. * @param [options] The optional parameters @@ -36,14 +35,14 @@ export class ScheduledQueryRules { */ createOrUpdate(resourceGroupName: string, ruleName: string, parameters: Models.LogSearchRuleResource, options?: msRest.RequestOptionsBase): Promise; /** - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param ruleName The name of the rule. * @param parameters The parameters of the rule to create or update. * @param callback The callback */ createOrUpdate(resourceGroupName: string, ruleName: string, parameters: Models.LogSearchRuleResource, callback: msRest.ServiceCallback): void; /** - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param ruleName The name of the rule. * @param parameters The parameters of the rule to create or update. * @param options The optional parameters @@ -64,20 +63,20 @@ export class ScheduledQueryRules { /** * Gets an Log Search rule - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param ruleName The name of the rule. * @param [options] The optional parameters * @returns Promise */ get(resourceGroupName: string, ruleName: string, options?: msRest.RequestOptionsBase): Promise; /** - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param ruleName The name of the rule. * @param callback The callback */ get(resourceGroupName: string, ruleName: string, callback: msRest.ServiceCallback): void; /** - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param ruleName The name of the rule. * @param options The optional parameters * @param callback The callback @@ -96,7 +95,7 @@ export class ScheduledQueryRules { /** * Update log search Rule. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param ruleName The name of the rule. * @param parameters The parameters of the rule to update. * @param [options] The optional parameters @@ -104,14 +103,14 @@ export class ScheduledQueryRules { */ update(resourceGroupName: string, ruleName: string, parameters: Models.LogSearchRuleResourcePatch, options?: msRest.RequestOptionsBase): Promise; /** - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param ruleName The name of the rule. * @param parameters The parameters of the rule to update. * @param callback The callback */ update(resourceGroupName: string, ruleName: string, parameters: Models.LogSearchRuleResourcePatch, callback: msRest.ServiceCallback): void; /** - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param ruleName The name of the rule. * @param parameters The parameters of the rule to update. * @param options The optional parameters @@ -132,20 +131,20 @@ export class ScheduledQueryRules { /** * Deletes a Log Search rule - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param ruleName The name of the rule. * @param [options] The optional parameters * @returns Promise */ deleteMethod(resourceGroupName: string, ruleName: string, options?: msRest.RequestOptionsBase): Promise; /** - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param ruleName The name of the rule. * @param callback The callback */ deleteMethod(resourceGroupName: string, ruleName: string, callback: msRest.ServiceCallback): void; /** - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param ruleName The name of the rule. * @param options The optional parameters * @param callback The callback @@ -188,18 +187,18 @@ export class ScheduledQueryRules { /** * List the Log Search rules within a resource group. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param [options] The optional parameters * @returns Promise */ listByResourceGroup(resourceGroupName: string, options?: Models.ScheduledQueryRulesListByResourceGroupOptionalParams): Promise; /** - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param callback The callback */ listByResourceGroup(resourceGroupName: string, callback: msRest.ServiceCallback): void; /** - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param options The optional parameters * @param callback The callback */ @@ -219,14 +218,14 @@ export class ScheduledQueryRules { const serializer = new msRest.Serializer(Mappers); const createOrUpdateOperationSpec: msRest.OperationSpec = { httpMethod: "PUT", - path: "subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/microsoft.insights/scheduledQueryRules/{ruleName}", + path: "subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.Insights/scheduledQueryRules/{ruleName}", urlParameters: [ Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.ruleName ], queryParameters: [ - Parameters.apiVersion9 + Parameters.apiVersion7 ], headerParameters: [ Parameters.acceptLanguage @@ -246,7 +245,7 @@ const createOrUpdateOperationSpec: msRest.OperationSpec = { bodyMapper: Mappers.LogSearchRuleResource }, default: { - bodyMapper: Mappers.ErrorResponse + bodyMapper: Mappers.ErrorContract } }, serializer @@ -254,14 +253,14 @@ const createOrUpdateOperationSpec: msRest.OperationSpec = { const getOperationSpec: msRest.OperationSpec = { httpMethod: "GET", - path: "subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/microsoft.insights/scheduledQueryRules/{ruleName}", + path: "subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.Insights/scheduledQueryRules/{ruleName}", urlParameters: [ Parameters.resourceGroupName, Parameters.ruleName, Parameters.subscriptionId ], queryParameters: [ - Parameters.apiVersion9 + Parameters.apiVersion7 ], headerParameters: [ Parameters.acceptLanguage @@ -271,7 +270,7 @@ const getOperationSpec: msRest.OperationSpec = { bodyMapper: Mappers.LogSearchRuleResource }, default: { - bodyMapper: Mappers.ErrorResponse + bodyMapper: Mappers.ErrorContract } }, serializer @@ -279,14 +278,14 @@ const getOperationSpec: msRest.OperationSpec = { const updateOperationSpec: msRest.OperationSpec = { httpMethod: "PATCH", - path: "subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/microsoft.insights/scheduledQueryRules/{ruleName}", + path: "subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.Insights/scheduledQueryRules/{ruleName}", urlParameters: [ Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.ruleName ], queryParameters: [ - Parameters.apiVersion9 + Parameters.apiVersion7 ], headerParameters: [ Parameters.acceptLanguage @@ -303,7 +302,7 @@ const updateOperationSpec: msRest.OperationSpec = { bodyMapper: Mappers.LogSearchRuleResource }, default: { - bodyMapper: Mappers.ErrorResponse + bodyMapper: Mappers.ErrorContract } }, serializer @@ -311,14 +310,14 @@ const updateOperationSpec: msRest.OperationSpec = { const deleteMethodOperationSpec: msRest.OperationSpec = { httpMethod: "DELETE", - path: "subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/microsoft.insights/scheduledQueryRules/{ruleName}", + path: "subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.Insights/scheduledQueryRules/{ruleName}", urlParameters: [ Parameters.resourceGroupName, Parameters.ruleName, Parameters.subscriptionId ], queryParameters: [ - Parameters.apiVersion9 + Parameters.apiVersion7 ], headerParameters: [ Parameters.acceptLanguage @@ -327,7 +326,7 @@ const deleteMethodOperationSpec: msRest.OperationSpec = { 200: {}, 204: {}, default: { - bodyMapper: Mappers.ErrorResponse + bodyMapper: Mappers.ErrorContract } }, serializer @@ -335,12 +334,12 @@ const deleteMethodOperationSpec: msRest.OperationSpec = { const listBySubscriptionOperationSpec: msRest.OperationSpec = { httpMethod: "GET", - path: "subscriptions/{subscriptionId}/providers/microsoft.insights/scheduledQueryRules", + path: "subscriptions/{subscriptionId}/providers/Microsoft.Insights/scheduledQueryRules", urlParameters: [ Parameters.subscriptionId ], queryParameters: [ - Parameters.apiVersion9, + Parameters.apiVersion7, Parameters.filter1 ], headerParameters: [ @@ -351,7 +350,7 @@ const listBySubscriptionOperationSpec: msRest.OperationSpec = { bodyMapper: Mappers.LogSearchRuleResourceCollection }, default: { - bodyMapper: Mappers.ErrorResponse + bodyMapper: Mappers.ErrorContract } }, serializer @@ -359,13 +358,13 @@ const listBySubscriptionOperationSpec: msRest.OperationSpec = { const listByResourceGroupOperationSpec: msRest.OperationSpec = { httpMethod: "GET", - path: "subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/microsoft.insights/scheduledQueryRules", + path: "subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.Insights/scheduledQueryRules", urlParameters: [ Parameters.resourceGroupName, Parameters.subscriptionId ], queryParameters: [ - Parameters.apiVersion9, + Parameters.apiVersion7, Parameters.filter1 ], headerParameters: [ @@ -376,7 +375,7 @@ const listByResourceGroupOperationSpec: msRest.OperationSpec = { bodyMapper: Mappers.LogSearchRuleResourceCollection }, default: { - bodyMapper: Mappers.ErrorResponse + bodyMapper: Mappers.ErrorContract } }, serializer diff --git a/sdk/monitor/arm-monitor/src/operations/tenantActivityLogs.ts b/sdk/monitor/arm-monitor/src/operations/tenantActivityLogs.ts index 330e604f77f1..b29459e14ee0 100644 --- a/sdk/monitor/arm-monitor/src/operations/tenantActivityLogs.ts +++ b/sdk/monitor/arm-monitor/src/operations/tenantActivityLogs.ts @@ -1,7 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is @@ -64,7 +63,7 @@ export class TenantActivityLogs { * @param [options] The optional parameters * @returns Promise */ - listNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; + listNext(nextPageLink: string, options?: Models.TenantActivityLogsListNextOptionalParams): Promise; /** * @param nextPageLink The NextLink from the previous successful call to List operation. * @param callback The callback @@ -75,8 +74,8 @@ export class TenantActivityLogs { * @param options The optional parameters * @param callback The callback */ - listNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + listNext(nextPageLink: string, options: Models.TenantActivityLogsListNextOptionalParams, callback: msRest.ServiceCallback): void; + listNext(nextPageLink: string, options?: Models.TenantActivityLogsListNextOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { nextPageLink, @@ -91,7 +90,7 @@ export class TenantActivityLogs { const serializer = new msRest.Serializer(Mappers); const listOperationSpec: msRest.OperationSpec = { httpMethod: "GET", - path: "providers/microsoft.insights/eventtypes/management/values", + path: "providers/Microsoft.Insights/eventtypes/management/values", queryParameters: [ Parameters.apiVersion0, Parameters.filter1, @@ -118,6 +117,11 @@ const listNextOperationSpec: msRest.OperationSpec = { urlParameters: [ Parameters.nextPageLink ], + queryParameters: [ + Parameters.apiVersion0, + Parameters.filter1, + Parameters.select + ], headerParameters: [ Parameters.acceptLanguage ], diff --git a/sdk/monitor/arm-monitor/src/operations/vMInsights.ts b/sdk/monitor/arm-monitor/src/operations/vMInsights.ts index 1b0ecbdbe27e..985c1674384b 100644 --- a/sdk/monitor/arm-monitor/src/operations/vMInsights.ts +++ b/sdk/monitor/arm-monitor/src/operations/vMInsights.ts @@ -1,7 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is @@ -64,10 +63,10 @@ const getOnboardingStatusOperationSpec: msRest.OperationSpec = { httpMethod: "GET", path: "{resourceUri}/providers/Microsoft.Insights/vmInsightsOnboardingStatuses/default", urlParameters: [ - Parameters.resourceUri + Parameters.resourceUri1 ], queryParameters: [ - Parameters.apiVersion11 + Parameters.apiVersion9 ], headerParameters: [ Parameters.acceptLanguage