From cd30cdb5925d9f9fd77d55e7b6dd54350d912b13 Mon Sep 17 00:00:00 2001 From: SDKAuto Date: Thu, 28 Jan 2021 04:30:13 +0000 Subject: [PATCH] CodeGen from PR 12543 in Azure/azure-rest-api-specs Merge cfaa6c8bda15abfbe9246acfb01351f45e028a73 into 5e076b3d3a0d6b5c9f083a0fddf0e3082137b0c6 --- sdk/monitor/arm-monitor/LICENSE.txt | 2 +- sdk/monitor/arm-monitor/README.md | 11 +- sdk/monitor/arm-monitor/rollup.config.js | 4 +- .../src/models/actionGroupsMappers.ts | 6 +- .../src/models/activityLogAlertsMappers.ts | 6 +- .../src/models/activityLogsMappers.ts | 4 +- .../src/models/alertRuleIncidentsMappers.ts | 4 +- .../src/models/alertRulesMappers.ts | 7 +- .../src/models/autoscaleSettingsMappers.ts | 6 +- .../src/models/baselinesMappers.ts | 4 +- ...nosticSettingsCategoryOperationsMappers.ts | 6 +- .../diagnosticSettingsOperationsMappers.ts | 6 +- .../src/models/eventCategoriesMappers.ts | 4 +- sdk/monitor/arm-monitor/src/models/index.ts | 278 +++++++++++++++--- .../src/models/logProfilesMappers.ts | 6 +- sdk/monitor/arm-monitor/src/models/mappers.ts | 189 ++++++++++-- .../src/models/metricAlertsMappers.ts | 7 +- .../src/models/metricAlertsStatusMappers.ts | 4 +- .../src/models/metricBaselineMappers.ts | 4 +- .../src/models/metricDefinitionsMappers.ts | 4 +- .../src/models/metricNamespacesMappers.ts | 4 +- .../arm-monitor/src/models/metricsMappers.ts | 4 +- .../src/models/operationsMappers.ts | 4 +- .../arm-monitor/src/models/parameters.ts | 44 ++- .../src/models/scheduledQueryRulesMappers.ts | 7 +- .../src/models/tenantActivityLogsMappers.ts | 4 +- .../src/models/vMInsightsMappers.ts | 6 +- .../src/monitorManagementClient.ts | 7 +- .../src/monitorManagementClientContext.ts | 9 +- .../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 | 7 +- .../diagnosticSettingsCategoryOperations.ts | 5 +- .../diagnosticSettingsOperations.ts | 5 +- .../src/operations/eventCategories.ts | 5 +- .../arm-monitor/src/operations/index.ts | 5 +- .../arm-monitor/src/operations/logProfiles.ts | 5 +- .../src/operations/metricAlerts.ts | 7 +- .../src/operations/metricAlertsStatus.ts | 5 +- .../src/operations/metricBaseline.ts | 9 +- .../src/operations/metricDefinitions.ts | 5 +- .../src/operations/metricNamespaces.ts | 5 +- .../arm-monitor/src/operations/metrics.ts | 5 +- .../arm-monitor/src/operations/operations.ts | 5 +- .../src/operations/scheduledQueryRules.ts | 17 +- .../src/operations/tenantActivityLogs.ts | 16 +- .../arm-monitor/src/operations/vMInsights.ts | 5 +- 51 files changed, 670 insertions(+), 217 deletions(-) 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..c22c7725ef89 100644 --- a/sdk/monitor/arm-monitor/README.md +++ b/sdk/monitor/arm-monitor/README.md @@ -15,7 +15,7 @@ npm install @azure/arm-monitor ### How to use -#### nodejs - Authentication, client creation and listByResourceGroup autoscaleSettings as an example written in TypeScript. +#### nodejs - client creation and listByResourceGroup autoscaleSettings as an example written in TypeScript. ##### Install @azure/ms-rest-nodeauth @@ -26,11 +26,10 @@ npm install @azure/ms-rest-nodeauth@"^3.0.0" ##### Sample code +While the below sample uses the interactive login, other authentication options can be found in the [README.md file of @azure/ms-rest-nodeauth](https://www.npmjs.com/package/@azure/ms-rest-nodeauth) package ```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"; +const msRestNodeAuth = require("@azure/ms-rest-nodeauth"); +const { MonitorManagementClient } = require("@azure/arm-monitor"); const subscriptionId = process.env["AZURE_SUBSCRIPTION_ID"]; msRestNodeAuth.interactiveLogin().then((creds) => { @@ -98,4 +97,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/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..6f6063457eee 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. @@ -76,6 +76,7 @@ export { ScaleAction, ScaleCapacity, ScaleRule, + ScaleRuleMetricDimension, Schedule, SmsReceiver, Source, @@ -86,5 +87,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..77a836d11d5f 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. @@ -75,6 +75,7 @@ export { ScaleAction, ScaleCapacity, ScaleRule, + ScaleRuleMetricDimension, Schedule, SmsReceiver, Source, @@ -85,5 +86,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..2a13149046c4 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. diff --git a/sdk/monitor/arm-monitor/src/models/alertRuleIncidentsMappers.ts b/sdk/monitor/arm-monitor/src/models/alertRuleIncidentsMappers.ts index 1980277abff7..22e97bf9cbd2 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. diff --git a/sdk/monitor/arm-monitor/src/models/alertRulesMappers.ts b/sdk/monitor/arm-monitor/src/models/alertRulesMappers.ts index 91bb37022f98..7cd1fe43ee05 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. @@ -28,7 +28,6 @@ export { AzureAppPushReceiver, AzureFunctionReceiver, BaseResource, - CloudError, Criteria, DataContainer, DiagnosticSettingsCategoryResource, @@ -76,6 +75,7 @@ export { ScaleAction, ScaleCapacity, ScaleRule, + ScaleRuleMetricDimension, Schedule, SmsReceiver, Source, @@ -86,5 +86,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..c9c876e0a030 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. @@ -75,6 +75,7 @@ export { ScaleAction, ScaleCapacity, ScaleRule, + ScaleRuleMetricDimension, Schedule, SmsReceiver, Source, @@ -85,5 +86,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..d00dd70e6bc9 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. diff --git a/sdk/monitor/arm-monitor/src/models/diagnosticSettingsCategoryOperationsMappers.ts b/sdk/monitor/arm-monitor/src/models/diagnosticSettingsCategoryOperationsMappers.ts index 7402d3661f02..2d1247ebb504 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. @@ -74,6 +74,7 @@ export { ScaleAction, ScaleCapacity, ScaleRule, + ScaleRuleMetricDimension, Schedule, SmsReceiver, Source, @@ -84,5 +85,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..c340c0e9f57b 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. @@ -74,6 +74,7 @@ export { ScaleAction, ScaleCapacity, ScaleRule, + ScaleRuleMetricDimension, Schedule, SmsReceiver, Source, @@ -84,5 +85,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..8c9ac0515afa 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. diff --git a/sdk/monitor/arm-monitor/src/models/index.ts b/sdk/monitor/arm-monitor/src/models/index.ts index 88cfd9ddd4cf..e7c8c27e4fda 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,11 @@ 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[]; } /** @@ -1905,6 +1950,10 @@ export interface Baseline { * The high thresholds of the baseline. */ highThresholds: number[]; + /** + * the array of timestamps of the baselines. + */ + timestamps?: Date[] | string[]; } /** @@ -2061,7 +2110,7 @@ export interface TimeSeriesBaseline { /** * The baseline metadata values. */ - metadata?: BaselineMetadata[]; + metadataValues?: BaselineMetadata[]; } /** @@ -2111,15 +2160,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 +2192,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 +2204,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 +2216,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 +2229,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 +2242,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 +2260,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 +2276,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 +2295,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 +2310,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 +2393,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 +2433,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. */ - operator: any; + skipMetricValidation?: boolean; + /** + * the criteria operator. Possible values include: 'Equals', 'NotEquals', 'GreaterThan', + * 'GreaterThanOrEqual', 'LessThan', 'LessThanOrEqual' + */ + operator: Operator; /** * the criteria threshold value that activates the alert. */ @@ -2398,6 +2471,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 +2563,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. */ - operator: any; + skipMetricValidation?: boolean; + /** + * The operator used to compare the metric value against the threshold. Possible values include: + * 'GreaterThan', 'LessThan', 'GreaterOrLessThan' + */ + 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. @@ -2556,6 +2658,10 @@ export interface LogSearchRuleResource extends Resource { * The description of the Log Search rule. */ description?: string; + /** + * The display name of the alert rule + */ + displayName?: string; /** * The flag which indicates whether the Log Search rule is enabled. Value should be true or * false. Possible values include: 'true', 'false' @@ -2607,7 +2713,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 +2723,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 +2738,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 +2838,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. */ @@ -2877,6 +2995,21 @@ export interface ActivityLogsListOptionalParams extends msRest.RequestOptionsBas select?: string; } +/** + * Optional Parameters. + */ +export interface ActivityLogsListNextOptionalParams extends msRest.RequestOptionsBase { + /** + * Used to fetch events with only the given properties.
The **$select** argument is a comma + * separated list of property names to be returned. Possible values are: *authorization*, + * *claims*, *correlationId*, *description*, *eventDataId*, *eventName*, *eventTimestamp*, + * *httpRequest*, *level*, *operationId*, *operationName*, *properties*, *resourceGroupName*, + * *resourceProviderName*, *resourceId*, *status*, *submissionTimestamp*, *subStatus*, + * *subscriptionId* + */ + select?: string; +} + /** * Optional Parameters. */ @@ -2908,6 +3041,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. */ @@ -3233,6 +3397,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' @@ -3331,6 +3503,39 @@ export type Sensitivity = 'Low' | 'Medium' | 'High'; */ export type BaselineSensitivity = 'Low' | 'Medium' | 'High'; +/** + * Defines values for Operator. + * Possible values include: 'Equals', 'NotEquals', 'GreaterThan', 'GreaterThanOrEqual', 'LessThan', + * 'LessThanOrEqual' + * @readonly + * @enum {string} + */ +export type Operator = 'Equals' | 'NotEquals' | 'GreaterThan' | 'GreaterThanOrEqual' | 'LessThan' | 'LessThanOrEqual'; + +/** + * Defines values for AggregationTypeEnum. + * Possible values include: 'Average', 'Count', 'Minimum', 'Maximum', 'Total' + * @readonly + * @enum {string} + */ +export type AggregationTypeEnum = 'Average' | 'Count' | 'Minimum' | 'Maximum' | 'Total'; + +/** + * Defines values for DynamicThresholdOperator. + * Possible values include: 'GreaterThan', 'LessThan', 'GreaterOrLessThan' + * @readonly + * @enum {string} + */ +export type DynamicThresholdOperator = 'GreaterThan' | 'LessThan' | 'GreaterOrLessThan'; + +/** + * Defines values for DynamicThresholdSensitivity. + * Possible values include: 'Low', 'Medium', 'High' + * @readonly + * @enum {string} + */ +export type DynamicThresholdSensitivity = 'Low' | 'Medium' | 'High'; + /** * Defines values for Enabled. * Possible values include: 'true', 'false' @@ -3357,11 +3562,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. diff --git a/sdk/monitor/arm-monitor/src/models/logProfilesMappers.ts b/sdk/monitor/arm-monitor/src/models/logProfilesMappers.ts index a1ad33c209e5..d9aa57b662cf 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. @@ -76,6 +76,7 @@ export { ScaleAction, ScaleCapacity, ScaleRule, + ScaleRuleMetricDimension, Schedule, SmsReceiver, Source, @@ -86,5 +87,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..42e67b3b18a7 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,18 @@ export const MetricTrigger: msRest.CompositeMapper = { type: { name: "Number" } + }, + dimensions: { + serializedName: "dimensions", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ScaleRuleMetricDimension" + } + } + } } } } @@ -3184,6 +3252,17 @@ export const Baseline: msRest.CompositeMapper = { } } } + }, + timestamps: { + serializedName: "timestamps", + type: { + name: "Sequence", + element: { + type: { + name: "DateTime" + } + } + } } } } @@ -3499,8 +3578,8 @@ export const TimeSeriesBaseline: msRest.CompositeMapper = { } } }, - metadata: { - serializedName: "metadata", + metadataValues: { + serializedName: "metadataValues", type: { name: "Sequence", element: { @@ -3591,8 +3670,8 @@ export const MetricAlertAction: msRest.CompositeMapper = { name: "String" } }, - webhookProperties: { - serializedName: "webhookProperties", + webHookProperties: { + serializedName: "webHookProperties", type: { name: "Dictionary", value: { @@ -3641,7 +3720,6 @@ export const MetricAlertResource: msRest.CompositeMapper = { modelProperties: { ...Resource.type.modelProperties, description: { - required: true, serializedName: "properties.description", type: { name: "String" @@ -3662,6 +3740,7 @@ export const MetricAlertResource: msRest.CompositeMapper = { } }, scopes: { + required: true, serializedName: "properties.scopes", type: { name: "Sequence", @@ -3735,6 +3814,13 @@ export const MetricAlertResource: msRest.CompositeMapper = { type: { name: "DateTime" } + }, + isMigrated: { + readOnly: true, + serializedName: "properties.isMigrated", + type: { + name: "Boolean" + } } } } @@ -3758,21 +3844,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 +3873,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 +3897,6 @@ export const MetricAlertResourcePatch: msRest.CompositeMapper = { } }, criteria: { - required: true, serializedName: "properties.criteria", type: { name: "Composite", @@ -3852,6 +3932,13 @@ export const MetricAlertResourcePatch: msRest.CompositeMapper = { type: { name: "DateTime" } + }, + isMigrated: { + readOnly: true, + serializedName: "properties.isMigrated", + type: { + name: "Boolean" + } } } } @@ -3982,7 +4069,7 @@ export const MultiMetricCriteria: msRest.CompositeMapper = { required: true, serializedName: "timeAggregation", type: { - name: "Object" + name: "String" } }, dimensions: { @@ -3997,6 +4084,12 @@ export const MultiMetricCriteria: msRest.CompositeMapper = { } } }, + skipMetricValidation: { + serializedName: "skipMetricValidation", + type: { + name: "Boolean" + } + }, criterionType: { required: true, serializedName: "criterionType", @@ -4026,7 +4119,7 @@ export const MetricCriteria: msRest.CompositeMapper = { required: true, serializedName: "operator", type: { - name: "Object" + name: "String" } }, threshold: { @@ -4068,6 +4161,41 @@ export const MetricAlertSingleResourceMultipleMetricCriteria: msRest.CompositeMa } }; +export const WebtestLocationAvailabilityCriteria: msRest.CompositeMapper = { + serializedName: "Microsoft.Azure.Monitor.WebtestLocationAvailabilityCriteria", + type: { + name: "Composite", + polymorphicDiscriminator: MetricAlertCriteria.type.polymorphicDiscriminator, + uberParent: "MetricAlertCriteria", + className: "WebtestLocationAvailabilityCriteria", + modelProperties: { + ...MetricAlertCriteria.type.modelProperties, + webTestId: { + required: true, + serializedName: "webTestId", + type: { + name: "String" + } + }, + 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: { @@ -4172,14 +4300,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: { @@ -4300,6 +4428,12 @@ export const LogSearchRuleResource: msRest.CompositeMapper = { name: "String" } }, + displayName: { + serializedName: "properties.displayName", + type: { + name: "String" + } + }, enabled: { serializedName: "properties.enabled", type: { @@ -4382,6 +4516,7 @@ export const LogMetricTrigger: msRest.CompositeMapper = { modelProperties: { thresholdOperator: { serializedName: "thresholdOperator", + defaultValue: 'GreaterThanOrEqual', type: { name: "String" } @@ -4394,6 +4529,7 @@ export const LogMetricTrigger: msRest.CompositeMapper = { }, metricTriggerType: { serializedName: "metricTriggerType", + defaultValue: 'Consecutive', type: { name: "String" } @@ -4417,6 +4553,7 @@ export const TriggerCondition: msRest.CompositeMapper = { thresholdOperator: { required: true, serializedName: "thresholdOperator", + defaultValue: 'GreaterThanOrEqual', type: { name: "String" } @@ -4606,6 +4743,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: { @@ -5140,6 +5294,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..b025a28167e1 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. @@ -26,7 +26,6 @@ export { AzureAppPushReceiver, AzureFunctionReceiver, BaseResource, - CloudError, Criteria, DataContainer, DiagnosticSettingsCategoryResource, @@ -76,6 +75,7 @@ export { ScaleAction, ScaleCapacity, ScaleRule, + ScaleRuleMetricDimension, Schedule, SmsReceiver, Source, @@ -86,5 +86,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..8c4636ce6a53 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. diff --git a/sdk/monitor/arm-monitor/src/models/metricBaselineMappers.ts b/sdk/monitor/arm-monitor/src/models/metricBaselineMappers.ts index 7fbb371a4578..ba6e2fc8c24e 100644 --- a/sdk/monitor/arm-monitor/src/models/metricBaselineMappers.ts +++ b/sdk/monitor/arm-monitor/src/models/metricBaselineMappers.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/metricDefinitionsMappers.ts b/sdk/monitor/arm-monitor/src/models/metricDefinitionsMappers.ts index 31046db255a5..3f54d4385ddb 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. diff --git a/sdk/monitor/arm-monitor/src/models/metricNamespacesMappers.ts b/sdk/monitor/arm-monitor/src/models/metricNamespacesMappers.ts index 2e78b28244cd..d45faccf423a 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. diff --git a/sdk/monitor/arm-monitor/src/models/metricsMappers.ts b/sdk/monitor/arm-monitor/src/models/metricsMappers.ts index 0796246e9fe7..1b5fdcd9a4ca 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. 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..3ca8765caef2 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" } @@ -83,6 +88,9 @@ export const apiVersion10: msRest.OperationQueryParameter = { isConstant: true, serializedName: "api-version", defaultValue: '2017-12-01-preview', + constraints: { + MinLength: 1 + }, type: { name: "String" } @@ -95,6 +103,9 @@ export const apiVersion11: msRest.OperationQueryParameter = { isConstant: true, serializedName: "api-version", defaultValue: '2018-11-27-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" } @@ -155,6 +178,9 @@ export const apiVersion6: msRest.OperationQueryParameter = { isConstant: true, serializedName: "api-version", defaultValue: '2017-11-01-preview', + constraints: { + MinLength: 1 + }, type: { name: "String" } @@ -167,6 +193,9 @@ export const apiVersion7: msRest.OperationQueryParameter = { isConstant: true, serializedName: "api-version", defaultValue: '2019-03-01', + constraints: { + MinLength: 1 + }, type: { name: "String" } @@ -179,6 +208,9 @@ export const apiVersion8: msRest.OperationQueryParameter = { isConstant: true, serializedName: "api-version", defaultValue: '2018-03-01', + constraints: { + MinLength: 1 + }, type: { name: "String" } @@ -191,6 +223,9 @@ export const apiVersion9: msRest.OperationQueryParameter = { isConstant: true, serializedName: "api-version", defaultValue: '2018-04-16', + constraints: { + MinLength: 1 + }, type: { name: "String" } @@ -425,6 +460,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/scheduledQueryRulesMappers.ts b/sdk/monitor/arm-monitor/src/models/scheduledQueryRulesMappers.ts index 0fffe5f5617c..f005dc30a7f7 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. @@ -35,6 +35,7 @@ export { DynamicThresholdFailingPeriods, EmailNotification, EmailReceiver, + ErrorContract, ErrorResponse, ItsmReceiver, LocationThresholdRuleCondition, @@ -75,6 +76,7 @@ export { ScaleAction, ScaleCapacity, ScaleRule, + ScaleRuleMetricDimension, Schedule, SmsReceiver, Source, @@ -85,5 +87,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..2a13149046c4 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. diff --git a/sdk/monitor/arm-monitor/src/models/vMInsightsMappers.ts b/sdk/monitor/arm-monitor/src/models/vMInsightsMappers.ts index 3e0639f45f11..f4ff64755344 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. @@ -74,6 +74,7 @@ export { ScaleAction, ScaleCapacity, ScaleRule, + ScaleRuleMetricDimension, Schedule, SmsReceiver, Source, @@ -84,5 +85,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..a41901baf6d6 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 @@ -42,7 +41,7 @@ class MonitorManagementClient extends MonitorManagementClientContext { /** * 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 subscriptionId The ID of the target subscription. * @param [options] The parameter options */ constructor(credentials: msRest.ServiceClientCredentials, subscriptionId: string, options?: Models.MonitorManagementClientOptions) { diff --git a/sdk/monitor/arm-monitor/src/monitorManagementClientContext.ts b/sdk/monitor/arm-monitor/src/monitorManagementClientContext.ts index aacdc007667d..47ef4f97e7d0 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 @@ -13,7 +12,7 @@ import * as msRest from "@azure/ms-rest-js"; import * as msRestAzure from "@azure/ms-rest-azure-js"; const packageName = "@azure/arm-monitor"; -const packageVersion = "5.4.0"; +const packageVersion = "6.0.0"; export class MonitorManagementClientContext extends msRestAzure.AzureServiceClient { credentials: msRest.ServiceClientCredentials; @@ -22,7 +21,7 @@ export class MonitorManagementClientContext extends msRestAzure.AzureServiceClie /** * 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 subscriptionId The ID of the target subscription. * @param [options] The parameter options */ constructor(credentials: msRest.ServiceClientCredentials, subscriptionId: string, options?: Models.MonitorManagementClientOptions) { 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..d01b05543ec3 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 ], 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..d4daea884535 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 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..f88184b73a98 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 @@ -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..79a724bf99a5 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 diff --git a/sdk/monitor/arm-monitor/src/operations/metricBaseline.ts b/sdk/monitor/arm-monitor/src/operations/metricBaseline.ts index 0cd73b9d1c3e..73f5167fad95 100644 --- a/sdk/monitor/arm-monitor/src/operations/metricBaseline.ts +++ b/sdk/monitor/arm-monitor/src/operations/metricBaseline.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 @@ -116,7 +115,7 @@ export class MetricBaseline { const serializer = new msRest.Serializer(Mappers); const getOperationSpec: msRest.OperationSpec = { httpMethod: "GET", - path: "{resourceUri}/providers/microsoft.insights/baseline/{metricName}", + path: "{resourceUri}/providers/Microsoft.Insights/baseline/{metricName}", urlParameters: [ Parameters.resourceUri, Parameters.metricName @@ -145,7 +144,7 @@ const getOperationSpec: msRest.OperationSpec = { const calculateBaselineOperationSpec: msRest.OperationSpec = { httpMethod: "POST", - path: "{resourceUri}/providers/microsoft.insights/calculatebaseline", + path: "{resourceUri}/providers/Microsoft.Insights/calculatebaseline", urlParameters: [ Parameters.resourceUri ], 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..8dad0d3d8c97 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 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/scheduledQueryRules.ts b/sdk/monitor/arm-monitor/src/operations/scheduledQueryRules.ts index 2e49d3d94545..c65d57f8936f 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 @@ -246,7 +245,7 @@ const createOrUpdateOperationSpec: msRest.OperationSpec = { bodyMapper: Mappers.LogSearchRuleResource }, default: { - bodyMapper: Mappers.ErrorResponse + bodyMapper: Mappers.ErrorContract } }, serializer @@ -271,7 +270,7 @@ const getOperationSpec: msRest.OperationSpec = { bodyMapper: Mappers.LogSearchRuleResource }, default: { - bodyMapper: Mappers.ErrorResponse + bodyMapper: Mappers.ErrorContract } }, serializer @@ -303,7 +302,7 @@ const updateOperationSpec: msRest.OperationSpec = { bodyMapper: Mappers.LogSearchRuleResource }, default: { - bodyMapper: Mappers.ErrorResponse + bodyMapper: Mappers.ErrorContract } }, serializer @@ -327,7 +326,7 @@ const deleteMethodOperationSpec: msRest.OperationSpec = { 200: {}, 204: {}, default: { - bodyMapper: Mappers.ErrorResponse + bodyMapper: Mappers.ErrorContract } }, serializer @@ -351,7 +350,7 @@ const listBySubscriptionOperationSpec: msRest.OperationSpec = { bodyMapper: Mappers.LogSearchRuleResourceCollection }, default: { - bodyMapper: Mappers.ErrorResponse + bodyMapper: Mappers.ErrorContract } }, serializer @@ -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..b2b7040e3d51 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