Skip to content

Commit 6edf8d3

Browse files
author
SDKAuto
committed
CodeGen from PR 13677 in Azure/azure-rest-api-specs
Merge 31ab2184988aba0ca52069ad6857a3e3fb0ccbf2 into 1b0ed8edd58bb7c9ade9a27430759527bd4eec8e
1 parent 079a52c commit 6edf8d3

File tree

61 files changed

+4363
-479
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

61 files changed

+4363
-479
lines changed

sdk/monitor/arm-monitor/LICENSE.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
The MIT License (MIT)
22

3-
Copyright (c) 2019 Microsoft
3+
Copyright (c) 2021 Microsoft
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy
66
of this software and associated documentation files (the "Software"), to deal

sdk/monitor/arm-monitor/README.md

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ npm install @azure/arm-monitor
1515

1616
### How to use
1717

18-
#### nodejs - Authentication, client creation and listByResourceGroup autoscaleSettings as an example written in TypeScript.
18+
#### nodejs - client creation and listByResourceGroup autoscaleSettings as an example written in TypeScript.
1919

2020
##### Install @azure/ms-rest-nodeauth
2121

@@ -26,11 +26,10 @@ npm install @azure/ms-rest-nodeauth@"^3.0.0"
2626

2727
##### Sample code
2828

29+
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
2930
```typescript
30-
import * as msRest from "@azure/ms-rest-js";
31-
import * as msRestAzure from "@azure/ms-rest-azure-js";
32-
import * as msRestNodeAuth from "@azure/ms-rest-nodeauth";
33-
import { MonitorManagementClient, MonitorManagementModels, MonitorManagementMappers } from "@azure/arm-monitor";
31+
const msRestNodeAuth = require("@azure/ms-rest-nodeauth");
32+
const { MonitorManagementClient } = require("@azure/arm-monitor");
3433
const subscriptionId = process.env["AZURE_SUBSCRIPTION_ID"];
3534

3635
msRestNodeAuth.interactiveLogin().then((creds) => {
@@ -98,4 +97,4 @@ See https://github.com/Azure/ms-rest-browserauth to learn how to authenticate to
9897

9998
- [Microsoft Azure SDK for Javascript](https://github.com/Azure/azure-sdk-for-js)
10099

101-
![Impressions](https://azure-sdk-impressions.azurewebsites.net/api/impressions/azure-sdk-for-js%2Fsdk%2Fmonitor%2Farm-monitor%2FREADME.png)
100+
![Impressions](https://azure-sdk-impressions.azurewebsites.net/api/impressions/azure-sdk-for-js/sdk/monitor/arm-monitor/README.png)

sdk/monitor/arm-monitor/rollup.config.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,8 @@ const config = {
2121
"@azure/ms-rest-azure-js": "msRestAzure"
2222
},
2323
banner: `/*
24-
* Copyright (c) Microsoft Corporation. All rights reserved.
25-
* Licensed under the MIT License. See License.txt in the project root for license information.
24+
* Copyright (c) Microsoft Corporation.
25+
* Licensed under the MIT License.
2626
*
2727
* Code generated by Microsoft (R) AutoRest Code Generator.
2828
* Changes may cause incorrect behavior and will be lost if the code is regenerated.

sdk/monitor/arm-monitor/src/models/actionGroupsMappers.ts

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/*
2-
* Copyright (c) Microsoft Corporation. All rights reserved.
3-
* Licensed under the MIT License. See License.txt in the project root for license information.
2+
* Copyright (c) Microsoft Corporation.
3+
* Licensed under the MIT License.
44
*
55
* Code generated by Microsoft (R) AutoRest Code Generator.
66
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
@@ -27,6 +27,8 @@ export {
2727
AzNsActionGroup,
2828
AzureAppPushReceiver,
2929
AzureFunctionReceiver,
30+
AzureMonitorPrivateLinkScope,
31+
AzureResource,
3032
BaseResource,
3133
Criteria,
3234
DataContainer,
@@ -38,7 +40,9 @@ export {
3840
EmailNotification,
3941
EmailReceiver,
4042
EnableRequest,
43+
ErrorAdditionalInfo,
4144
ErrorResponse,
45+
ErrorResponseCommon,
4246
ItsmReceiver,
4347
LocationThresholdRuleCondition,
4448
LogicAppReceiver,
@@ -59,6 +63,11 @@ export {
5963
MetricSettings,
6064
MetricTrigger,
6165
MultiMetricCriteria,
66+
PrivateEndpointConnection,
67+
PrivateEndpointProperty,
68+
PrivateLinkResource,
69+
PrivateLinkScopesResource,
70+
PrivateLinkServiceConnectionStateProperty,
6271
ProxyOnlyResource,
6372
ProxyResource,
6473
Recurrence,
@@ -76,7 +85,9 @@ export {
7685
ScaleAction,
7786
ScaleCapacity,
7887
ScaleRule,
88+
ScaleRuleMetricDimension,
7989
Schedule,
90+
ScopedResource,
8091
SmsReceiver,
8192
Source,
8293
ThresholdRuleCondition,
@@ -86,5 +97,6 @@ export {
8697
VoiceReceiver,
8798
WebhookNotification,
8899
WebhookReceiver,
100+
WebtestLocationAvailabilityCriteria,
89101
WorkspaceInfo
90102
} from "../models/mappers";

sdk/monitor/arm-monitor/src/models/activityLogAlertsMappers.ts

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/*
2-
* Copyright (c) Microsoft Corporation. All rights reserved.
3-
* Licensed under the MIT License. See License.txt in the project root for license information.
2+
* Copyright (c) Microsoft Corporation.
3+
* Licensed under the MIT License.
44
*
55
* Code generated by Microsoft (R) AutoRest Code Generator.
66
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
@@ -27,6 +27,8 @@ export {
2727
AzNsActionGroup,
2828
AzureAppPushReceiver,
2929
AzureFunctionReceiver,
30+
AzureMonitorPrivateLinkScope,
31+
AzureResource,
3032
BaseResource,
3133
Criteria,
3234
DataContainer,
@@ -37,7 +39,9 @@ export {
3739
DynamicThresholdFailingPeriods,
3840
EmailNotification,
3941
EmailReceiver,
42+
ErrorAdditionalInfo,
4043
ErrorResponse,
44+
ErrorResponseCommon,
4145
ItsmReceiver,
4246
LocationThresholdRuleCondition,
4347
LogicAppReceiver,
@@ -58,6 +62,11 @@ export {
5862
MetricSettings,
5963
MetricTrigger,
6064
MultiMetricCriteria,
65+
PrivateEndpointConnection,
66+
PrivateEndpointProperty,
67+
PrivateLinkResource,
68+
PrivateLinkScopesResource,
69+
PrivateLinkServiceConnectionStateProperty,
6170
ProxyOnlyResource,
6271
ProxyResource,
6372
Recurrence,
@@ -75,7 +84,9 @@ export {
7584
ScaleAction,
7685
ScaleCapacity,
7786
ScaleRule,
87+
ScaleRuleMetricDimension,
7888
Schedule,
89+
ScopedResource,
7990
SmsReceiver,
8091
Source,
8192
ThresholdRuleCondition,
@@ -85,5 +96,6 @@ export {
8596
VoiceReceiver,
8697
WebhookNotification,
8798
WebhookReceiver,
99+
WebtestLocationAvailabilityCriteria,
88100
WorkspaceInfo
89101
} from "../models/mappers";

sdk/monitor/arm-monitor/src/models/activityLogsMappers.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,16 @@
11
/*
2-
* Copyright (c) Microsoft Corporation. All rights reserved.
3-
* Licensed under the MIT License. See License.txt in the project root for license information.
2+
* Copyright (c) Microsoft Corporation.
3+
* Licensed under the MIT License.
44
*
55
* Code generated by Microsoft (R) AutoRest Code Generator.
66
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
77
*/
88

