From 6ea1d2974498a6acd0d12b137b467569428b8893 Mon Sep 17 00:00:00 2001 From: SDKAuto Date: Thu, 10 Jun 2021 20:44:06 +0000 Subject: [PATCH] CodeGen from PR 14082 in Azure/azure-rest-api-specs Merge edb17ca720dadd120c770e59d3f797de60c154a9 into 297c0866ffaca818bd42ba20ea5d22f850aa4e18 --- sdk/monitor/arm-monitor/LICENSE.txt | 2 +- sdk/monitor/arm-monitor/README.md | 105 +- sdk/monitor/arm-monitor/package.json | 7 +- sdk/monitor/arm-monitor/rollup.config.js | 4 +- .../src/models/actionGroupsMappers.ts | 16 +- .../src/models/activityLogAlertsMappers.ts | 16 +- .../src/models/activityLogsMappers.ts | 6 +- .../src/models/alertRuleIncidentsMappers.ts | 6 +- .../src/models/alertRulesMappers.ts | 17 +- .../src/models/autoscaleSettingsMappers.ts | 16 +- .../src/models/baselinesMappers.ts | 6 +- ...nosticSettingsCategoryOperationsMappers.ts | 16 +- .../diagnosticSettingsOperationsMappers.ts | 16 +- .../src/models/eventCategoriesMappers.ts | 6 +- sdk/monitor/arm-monitor/src/models/index.ts | 1661 +++++++++++++---- .../src/models/logProfilesMappers.ts | 16 +- sdk/monitor/arm-monitor/src/models/mappers.ts | 1177 ++++++++---- .../src/models/metricAlertsMappers.ts | 17 +- .../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 | 106 +- .../privateEndpointConnectionsMappers.ts | 98 + .../src/models/privateLinkResourcesMappers.ts | 98 + .../privateLinkScopeOperationStatusMappers.ts | 16 + .../privateLinkScopedResourcesMappers.ts | 98 + .../src/models/privateLinkScopesMappers.ts | 99 + .../src/models/scheduledQueryRulesMappers.ts | 17 +- .../src/models/tenantActivityLogsMappers.ts | 6 +- .../src/models/vMInsightsMappers.ts | 14 +- .../src/monitorManagementClient.ts | 29 +- .../src/monitorManagementClientContext.ts | 27 +- .../src/operations/actionGroups.ts | 5 +- .../src/operations/activityLogAlerts.ts | 5 +- .../src/operations/activityLogs.ts | 61 +- .../src/operations/alertRuleIncidents.ts | 5 +- .../arm-monitor/src/operations/alertRules.ts | 38 +- .../src/operations/autoscaleSettings.ts | 11 +- .../arm-monitor/src/operations/baselines.ts | 9 +- .../diagnosticSettingsCategoryOperations.ts | 5 +- .../diagnosticSettingsOperations.ts | 5 +- .../src/operations/eventCategories.ts | 5 +- .../arm-monitor/src/operations/index.ts | 11 +- .../arm-monitor/src/operations/logProfiles.ts | 5 +- .../src/operations/metricAlerts.ts | 19 +- .../src/operations/metricAlertsStatus.ts | 9 +- .../src/operations/metricBaseline.ts | 174 -- .../src/operations/metricDefinitions.ts | 5 +- .../src/operations/metricNamespaces.ts | 7 +- .../arm-monitor/src/operations/metrics.ts | 5 +- .../arm-monitor/src/operations/operations.ts | 5 +- .../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 | 29 +- .../src/operations/tenantActivityLogs.ts | 16 +- .../arm-monitor/src/operations/vMInsights.ts | 7 +- 62 files changed, 4472 insertions(+), 1175 deletions(-) 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 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 04373a170952..7ca3a98241aa 100644 --- a/sdk/monitor/arm-monitor/README.md +++ b/sdk/monitor/arm-monitor/README.md @@ -1,92 +1,99 @@ ## Azure MonitorManagementClient SDK for JavaScript -This package contains an isomorphic SDK for MonitorManagementClient. +This package contains an isomorphic SDK (runs both in node.js and in browsers) for MonitorManagementClient. ### Currently supported environments -- Node.js version 6.x.x or higher +- Node.js version 8.x.x or higher - Browser JavaScript -### How to Install +### Prerequisites +You must have an [Azure subscription](https://azure.microsoft.com/free/). + +### How to install + +To use this SDK in your project, you will need to install two packages. +- `@azure/arm-monitor` that contains the client. +- `@azure/identity` that provides different mechanisms for the client to authenticate your requests using Azure Active Directory. + +Install both packages using the below command: ```bash -npm install @azure/arm-monitor +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. ### How to use -#### nodejs - Authentication, client creation and listByResourceGroup autoscaleSettings as an example written in TypeScript. +- If you are writing a client side browser application, + - Follow the instructions in the section on Authenticating client side browser applications in [Azure Identity examples](https://aka.ms/azsdk/js/identity/examples) to register your application in the Microsoft identity platform and set the right permissions. + - Copy the client ID and tenant ID from the Overview section of your app registration in Azure portal and use it in the browser sample below. +- If you are writing a server side application, + - [Select a credential from `@azure/identity` based on the authentication method of your choice](https://aka.ms/azsdk/js/identity/examples) + - Complete the set up steps required by the credential if any. + - Use the credential you picked in the place of `DefaultAzureCredential` in the Node.js sample below. -##### Install @azure/ms-rest-nodeauth - -- Please install minimum version of `"@azure/ms-rest-nodeauth": "^3.0.0"`. -```bash -npm install @azure/ms-rest-nodeauth@"^3.0.0" -``` +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 -```typescript -import * as msRest from "@azure/ms-rest-js"; -import * as msRestAzure from "@azure/ms-rest-azure-js"; -import * as msRestNodeAuth from "@azure/ms-rest-nodeauth"; -import { MonitorManagementClient, MonitorManagementModels, MonitorManagementMappers } from "@azure/arm-monitor"; +```javascript +const { DefaultAzureCredential } = require("@azure/identity"); +const { MonitorManagementClient } = require("@azure/arm-monitor"); const subscriptionId = process.env["AZURE_SUBSCRIPTION_ID"]; -msRestNodeAuth.interactiveLogin().then((creds) => { - const client = new MonitorManagementClient(creds, subscriptionId); - const resourceGroupName = "testresourceGroupName"; - client.autoscaleSettings.listByResourceGroup(resourceGroupName).then((result) => { - console.log("The result is:"); - console.log(result); - }); +// Use `DefaultAzureCredential` or any other credential of your choice based on https://aka.ms/azsdk/js/identity/examples +// Please note that you can also use credentials from the `@azure/ms-rest-nodeauth` package instead. +const creds = new DefaultAzureCredential(); +const client = new MonitorManagementClient(creds, subscriptionId); +const resourceGroupName = "testresourceGroupName"; +client.autoscaleSettings.listByResourceGroup(resourceGroupName).then((result) => { + console.log("The result is:"); + console.log(result); }).catch((err) => { + console.log("An error occurred:"); console.error(err); }); ``` -#### browser - Authentication, client creation and listByResourceGroup autoscaleSettings as an example written in JavaScript. +#### browser - Authentication, client creation, and listByResourceGroup autoscaleSettings as an example written in JavaScript. -##### Install @azure/ms-rest-browserauth - -```bash -npm install @azure/ms-rest-browserauth -``` +In browser applications, we recommend using the `InteractiveBrowserCredential` that interactively authenticates using the default system browser. + - See [Single-page application: App registration guide](https://docs.microsoft.com/azure/active-directory/develop/scenario-spa-app-registration) to configure your app registration for the browser. + - Note down the client Id from the previous step and use it in the browser sample below. ##### Sample code -See https://github.com/Azure/ms-rest-browserauth to learn how to authenticate to Azure in the browser. - - index.html + ```html @azure/arm-monitor sample - - + @@ -98,4 +105,4 @@ See https://github.com/Azure/ms-rest-browserauth to learn how to authenticate to - [Microsoft Azure SDK for Javascript](https://github.com/Azure/azure-sdk-for-js) -![Impressions](https://azure-sdk-impressions.azurewebsites.net/api/impressions/azure-sdk-for-js%2Fsdk%2Fmonitor%2Farm-monitor%2FREADME.png) +![Impressions](https://azure-sdk-impressions.azurewebsites.net/api/impressions/azure-sdk-for-js/sdk/monitor/arm-monitor/README.png) diff --git a/sdk/monitor/arm-monitor/package.json b/sdk/monitor/arm-monitor/package.json index 3a0e43d61f12..b999da194b00 100644 --- a/sdk/monitor/arm-monitor/package.json +++ b/sdk/monitor/arm-monitor/package.json @@ -4,8 +4,9 @@ "description": "MonitorManagementClient Library with typescript type definitions for node.js and browser.", "version": "6.0.0", "dependencies": { - "@azure/ms-rest-azure-js": "^2.0.1", - "@azure/ms-rest-js": "^2.0.4", + "@azure/ms-rest-azure-js": "^2.1.0", + "@azure/ms-rest-js": "^2.2.0", + "@azure/core-auth": "^1.1.4", "tslib": "^1.10.0" }, "keywords": [ @@ -20,7 +21,7 @@ "module": "./esm/monitorManagementClient.js", "types": "./esm/monitorManagementClient.d.ts", "devDependencies": { - "typescript": "^3.5.3", + "typescript": "^3.6.0", "rollup": "^1.18.0", "rollup-plugin-node-resolve": "^5.2.0", "rollup-plugin-sourcemaps": "^0.4.2", 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..ce142453c09e 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,6 +27,8 @@ export { AzNsActionGroup, AzureAppPushReceiver, AzureFunctionReceiver, + AzureMonitorPrivateLinkScope, + AzureResource, BaseResource, Criteria, DataContainer, @@ -38,7 +40,9 @@ export { EmailNotification, EmailReceiver, EnableRequest, + ErrorAdditionalInfo, ErrorResponse, + ErrorResponseCommon, ItsmReceiver, LocationThresholdRuleCondition, LogicAppReceiver, @@ -59,6 +63,11 @@ export { MetricSettings, MetricTrigger, MultiMetricCriteria, + PrivateEndpointConnection, + PrivateEndpointProperty, + PrivateLinkResource, + PrivateLinkScopesResource, + PrivateLinkServiceConnectionStateProperty, ProxyOnlyResource, ProxyResource, Recurrence, @@ -76,7 +85,9 @@ export { ScaleAction, ScaleCapacity, ScaleRule, + ScaleRuleMetricDimension, Schedule, + ScopedResource, SmsReceiver, Source, ThresholdRuleCondition, @@ -86,5 +97,6 @@ export { VoiceReceiver, WebhookNotification, WebhookReceiver, + WebtestLocationAvailabilityCriteria, 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..d59ac79938e9 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,6 +27,8 @@ export { AzNsActionGroup, AzureAppPushReceiver, AzureFunctionReceiver, + AzureMonitorPrivateLinkScope, + AzureResource, BaseResource, Criteria, DataContainer, @@ -37,7 +39,9 @@ export { DynamicThresholdFailingPeriods, EmailNotification, EmailReceiver, + ErrorAdditionalInfo, ErrorResponse, + ErrorResponseCommon, ItsmReceiver, LocationThresholdRuleCondition, LogicAppReceiver, @@ -58,6 +62,11 @@ export { MetricSettings, MetricTrigger, MultiMetricCriteria, + PrivateEndpointConnection, + PrivateEndpointProperty, + PrivateLinkResource, + PrivateLinkScopesResource, + PrivateLinkServiceConnectionStateProperty, ProxyOnlyResource, ProxyResource, Recurrence, @@ -75,7 +84,9 @@ export { ScaleAction, ScaleCapacity, ScaleRule, + ScaleRuleMetricDimension, Schedule, + ScopedResource, SmsReceiver, Source, ThresholdRuleCondition, @@ -85,5 +96,6 @@ export { VoiceReceiver, WebhookNotification, WebhookReceiver, + WebtestLocationAvailabilityCriteria, 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..2c3ec68251c7 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,8 +27,9 @@ export { AzNsActionGroup, AzureAppPushReceiver, AzureFunctionReceiver, + AzureMonitorPrivateLinkScope, + AzureResource, BaseResource, - CloudError, Criteria, DataContainer, DiagnosticSettingsCategoryResource, @@ -38,7 +39,9 @@ export { DynamicThresholdFailingPeriods, EmailNotification, EmailReceiver, + ErrorAdditionalInfo, ErrorResponse, + ErrorResponseCommon, ItsmReceiver, LocationThresholdRuleCondition, LogicAppReceiver, @@ -59,6 +62,11 @@ export { MetricSettings, MetricTrigger, MultiMetricCriteria, + PrivateEndpointConnection, + PrivateEndpointProperty, + PrivateLinkResource, + PrivateLinkScopesResource, + PrivateLinkServiceConnectionStateProperty, ProxyOnlyResource, ProxyResource, Recurrence, @@ -76,7 +84,9 @@ export { ScaleAction, ScaleCapacity, ScaleRule, + ScaleRuleMetricDimension, Schedule, + ScopedResource, SmsReceiver, Source, ThresholdRuleCondition, @@ -86,5 +96,6 @@ export { VoiceReceiver, WebhookNotification, WebhookReceiver, + WebtestLocationAvailabilityCriteria, 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..5ef5544b2cc8 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,6 +27,8 @@ export { AzNsActionGroup, AzureAppPushReceiver, AzureFunctionReceiver, + AzureMonitorPrivateLinkScope, + AzureResource, BaseResource, Criteria, DataContainer, @@ -37,7 +39,9 @@ export { DynamicThresholdFailingPeriods, EmailNotification, EmailReceiver, + ErrorAdditionalInfo, ErrorResponse, + ErrorResponseCommon, ItsmReceiver, LocationThresholdRuleCondition, LogicAppReceiver, @@ -58,6 +62,11 @@ export { MetricSettings, MetricTrigger, MultiMetricCriteria, + PrivateEndpointConnection, + PrivateEndpointProperty, + PrivateLinkResource, + PrivateLinkScopesResource, + PrivateLinkServiceConnectionStateProperty, ProxyOnlyResource, ProxyResource, Recurrence, @@ -75,7 +84,9 @@ export { ScaleAction, ScaleCapacity, ScaleRule, + ScaleRuleMetricDimension, Schedule, + ScopedResource, SmsReceiver, Source, ThresholdRuleCondition, @@ -85,5 +96,6 @@ export { VoiceReceiver, WebhookNotification, WebhookReceiver, + WebtestLocationAvailabilityCriteria, 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/diagnosticSettingsCategoryOperationsMappers.ts b/sdk/monitor/arm-monitor/src/models/diagnosticSettingsCategoryOperationsMappers.ts index 7402d3661f02..c2c21e686d01 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,6 +25,8 @@ export { AzNsActionGroup, AzureAppPushReceiver, AzureFunctionReceiver, + AzureMonitorPrivateLinkScope, + AzureResource, BaseResource, Criteria, DataContainer, @@ -36,7 +38,9 @@ export { DynamicThresholdFailingPeriods, EmailNotification, EmailReceiver, + ErrorAdditionalInfo, ErrorResponse, + ErrorResponseCommon, ItsmReceiver, LocationThresholdRuleCondition, LogicAppReceiver, @@ -57,6 +61,11 @@ export { MetricSettings, MetricTrigger, MultiMetricCriteria, + PrivateEndpointConnection, + PrivateEndpointProperty, + PrivateLinkResource, + PrivateLinkScopesResource, + PrivateLinkServiceConnectionStateProperty, ProxyOnlyResource, ProxyResource, Recurrence, @@ -74,7 +83,9 @@ export { ScaleAction, ScaleCapacity, ScaleRule, + ScaleRuleMetricDimension, Schedule, + ScopedResource, SmsReceiver, Source, ThresholdRuleCondition, @@ -84,5 +95,6 @@ export { VoiceReceiver, WebhookNotification, WebhookReceiver, + WebtestLocationAvailabilityCriteria, 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..bff78221a5c3 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,6 +25,8 @@ export { AzNsActionGroup, AzureAppPushReceiver, AzureFunctionReceiver, + AzureMonitorPrivateLinkScope, + AzureResource, BaseResource, Criteria, DataContainer, @@ -36,7 +38,9 @@ export { DynamicThresholdFailingPeriods, EmailNotification, EmailReceiver, + ErrorAdditionalInfo, ErrorResponse, + ErrorResponseCommon, ItsmReceiver, LocationThresholdRuleCondition, LogicAppReceiver, @@ -57,6 +61,11 @@ export { MetricSettings, MetricTrigger, MultiMetricCriteria, + PrivateEndpointConnection, + PrivateEndpointProperty, + PrivateLinkResource, + PrivateLinkScopesResource, + PrivateLinkServiceConnectionStateProperty, ProxyOnlyResource, ProxyResource, Recurrence, @@ -74,7 +83,9 @@ export { ScaleAction, ScaleCapacity, ScaleRule, + ScaleRuleMetricDimension, Schedule, + ScopedResource, SmsReceiver, Source, ThresholdRuleCondition, @@ -84,5 +95,6 @@ export { VoiceReceiver, WebhookNotification, WebhookReceiver, + WebtestLocationAvailabilityCriteria, 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..89e40c6d24c7 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,6 +104,10 @@ 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. */ @@ -104,6 +144,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; } /** @@ -512,6 +561,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 +609,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 +652,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 +873,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 +885,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 +918,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 +930,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 +1165,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 +1218,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 +1267,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 +1361,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 +1403,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 +1430,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 +1449,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. */ @@ -1724,12 +1869,20 @@ export interface MetricDefinition { * the name and the display name of the metric, i.e. it is a localizable string. */ name?: LocalizableString; + /** + * Detailed description of this metric. + */ + displayDescription?: string; + /** + * Custom category name for this metric. + */ + category?: 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 primary aggregation type value defining how to use the values for display. Possible values * include: 'None', 'Average', 'Count', 'Minimum', 'Maximum', 'Total' @@ -1829,12 +1982,20 @@ export interface Metric { * the name and the display name of the metric, i.e. it is localizable string. */ name: LocalizableString; + /** + * Detailed description of this metric. + */ + displayDescription: string; + /** + * 'Success' or the error details on query failures for this metric. + */ + errorCode?: 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 +2007,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 +2023,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; /** @@ -1875,123 +2036,6 @@ export interface Response { value: Metric[]; } -/** - * Represents a baseline metadata value. - */ -export interface BaselineMetadataValue { - /** - * the name of the metadata. - */ - name?: LocalizableString; - /** - * the value of the metadata. - */ - value?: string; -} - -/** - * The baseline values for a single sensitivity value. - */ -export interface Baseline { - /** - * the sensitivity of the baseline. Possible values include: 'Low', 'Medium', 'High' - */ - sensitivity: Sensitivity; - /** - * The low thresholds of the baseline. - */ - lowThresholds: number[]; - /** - * The high thresholds of the baseline. - */ - highThresholds: number[]; -} - -/** - * The response to a baseline query. - */ -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; - /** - * the resource type of the baseline resource. - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly type?: 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.** - */ - readonly name?: LocalizableString; - /** - * 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. - */ - timespan?: 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. - */ - interval?: string; - /** - * The aggregation type of the metric. - */ - aggregation?: string; - /** - * the array of timestamps of the baselines. - */ - timestamps?: Date[] | string[]; - /** - * the baseline values for each sensitivity. - */ - 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. */ @@ -2061,7 +2105,7 @@ export interface TimeSeriesBaseline { /** * The baseline metadata values. */ - metadata?: BaselineMetadata[]; + metadataValues?: BaselineMetadata[]; } /** @@ -2111,15 +2155,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 +2187,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 +2199,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 +2211,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 +2224,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 +2237,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 +2255,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 +2271,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 +2290,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 +2305,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 +2388,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 +2428,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 +2466,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 +2558,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 +2649,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 +2723,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 +2733,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 +2748,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 +2848,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 +2873,7 @@ export interface MetricNamespaceName { */ export interface MetricNamespace { /** - * The ID of the metricNamespace. + * The ID of the metric namespace. */ id?: string; /** @@ -2753,9 +2881,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,16 +2995,230 @@ 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.** + */ + readonly type?: string; + /** + * The additional info. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly info?: any; +} + +/** + * The resource management error response. + */ +export interface ErrorResponseCommon extends ErrorResponse { + /** + * The error details. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly details?: ErrorResponseCommon[]; + /** + * The error additional info. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly additionalInfo?: ErrorAdditionalInfo[]; +} + +/** + * The status of operation. + */ +export interface OperationStatus { + /** + * The operation Id. + */ + id?: string; + /** + * The operation name. + */ + name?: string; + /** + * Start time of the job in standard ISO8601 format. + */ + startTime?: Date; + /** + * End time of the job in standard ISO8601 format. + */ + endTime?: Date; + /** + * The status of the operation. + */ + status?: string; + /** + * The error detail of the operation if any. + */ + error?: ErrorResponseCommon; +} + +/** + * An azure resource object + */ +export interface PrivateLinkScopesResource 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; + /** + * Resource location + */ + location: string; + /** + * Resource tags + */ + tags?: { [propertyName: string]: string }; +} + +/** + * A container holding only the Tags for a resource, allowing the user to update the tags on a + * PrivateLinkScope instance. + */ +export interface TagsResource { + /** + * Resource tags + */ + tags?: { [propertyName: string]: string }; +} + +/** + * Private endpoint which the connection belongs to. + */ +export interface PrivateEndpointProperty { + /** + * Resource id of the private endpoint. + */ + id?: string; +} + +/** + * State of the private endpoint connection. + */ +export interface PrivateLinkServiceConnectionStateProperty { + /** + * The private link service connection status. + */ + status: string; + /** + * The private link service connection description. + */ + description: string; + /** + * The actions required for private link service connection. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly actionsRequired?: string; +} + +/** + * A private endpoint connection + */ +export interface PrivateEndpointConnection extends ProxyResource { + /** + * Private endpoint which the connection belongs to. + */ + privateEndpoint?: PrivateEndpointProperty; + /** + * Connection state of the private endpoint connection. + */ + privateLinkServiceConnectionState?: PrivateLinkServiceConnectionStateProperty; + /** + * State of the private endpoint connection. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly provisioningState?: string; +} + +/** + * An Azure Monitor PrivateLinkScope definition. + */ +export interface AzureMonitorPrivateLinkScope extends PrivateLinkScopesResource { + /** + * 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.** + */ + readonly provisioningState?: string; + /** + * List of private endpoint connections. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly privateEndpointConnections?: PrivateEndpointConnection[]; +} + +/** + * A private link resource + */ +export interface PrivateLinkResource extends ProxyResource { + /** + * The private link resource group id. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + 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[]; +} + +/** + * A private link scoped resource + */ +export interface ScopedResource extends ProxyResource { + /** + * The resource id of the scoped Azure monitor resource. + */ + 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. + */ +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; } @@ -2908,6 +3254,37 @@ export interface TenantActivityLogsListOptionalParams extends msRest.RequestOpti 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. */ @@ -2932,7 +3309,8 @@ export interface MetricsListOptionalParams extends msRest.RequestOptionsBase { */ interval?: string; /** - * The names of the metrics (comma separated) to retrieve. + * 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; /** @@ -2952,14 +3330,18 @@ export interface MetricsListOptionalParams extends msRest.RequestOptionsBase { */ 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 - * ‘*’**. + * 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; /** @@ -2973,40 +3355,13 @@ export interface MetricsListOptionalParams extends msRest.RequestOptionsBase { metricnamespace?: string; } -/** - * Optional Parameters. - */ -export interface MetricBaselineGetOptionalParams 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 aggregation type of the metric to retrieve the baseline for. - */ - aggregation?: string; - /** - * The list of sensitivities (comma separated) to retrieve. - */ - sensitivities?: 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 BaselinesListOptionalParams extends msRest.RequestOptionsBase { /** - * The names of the metrics (comma separated) to retrieve. + * 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; /** @@ -3031,14 +3386,18 @@ export interface BaselinesListOptionalParams extends msRest.RequestOptionsBase { */ 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 - * ‘*’**. + * 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; /** @@ -3080,6 +3439,36 @@ export interface MetricNamespacesListOptionalParams extends msRest.RequestOption 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; +} + /** * An interface representing MonitorManagementClientOptions. */ @@ -3209,20 +3598,72 @@ export interface MetricNamespaceCollection extends Array { } /** - * Defines values for MetricStatisticType. - * Possible values include: 'Average', 'Min', 'Max', 'Sum' - * @readonly - * @enum {string} + * @interface + * Describes the list of Azure Monitor PrivateLinkScope resources. + * @extends Array */ -export type MetricStatisticType = 'Average' | 'Min' | 'Max' | 'Sum'; +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; +} /** - * Defines values for TimeAggregationType. - * Possible values include: 'Average', 'Minimum', 'Maximum', 'Total', 'Count', 'Last' - * @readonly - * @enum {string} + * @interface + * A list of private link resources + * @extends Array */ -export type TimeAggregationType = 'Average' | 'Minimum' | 'Maximum' | 'Total' | 'Count' | 'Last'; +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; +} + +/** + * 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. @@ -3233,6 +3674,14 @@ export type TimeAggregationType = 'Average' | 'Minimum' | 'Maximum' | 'Total' | */ 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' @@ -3298,14 +3747,14 @@ export type ReceiverStatus = 'NotSpecified' | 'Enabled' | 'Disabled'; export type EventLevel = 'Critical' | 'Error' | 'Warning' | 'Informational' | 'Verbose'; /** - * Defines values for Unit. + * 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 Unit = 'Count' | 'Bytes' | 'Seconds' | 'CountPerSecond' | 'BytesPerSecond' | 'Percent' | 'MilliSeconds' | 'ByteSeconds' | 'Unspecified' | 'Cores' | 'MilliCores' | 'NanoCores' | 'BitsPerSecond'; +export type MetricUnit = 'Count' | 'Bytes' | 'Seconds' | 'CountPerSecond' | 'BytesPerSecond' | 'Percent' | 'MilliSeconds' | 'ByteSeconds' | 'Unspecified' | 'Cores' | 'MilliCores' | 'NanoCores' | 'BitsPerSecond'; /** * Defines values for AggregationType. @@ -3316,20 +3765,45 @@ export type Unit = 'Count' | 'Bytes' | 'Seconds' | 'CountPerSecond' | 'BytesPerS export type AggregationType = 'None' | 'Average' | 'Count' | 'Minimum' | 'Maximum' | 'Total'; /** - * Defines values for Sensitivity. + * Defines values for BaselineSensitivity. * Possible values include: 'Low', 'Medium', 'High' * @readonly * @enum {string} */ -export type Sensitivity = 'Low' | 'Medium' | 'High'; +export type BaselineSensitivity = 'Low' | 'Medium' | 'High'; /** - * Defines values for BaselineSensitivity. + * 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 BaselineSensitivity = 'Low' | 'Medium' | 'High'; +export type DynamicThresholdSensitivity = 'Low' | 'Medium' | 'High'; /** * Defines values for Enabled. @@ -3357,11 +3831,12 @@ export type QueryType = 'ResultCount'; /** * Defines values for ConditionalOperator. - * Possible values include: 'GreaterThan', 'LessThan', 'Equal' + * Possible values include: 'GreaterThanOrEqual', 'LessThanOrEqual', 'GreaterThan', 'LessThan', + * 'Equal' * @readonly * @enum {string} */ -export type ConditionalOperator = 'GreaterThan' | 'LessThan' | 'Equal'; +export type ConditionalOperator = 'GreaterThanOrEqual' | 'LessThanOrEqual' | 'GreaterThan' | 'LessThan' | 'Equal'; /** * Defines values for MetricTriggerType. @@ -3379,6 +3854,14 @@ export type MetricTriggerType = 'Consecutive' | 'Total'; */ 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' @@ -3466,7 +3949,387 @@ export type AutoscaleSettingsGetResponse = AutoscaleSettingResource & { /** * Contains response data for the update operation. */ -export type AutoscaleSettingsUpdateResponse = AutoscaleSettingResource & { +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. */ @@ -3479,14 +4342,14 @@ export type AutoscaleSettingsUpdateResponse = AutoscaleSettingResource & { /** * The response body as parsed JSON or XML */ - parsedBody: AutoscaleSettingResource; + parsedBody: DiagnosticSettingsCategoryResource; }; }; /** - * Contains response data for the listBySubscription operation. + * Contains response data for the list operation. */ -export type AutoscaleSettingsListBySubscriptionResponse = AutoscaleSettingResourceCollection & { +export type DiagnosticSettingsCategoryListResponse = DiagnosticSettingsCategoryResourceCollection & { /** * The underlying HTTP response. */ @@ -3499,14 +4362,14 @@ export type AutoscaleSettingsListBySubscriptionResponse = AutoscaleSettingResour /** * The response body as parsed JSON or XML */ - parsedBody: AutoscaleSettingResourceCollection; + parsedBody: DiagnosticSettingsCategoryResourceCollection; }; }; /** - * Contains response data for the listByResourceGroupNext operation. + * Contains response data for the createOrUpdate operation. */ -export type AutoscaleSettingsListByResourceGroupNextResponse = AutoscaleSettingResourceCollection & { +export type ActionGroupsCreateOrUpdateResponse = ActionGroupResource & { /** * The underlying HTTP response. */ @@ -3519,14 +4382,14 @@ export type AutoscaleSettingsListByResourceGroupNextResponse = AutoscaleSettingR /** * The response body as parsed JSON or XML */ - parsedBody: AutoscaleSettingResourceCollection; + parsedBody: ActionGroupResource; }; }; /** - * Contains response data for the listBySubscriptionNext operation. + * Contains response data for the get operation. */ -export type AutoscaleSettingsListBySubscriptionNextResponse = AutoscaleSettingResourceCollection & { +export type ActionGroupsGetResponse = ActionGroupResource & { /** * The underlying HTTP response. */ @@ -3539,14 +4402,14 @@ export type AutoscaleSettingsListBySubscriptionNextResponse = AutoscaleSettingRe /** * The response body as parsed JSON or XML */ - parsedBody: AutoscaleSettingResourceCollection; + parsedBody: ActionGroupResource; }; }; /** - * Contains response data for the list operation. + * Contains response data for the update operation. */ -export type OperationsListResponse = OperationListResult & { +export type ActionGroupsUpdateResponse = ActionGroupResource & { /** * The underlying HTTP response. */ @@ -3559,14 +4422,14 @@ export type OperationsListResponse = OperationListResult & { /** * The response body as parsed JSON or XML */ - parsedBody: OperationListResult; + parsedBody: ActionGroupResource; }; }; /** - * Contains response data for the get operation. + * Contains response data for the listBySubscriptionId operation. */ -export type AlertRuleIncidentsGetResponse = Incident & { +export type ActionGroupsListBySubscriptionIdResponse = ActionGroupList & { /** * The underlying HTTP response. */ @@ -3579,14 +4442,14 @@ export type AlertRuleIncidentsGetResponse = Incident & { /** * The response body as parsed JSON or XML */ - parsedBody: Incident; + parsedBody: ActionGroupList; }; }; /** - * Contains response data for the listByAlertRule operation. + * Contains response data for the listByResourceGroup operation. */ -export type AlertRuleIncidentsListByAlertRuleResponse = IncidentListResult & { +export type ActionGroupsListByResourceGroupResponse = ActionGroupList & { /** * The underlying HTTP response. */ @@ -3599,14 +4462,14 @@ export type AlertRuleIncidentsListByAlertRuleResponse = IncidentListResult & { /** * The response body as parsed JSON or XML */ - parsedBody: IncidentListResult; + parsedBody: ActionGroupList; }; }; /** * Contains response data for the createOrUpdate operation. */ -export type AlertRulesCreateOrUpdateResponse = AlertRuleResource & { +export type ActivityLogAlertsCreateOrUpdateResponse = ActivityLogAlertResource & { /** * The underlying HTTP response. */ @@ -3619,14 +4482,14 @@ export type AlertRulesCreateOrUpdateResponse = AlertRuleResource & { /** * The response body as parsed JSON or XML */ - parsedBody: AlertRuleResource; + parsedBody: ActivityLogAlertResource; }; }; /** * Contains response data for the get operation. */ -export type AlertRulesGetResponse = AlertRuleResource & { +export type ActivityLogAlertsGetResponse = ActivityLogAlertResource & { /** * The underlying HTTP response. */ @@ -3639,14 +4502,14 @@ export type AlertRulesGetResponse = AlertRuleResource & { /** * The response body as parsed JSON or XML */ - parsedBody: AlertRuleResource; + parsedBody: ActivityLogAlertResource; }; }; /** * Contains response data for the update operation. */ -export type AlertRulesUpdateResponse = AlertRuleResource & { +export type ActivityLogAlertsUpdateResponse = ActivityLogAlertResource & { /** * The underlying HTTP response. */ @@ -3659,14 +4522,14 @@ export type AlertRulesUpdateResponse = AlertRuleResource & { /** * The response body as parsed JSON or XML */ - parsedBody: AlertRuleResource; + parsedBody: ActivityLogAlertResource; }; }; /** - * Contains response data for the listByResourceGroup operation. + * Contains response data for the listBySubscriptionId operation. */ -export type AlertRulesListByResourceGroupResponse = AlertRuleResourceCollection & { +export type ActivityLogAlertsListBySubscriptionIdResponse = ActivityLogAlertList & { /** * The underlying HTTP response. */ @@ -3679,14 +4542,14 @@ export type AlertRulesListByResourceGroupResponse = AlertRuleResourceCollection /** * The response body as parsed JSON or XML */ - parsedBody: AlertRuleResourceCollection; + parsedBody: ActivityLogAlertList; }; }; /** - * Contains response data for the listBySubscription operation. + * Contains response data for the listByResourceGroup operation. */ -export type AlertRulesListBySubscriptionResponse = AlertRuleResourceCollection & { +export type ActivityLogAlertsListByResourceGroupResponse = ActivityLogAlertList & { /** * The underlying HTTP response. */ @@ -3699,14 +4562,14 @@ export type AlertRulesListBySubscriptionResponse = AlertRuleResourceCollection & /** * The response body as parsed JSON or XML */ - parsedBody: AlertRuleResourceCollection; + parsedBody: ActivityLogAlertList; }; }; /** - * Contains response data for the get operation. + * Contains response data for the list operation. */ -export type LogProfilesGetResponse = LogProfileResource & { +export type ActivityLogsListResponse = EventDataCollection & { /** * The underlying HTTP response. */ @@ -3719,14 +4582,14 @@ export type LogProfilesGetResponse = LogProfileResource & { /** * The response body as parsed JSON or XML */ - parsedBody: LogProfileResource; + parsedBody: EventDataCollection; }; }; /** - * Contains response data for the createOrUpdate operation. + * Contains response data for the listNext operation. */ -export type LogProfilesCreateOrUpdateResponse = LogProfileResource & { +export type ActivityLogsListNextResponse = EventDataCollection & { /** * The underlying HTTP response. */ @@ -3739,14 +4602,14 @@ export type LogProfilesCreateOrUpdateResponse = LogProfileResource & { /** * The response body as parsed JSON or XML */ - parsedBody: LogProfileResource; + parsedBody: EventDataCollection; }; }; /** - * Contains response data for the update operation. + * Contains response data for the list operation. */ -export type LogProfilesUpdateResponse = LogProfileResource & { +export type EventCategoriesListResponse = EventCategoryCollection & { /** * The underlying HTTP response. */ @@ -3759,14 +4622,14 @@ export type LogProfilesUpdateResponse = LogProfileResource & { /** * The response body as parsed JSON or XML */ - parsedBody: LogProfileResource; + parsedBody: EventCategoryCollection; }; }; /** * Contains response data for the list operation. */ -export type LogProfilesListResponse = LogProfileCollection & { +export type TenantActivityLogsListResponse = EventDataCollection & { /** * The underlying HTTP response. */ @@ -3779,14 +4642,14 @@ export type LogProfilesListResponse = LogProfileCollection & { /** * The response body as parsed JSON or XML */ - parsedBody: LogProfileCollection; + parsedBody: EventDataCollection; }; }; /** - * Contains response data for the get operation. + * Contains response data for the listNext operation. */ -export type DiagnosticSettingsGetResponse = DiagnosticSettingsResource & { +export type TenantActivityLogsListNextResponse = EventDataCollection & { /** * The underlying HTTP response. */ @@ -3799,14 +4662,14 @@ export type DiagnosticSettingsGetResponse = DiagnosticSettingsResource & { /** * The response body as parsed JSON or XML */ - parsedBody: DiagnosticSettingsResource; + parsedBody: EventDataCollection; }; }; /** - * Contains response data for the createOrUpdate operation. + * Contains response data for the list operation. */ -export type DiagnosticSettingsCreateOrUpdateResponse = DiagnosticSettingsResource & { +export type MetricDefinitionsListResponse = MetricDefinitionCollection & { /** * The underlying HTTP response. */ @@ -3819,14 +4682,14 @@ export type DiagnosticSettingsCreateOrUpdateResponse = DiagnosticSettingsResourc /** * The response body as parsed JSON or XML */ - parsedBody: DiagnosticSettingsResource; + parsedBody: MetricDefinitionCollection; }; }; /** * Contains response data for the list operation. */ -export type DiagnosticSettingsListResponse = DiagnosticSettingsResourceCollection & { +export type MetricsListResponse = Response & { /** * The underlying HTTP response. */ @@ -3839,14 +4702,14 @@ export type DiagnosticSettingsListResponse = DiagnosticSettingsResourceCollectio /** * The response body as parsed JSON or XML */ - parsedBody: DiagnosticSettingsResourceCollection; + parsedBody: Response; }; }; /** - * Contains response data for the get operation. + * Contains response data for the list operation. */ -export type DiagnosticSettingsCategoryGetResponse = DiagnosticSettingsCategoryResource & { +export type BaselinesListResponse = MetricBaselinesResponse & { /** * The underlying HTTP response. */ @@ -3859,14 +4722,14 @@ export type DiagnosticSettingsCategoryGetResponse = DiagnosticSettingsCategoryRe /** * The response body as parsed JSON or XML */ - parsedBody: DiagnosticSettingsCategoryResource; + parsedBody: MetricBaselinesResponse; }; }; /** - * Contains response data for the list operation. + * Contains response data for the listBySubscription operation. */ -export type DiagnosticSettingsCategoryListResponse = DiagnosticSettingsCategoryResourceCollection & { +export type MetricAlertsListBySubscriptionResponse = MetricAlertResourceCollection & { /** * The underlying HTTP response. */ @@ -3879,14 +4742,14 @@ export type DiagnosticSettingsCategoryListResponse = DiagnosticSettingsCategoryR /** * The response body as parsed JSON or XML */ - parsedBody: DiagnosticSettingsCategoryResourceCollection; + parsedBody: MetricAlertResourceCollection; }; }; /** - * Contains response data for the createOrUpdate operation. + * Contains response data for the listByResourceGroup operation. */ -export type ActionGroupsCreateOrUpdateResponse = ActionGroupResource & { +export type MetricAlertsListByResourceGroupResponse = MetricAlertResourceCollection & { /** * The underlying HTTP response. */ @@ -3899,14 +4762,14 @@ export type ActionGroupsCreateOrUpdateResponse = ActionGroupResource & { /** * The response body as parsed JSON or XML */ - parsedBody: ActionGroupResource; + parsedBody: MetricAlertResourceCollection; }; }; /** * Contains response data for the get operation. */ -export type ActionGroupsGetResponse = ActionGroupResource & { +export type MetricAlertsGetResponse = MetricAlertResource & { /** * The underlying HTTP response. */ @@ -3919,14 +4782,14 @@ export type ActionGroupsGetResponse = ActionGroupResource & { /** * The response body as parsed JSON or XML */ - parsedBody: ActionGroupResource; + parsedBody: MetricAlertResource; }; }; /** - * Contains response data for the update operation. + * Contains response data for the createOrUpdate operation. */ -export type ActionGroupsUpdateResponse = ActionGroupResource & { +export type MetricAlertsCreateOrUpdateResponse = MetricAlertResource & { /** * The underlying HTTP response. */ @@ -3939,14 +4802,14 @@ export type ActionGroupsUpdateResponse = ActionGroupResource & { /** * The response body as parsed JSON or XML */ - parsedBody: ActionGroupResource; + parsedBody: MetricAlertResource; }; }; /** - * Contains response data for the listBySubscriptionId operation. + * Contains response data for the update operation. */ -export type ActionGroupsListBySubscriptionIdResponse = ActionGroupList & { +export type MetricAlertsUpdateResponse = MetricAlertResource & { /** * The underlying HTTP response. */ @@ -3959,14 +4822,14 @@ export type ActionGroupsListBySubscriptionIdResponse = ActionGroupList & { /** * The response body as parsed JSON or XML */ - parsedBody: ActionGroupList; + parsedBody: MetricAlertResource; }; }; /** - * Contains response data for the listByResourceGroup operation. + * Contains response data for the list operation. */ -export type ActionGroupsListByResourceGroupResponse = ActionGroupList & { +export type MetricAlertsStatusListResponse = MetricAlertStatusCollection & { /** * The underlying HTTP response. */ @@ -3979,14 +4842,14 @@ export type ActionGroupsListByResourceGroupResponse = ActionGroupList & { /** * The response body as parsed JSON or XML */ - parsedBody: ActionGroupList; + parsedBody: MetricAlertStatusCollection; }; }; /** - * Contains response data for the createOrUpdate operation. + * Contains response data for the listByName operation. */ -export type ActivityLogAlertsCreateOrUpdateResponse = ActivityLogAlertResource & { +export type MetricAlertsStatusListByNameResponse = MetricAlertStatusCollection & { /** * The underlying HTTP response. */ @@ -3999,14 +4862,14 @@ export type ActivityLogAlertsCreateOrUpdateResponse = ActivityLogAlertResource & /** * The response body as parsed JSON or XML */ - parsedBody: ActivityLogAlertResource; + parsedBody: MetricAlertStatusCollection; }; }; /** - * Contains response data for the get operation. + * Contains response data for the createOrUpdate operation. */ -export type ActivityLogAlertsGetResponse = ActivityLogAlertResource & { +export type ScheduledQueryRulesCreateOrUpdateResponse = LogSearchRuleResource & { /** * The underlying HTTP response. */ @@ -4019,14 +4882,14 @@ export type ActivityLogAlertsGetResponse = ActivityLogAlertResource & { /** * The response body as parsed JSON or XML */ - parsedBody: ActivityLogAlertResource; + parsedBody: LogSearchRuleResource; }; }; /** - * Contains response data for the update operation. + * Contains response data for the get operation. */ -export type ActivityLogAlertsUpdateResponse = ActivityLogAlertResource & { +export type ScheduledQueryRulesGetResponse = LogSearchRuleResource & { /** * The underlying HTTP response. */ @@ -4039,14 +4902,14 @@ export type ActivityLogAlertsUpdateResponse = ActivityLogAlertResource & { /** * The response body as parsed JSON or XML */ - parsedBody: ActivityLogAlertResource; + parsedBody: LogSearchRuleResource; }; }; /** - * Contains response data for the listBySubscriptionId operation. + * Contains response data for the update operation. */ -export type ActivityLogAlertsListBySubscriptionIdResponse = ActivityLogAlertList & { +export type ScheduledQueryRulesUpdateResponse = LogSearchRuleResource & { /** * The underlying HTTP response. */ @@ -4059,14 +4922,14 @@ export type ActivityLogAlertsListBySubscriptionIdResponse = ActivityLogAlertList /** * The response body as parsed JSON or XML */ - parsedBody: ActivityLogAlertList; + parsedBody: LogSearchRuleResource; }; }; /** - * Contains response data for the listByResourceGroup operation. + * Contains response data for the listBySubscription operation. */ -export type ActivityLogAlertsListByResourceGroupResponse = ActivityLogAlertList & { +export type ScheduledQueryRulesListBySubscriptionResponse = LogSearchRuleResourceCollection & { /** * The underlying HTTP response. */ @@ -4079,14 +4942,14 @@ export type ActivityLogAlertsListByResourceGroupResponse = ActivityLogAlertList /** * The response body as parsed JSON or XML */ - parsedBody: ActivityLogAlertList; + parsedBody: LogSearchRuleResourceCollection; }; }; /** - * Contains response data for the list operation. + * Contains response data for the listByResourceGroup operation. */ -export type ActivityLogsListResponse = EventDataCollection & { +export type ScheduledQueryRulesListByResourceGroupResponse = LogSearchRuleResourceCollection & { /** * The underlying HTTP response. */ @@ -4099,14 +4962,14 @@ export type ActivityLogsListResponse = EventDataCollection & { /** * The response body as parsed JSON or XML */ - parsedBody: EventDataCollection; + parsedBody: LogSearchRuleResourceCollection; }; }; /** - * Contains response data for the listNext operation. + * Contains response data for the list operation. */ -export type ActivityLogsListNextResponse = EventDataCollection & { +export type MetricNamespacesListResponse = MetricNamespaceCollection & { /** * The underlying HTTP response. */ @@ -4119,14 +4982,14 @@ export type ActivityLogsListNextResponse = EventDataCollection & { /** * The response body as parsed JSON or XML */ - parsedBody: EventDataCollection; + parsedBody: MetricNamespaceCollection; }; }; /** - * Contains response data for the list operation. + * Contains response data for the getOnboardingStatus operation. */ -export type EventCategoriesListResponse = EventCategoryCollection & { +export type VMInsightsGetOnboardingStatusResponse = VMInsightsOnboardingStatus & { /** * The underlying HTTP response. */ @@ -4139,14 +5002,14 @@ export type EventCategoriesListResponse = EventCategoryCollection & { /** * The response body as parsed JSON or XML */ - parsedBody: EventCategoryCollection; + parsedBody: VMInsightsOnboardingStatus; }; }; /** * Contains response data for the list operation. */ -export type TenantActivityLogsListResponse = EventDataCollection & { +export type PrivateLinkScopesListResponse = AzureMonitorPrivateLinkScopeListResult & { /** * The underlying HTTP response. */ @@ -4159,14 +5022,14 @@ export type TenantActivityLogsListResponse = EventDataCollection & { /** * The response body as parsed JSON or XML */ - parsedBody: EventDataCollection; + parsedBody: AzureMonitorPrivateLinkScopeListResult; }; }; /** - * Contains response data for the listNext operation. + * Contains response data for the listByResourceGroup operation. */ -export type TenantActivityLogsListNextResponse = EventDataCollection & { +export type PrivateLinkScopesListByResourceGroupResponse = AzureMonitorPrivateLinkScopeListResult & { /** * The underlying HTTP response. */ @@ -4179,14 +5042,14 @@ export type TenantActivityLogsListNextResponse = EventDataCollection & { /** * The response body as parsed JSON or XML */ - parsedBody: EventDataCollection; + parsedBody: AzureMonitorPrivateLinkScopeListResult; }; }; /** - * Contains response data for the list operation. + * Contains response data for the get operation. */ -export type MetricDefinitionsListResponse = MetricDefinitionCollection & { +export type PrivateLinkScopesGetResponse = AzureMonitorPrivateLinkScope & { /** * The underlying HTTP response. */ @@ -4199,14 +5062,14 @@ export type MetricDefinitionsListResponse = MetricDefinitionCollection & { /** * The response body as parsed JSON or XML */ - parsedBody: MetricDefinitionCollection; + parsedBody: AzureMonitorPrivateLinkScope; }; }; /** - * Contains response data for the list operation. + * Contains response data for the createOrUpdate operation. */ -export type MetricsListResponse = Response & { +export type PrivateLinkScopesCreateOrUpdateResponse = AzureMonitorPrivateLinkScope & { /** * The underlying HTTP response. */ @@ -4219,14 +5082,14 @@ export type MetricsListResponse = Response & { /** * The response body as parsed JSON or XML */ - parsedBody: Response; + parsedBody: AzureMonitorPrivateLinkScope; }; }; /** - * Contains response data for the get operation. + * Contains response data for the updateTags operation. */ -export type MetricBaselineGetResponse = BaselineResponse & { +export type PrivateLinkScopesUpdateTagsResponse = AzureMonitorPrivateLinkScope & { /** * The underlying HTTP response. */ @@ -4239,14 +5102,14 @@ export type MetricBaselineGetResponse = BaselineResponse & { /** * The response body as parsed JSON or XML */ - parsedBody: BaselineResponse; + parsedBody: AzureMonitorPrivateLinkScope; }; }; /** - * Contains response data for the calculateBaseline operation. + * Contains response data for the listNext operation. */ -export type MetricBaselineCalculateBaselineResponse = CalculateBaselineResponse & { +export type PrivateLinkScopesListNextResponse = AzureMonitorPrivateLinkScopeListResult & { /** * The underlying HTTP response. */ @@ -4259,14 +5122,14 @@ export type MetricBaselineCalculateBaselineResponse = CalculateBaselineResponse /** * The response body as parsed JSON or XML */ - parsedBody: CalculateBaselineResponse; + parsedBody: AzureMonitorPrivateLinkScopeListResult; }; }; /** - * Contains response data for the list operation. + * Contains response data for the listByResourceGroupNext operation. */ -export type BaselinesListResponse = MetricBaselinesResponse & { +export type PrivateLinkScopesListByResourceGroupNextResponse = AzureMonitorPrivateLinkScopeListResult & { /** * The underlying HTTP response. */ @@ -4279,14 +5142,14 @@ export type BaselinesListResponse = MetricBaselinesResponse & { /** * The response body as parsed JSON or XML */ - parsedBody: MetricBaselinesResponse; + parsedBody: AzureMonitorPrivateLinkScopeListResult; }; }; /** - * Contains response data for the listBySubscription operation. + * Contains response data for the get operation. */ -export type MetricAlertsListBySubscriptionResponse = MetricAlertResourceCollection & { +export type PrivateLinkScopeOperationStatusGetResponse = OperationStatus & { /** * The underlying HTTP response. */ @@ -4299,14 +5162,14 @@ export type MetricAlertsListBySubscriptionResponse = MetricAlertResourceCollecti /** * The response body as parsed JSON or XML */ - parsedBody: MetricAlertResourceCollection; + parsedBody: OperationStatus; }; }; /** - * Contains response data for the listByResourceGroup operation. + * Contains response data for the listByPrivateLinkScope operation. */ -export type MetricAlertsListByResourceGroupResponse = MetricAlertResourceCollection & { +export type PrivateLinkResourcesListByPrivateLinkScopeResponse = PrivateLinkResourceListResult & { /** * The underlying HTTP response. */ @@ -4319,14 +5182,14 @@ export type MetricAlertsListByResourceGroupResponse = MetricAlertResourceCollect /** * The response body as parsed JSON or XML */ - parsedBody: MetricAlertResourceCollection; + parsedBody: PrivateLinkResourceListResult; }; }; /** * Contains response data for the get operation. */ -export type MetricAlertsGetResponse = MetricAlertResource & { +export type PrivateLinkResourcesGetResponse = PrivateLinkResource & { /** * The underlying HTTP response. */ @@ -4339,14 +5202,14 @@ export type MetricAlertsGetResponse = MetricAlertResource & { /** * The response body as parsed JSON or XML */ - parsedBody: MetricAlertResource; + parsedBody: PrivateLinkResource; }; }; /** - * Contains response data for the createOrUpdate operation. + * Contains response data for the listByPrivateLinkScopeNext operation. */ -export type MetricAlertsCreateOrUpdateResponse = MetricAlertResource & { +export type PrivateLinkResourcesListByPrivateLinkScopeNextResponse = PrivateLinkResourceListResult & { /** * The underlying HTTP response. */ @@ -4359,14 +5222,14 @@ export type MetricAlertsCreateOrUpdateResponse = MetricAlertResource & { /** * The response body as parsed JSON or XML */ - parsedBody: MetricAlertResource; + parsedBody: PrivateLinkResourceListResult; }; }; /** - * Contains response data for the update operation. + * Contains response data for the get operation. */ -export type MetricAlertsUpdateResponse = MetricAlertResource & { +export type PrivateEndpointConnectionsGetResponse = PrivateEndpointConnection & { /** * The underlying HTTP response. */ @@ -4379,14 +5242,14 @@ export type MetricAlertsUpdateResponse = MetricAlertResource & { /** * The response body as parsed JSON or XML */ - parsedBody: MetricAlertResource; + parsedBody: PrivateEndpointConnection; }; }; /** - * Contains response data for the list operation. + * Contains response data for the createOrUpdate operation. */ -export type MetricAlertsStatusListResponse = MetricAlertStatusCollection & { +export type PrivateEndpointConnectionsCreateOrUpdateResponse = PrivateEndpointConnection & { /** * The underlying HTTP response. */ @@ -4399,14 +5262,14 @@ export type MetricAlertsStatusListResponse = MetricAlertStatusCollection & { /** * The response body as parsed JSON or XML */ - parsedBody: MetricAlertStatusCollection; + parsedBody: PrivateEndpointConnection; }; }; /** - * Contains response data for the listByName operation. + * Contains response data for the listByPrivateLinkScope operation. */ -export type MetricAlertsStatusListByNameResponse = MetricAlertStatusCollection & { +export type PrivateEndpointConnectionsListByPrivateLinkScopeResponse = PrivateEndpointConnectionListResult & { /** * The underlying HTTP response. */ @@ -4419,14 +5282,14 @@ export type MetricAlertsStatusListByNameResponse = MetricAlertStatusCollection & /** * The response body as parsed JSON or XML */ - parsedBody: MetricAlertStatusCollection; + parsedBody: PrivateEndpointConnectionListResult; }; }; /** - * Contains response data for the createOrUpdate operation. + * Contains response data for the beginCreateOrUpdate operation. */ -export type ScheduledQueryRulesCreateOrUpdateResponse = LogSearchRuleResource & { +export type PrivateEndpointConnectionsBeginCreateOrUpdateResponse = PrivateEndpointConnection & { /** * The underlying HTTP response. */ @@ -4439,14 +5302,14 @@ export type ScheduledQueryRulesCreateOrUpdateResponse = LogSearchRuleResource & /** * The response body as parsed JSON or XML */ - parsedBody: LogSearchRuleResource; + parsedBody: PrivateEndpointConnection; }; }; /** - * Contains response data for the get operation. + * Contains response data for the listByPrivateLinkScopeNext operation. */ -export type ScheduledQueryRulesGetResponse = LogSearchRuleResource & { +export type PrivateEndpointConnectionsListByPrivateLinkScopeNextResponse = PrivateEndpointConnectionListResult & { /** * The underlying HTTP response. */ @@ -4459,14 +5322,14 @@ export type ScheduledQueryRulesGetResponse = LogSearchRuleResource & { /** * The response body as parsed JSON or XML */ - parsedBody: LogSearchRuleResource; + parsedBody: PrivateEndpointConnectionListResult; }; }; /** - * Contains response data for the update operation. + * Contains response data for the get operation. */ -export type ScheduledQueryRulesUpdateResponse = LogSearchRuleResource & { +export type PrivateLinkScopedResourcesGetResponse = ScopedResource & { /** * The underlying HTTP response. */ @@ -4479,14 +5342,14 @@ export type ScheduledQueryRulesUpdateResponse = LogSearchRuleResource & { /** * The response body as parsed JSON or XML */ - parsedBody: LogSearchRuleResource; + parsedBody: ScopedResource; }; }; /** - * Contains response data for the listBySubscription operation. + * Contains response data for the createOrUpdate operation. */ -export type ScheduledQueryRulesListBySubscriptionResponse = LogSearchRuleResourceCollection & { +export type PrivateLinkScopedResourcesCreateOrUpdateResponse = ScopedResource & { /** * The underlying HTTP response. */ @@ -4499,14 +5362,14 @@ export type ScheduledQueryRulesListBySubscriptionResponse = LogSearchRuleResourc /** * The response body as parsed JSON or XML */ - parsedBody: LogSearchRuleResourceCollection; + parsedBody: ScopedResource; }; }; /** - * Contains response data for the listByResourceGroup operation. + * Contains response data for the listByPrivateLinkScope operation. */ -export type ScheduledQueryRulesListByResourceGroupResponse = LogSearchRuleResourceCollection & { +export type PrivateLinkScopedResourcesListByPrivateLinkScopeResponse = ScopedResourceListResult & { /** * The underlying HTTP response. */ @@ -4519,14 +5382,14 @@ export type ScheduledQueryRulesListByResourceGroupResponse = LogSearchRuleResour /** * The response body as parsed JSON or XML */ - parsedBody: LogSearchRuleResourceCollection; + parsedBody: ScopedResourceListResult; }; }; /** - * Contains response data for the list operation. + * Contains response data for the beginCreateOrUpdate operation. */ -export type MetricNamespacesListResponse = MetricNamespaceCollection & { +export type PrivateLinkScopedResourcesBeginCreateOrUpdateResponse = ScopedResource & { /** * The underlying HTTP response. */ @@ -4539,14 +5402,14 @@ export type MetricNamespacesListResponse = MetricNamespaceCollection & { /** * The response body as parsed JSON or XML */ - parsedBody: MetricNamespaceCollection; + parsedBody: ScopedResource; }; }; /** - * Contains response data for the getOnboardingStatus operation. + * Contains response data for the listByPrivateLinkScopeNext operation. */ -export type VMInsightsGetOnboardingStatusResponse = VMInsightsOnboardingStatus & { +export type PrivateLinkScopedResourcesListByPrivateLinkScopeNextResponse = ScopedResourceListResult & { /** * The underlying HTTP response. */ @@ -4559,6 +5422,6 @@ export type VMInsightsGetOnboardingStatusResponse = VMInsightsOnboardingStatus & /** * The response body as parsed JSON or XML */ - parsedBody: VMInsightsOnboardingStatus; + parsedBody: ScopedResourceListResult; }; }; diff --git a/sdk/monitor/arm-monitor/src/models/logProfilesMappers.ts b/sdk/monitor/arm-monitor/src/models/logProfilesMappers.ts index a1ad33c209e5..c8c972566e54 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,6 +25,8 @@ export { AzNsActionGroup, AzureAppPushReceiver, AzureFunctionReceiver, + AzureMonitorPrivateLinkScope, + AzureResource, BaseResource, CloudError, Criteria, @@ -36,7 +38,9 @@ export { DynamicThresholdFailingPeriods, EmailNotification, EmailReceiver, + ErrorAdditionalInfo, ErrorResponse, + ErrorResponseCommon, ItsmReceiver, LocationThresholdRuleCondition, LogicAppReceiver, @@ -59,6 +63,11 @@ export { MetricSettings, MetricTrigger, MultiMetricCriteria, + PrivateEndpointConnection, + PrivateEndpointProperty, + PrivateLinkResource, + PrivateLinkScopesResource, + PrivateLinkServiceConnectionStateProperty, ProxyOnlyResource, ProxyResource, Recurrence, @@ -76,7 +85,9 @@ export { ScaleAction, ScaleCapacity, ScaleRule, + ScaleRuleMetricDimension, Schedule, + ScopedResource, SmsReceiver, Source, ThresholdRuleCondition, @@ -86,5 +97,6 @@ export { VoiceReceiver, WebhookNotification, WebhookReceiver, + WebtestLocationAvailabilityCriteria, 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..236ced43c88c 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", @@ -175,6 +231,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" + } } } } @@ -811,6 +885,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 +1283,12 @@ export const AlertRuleResource: msRest.CompositeMapper = { name: "String" } }, + provisioningState: { + serializedName: "properties.provisioningState", + type: { + name: "String" + } + }, isEnabled: { required: true, serializedName: "properties.isEnabled", @@ -1206,6 +1304,13 @@ export const AlertRuleResource: msRest.CompositeMapper = { className: "RuleCondition" } }, + action: { + serializedName: "properties.action", + type: { + name: "Composite", + className: "RuleAction" + } + }, actions: { serializedName: "properties.actions", type: { @@ -1259,6 +1364,12 @@ export const AlertRuleResourcePatch: msRest.CompositeMapper = { name: "String" } }, + provisioningState: { + serializedName: "properties.provisioningState", + type: { + name: "String" + } + }, isEnabled: { required: true, serializedName: "properties.isEnabled", @@ -1274,6 +1385,13 @@ export const AlertRuleResourcePatch: msRest.CompositeMapper = { className: "RuleCondition" } }, + action: { + serializedName: "properties.action", + type: { + name: "Composite", + className: "RuleAction" + } + }, actions: { serializedName: "properties.actions", type: { @@ -1678,6 +1796,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 +1880,8 @@ export const EmailReceiver: msRest.CompositeMapper = { } }, useCommonAlertSchema: { - required: true, serializedName: "useCommonAlertSchema", + defaultValue: false, type: { name: "Boolean" } @@ -1785,8 +1966,8 @@ export const WebhookReceiver: msRest.CompositeMapper = { } }, useCommonAlertSchema: { - required: true, serializedName: "useCommonAlertSchema", + defaultValue: false, type: { name: "Boolean" } @@ -1936,8 +2117,8 @@ export const AutomationRunbookReceiver: msRest.CompositeMapper = { } }, useCommonAlertSchema: { - required: true, serializedName: "useCommonAlertSchema", + defaultValue: false, type: { name: "Boolean" } @@ -2005,8 +2186,8 @@ export const LogicAppReceiver: msRest.CompositeMapper = { } }, useCommonAlertSchema: { - required: true, serializedName: "useCommonAlertSchema", + defaultValue: false, type: { name: "Boolean" } @@ -2050,8 +2231,8 @@ export const AzureFunctionReceiver: msRest.CompositeMapper = { } }, useCommonAlertSchema: { - required: true, serializedName: "useCommonAlertSchema", + defaultValue: false, type: { name: "Boolean" } @@ -2081,8 +2262,8 @@ export const ArmRoleReceiver: msRest.CompositeMapper = { } }, useCommonAlertSchema: { - required: true, serializedName: "useCommonAlertSchema", + defaultValue: false, type: { name: "Boolean" } @@ -2097,7 +2278,7 @@ export const ActionGroupResource: msRest.CompositeMapper = { name: "Composite", className: "ActionGroupResource", modelProperties: { - ...Resource.type.modelProperties, + ...AzureResource.type.modelProperties, groupShortName: { required: true, serializedName: "properties.groupShortName", @@ -2804,25 +2985,22 @@ export const MetricDefinition: msRest.CompositeMapper = { className: "LocalizableString" } }, + displayDescription: { + serializedName: "displayDescription", + type: { + name: "String" + } + }, + category: { + serializedName: "category", + 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 +3202,24 @@ export const Metric: msRest.CompositeMapper = { className: "LocalizableString" } }, + displayDescription: { + required: true, + serializedName: "displayDescription", + type: { + name: "String" + } + }, + errorCode: { + serializedName: "errorCode", + 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 +3296,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 +3320,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,281 +3361,45 @@ 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", + name: { + required: true, + serializedName: "name", type: { name: "String" } }, - type: { - readOnly: true, - serializedName: "type", + value: { + required: true, + serializedName: "value", type: { name: "String" } - }, - name: { - readOnly: true, - serializedName: "name", - type: { - name: "Composite", - className: "LocalizableString" - } - }, - timespan: { - serializedName: "properties.timespan", + } + } + } +}; + +export const TimeSeriesBaseline: msRest.CompositeMapper = { + serializedName: "TimeSeriesBaseline", + type: { + name: "Composite", + className: "TimeSeriesBaseline", + modelProperties: { + aggregation: { + required: true, + serializedName: "aggregation", type: { name: "String" } }, - interval: { - serializedName: "properties.interval", - type: { - name: "TimeSpan" - } - }, - aggregation: { - serializedName: "properties.aggregation", - type: { - name: "String" - } - }, - timestamps: { - serializedName: "properties.timestamps", - 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", + dimensions: { + serializedName: "dimensions", type: { name: "Sequence", element: { @@ -3499,8 +3435,8 @@ export const TimeSeriesBaseline: msRest.CompositeMapper = { } } }, - metadata: { - serializedName: "metadata", + metadataValues: { + serializedName: "metadataValues", type: { name: "Sequence", element: { @@ -3591,8 +3527,8 @@ export const MetricAlertAction: msRest.CompositeMapper = { name: "String" } }, - webhookProperties: { - serializedName: "webhookProperties", + webHookProperties: { + serializedName: "webHookProperties", type: { name: "Dictionary", value: { @@ -3641,7 +3577,6 @@ export const MetricAlertResource: msRest.CompositeMapper = { modelProperties: { ...Resource.type.modelProperties, description: { - required: true, serializedName: "properties.description", type: { name: "String" @@ -3662,6 +3597,7 @@ export const MetricAlertResource: msRest.CompositeMapper = { } }, scopes: { + required: true, serializedName: "properties.scopes", type: { name: "Sequence", @@ -3735,6 +3671,13 @@ export const MetricAlertResource: msRest.CompositeMapper = { type: { name: "DateTime" } + }, + isMigrated: { + readOnly: true, + serializedName: "properties.isMigrated", + type: { + name: "Boolean" + } } } } @@ -3758,21 +3701,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 +3730,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 +3754,6 @@ export const MetricAlertResourcePatch: msRest.CompositeMapper = { } }, criteria: { - required: true, serializedName: "properties.criteria", type: { name: "Composite", @@ -3852,6 +3789,13 @@ export const MetricAlertResourcePatch: msRest.CompositeMapper = { type: { name: "DateTime" } + }, + isMigrated: { + readOnly: true, + serializedName: "properties.isMigrated", + type: { + name: "Boolean" + } } } } @@ -3982,7 +3926,7 @@ export const MultiMetricCriteria: msRest.CompositeMapper = { required: true, serializedName: "timeAggregation", type: { - name: "Object" + name: "String" } }, dimensions: { @@ -3997,6 +3941,12 @@ export const MultiMetricCriteria: msRest.CompositeMapper = { } } }, + skipMetricValidation: { + serializedName: "skipMetricValidation", + type: { + name: "Boolean" + } + }, criterionType: { required: true, serializedName: "criterionType", @@ -4026,7 +3976,7 @@ export const MetricCriteria: msRest.CompositeMapper = { required: true, serializedName: "operator", type: { - name: "Object" + name: "String" } }, threshold: { @@ -4068,20 +4018,55 @@ 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: "componentId", + type: { + name: "String" + } + }, + failedLocationCount: { + required: true, + serializedName: "failedLocationCount", + type: { + 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: { @@ -4172,14 +4157,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 +4279,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 +4394,7 @@ export const LogMetricTrigger: msRest.CompositeMapper = { modelProperties: { thresholdOperator: { serializedName: "thresholdOperator", + defaultValue: 'GreaterThanOrEqual', type: { name: "String" } @@ -4394,6 +4407,7 @@ export const LogMetricTrigger: msRest.CompositeMapper = { }, metricTriggerType: { serializedName: "metricTriggerType", + defaultValue: 'Consecutive', type: { name: "String" } @@ -4417,6 +4431,7 @@ export const TriggerCondition: msRest.CompositeMapper = { thresholdOperator: { required: true, serializedName: "thresholdOperator", + defaultValue: 'GreaterThanOrEqual', type: { name: "String" } @@ -4606,6 +4621,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 +4678,12 @@ export const MetricNamespace: msRest.CompositeMapper = { name: "String" } }, + classification: { + serializedName: "classification", + type: { + name: "String" + } + }, properties: { serializedName: "properties", type: { @@ -4822,6 +4860,351 @@ export const VMInsightsOnboardingStatus: msRest.CompositeMapper = { } }; +export const ErrorAdditionalInfo: msRest.CompositeMapper = { + serializedName: "ErrorAdditionalInfo", + type: { + name: "Composite", + className: "ErrorAdditionalInfo", + modelProperties: { + type: { + readOnly: true, + serializedName: "type", + type: { + name: "String" + } + }, + info: { + readOnly: true, + serializedName: "info", + type: { + name: "Object" + } + } + } + } +}; + +export const ErrorResponseCommon: msRest.CompositeMapper = { + serializedName: "ErrorResponseCommon", + type: { + name: "Composite", + className: "ErrorResponseCommon", + modelProperties: { + ...ErrorResponse.type.modelProperties, + details: { + readOnly: true, + serializedName: "details", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ErrorResponseCommon" + } + } + } + }, + additionalInfo: { + readOnly: true, + serializedName: "additionalInfo", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ErrorAdditionalInfo" + } + } + } + } + } + } +}; + +export const OperationStatus: msRest.CompositeMapper = { + serializedName: "OperationStatus", + type: { + name: "Composite", + className: "OperationStatus", + modelProperties: { + id: { + serializedName: "id", + type: { + 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 PrivateLinkScopesResource: msRest.CompositeMapper = { + serializedName: "PrivateLinkScopesResource", + type: { + name: "Composite", + className: "PrivateLinkScopesResource", + 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" + } + }, + location: { + required: true, + serializedName: "location", + type: { + name: "String" + } + }, + tags: { + serializedName: "tags", + type: { + name: "Dictionary", + value: { + type: { + name: "String" + } + } + } + } + } + } +}; + +export const TagsResource: msRest.CompositeMapper = { + serializedName: "TagsResource", + type: { + name: "Composite", + className: "TagsResource", + modelProperties: { + tags: { + serializedName: "tags", + type: { + name: "Dictionary", + value: { + type: { + name: "String" + } + } + } + } + } + } +}; + +export const PrivateEndpointProperty: msRest.CompositeMapper = { + serializedName: "PrivateEndpointProperty", + type: { + name: "Composite", + className: "PrivateEndpointProperty", + modelProperties: { + id: { + serializedName: "id", + type: { + name: "String" + } + } + } + } +}; + +export const PrivateLinkServiceConnectionStateProperty: msRest.CompositeMapper = { + serializedName: "PrivateLinkServiceConnectionStateProperty", + type: { + name: "Composite", + className: "PrivateLinkServiceConnectionStateProperty", + modelProperties: { + status: { + required: true, + serializedName: "status", + type: { + name: "String" + } + }, + description: { + required: true, + serializedName: "description", + type: { + name: "String" + } + }, + actionsRequired: { + readOnly: true, + serializedName: "actionsRequired", + type: { + name: "String" + } + } + } + } +}; + +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 AutoscaleSettingResourceCollection: msRest.CompositeMapper = { serializedName: "AutoscaleSettingResourceCollection", type: { @@ -5126,6 +5509,125 @@ 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 discriminators = { 'RuleDataSource' : RuleDataSource, 'RuleCondition' : RuleCondition, @@ -5140,6 +5642,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..8888aa0bfd62 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,8 +25,9 @@ export { AzNsActionGroup, AzureAppPushReceiver, AzureFunctionReceiver, + AzureMonitorPrivateLinkScope, + AzureResource, BaseResource, - CloudError, Criteria, DataContainer, DiagnosticSettingsCategoryResource, @@ -36,7 +37,9 @@ export { DynamicThresholdFailingPeriods, EmailNotification, EmailReceiver, + ErrorAdditionalInfo, ErrorResponse, + ErrorResponseCommon, ItsmReceiver, LocationThresholdRuleCondition, LogicAppReceiver, @@ -59,6 +62,11 @@ export { MetricSettings, MetricTrigger, MultiMetricCriteria, + PrivateEndpointConnection, + PrivateEndpointProperty, + PrivateLinkResource, + PrivateLinkScopesResource, + PrivateLinkServiceConnectionStateProperty, ProxyOnlyResource, ProxyResource, Recurrence, @@ -76,7 +84,9 @@ export { ScaleAction, ScaleCapacity, ScaleRule, + ScaleRuleMetricDimension, Schedule, + ScopedResource, SmsReceiver, Source, ThresholdRuleCondition, @@ -86,5 +96,6 @@ export { VoiceReceiver, WebhookNotification, WebhookReceiver, + WebtestLocationAvailabilityCriteria, 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..ba27bee45694 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: '2018-11-27-preview', + constraints: { + MinLength: 1 + }, type: { name: "String" } @@ -94,7 +102,10 @@ export const apiVersion11: msRest.OperationQueryParameter = { required: true, isConstant: true, serializedName: "api-version", - defaultValue: '2018-11-27-preview', + defaultValue: '2019-10-17-preview', + constraints: { + MinLength: 1 + }, type: { name: "String" } @@ -107,6 +118,9 @@ export const apiVersion2: msRest.OperationQueryParameter = { isConstant: true, serializedName: "api-version", defaultValue: '2017-05-01-preview', + constraints: { + MinLength: 1 + }, type: { name: "String" } @@ -119,6 +133,9 @@ export const apiVersion3: msRest.OperationQueryParameter = { isConstant: true, serializedName: "api-version", defaultValue: '2019-06-01', + constraints: { + MinLength: 1 + }, type: { name: "String" } @@ -131,6 +148,9 @@ export const apiVersion4: msRest.OperationQueryParameter = { isConstant: true, serializedName: "api-version", defaultValue: '2017-04-01', + constraints: { + MinLength: 1 + }, type: { name: "String" } @@ -143,6 +163,9 @@ export const apiVersion5: msRest.OperationQueryParameter = { isConstant: true, serializedName: "api-version", defaultValue: '2018-01-01', + constraints: { + MinLength: 1 + }, type: { name: "String" } @@ -154,7 +177,10 @@ export const apiVersion6: msRest.OperationQueryParameter = { required: true, isConstant: true, serializedName: "api-version", - defaultValue: '2017-11-01-preview', + defaultValue: '2019-03-01', + constraints: { + MinLength: 1 + }, type: { name: "String" } @@ -166,7 +192,10 @@ export const apiVersion7: msRest.OperationQueryParameter = { required: true, isConstant: true, serializedName: "api-version", - defaultValue: '2019-03-01', + defaultValue: '2018-03-01', + constraints: { + MinLength: 1 + }, type: { name: "String" } @@ -178,7 +207,10 @@ export const apiVersion8: msRest.OperationQueryParameter = { required: true, isConstant: true, serializedName: "api-version", - defaultValue: '2018-03-01', + defaultValue: '2018-04-16', + constraints: { + MinLength: 1 + }, type: { name: "String" } @@ -190,7 +222,20 @@ export const apiVersion9: msRest.OperationQueryParameter = { required: true, isConstant: true, serializedName: "api-version", - defaultValue: '2018-04-16', + defaultValue: '2017-12-01-preview', + constraints: { + MinLength: 1 + }, + type: { + name: "String" + } + } +}; +export const asyncOperationId: msRest.OperationURLParameter = { + parameterPath: "asyncOperationId", + mapper: { + required: true, + serializedName: "asyncOperationId", type: { name: "String" } @@ -228,6 +273,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 +315,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,6 +372,16 @@ 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: { @@ -374,6 +429,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 +490,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..e33d72012633 --- /dev/null +++ b/sdk/monitor/arm-monitor/src/models/privateEndpointConnectionsMappers.ts @@ -0,0 +1,98 @@ +/* + * 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, + AzureMonitorPrivateLinkScope, + AzureResource, + BaseResource, + CloudError, + Criteria, + DataContainer, + DiagnosticSettingsCategoryResource, + DiagnosticSettingsResource, + Dimension, + DynamicMetricCriteria, + DynamicThresholdFailingPeriods, + EmailNotification, + EmailReceiver, + ItsmReceiver, + LocationThresholdRuleCondition, + LogicAppReceiver, + LogMetricTrigger, + LogProfileResource, + LogSearchRuleResource, + LogSettings, + LogToMetricAction, + ManagementEventAggregationCondition, + ManagementEventRuleCondition, + MetricAlertAction, + MetricAlertCriteria, + MetricAlertMultipleResourceMultipleMetricCriteria, + MetricAlertResource, + MetricAlertSingleResourceMultipleMetricCriteria, + MetricCriteria, + MetricDimension, + MetricSettings, + MetricTrigger, + MultiMetricCriteria, + 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, + ThresholdRuleCondition, + TimeWindow, + TriggerCondition, + VMInsightsOnboardingStatus, + VoiceReceiver, + WebhookNotification, + WebhookReceiver, + WebtestLocationAvailabilityCriteria, + 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..3a1b986ac8f8 --- /dev/null +++ b/sdk/monitor/arm-monitor/src/models/privateLinkResourcesMappers.ts @@ -0,0 +1,98 @@ +/* + * 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, + AzureMonitorPrivateLinkScope, + AzureResource, + BaseResource, + CloudError, + Criteria, + DataContainer, + DiagnosticSettingsCategoryResource, + DiagnosticSettingsResource, + Dimension, + DynamicMetricCriteria, + DynamicThresholdFailingPeriods, + EmailNotification, + EmailReceiver, + ItsmReceiver, + LocationThresholdRuleCondition, + LogicAppReceiver, + LogMetricTrigger, + LogProfileResource, + LogSearchRuleResource, + LogSettings, + LogToMetricAction, + ManagementEventAggregationCondition, + ManagementEventRuleCondition, + MetricAlertAction, + MetricAlertCriteria, + MetricAlertMultipleResourceMultipleMetricCriteria, + MetricAlertResource, + MetricAlertSingleResourceMultipleMetricCriteria, + MetricCriteria, + MetricDimension, + MetricSettings, + MetricTrigger, + MultiMetricCriteria, + 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, + ThresholdRuleCondition, + TimeWindow, + TriggerCondition, + VMInsightsOnboardingStatus, + VoiceReceiver, + WebhookNotification, + WebhookReceiver, + WebtestLocationAvailabilityCriteria, + 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..49e24b3b5076 --- /dev/null +++ b/sdk/monitor/arm-monitor/src/models/privateLinkScopedResourcesMappers.ts @@ -0,0 +1,98 @@ +/* + * 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, + AzureMonitorPrivateLinkScope, + AzureResource, + BaseResource, + CloudError, + Criteria, + DataContainer, + DiagnosticSettingsCategoryResource, + DiagnosticSettingsResource, + Dimension, + DynamicMetricCriteria, + DynamicThresholdFailingPeriods, + EmailNotification, + EmailReceiver, + ItsmReceiver, + LocationThresholdRuleCondition, + LogicAppReceiver, + LogMetricTrigger, + LogProfileResource, + LogSearchRuleResource, + LogSettings, + LogToMetricAction, + ManagementEventAggregationCondition, + ManagementEventRuleCondition, + MetricAlertAction, + MetricAlertCriteria, + MetricAlertMultipleResourceMultipleMetricCriteria, + MetricAlertResource, + MetricAlertSingleResourceMultipleMetricCriteria, + MetricCriteria, + MetricDimension, + MetricSettings, + MetricTrigger, + MultiMetricCriteria, + 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, + ThresholdRuleCondition, + TimeWindow, + TriggerCondition, + VMInsightsOnboardingStatus, + VoiceReceiver, + WebhookNotification, + WebhookReceiver, + WebtestLocationAvailabilityCriteria, + 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..f6e1198ab269 --- /dev/null +++ b/sdk/monitor/arm-monitor/src/models/privateLinkScopesMappers.ts @@ -0,0 +1,99 @@ +/* + * 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, + AzureMonitorPrivateLinkScope, + AzureMonitorPrivateLinkScopeListResult, + AzureResource, + BaseResource, + CloudError, + Criteria, + DataContainer, + DiagnosticSettingsCategoryResource, + DiagnosticSettingsResource, + Dimension, + DynamicMetricCriteria, + DynamicThresholdFailingPeriods, + EmailNotification, + EmailReceiver, + ItsmReceiver, + LocationThresholdRuleCondition, + LogicAppReceiver, + LogMetricTrigger, + LogProfileResource, + LogSearchRuleResource, + LogSettings, + LogToMetricAction, + ManagementEventAggregationCondition, + ManagementEventRuleCondition, + MetricAlertAction, + MetricAlertCriteria, + MetricAlertMultipleResourceMultipleMetricCriteria, + MetricAlertResource, + MetricAlertSingleResourceMultipleMetricCriteria, + MetricCriteria, + MetricDimension, + MetricSettings, + MetricTrigger, + MultiMetricCriteria, + 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, + TagsResource, + ThresholdRuleCondition, + TimeWindow, + TriggerCondition, + VMInsightsOnboardingStatus, + VoiceReceiver, + WebhookNotification, + WebhookReceiver, + WebtestLocationAvailabilityCriteria, + 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..f60351a8b081 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,6 +25,8 @@ export { AzNsActionGroup, AzureAppPushReceiver, AzureFunctionReceiver, + AzureMonitorPrivateLinkScope, + AzureResource, BaseResource, Criteria, DataContainer, @@ -35,7 +37,10 @@ export { DynamicThresholdFailingPeriods, EmailNotification, EmailReceiver, + ErrorAdditionalInfo, + ErrorContract, ErrorResponse, + ErrorResponseCommon, ItsmReceiver, LocationThresholdRuleCondition, LogicAppReceiver, @@ -58,6 +63,11 @@ export { MetricSettings, MetricTrigger, MultiMetricCriteria, + PrivateEndpointConnection, + PrivateEndpointProperty, + PrivateLinkResource, + PrivateLinkScopesResource, + PrivateLinkServiceConnectionStateProperty, ProxyOnlyResource, ProxyResource, Recurrence, @@ -75,7 +85,9 @@ export { ScaleAction, ScaleCapacity, ScaleRule, + ScaleRuleMetricDimension, Schedule, + ScopedResource, SmsReceiver, Source, ThresholdRuleCondition, @@ -85,5 +97,6 @@ export { VoiceReceiver, WebhookNotification, WebhookReceiver, + WebtestLocationAvailabilityCriteria, 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..fbce49ddc808 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,6 +25,8 @@ export { AzNsActionGroup, AzureAppPushReceiver, AzureFunctionReceiver, + AzureMonitorPrivateLinkScope, + AzureResource, BaseResource, Criteria, DataContainer, @@ -56,6 +58,11 @@ export { MetricSettings, MetricTrigger, MultiMetricCriteria, + PrivateEndpointConnection, + PrivateEndpointProperty, + PrivateLinkResource, + PrivateLinkScopesResource, + PrivateLinkServiceConnectionStateProperty, ProxyOnlyResource, ProxyResource, Recurrence, @@ -74,7 +81,9 @@ export { ScaleAction, ScaleCapacity, ScaleRule, + ScaleRuleMetricDimension, Schedule, + ScopedResource, SmsReceiver, Source, ThresholdRuleCondition, @@ -84,5 +93,6 @@ export { VoiceReceiver, WebhookNotification, WebhookReceiver, + WebtestLocationAvailabilityCriteria, WorkspaceInfo } from "../models/mappers"; diff --git a/sdk/monitor/arm-monitor/src/monitorManagementClient.ts b/sdk/monitor/arm-monitor/src/monitorManagementClient.ts index a498d7b03d34..11274c2bcf02 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 @@ -9,6 +8,7 @@ */ import * as msRest from "@azure/ms-rest-js"; +import { TokenCredential } from "@azure/core-auth"; import * as Models from "./models"; import * as Mappers from "./models/mappers"; import * as operations from "./operations"; @@ -31,21 +31,30 @@ class MonitorManagementClient extends MonitorManagementClientContext { 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; /** * Initializes a new instance of the MonitorManagementClient class. - * @param credentials Credentials needed for the client to connect to Azure. - * @param subscriptionId The Azure subscription Id. + * @param credentials Credentials needed for the client to connect to Azure. Credentials + * implementing the TokenCredential interface from the @azure/identity package are recommended. For + * more information about these credentials, see + * {@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 ID of the target subscription. * @param [options] The parameter options */ - constructor(credentials: msRest.ServiceClientCredentials, subscriptionId: string, options?: Models.MonitorManagementClientOptions) { + constructor(credentials: msRest.ServiceClientCredentials | TokenCredential, subscriptionId: string, options?: Models.MonitorManagementClientOptions) { super(credentials, subscriptionId, options); this.autoscaleSettings = new operations.AutoscaleSettings(this); this.operations = new operations.Operations(this); @@ -61,13 +70,17 @@ class MonitorManagementClient extends MonitorManagementClientContext { 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); } } diff --git a/sdk/monitor/arm-monitor/src/monitorManagementClientContext.ts b/sdk/monitor/arm-monitor/src/monitorManagementClientContext.ts index aacdc007667d..1a8bf7cfe014 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 @@ -11,21 +10,27 @@ import * as Models from "./models"; import * as msRest from "@azure/ms-rest-js"; import * as msRestAzure from "@azure/ms-rest-azure-js"; +import { TokenCredential } from "@azure/core-auth"; const packageName = "@azure/arm-monitor"; -const packageVersion = "5.4.0"; +const packageVersion = "6.0.0"; export class MonitorManagementClientContext extends msRestAzure.AzureServiceClient { - credentials: msRest.ServiceClientCredentials; + credentials: msRest.ServiceClientCredentials | TokenCredential; subscriptionId: string; /** * Initializes a new instance of the MonitorManagementClient class. - * @param credentials Credentials needed for the client to connect to Azure. - * @param subscriptionId The Azure subscription Id. + * @param credentials Credentials needed for the client to connect to Azure. Credentials + * implementing the TokenCredential interface from the @azure/identity package are recommended. For + * more information about these credentials, see + * {@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 ID of the target subscription. * @param [options] The parameter options */ - constructor(credentials: msRest.ServiceClientCredentials, subscriptionId: string, options?: Models.MonitorManagementClientOptions) { + constructor(credentials: msRest.ServiceClientCredentials | TokenCredential, subscriptionId: string, options?: Models.MonitorManagementClientOptions) { if (credentials == undefined) { throw new Error('\'credentials\' cannot be null.'); } @@ -36,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}`; } @@ -50,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..d9ea51a92776 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 diff --git a/sdk/monitor/arm-monitor/src/operations/activityLogAlerts.ts b/sdk/monitor/arm-monitor/src/operations/activityLogAlerts.ts index 257a6277a91e..ca1477d42b33 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 diff --git a/sdk/monitor/arm-monitor/src/operations/activityLogs.ts b/sdk/monitor/arm-monitor/src/operations/activityLogs.ts index 561f7d7f4eba..dd517a8535a7 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, @@ -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..11cad3bd4694 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 diff --git a/sdk/monitor/arm-monitor/src/operations/alertRules.ts b/sdk/monitor/arm-monitor/src/operations/alertRules.ts index 79429b70aaf1..43181c830b9c 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,7 +26,7 @@ export class AlertRules { } /** - * Creates or updates an alert rule. + * Creates or updates a classic metric alert rule. * @param resourceGroupName The name of the resource group. * @param ruleName The name of the rule. * @param parameters The parameters of the rule to create or update. @@ -63,7 +62,7 @@ export class AlertRules { } /** - * Deletes an alert rule + * Deletes a classic metric alert rule * @param resourceGroupName The name of the resource group. * @param ruleName The name of the rule. * @param [options] The optional parameters @@ -95,7 +94,7 @@ export class AlertRules { } /** - * Gets an alert rule + * Gets a classic metric alert rule * @param resourceGroupName The name of the resource group. * @param ruleName The name of the rule. * @param [options] The optional parameters @@ -127,7 +126,8 @@ export class AlertRules { } /** - * Updates an existing AlertRuleResource. To update other fields use the CreateOrUpdate method. + * Updates an existing classic metric AlertRuleResource. To update other fields use the + * CreateOrUpdate method. * @param resourceGroupName The name of the resource group. * @param ruleName The name of the rule. * @param alertRulesResource Parameters supplied to the operation. @@ -163,7 +163,7 @@ export class AlertRules { } /** - * List the alert rules within a resource group. + * List the classic metric alert rules within a resource group. * @param resourceGroupName The name of the resource group. * @param [options] The optional parameters * @returns Promise @@ -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..fcaeb8295afd 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 @@ -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..cbba7709555d 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,7 +58,7 @@ 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 ], @@ -72,7 +71,7 @@ const listOperationSpec: msRest.OperationSpec = { Parameters.sensitivities, Parameters.filter1, Parameters.resultType, - Parameters.apiVersion7 + Parameters.apiVersion6 ], headerParameters: [ Parameters.acceptLanguage diff --git a/sdk/monitor/arm-monitor/src/operations/diagnosticSettingsCategoryOperations.ts b/sdk/monitor/arm-monitor/src/operations/diagnosticSettingsCategoryOperations.ts index 696518269cd8..0869d3d17322 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 diff --git a/sdk/monitor/arm-monitor/src/operations/diagnosticSettingsOperations.ts b/sdk/monitor/arm-monitor/src/operations/diagnosticSettingsOperations.ts index 8153aa322d65..1e904323adfe 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 diff --git a/sdk/monitor/arm-monitor/src/operations/eventCategories.ts b/sdk/monitor/arm-monitor/src/operations/eventCategories.ts index 67bd8f4311b4..5d8312b0750b 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 diff --git a/sdk/monitor/arm-monitor/src/operations/index.ts b/sdk/monitor/arm-monitor/src/operations/index.ts index a7964c5cac32..f11c7179221a 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 @@ -22,10 +21,14 @@ 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"; diff --git a/sdk/monitor/arm-monitor/src/operations/logProfiles.ts b/sdk/monitor/arm-monitor/src/operations/logProfiles.ts index 1ae52e5613b7..a214f0ebde99 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 diff --git a/sdk/monitor/arm-monitor/src/operations/metricAlerts.ts b/sdk/monitor/arm-monitor/src/operations/metricAlerts.ts index f7d435bd6048..50f5dd66a6d8 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 @@ -224,7 +223,7 @@ const listBySubscriptionOperationSpec: msRest.OperationSpec = { Parameters.subscriptionId ], queryParameters: [ - Parameters.apiVersion8 + Parameters.apiVersion7 ], headerParameters: [ Parameters.acceptLanguage @@ -248,7 +247,7 @@ const listByResourceGroupOperationSpec: msRest.OperationSpec = { Parameters.resourceGroupName ], queryParameters: [ - Parameters.apiVersion8 + Parameters.apiVersion7 ], headerParameters: [ Parameters.acceptLanguage @@ -273,7 +272,7 @@ const getOperationSpec: msRest.OperationSpec = { Parameters.ruleName ], queryParameters: [ - Parameters.apiVersion8 + Parameters.apiVersion7 ], headerParameters: [ Parameters.acceptLanguage @@ -298,7 +297,7 @@ const createOrUpdateOperationSpec: msRest.OperationSpec = { Parameters.ruleName ], queryParameters: [ - Parameters.apiVersion8 + Parameters.apiVersion7 ], headerParameters: [ Parameters.acceptLanguage @@ -330,7 +329,7 @@ const updateOperationSpec: msRest.OperationSpec = { Parameters.ruleName ], queryParameters: [ - Parameters.apiVersion8 + Parameters.apiVersion7 ], headerParameters: [ Parameters.acceptLanguage @@ -362,7 +361,7 @@ const deleteMethodOperationSpec: msRest.OperationSpec = { Parameters.ruleName ], queryParameters: [ - Parameters.apiVersion8 + Parameters.apiVersion7 ], 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..3294ccb73224 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 @@ -106,7 +105,7 @@ const listOperationSpec: msRest.OperationSpec = { Parameters.ruleName ], queryParameters: [ - Parameters.apiVersion8 + Parameters.apiVersion7 ], headerParameters: [ Parameters.acceptLanguage @@ -132,7 +131,7 @@ const listByNameOperationSpec: msRest.OperationSpec = { Parameters.statusName ], queryParameters: [ - Parameters.apiVersion8 + Parameters.apiVersion7 ], 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..80802f0d8c75 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 diff --git a/sdk/monitor/arm-monitor/src/operations/metricNamespaces.ts b/sdk/monitor/arm-monitor/src/operations/metricNamespaces.ts index 447750b8340e..50c4f83e3ef1 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 @@ -64,7 +63,7 @@ const listOperationSpec: msRest.OperationSpec = { Parameters.resourceUri ], queryParameters: [ - Parameters.apiVersion10, + Parameters.apiVersion9, 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..694bb20ebab7 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 diff --git a/sdk/monitor/arm-monitor/src/operations/operations.ts b/sdk/monitor/arm-monitor/src/operations/operations.ts index a6faf8a59a89..206ca3d8a880 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 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..4c39d1f3f6cb --- /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. + * @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. + * @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. + * @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. + * @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. + * @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. + * @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. + * @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. + * @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. + * @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. + * @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.apiVersion11 + ], + 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.apiVersion11 + ], + 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.apiVersion11 + ], + 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.apiVersion11 + ], + 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.apiVersion11 + ], + 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..af526927775b --- /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. + * @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. + * @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. + * @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. + * @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. + * @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. + * @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.apiVersion11 + ], + 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.apiVersion11 + ], + 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.apiVersion11 + ], + 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..61a3c8c481e7 --- /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. + * @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. + * @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. + * @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.apiVersion11 + ], + 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..0f3d9b4ce02f --- /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. + * @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. + * @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. + * @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. + * @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. + * @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. + * @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. + * @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. + * @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. + * @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. + * @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.apiVersion11 + ], + 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.apiVersion11 + ], + 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.apiVersion11 + ], + 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.apiVersion11 + ], + 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.apiVersion11 + ], + 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..46d06889ce6c --- /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. + * @param [options] The optional parameters + * @returns Promise + */ + listByResourceGroup(resourceGroupName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName The name of the resource group. + * @param callback The callback + */ + listByResourceGroup(resourceGroupName: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName The name of the resource group. + * @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. + * @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. + * @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. + * @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. + * @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. + * @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. + * @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. + * @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. + * @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. + * @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. + * @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. + * @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.apiVersion11 + ], + 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.apiVersion11 + ], + 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.apiVersion11 + ], + 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.apiVersion11 + ], + 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.apiVersion11 + ], + 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.apiVersion11 + ], + 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.apiVersion11 + ], + 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.apiVersion11 + ], + 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..67fc90c35b69 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 @@ -226,7 +225,7 @@ const createOrUpdateOperationSpec: msRest.OperationSpec = { Parameters.ruleName ], queryParameters: [ - Parameters.apiVersion9 + Parameters.apiVersion8 ], headerParameters: [ Parameters.acceptLanguage @@ -246,7 +245,7 @@ const createOrUpdateOperationSpec: msRest.OperationSpec = { bodyMapper: Mappers.LogSearchRuleResource }, default: { - bodyMapper: Mappers.ErrorResponse + bodyMapper: Mappers.ErrorContract } }, serializer @@ -261,7 +260,7 @@ const getOperationSpec: msRest.OperationSpec = { Parameters.subscriptionId ], queryParameters: [ - Parameters.apiVersion9 + Parameters.apiVersion8 ], headerParameters: [ Parameters.acceptLanguage @@ -271,7 +270,7 @@ const getOperationSpec: msRest.OperationSpec = { bodyMapper: Mappers.LogSearchRuleResource }, default: { - bodyMapper: Mappers.ErrorResponse + bodyMapper: Mappers.ErrorContract } }, serializer @@ -286,7 +285,7 @@ const updateOperationSpec: msRest.OperationSpec = { Parameters.ruleName ], queryParameters: [ - Parameters.apiVersion9 + Parameters.apiVersion8 ], headerParameters: [ Parameters.acceptLanguage @@ -303,7 +302,7 @@ const updateOperationSpec: msRest.OperationSpec = { bodyMapper: Mappers.LogSearchRuleResource }, default: { - bodyMapper: Mappers.ErrorResponse + bodyMapper: Mappers.ErrorContract } }, serializer @@ -318,7 +317,7 @@ const deleteMethodOperationSpec: msRest.OperationSpec = { Parameters.subscriptionId ], queryParameters: [ - Parameters.apiVersion9 + Parameters.apiVersion8 ], headerParameters: [ Parameters.acceptLanguage @@ -327,7 +326,7 @@ const deleteMethodOperationSpec: msRest.OperationSpec = { 200: {}, 204: {}, default: { - bodyMapper: Mappers.ErrorResponse + bodyMapper: Mappers.ErrorContract } }, serializer @@ -340,7 +339,7 @@ const listBySubscriptionOperationSpec: msRest.OperationSpec = { Parameters.subscriptionId ], queryParameters: [ - Parameters.apiVersion9, + Parameters.apiVersion8, Parameters.filter1 ], headerParameters: [ @@ -351,7 +350,7 @@ const listBySubscriptionOperationSpec: msRest.OperationSpec = { bodyMapper: Mappers.LogSearchRuleResourceCollection }, default: { - bodyMapper: Mappers.ErrorResponse + bodyMapper: Mappers.ErrorContract } }, serializer @@ -365,7 +364,7 @@ const listByResourceGroupOperationSpec: msRest.OperationSpec = { Parameters.subscriptionId ], queryParameters: [ - Parameters.apiVersion9, + Parameters.apiVersion8, 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..2f8a152a7bdd 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, @@ -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..6be615be66d1 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 @@ -67,7 +66,7 @@ const getOnboardingStatusOperationSpec: msRest.OperationSpec = { Parameters.resourceUri ], queryParameters: [ - Parameters.apiVersion11 + Parameters.apiVersion10 ], headerParameters: [ Parameters.acceptLanguage