Skip to content

Commit 1d018aa

Browse files
author
SDKAuto
committed
CodeGen from PR 14103 in Azure/azure-rest-api-specs
Merge fd3f96558a6de32e1d30726f9733352a2ff22c3c into 60d6c393c7e71b45ebe0976a35fd7a5841993159
1 parent 3b51a6e commit 1d018aa

File tree

68 files changed

+9925
-1972
lines changed

Some content is hidden

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

68 files changed

+9925
-1972
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: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
## Azure MonitorManagementClient SDK for JavaScript
22

3-
This package contains an isomorphic SDK (runs both in Node.js and in browsers) for MonitorManagementClient.
3+
This package contains an isomorphic SDK (runs both in node.js and in browsers) for MonitorManagementClient.
44

55
### Currently supported environments
66

77
- [LTS versions of Node.js](https://nodejs.org/about/releases/)
8-
- Latest versions of Safari, Chrome, Edge, and Firefox.
8+
- Latest versions of Safari, Chrome, Edge and Firefox.
99

1010
### Prerequisites
1111

@@ -21,7 +21,6 @@ Install both packages using the below command:
2121
```bash
2222
npm install --save @azure/arm-monitor @azure/identity
2323
```
24-
2524
> **Note**: You may have used either `@azure/ms-rest-nodeauth` or `@azure/ms-rest-browserauth` in the past. These packages are in maintenance mode receiving critical bug fixes, but no new features.
2625
If you are on a [Node.js that has LTS status](https://nodejs.org/about/releases/), or are writing a client side browser application, we strongly encourage you to upgrade to `@azure/identity` which uses the latest versions of Azure Active Directory and MSAL APIs and provides more authentication options.
2726

@@ -37,7 +36,6 @@ If you are on a [Node.js that has LTS status](https://nodejs.org/about/releases/
3736

3837
In the below samples, we pass the credential and the Azure subscription id to instantiate the client.
3938
Once the client is created, explore the operations on it either in your favorite editor or in our [API reference documentation](https://docs.microsoft.com/javascript/api) to get started.
40-
4139
#### nodejs - Authentication, client creation, and listByResourceGroup autoscaleSettings as an example written in JavaScript.
4240

4341
##### Sample code
@@ -86,7 +84,7 @@ In browser applications, we recommend using the `InteractiveBrowserCredential` t
8684
const credential = new InteractiveBrowserCredential(
8785
{
8886
clientId: "<client id for your Azure AD app>",
89-
tenantId: "<optional tenant for your organization>"
87+
tenant: "<optional tenant for your organization>"
9088
});
9189
const client = new Azure.ArmMonitor.MonitorManagementClient(creds, subscriptionId);
9290
const resourceGroupName = "testresourceGroupName";

sdk/monitor/arm-monitor/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
"rollup-plugin-sourcemaps": "^0.4.2",
2828
"uglify-js": "^3.6.0"
2929
},
30-
"homepage": "https://github.com/Azure/azure-sdk-for-js/tree/feature/v4/sdk/monitor/arm-monitor",
30+
"homepage": "https://github.com/Azure/azure-sdk-for-js/tree/master/sdk/monitor/arm-monitor",
3131
"repository": {
3232
"type": "git",
3333
"url": "https://github.com/Azure/azure-sdk-for-js.git"

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: 39 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,9 +27,28 @@ export {
2727
AzNsActionGroup,
2828
AzureAppPushReceiver,
2929
AzureFunctionReceiver,
30+
AzureMonitorMetricsDestination,
31+
AzureMonitorPrivateLinkScope,
32+
AzureResource,
3033
BaseResource,
34+
ConfigurationAccessEndpointSpec,
3135
Criteria,
36+
DataCollectionEndpointConfigurationAccess,
37+
DataCollectionEndpointLogsIngestion,
38+
DataCollectionEndpointNetworkAcls,
39+
DataCollectionEndpointResource,
40+
DataCollectionEndpointResourceSystemData,
41+
DataCollectionRuleAssociationProxyOnlyResource,
42+
DataCollectionRuleAssociationProxyOnlyResourceSystemData,
43+
DataCollectionRuleDataSources,
44+
DataCollectionRuleDestinations,
45+
DataCollectionRuleResource,
46+
DataCollectionRuleResourceSystemData,
3247
DataContainer,
48+
DataFlow,
49+
DataSourcesSpec,
50+
DestinationsSpec,
51+
DestinationsSpecAzureMonitorMetrics,
3352
DiagnosticSettingsCategoryResource,
3453
DiagnosticSettingsResource,
3554
Dimension,
@@ -38,14 +57,19 @@ export {
3857
EmailNotification,
3958
EmailReceiver,
4059
EnableRequest,
60+
ErrorAdditionalInfo,
4161
ErrorResponse,
62+
ErrorResponseCommon,
63+
ExtensionDataSource,
4264
ItsmReceiver,
4365
LocationThresholdRuleCondition,
66+
LogAnalyticsDestination,
4467
LogicAppReceiver,
4568
LogMetricTrigger,
4669
LogProfileResource,
4770
LogSearchRuleResource,
4871
LogSettings,
72+
LogsIngestionEndpointSpec,
4973
LogToMetricAction,
5074
ManagementEventAggregationCondition,
5175
ManagementEventRuleCondition,
@@ -59,6 +83,13 @@ export {
5983
MetricSettings,
6084
MetricTrigger,
6185
MultiMetricCriteria,
86+
NetworkRuleSet,
87+
PerfCounterDataSource,
88+
PrivateEndpointConnection,
89+
PrivateEndpointProperty,
90+
PrivateLinkResource,
91+
PrivateLinkScopesResource,
92+
PrivateLinkServiceConnectionStateProperty,
6293
ProxyOnlyResource,
6394
ProxyResource,
6495
Recurrence,
@@ -76,15 +107,21 @@ export {
76107
ScaleAction,
77108
ScaleCapacity,
78109
ScaleRule,
110+
ScaleRuleMetricDimension,
79111
Schedule,
112+
ScopedResource,
80113
SmsReceiver,
81114
Source,
115+
SyslogDataSource,
116+
SystemData,
82117
ThresholdRuleCondition,
83118
TimeWindow,
84119
TriggerCondition,
85120
VMInsightsOnboardingStatus,
86121
VoiceReceiver,
87122
WebhookNotification,
88123
WebhookReceiver,
124+
WebtestLocationAvailabilityCriteria,
125+
WindowsEventLogDataSource,
89126
WorkspaceInfo
90127
} from "../models/mappers";

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

Lines changed: 39 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,24 +27,48 @@ export {
2727
AzNsActionGroup,
2828
AzureAppPushReceiver,
2929
AzureFunctionReceiver,
30+
AzureMonitorMetricsDestination,
31+
AzureMonitorPrivateLinkScope,
32+
AzureResource,
3033
BaseResource,
34+
ConfigurationAccessEndpointSpec,
3135
Criteria,
36+
DataCollectionEndpointConfigurationAccess,
37+
DataCollectionEndpointLogsIngestion,
38+
DataCollectionEndpointNetworkAcls,
39+
DataCollectionEndpointResource,
40+
DataCollectionEndpointResourceSystemData,
41+
DataCollectionRuleAssociationProxyOnlyResource,
42+
DataCollectionRuleAssociationProxyOnlyResourceSystemData,
43+
DataCollectionRuleDataSources,
44+
DataCollectionRuleDestinations,
45+
DataCollectionRuleResource,
46+
DataCollectionRuleResourceSystemData,
3247
DataContainer,
48+
DataFlow,
49+
DataSourcesSpec,
50+
DestinationsSpec,
51+
DestinationsSpecAzureMonitorMetrics,
3352
DiagnosticSettingsCategoryResource,
3453
DiagnosticSettingsResource,
3554
Dimension,
3655
DynamicMetricCriteria,
3756
DynamicThresholdFailingPeriods,
3857
EmailNotification,
3958
EmailReceiver,
59+
ErrorAdditionalInfo,
4060
ErrorResponse,
61+
ErrorResponseCommon,
62+
ExtensionDataSource,
4163
ItsmReceiver,
4264
LocationThresholdRuleCondition,
65+
LogAnalyticsDestination,
4366
LogicAppReceiver,
4467
LogMetricTrigger,
4568
LogProfileResource,
4669
LogSearchRuleResource,
4770
LogSettings,
71+
LogsIngestionEndpointSpec,
4872
LogToMetricAction,
4973
ManagementEventAggregationCondition,
5074
ManagementEventRuleCondition,
@@ -58,6 +82,13 @@ export {
5882
MetricSettings,
5983
MetricTrigger,
6084
MultiMetricCriteria,
85+
NetworkRuleSet,
86+
PerfCounterDataSource,
87+
PrivateEndpointConnection,
88+
PrivateEndpointProperty,
89+
PrivateLinkResource,
90+
PrivateLinkScopesResource,
91+
PrivateLinkServiceConnectionStateProperty,
6192
ProxyOnlyResource,
6293
ProxyResource,
6394
Recurrence,
@@ -75,15 +106,21 @@ export {
75106
ScaleAction,
76107
ScaleCapacity,
77108
ScaleRule,
109+
ScaleRuleMetricDimension,
78110
Schedule,
111+
ScopedResource,
79112
SmsReceiver,
80113
Source,
114+
SyslogDataSource,
115+
SystemData,
81116
ThresholdRuleCondition,
82117
TimeWindow,
83118
TriggerCondition,
84119
VMInsightsOnboardingStatus,
85120
VoiceReceiver,
86121
WebhookNotification,
87122
WebhookReceiver,
123+
WebtestLocationAvailabilityCriteria,
124+
WindowsEventLogDataSource,
88125
WorkspaceInfo
89126
} 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: 39 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,25 +27,48 @@ export {
2727
AzNsActionGroup,
2828
AzureAppPushReceiver,
2929
AzureFunctionReceiver,
30+
AzureMonitorMetricsDestination,
31+
AzureMonitorPrivateLinkScope,
32+
AzureResource,
3033
BaseResource,
31-
CloudError,
34+
ConfigurationAccessEndpointSpec,
3235
Criteria,
36+
DataCollectionEndpointConfigurationAccess,
37+
DataCollectionEndpointLogsIngestion,
38+
DataCollectionEndpointNetworkAcls,
39+
DataCollectionEndpointResource,
40+
DataCollectionEndpointResourceSystemData,
41+
DataCollectionRuleAssociationProxyOnlyResource,
42+
DataCollectionRuleAssociationProxyOnlyResourceSystemData,
43+
DataCollectionRuleDataSources,
44+
DataCollectionRuleDestinations,
45+
DataCollectionRuleResource,
46+
DataCollectionRuleResourceSystemData,
3347
DataContainer,
48+
DataFlow,
49+
DataSourcesSpec,
50+
DestinationsSpec,
51+
DestinationsSpecAzureMonitorMetrics,
3452
DiagnosticSettingsCategoryResource,
3553
DiagnosticSettingsResource,
3654
Dimension,
3755
DynamicMetricCriteria,
3856
DynamicThresholdFailingPeriods,
3957
EmailNotification,
4058
EmailReceiver,
59+
ErrorAdditionalInfo,
4160
ErrorResponse,
61+
ErrorResponseCommon,
62+
ExtensionDataSource,
4263
ItsmReceiver,
4364
LocationThresholdRuleCondition,
65+
LogAnalyticsDestination,
4466
LogicAppReceiver,
4567
LogMetricTrigger,
4668
LogProfileResource,
4769
LogSearchRuleResource,
4870
LogSettings,
71+
LogsIngestionEndpointSpec,
4972
LogToMetricAction,
5073
ManagementEventAggregationCondition,
5174
ManagementEventRuleCondition,
@@ -59,6 +82,13 @@ export {
5982
MetricSettings,
6083
MetricTrigger,
6184
MultiMetricCriteria,
85+
NetworkRuleSet,
86+
PerfCounterDataSource,
87+
PrivateEndpointConnection,
88+
PrivateEndpointProperty,
89+
PrivateLinkResource,
90+
PrivateLinkScopesResource,
91+
PrivateLinkServiceConnectionStateProperty,
6292
ProxyOnlyResource,
6393
ProxyResource,
6494
Recurrence,
@@ -76,15 +106,21 @@ export {
76106
ScaleAction,
77107
ScaleCapacity,
78108
ScaleRule,
109+
ScaleRuleMetricDimension,
79110
Schedule,
111+
ScopedResource,
80112
SmsReceiver,
81113
Source,
114+
SyslogDataSource,
115+
SystemData,
82116
ThresholdRuleCondition,
83117
TimeWindow,
84118
TriggerCondition,
85119
VMInsightsOnboardingStatus,
86120
VoiceReceiver,
87121
WebhookNotification,
88122
WebhookReceiver,
123+
WebtestLocationAvailabilityCriteria,
124+
WindowsEventLogDataSource,
89125
WorkspaceInfo
90126
} from "../models/mappers";

0 commit comments

Comments
 (0)