Skip to content

Commit

Permalink
CodeGen from PR 15607 in Azure/azure-rest-api-specs
Browse files Browse the repository at this point in the history
Merge d252a26998421f331e70d5f7a9a1783963d74765 into fbb7ba76937668739778ac2272b9a607ea0511fc
  • Loading branch information
SDKAuto committed Aug 10, 2021
1 parent 3b51a6e commit fdf5431
Show file tree
Hide file tree
Showing 68 changed files with 10,345 additions and 2,005 deletions.
2 changes: 1 addition & 1 deletion sdk/monitor/arm-monitor/LICENSE.txt
Original file line number Diff line number Diff line change
@@ -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
Expand Down
8 changes: 3 additions & 5 deletions sdk/monitor/arm-monitor/README.md
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
## Azure MonitorManagementClient SDK for JavaScript

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

### Currently supported environments

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

### Prerequisites

Expand All @@ -21,7 +21,6 @@ Install both packages using the below command:
```bash
npm install --save @azure/arm-monitor @azure/identity
```

> **Note**: You may have used either `@azure/ms-rest-nodeauth` or `@azure/ms-rest-browserauth` in the past. These packages are in maintenance mode receiving critical bug fixes, but no new features.
If you are on a [Node.js that has LTS status](https://nodejs.org/about/releases/), or are writing a client side browser application, we strongly encourage you to upgrade to `@azure/identity` which uses the latest versions of Azure Active Directory and MSAL APIs and provides more authentication options.

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

In the below samples, we pass the credential and the Azure subscription id to instantiate the client.
Once the client is created, explore the operations on it either in your favorite editor or in our [API reference documentation](https://docs.microsoft.com/javascript/api) to get started.

#### nodejs - Authentication, client creation, and listByResourceGroup autoscaleSettings as an example written in JavaScript.

##### Sample code
Expand Down Expand Up @@ -86,7 +84,7 @@ In browser applications, we recommend using the `InteractiveBrowserCredential` t
const credential = new InteractiveBrowserCredential(
{
clientId: "<client id for your Azure AD app>",
tenantId: "<optional tenant for your organization>"
tenant: "<optional tenant for your organization>"
});
const client = new Azure.ArmMonitor.MonitorManagementClient(creds, subscriptionId);
const resourceGroupName = "testresourceGroupName";
Expand Down
2 changes: 1 addition & 1 deletion sdk/monitor/arm-monitor/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
"rollup-plugin-sourcemaps": "^0.4.2",
"uglify-js": "^3.6.0"
},
"homepage": "https://github.com/Azure/azure-sdk-for-js/tree/feature/v4/sdk/monitor/arm-monitor",
"homepage": "https://github.com/Azure/azure-sdk-for-js/tree/master/sdk/monitor/arm-monitor",
"repository": {
"type": "git",
"url": "https://github.com/Azure/azure-sdk-for-js.git"
Expand Down
4 changes: 2 additions & 2 deletions sdk/monitor/arm-monitor/rollup.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
50 changes: 44 additions & 6 deletions sdk/monitor/arm-monitor/src/models/actionGroupsMappers.ts
Original file line number Diff line number Diff line change
@@ -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.
Expand All @@ -9,15 +9,16 @@
export {
discriminators,
Action,
ActionGroup,
ActionGroupList,
ActionGroupPatchBody,
ActionGroupResource,
ActivityLogAlertActionGroup,
ActivityLogAlertActionList,
ActivityLogAlertAllOfCondition,
ActivityLogAlertLeafCondition,
ActionList,
ActivityLogAlertResource,
AlertingAction,
AlertRuleAllOfCondition,
AlertRuleAnyOfOrLeafCondition,
AlertRuleLeafCondition,
AlertRuleResource,
ArmRoleReceiver,
AutomationRunbookReceiver,
Expand All @@ -27,9 +28,28 @@ export {
AzNsActionGroup,
AzureAppPushReceiver,
AzureFunctionReceiver,
AzureMonitorMetricsDestination,
AzureMonitorPrivateLinkScope,
AzureResource,
BaseResource,
ConfigurationAccessEndpointSpec,
Criteria,
DataCollectionEndpointConfigurationAccess,
DataCollectionEndpointLogsIngestion,
DataCollectionEndpointNetworkAcls,
DataCollectionEndpointResource,
DataCollectionEndpointResourceSystemData,
DataCollectionRuleAssociationProxyOnlyResource,
DataCollectionRuleAssociationProxyOnlyResourceSystemData,
DataCollectionRuleDataSources,
DataCollectionRuleDestinations,
DataCollectionRuleResource,
DataCollectionRuleResourceSystemData,
DataContainer,
DataFlow,
DataSourcesSpec,
DestinationsSpec,
DestinationsSpecAzureMonitorMetrics,
DiagnosticSettingsCategoryResource,
DiagnosticSettingsResource,
Dimension,
Expand All @@ -38,14 +58,19 @@ export {
EmailNotification,
EmailReceiver,
EnableRequest,
ErrorAdditionalInfo,
ErrorResponse,
ErrorResponseCommon,
ExtensionDataSource,
ItsmReceiver,
LocationThresholdRuleCondition,
LogAnalyticsDestination,
LogicAppReceiver,
LogMetricTrigger,
LogProfileResource,
LogSearchRuleResource,
LogSettings,
LogsIngestionEndpointSpec,
LogToMetricAction,
ManagementEventAggregationCondition,
ManagementEventRuleCondition,
Expand All @@ -59,6 +84,13 @@ export {
MetricSettings,
MetricTrigger,
MultiMetricCriteria,
NetworkRuleSet,
PerfCounterDataSource,
PrivateEndpointConnection,
PrivateEndpointProperty,
PrivateLinkResource,
PrivateLinkScopesResource,
PrivateLinkServiceConnectionStateProperty,
ProxyOnlyResource,
ProxyResource,
Recurrence,
Expand All @@ -76,15 +108,21 @@ export {
ScaleAction,
ScaleCapacity,
ScaleRule,
ScaleRuleMetricDimension,
Schedule,
ScopedResource,
SmsReceiver,
Source,
SyslogDataSource,
SystemData,
ThresholdRuleCondition,
TimeWindow,
TriggerCondition,
VMInsightsOnboardingStatus,
VoiceReceiver,
WebhookNotification,
WebhookReceiver,
WebtestLocationAvailabilityCriteria,
WindowsEventLogDataSource,
WorkspaceInfo
} from "../models/mappers";
54 changes: 46 additions & 8 deletions sdk/monitor/arm-monitor/src/models/activityLogAlertsMappers.ts
Original file line number Diff line number Diff line change
@@ -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.
Expand All @@ -9,15 +9,16 @@
export {
discriminators,
Action,
ActionGroup,
ActionGroupResource,
ActivityLogAlertActionGroup,
ActivityLogAlertActionList,
ActivityLogAlertAllOfCondition,
ActivityLogAlertLeafCondition,
ActivityLogAlertList,
ActivityLogAlertPatchBody,
ActionList,
ActivityLogAlertResource,
AlertingAction,
AlertRuleAllOfCondition,
AlertRuleAnyOfOrLeafCondition,
AlertRuleLeafCondition,
AlertRuleList,
AlertRulePatchObject,
AlertRuleResource,
ArmRoleReceiver,
AutomationRunbookReceiver,
Expand All @@ -27,24 +28,48 @@ export {
AzNsActionGroup,
AzureAppPushReceiver,
AzureFunctionReceiver,
AzureMonitorMetricsDestination,
AzureMonitorPrivateLinkScope,
AzureResource,
BaseResource,
ConfigurationAccessEndpointSpec,
Criteria,
DataCollectionEndpointConfigurationAccess,
DataCollectionEndpointLogsIngestion,
DataCollectionEndpointNetworkAcls,
DataCollectionEndpointResource,
DataCollectionEndpointResourceSystemData,
DataCollectionRuleAssociationProxyOnlyResource,
DataCollectionRuleAssociationProxyOnlyResourceSystemData,
DataCollectionRuleDataSources,
DataCollectionRuleDestinations,
DataCollectionRuleResource,
DataCollectionRuleResourceSystemData,
DataContainer,
DataFlow,
DataSourcesSpec,
DestinationsSpec,
DestinationsSpecAzureMonitorMetrics,
DiagnosticSettingsCategoryResource,
DiagnosticSettingsResource,
Dimension,
DynamicMetricCriteria,
DynamicThresholdFailingPeriods,
EmailNotification,
EmailReceiver,
ErrorAdditionalInfo,
ErrorResponse,
ErrorResponseCommon,
ExtensionDataSource,
ItsmReceiver,
LocationThresholdRuleCondition,
LogAnalyticsDestination,
LogicAppReceiver,
LogMetricTrigger,
LogProfileResource,
LogSearchRuleResource,
LogSettings,
LogsIngestionEndpointSpec,
LogToMetricAction,
ManagementEventAggregationCondition,
ManagementEventRuleCondition,
Expand All @@ -58,6 +83,13 @@ export {
MetricSettings,
MetricTrigger,
MultiMetricCriteria,
NetworkRuleSet,
PerfCounterDataSource,
PrivateEndpointConnection,
PrivateEndpointProperty,
PrivateLinkResource,
PrivateLinkScopesResource,
PrivateLinkServiceConnectionStateProperty,
ProxyOnlyResource,
ProxyResource,
Recurrence,
Expand All @@ -75,15 +107,21 @@ export {
ScaleAction,
ScaleCapacity,
ScaleRule,
ScaleRuleMetricDimension,
Schedule,
ScopedResource,
SmsReceiver,
Source,
SyslogDataSource,
SystemData,
ThresholdRuleCondition,
TimeWindow,
TriggerCondition,
VMInsightsOnboardingStatus,
VoiceReceiver,
WebhookNotification,
WebhookReceiver,
WebtestLocationAvailabilityCriteria,
WindowsEventLogDataSource,
WorkspaceInfo
} from "../models/mappers";
6 changes: 4 additions & 2 deletions sdk/monitor/arm-monitor/src/models/activityLogsMappers.ts
Original file line number Diff line number Diff line change
@@ -1,14 +1,16 @@
/*
* 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.
*/

export {
discriminators,
ErrorAdditionalInfo,
ErrorResponse,
ErrorResponseCommon,
EventData,
EventDataCollection,
HttpRequestInfo,
Expand Down
Original file line number Diff line number Diff line change
@@ -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.
Expand All @@ -9,7 +9,9 @@
export {
discriminators,
CloudError,
ErrorAdditionalInfo,
ErrorResponse,
ErrorResponseCommon,
Incident,
IncidentListResult
} from "../models/mappers";
Loading

0 comments on commit fdf5431

Please sign in to comment.