99
export {
1010
discriminators,
11+
ErrorAdditionalInfo,
1112
ErrorResponse,
13+
ErrorResponseCommon,
1214
EventData,
1315
EventDataCollection,
1416
HttpRequestInfo,
Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/*
2-
* Copyright (c) Microsoft Corporation. All rights reserved.
3-
* Licensed under the MIT License. See License.txt in the project root for license information.
2+
* Copyright (c) Microsoft Corporation.
3+
* Licensed under the MIT License.
44
*
55
* Code generated by Microsoft (R) AutoRest Code Generator.
66
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
@@ -9,7 +9,9 @@
99
export {
1010
discriminators,
1111
CloudError,
12+
ErrorAdditionalInfo,
1213
ErrorResponse,
14+
ErrorResponseCommon,
1315
Incident,
1416
IncidentListResult
1517
} from "../models/mappers";

sdk/monitor/arm-monitor/src/models/alertRulesMappers.ts

Lines changed: 14 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/*
2-
* Copyright (c) Microsoft Corporation. All rights reserved.
3-
* Licensed under the MIT License. See License.txt in the project root for license information.
2+
* Copyright (c) Microsoft Corporation.
3+
* Licensed under the MIT License.
44
*
55
* Code generated by Microsoft (R) AutoRest Code Generator.
66
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
@@ -27,8 +27,9 @@ export {
2727
AzNsActionGroup,
2828
AzureAppPushReceiver,
2929
AzureFunctionReceiver,
30+
AzureMonitorPrivateLinkScope,
31+
AzureResource,
3032
BaseResource,
31-
CloudError,
3233
Criteria,
3334
DataContainer,
3435
DiagnosticSettingsCategoryResource,
@@ -38,7 +39,9 @@ export {
3839
DynamicThresholdFailingPeriods,
3940
EmailNotification,
4041
EmailReceiver,
42+
ErrorAdditionalInfo,
4143
ErrorResponse,
44+
ErrorResponseCommon,
4245
ItsmReceiver,
4346
LocationThresholdRuleCondition,
4447
LogicAppReceiver,
@@ -59,6 +62,11 @@ export {
5962
MetricSettings,
6063
MetricTrigger,
6164
MultiMetricCriteria,
65+
PrivateEndpointConnection,
66+
PrivateEndpointProperty,
67+
PrivateLinkResource,
68+
PrivateLinkScopesResource,
69+
PrivateLinkServiceConnectionStateProperty,
6270
ProxyOnlyResource,
6371
ProxyResource,
6472
Recurrence,
@@ -76,7 +84,9 @@ export {
7684
ScaleAction,
7785
ScaleCapacity,
7886
ScaleRule,
87+
ScaleRuleMetricDimension,
7988
Schedule,
89+
ScopedResource,
8090
SmsReceiver,
8191
Source,
8292
ThresholdRuleCondition,
@@ -86,5 +96,6 @@ export {
8696
VoiceReceiver,
8797
WebhookNotification,
8898
WebhookReceiver,
99+
WebtestLocationAvailabilityCriteria,
89100
WorkspaceInfo
90101
} from "../models/mappers";

sdk/monitor/arm-monitor/src/models/autoscaleSettingsMappers.ts

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/*
2-
* Copyright (c) Microsoft Corporation. All rights reserved.
3-
* Licensed under the MIT License. See License.txt in the project root for license information.
2+
* Copyright (c) Microsoft Corporation.
3+
* Licensed under the MIT License.
44
*
55
* Code generated by Microsoft (R) AutoRest Code Generator.
66
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
@@ -27,6 +27,8 @@ export {
2727
AzNsActionGroup,
2828
AzureAppPushReceiver,
2929
AzureFunctionReceiver,
30+
AzureMonitorPrivateLinkScope,
31+
AzureResource,
3032
BaseResource,
3133
Criteria,
3234
DataContainer,
@@ -37,7 +39,9 @@ export {
3739
DynamicThresholdFailingPeriods,
3840
EmailNotification,
3941
EmailReceiver,
42+
ErrorAdditionalInfo,
4043
ErrorResponse,
44+
ErrorResponseCommon,
4145
ItsmReceiver,
4246
LocationThresholdRuleCondition,
4347
LogicAppReceiver,
@@ -58,6 +62,11 @@ export {
5862
MetricSettings,
5963
MetricTrigger,
6064
MultiMetricCriteria,
65+
PrivateEndpointConnection,
66+
PrivateEndpointProperty,
67+
PrivateLinkResource,
68+
PrivateLinkScopesResource,
69+
PrivateLinkServiceConnectionStateProperty,
6170
ProxyOnlyResource,
6271
ProxyResource,
6372
Recurrence,
@@ -75,7 +84,9 @@ export {
7584
ScaleAction,
7685
ScaleCapacity,
7786
ScaleRule,
87+
ScaleRuleMetricDimension,
7888
Schedule,
89+
ScopedResource,
7990
SmsReceiver,
8091
Source,
8192
ThresholdRuleCondition,
@@ -85,5 +96,6 @@ export {
8596
VoiceReceiver,
8697
WebhookNotification,
8798
WebhookReceiver,
99+
WebtestLocationAvailabilityCriteria,
88100
WorkspaceInfo
89101
} from "../models/mappers";

sdk/monitor/arm-monitor/src/models/baselinesMappers.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/*
2-
* Copyright (c) Microsoft Corporation. All rights reserved.
3-
* Licensed under the MIT License. See License.txt in the project root for license information.
2+
* Copyright (c) Microsoft Corporation.
3+
* Licensed under the MIT License.
44
*
55
* Code generated by Microsoft (R) AutoRest Code Generator.
66
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
@@ -9,7 +9,9 @@
99
export {
1010
discriminators,
1111
BaselineMetadata,
12+
ErrorAdditionalInfo,
1213
ErrorResponse,
14+
ErrorResponseCommon,
1315
MetricBaselinesResponse,
1416
MetricSingleDimension,
1517
SingleBaseline,

0 commit comments

Comments
 (0)