diff --git a/packages/@azure/arm-monitor/.npmignore b/packages/@azure/arm-monitor/.npmignore
index 3b46bc6202d8..a07a455ac10c 100644
--- a/packages/@azure/arm-monitor/.npmignore
+++ b/packages/@azure/arm-monitor/.npmignore
@@ -1,35 +1,35 @@
-#git
-.git
-.gitignore
-#gulp
-gulpfile.js
-#documentation
-doc/
-docs/
-#dependencies
-node_modules/
-#samples
-sample/
-samples/
-#tests
-test/
-tests/
-coverage/
-#tools and scripts
-tools/
-scripts/
-#IDE settings
-*.sln
-.vscode/
-.idea
-.editorconfig
-.ntvs_analysis.*
-#build tools
-.travis.yml
-.jenkins.yml
-.codeclimate.yml
-appveyor.yml
-# Nuget packages #
-.nuget/
-packages/
-packages.config
+#git
+.git
+.gitignore
+#gulp
+gulpfile.js
+#documentation
+doc/
+docs/
+#dependencies
+node_modules/
+#samples
+sample/
+samples/
+#tests
+test/
+tests/
+coverage/
+#tools and scripts
+tools/
+scripts/
+#IDE settings
+*.sln
+.vscode/
+.idea
+.editorconfig
+.ntvs_analysis.*
+#build tools
+.travis.yml
+.jenkins.yml
+.codeclimate.yml
+appveyor.yml
+# Nuget packages #
+.nuget/
+packages/
+packages.config
diff --git a/packages/@azure/arm-monitor/LICENSE.txt b/packages/@azure/arm-monitor/LICENSE.txt
index a70e8cf66038..5431ba98b936 100644
--- a/packages/@azure/arm-monitor/LICENSE.txt
+++ b/packages/@azure/arm-monitor/LICENSE.txt
@@ -1,21 +1,21 @@
-The MIT License (MIT)
-
-Copyright (c) 2018 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
-in the Software without restriction, including without limitation the rights
-to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
-copies of the Software, and to permit persons to whom the Software is
-furnished to do so, subject to the following conditions:
-
-The above copyright notice and this permission notice shall be included in all
-copies or substantial portions of the Software.
-
-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
-AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
-LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
-OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
-SOFTWARE.
+The MIT License (MIT)
+
+Copyright (c) 2018 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
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all
+copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+SOFTWARE.
diff --git a/packages/@azure/arm-monitor/README.md b/packages/@azure/arm-monitor/README.md
index 5c7eefe0f8ce..aeadee19b93d 100644
--- a/packages/@azure/arm-monitor/README.md
+++ b/packages/@azure/arm-monitor/README.md
@@ -1,79 +1,69 @@
-# Azure MonitorManagementClient SDK for JavaScript
-This package contains an isomorphic SDK for MonitorManagementClient.
-
-## Currently supported environments
-- Node.js version 6.x.x or higher
-- Browser JavaScript
-
-## How to Install
-```
-npm install @azure/arm-monitor
-```
-
-
-## How to use
-
-### nodejs - Authentication, client creation and listByResourceGroup autoscaleSettings as an example written in TypeScript.
-
-```ts
-import * as msRest from "ms-rest-js";
-import * as msRestAzure from "ms-rest-azure-js";
-import * as msRestNodeAuth from "ms-rest-nodeauth";
-import { MonitorManagementClient, MonitorManagementModels, MonitorManagementMappers } from "@azure/arm-monitor";
-const subscriptionId = process.env["AZURE_SUBSCRIPTION_ID"];
-
-msRestNodeAuth.interactiveLogin().then((creds) => {
- const client = new MonitorManagementClient(creds, subscriptionId);
- const resourceGroupName = "testresourceGroupName";
- client.autoscaleSettings.listByResourceGroup(resourceGroupName).then((result) => {
- console.log("The result is:");
- console.log(result);
- });
-}).catch((err) => {
- console.error(err);
-});
-```
-
-### browser - Authentication, client creation and listByResourceGroup autoscaleSettings as an example written in JavaScript.
-See https://github.com/Azure/ms-rest-browserauth to learn how to authenticate to Azure in the browser.
-
-- index.html
-```html
-
-
-
- @azure/arm-monitor sample
-
-
-
-
-
-
-
-
-
-```
-
-# Related projects
- - [Microsoft Azure SDK for Javascript](https://github.com/Azure/azure-sdk-for-js)
+# Azure MonitorManagementClient SDK for JavaScript
+This package contains an isomorphic SDK for MonitorManagementClient.
+
+## Currently supported environments
+- Node.js version 6.x.x or higher
+- Browser JavaScript
+
+## How to Install
+```
+npm install @azure/arm-monitor
+```
+
+
+## How to use
+
+### nodejs - Authentication, client creation and listByResourceGroup autoscaleSettings as an example written in TypeScript.
+
+```ts
+import * as msRest from "ms-rest-js";
+import * as msRestAzure from "ms-rest-azure-js";
+import * as msRestNodeAuth from "ms-rest-nodeauth";
+import { MonitorManagementClient, MonitorManagementModels, MonitorManagementMappers } from "@azure/arm-monitor";
+const subscriptionId = process.env["AZURE_SUBSCRIPTION_ID"];
+
+msRestNodeAuth.interactiveLogin().then((creds) => {
+ const client = new MonitorManagementClient(creds, subscriptionId);
+ const resourceGroupName = "testresourceGroupName";
+ client.autoscaleSettings.listByResourceGroup(resourceGroupName).then((result) => {
+ console.log("The result is:");
+ console.log(result);
+ });
+}).catch((err) => {
+ console.error(err);
+});
+```
+
+### browser - Authentication, client creation and listByResourceGroup autoscaleSettings as an example written in JavaScript.
+
+- index.html
+```html
+
+
+
+ @azure/arm-monitor sample
+
+
+
+
+
+
+
+
+```
+
+# Related projects
+ - [Microsoft Azure SDK for Javascript](https://github.com/Azure/azure-sdk-for-js)
diff --git a/packages/@azure/arm-monitor/lib/models/index.ts b/packages/@azure/arm-monitor/lib/models/index.ts
index 58c32284c754..816e7412e130 100644
--- a/packages/@azure/arm-monitor/lib/models/index.ts
+++ b/packages/@azure/arm-monitor/lib/models/index.ts
@@ -427,42 +427,6 @@ export interface AutoscaleNotification {
webhooks?: WebhookNotification[];
}
-/**
- * @interface
- * An interface representing AutoscaleSetting.
- * A setting that contains all of the configuration for the automatic scaling
- * of a resource.
- *
- */
-export interface AutoscaleSetting {
- /**
- * @member {AutoscaleProfile[]} profiles the collection of automatic scaling
- * profiles that specify different scaling parameters for different time
- * periods. A maximum of 20 profiles can be specified.
- */
- profiles: AutoscaleProfile[];
- /**
- * @member {AutoscaleNotification[]} [notifications] the collection of
- * notifications.
- */
- notifications?: AutoscaleNotification[];
- /**
- * @member {boolean} [enabled] the enabled flag. Specifies whether automatic
- * scaling is enabled for the resource. The default value is 'true'. Default
- * value: true .
- */
- enabled?: boolean;
- /**
- * @member {string} [name] the name of the autoscale setting.
- */
- name?: string;
- /**
- * @member {string} [targetResourceUri] the resource identifier of the
- * resource that the autoscale setting should be added to.
- */
- targetResourceUri?: string;
-}
-
/**
* @interface
* An interface representing AutoscaleSettingResource.
@@ -996,47 +960,6 @@ export interface RuleWebhookAction {
properties?: { [propertyName: string]: string };
}
-/**
- * @interface
- * An interface representing AlertRule.
- * An alert rule.
- *
- */
-export interface AlertRule {
- /**
- * @member {string} name the name of the alert rule.
- */
- name: string;
- /**
- * @member {string} [description] the description of the alert rule that will
- * be included in the alert email.
- */
- description?: string;
- /**
- * @member {boolean} isEnabled the flag that indicates whether the alert rule
- * is enabled.
- */
- isEnabled: boolean;
- /**
- * @member {RuleConditionUnion} condition the condition that results in the
- * alert rule being activated.
- */
- condition: RuleConditionUnion;
- /**
- * @member {RuleActionUnion[]} [actions] the array of actions that are
- * performed when the alert rule becomes active, and when an alert condition
- * is resolved.
- */
- actions?: RuleActionUnion[];
- /**
- * @member {Date} [lastUpdatedTime] Last time the rule was updated in ISO8601
- * format.
- * **NOTE: This property will not be serialized. It can only be populated by
- * the server.**
- */
- readonly lastUpdatedTime?: Date;
-}
-
/**
* @interface
* An interface representing AlertRuleResource.
@@ -1143,44 +1066,6 @@ export interface RetentionPolicy {
days: number;
}
-/**
- * @interface
- * An interface representing LogProfileProperties.
- * The log profile properties.
- *
- */
-export interface LogProfileProperties {
- /**
- * @member {string} [storageAccountId] the resource id of the storage account
- * to which you would like to send the Activity Log.
- */
- storageAccountId?: string;
- /**
- * @member {string} [serviceBusRuleId] The service bus rule ID of the service
- * bus namespace in which you would like to have Event Hubs created for
- * streaming the Activity Log. The rule ID is of the format: '{service bus
- * resource ID}/authorizationrules/{key name}'.
- */
- serviceBusRuleId?: string;
- /**
- * @member {string[]} locations List of regions for which Activity Log events
- * should be stored or streamed. It is a comma separated list of valid ARM
- * locations including the 'global' location.
- */
- locations: string[];
- /**
- * @member {string[]} categories the categories of the logs. These categories
- * are created as is convenient to the user. Some values are: 'Write',
- * 'Delete', and/or 'Action.'
- */
- categories: string[];
- /**
- * @member {RetentionPolicy} retentionPolicy the retention policy for the
- * events in the log.
- */
- retentionPolicy: RetentionPolicy;
-}
-
/**
* @interface
* An interface representing LogProfileResource.
@@ -1348,50 +1233,6 @@ export interface LogSettings {
retentionPolicy?: RetentionPolicy;
}
-/**
- * @interface
- * An interface representing DiagnosticSettings.
- * The diagnostic settings.
- *
- */
-export interface DiagnosticSettings {
- /**
- * @member {string} [storageAccountId] The resource ID of the storage account
- * to which you would like to send Diagnostic Logs.
- */
- storageAccountId?: string;
- /**
- * @member {string} [serviceBusRuleId] The service bus rule Id of the
- * diagnostic setting. This is here to maintain backwards compatibility.
- */
- serviceBusRuleId?: string;
- /**
- * @member {string} [eventHubAuthorizationRuleId] The resource Id for the
- * event hub authorization rule.
- */
- eventHubAuthorizationRuleId?: string;
- /**
- * @member {string} [eventHubName] The name of the event hub. If none is
- * specified, the default event hub will be selected.
- */
- eventHubName?: string;
- /**
- * @member {MetricSettings[]} [metrics] the list of metric settings.
- */
- metrics?: MetricSettings[];
- /**
- * @member {LogSettings[]} [logs] the list of logs settings.
- */
- logs?: LogSettings[];
- /**
- * @member {string} [workspaceId] The workspace ID (resource ID of a Log
- * Analytics workspace) for a Log Analytics workspace to which you would like
- * to send Diagnostic Logs. Example:
- * /subscriptions/4b9e8510-67ab-4e9a-95a9-e2f1e570ea9c/resourceGroups/insights-integration/providers/Microsoft.OperationalInsights/workspaces/viruela2
- */
- workspaceId?: string;
-}
-
/**
* @interface
* An interface representing DiagnosticSettingsResource.
@@ -1451,20 +1292,6 @@ export interface DiagnosticSettingsResourceCollection {
value?: DiagnosticSettingsResource[];
}
-/**
- * @interface
- * An interface representing DiagnosticSettingsCategory.
- * The diagnostic settings Category.
- *
- */
-export interface DiagnosticSettingsCategory {
- /**
- * @member {CategoryType} [categoryType] The type of the diagnostic settings
- * category. Possible values include: 'Metrics', 'Logs'
- */
- categoryType?: CategoryType;
-}
-
/**
* @interface
* An interface representing DiagnosticSettingsCategoryResource.
@@ -1728,71 +1555,6 @@ export interface AzureFunctionReceiver {
httpTriggerUrl: string;
}
-/**
- * @interface
- * An interface representing ActionGroup.
- * An Azure action group.
- *
- */
-export interface ActionGroup {
- /**
- * @member {string} groupShortName The short name of the action group. This
- * will be used in SMS messages.
- */
- groupShortName: string;
- /**
- * @member {boolean} enabled Indicates whether this action group is enabled.
- * If an action group is not enabled, then none of its receivers will receive
- * communications. Default value: true .
- */
- enabled: boolean;
- /**
- * @member {EmailReceiver[]} [emailReceivers] The list of email receivers
- * that are part of this action group.
- */
- emailReceivers?: EmailReceiver[];
- /**
- * @member {SmsReceiver[]} [smsReceivers] The list of SMS receivers that are
- * part of this action group.
- */
- smsReceivers?: SmsReceiver[];
- /**
- * @member {WebhookReceiver[]} [webhookReceivers] The list of webhook
- * receivers that are part of this action group.
- */
- webhookReceivers?: WebhookReceiver[];
- /**
- * @member {ItsmReceiver[]} [itsmReceivers] The list of ITSM receivers that
- * are part of this action group.
- */
- itsmReceivers?: ItsmReceiver[];
- /**
- * @member {AzureAppPushReceiver[]} [azureAppPushReceivers] The list of
- * AzureAppPush receivers that are part of this action group.
- */
- azureAppPushReceivers?: AzureAppPushReceiver[];
- /**
- * @member {AutomationRunbookReceiver[]} [automationRunbookReceivers] The
- * list of AutomationRunbook receivers that are part of this action group.
- */
- automationRunbookReceivers?: AutomationRunbookReceiver[];
- /**
- * @member {VoiceReceiver[]} [voiceReceivers] The list of voice receivers
- * that are part of this action group.
- */
- voiceReceivers?: VoiceReceiver[];
- /**
- * @member {LogicAppReceiver[]} [logicAppReceivers] The list of logic app
- * receivers that are part of this action group.
- */
- logicAppReceivers?: LogicAppReceiver[];
- /**
- * @member {AzureFunctionReceiver[]} [azureFunctionReceivers] The list of
- * azure function receivers that are part of this action group.
- */
- azureFunctionReceivers?: AzureFunctionReceiver[];
-}
-
/**
* @interface
* An interface representing ActionGroupResource.
@@ -1872,21 +1634,6 @@ export interface EnableRequest {
receiverName: string;
}
-/**
- * @interface
- * An interface representing ActionGroupPatch.
- * An Azure action group for patch operations.
- *
- */
-export interface ActionGroupPatch {
- /**
- * @member {boolean} [enabled] Indicates whether this action group is
- * enabled. If an action group is not enabled, then none of its actions will
- * be activated. Default value: true .
- */
- enabled?: boolean;
-}
-
/**
* @interface
* An interface representing ActionGroupPatchBody.
@@ -1978,42 +1725,6 @@ export interface ActivityLogAlertActionList {
actionGroups?: ActivityLogAlertActionGroup[];
}
-/**
- * @interface
- * An interface representing ActivityLogAlert.
- * An Azure activity log alert.
- *
- */
-export interface ActivityLogAlert {
- /**
- * @member {string[]} scopes A list of resourceIds that will be used as
- * prefixes. The alert will only apply to activityLogs with resourceIds that
- * fall under one of these prefixes. This list must include at least one
- * item.
- */
- scopes: string[];
- /**
- * @member {boolean} [enabled] Indicates whether this activity log alert is
- * enabled. If an activity log alert is not enabled, then none of its actions
- * will be activated. Default value: true .
- */
- enabled?: boolean;
- /**
- * @member {ActivityLogAlertAllOfCondition} condition The condition that will
- * cause this alert to activate.
- */
- condition: ActivityLogAlertAllOfCondition;
- /**
- * @member {ActivityLogAlertActionList} actions The actions that will
- * activate when the condition is met.
- */
- actions: ActivityLogAlertActionList;
- /**
- * @member {string} [description] A description of this activity log alert.
- */
- description?: string;
-}
-
/**
* @interface
* An interface representing ActivityLogAlertResource.
@@ -2051,21 +1762,6 @@ export interface ActivityLogAlertResource extends Resource {
description?: string;
}
-/**
- * @interface
- * An interface representing ActivityLogAlertPatch.
- * An Azure activity log alert for patch operations.
- *
- */
-export interface ActivityLogAlertPatch {
- /**
- * @member {boolean} [enabled] Indicates whether this activity log alert is
- * enabled. If an activity log alert is not enabled, then none of its actions
- * will be activated. Default value: true .
- */
- enabled?: boolean;
-}
-
/**
* @interface
* An interface representing ActivityLogAlertPatchBody.
@@ -2606,46 +2302,6 @@ export interface Baseline {
highThresholds: number[];
}
-/**
- * @interface
- * An interface representing BaselineProperties.
- * The baseline properties class.
- *
- */
-export interface BaselineProperties {
- /**
- * @member {string} [timespan] The timespan for which the data was retrieved.
- * Its value consists of two datatimes concatenated, separated by '/'. This
- * may be adjusted in the future and returned back from what was originally
- * requested.
- */
- timespan?: string;
- /**
- * @member {string} [interval] The interval (window size) for which the
- * metric data was returned in. This may be adjusted in the future and
- * returned back from what was originally requested. This is not present if
- * a metadata request was made.
- */
- interval?: string;
- /**
- * @member {string} [aggregation] The aggregation type of the metric.
- */
- aggregation?: string;
- /**
- * @member {Date[] | string[]} [timestamps] the array of timestamps of the
- * baselines.
- */
- timestamps?: Date[] | string[];
- /**
- * @member {Baseline[]} [baseline] the baseline values for each sensitivity.
- */
- baseline?: Baseline[];
- /**
- * @member {BaselineMetadataValue[]} [metadata] the baseline metadata values.
- */
- metadata?: BaselineMetadataValue[];
-}
-
/**
* @interface
* An interface representing BaselineResponse.
@@ -2791,79 +2447,6 @@ export interface MetricAlertCriteria {
[property: string]: any;
}
-/**
- * @interface
- * An interface representing MetricAlertProperties.
- * An alert rule.
- *
- */
-export interface MetricAlertProperties {
- /**
- * @member {string} description the description of the metric alert that will
- * be included in the alert email.
- */
- description: string;
- /**
- * @member {number} severity Alert severity {0, 1, 2, 3, 4}
- */
- severity: number;
- /**
- * @member {boolean} enabled the flag that indicates whether the metric alert
- * is enabled.
- */
- enabled: boolean;
- /**
- * @member {string[]} [scopes] the list of resource id's that this metric
- * alert is scoped to.
- */
- scopes?: string[];
- /**
- * @member {string} evaluationFrequency how often the metric alert is
- * evaluated represented in ISO 8601 duration format.
- */
- evaluationFrequency: string;
- /**
- * @member {string} windowSize the period of time (in ISO 8601 duration
- * format) that is used to monitor alert activity based on the threshold.
- */
- windowSize: string;
- /**
- * @member {string} [targetResourceType] the resource type of the target
- * resource(s) on which the alert is created/updated. Mandatory for
- * MultipleResourceMultipleMetricCriteria.
- */
- targetResourceType?: string;
- /**
- * @member {string} [targetResourceRegion] the region of the target
- * resource(s) on which the alert is created/updated. Mandatory for
- * MultipleResourceMultipleMetricCriteria.
- */
- targetResourceRegion?: string;
- /**
- * @member {MetricAlertCriteriaUnion} criteria defines the specific alert
- * criteria information.
- */
- criteria: MetricAlertCriteriaUnion;
- /**
- * @member {boolean} [autoMitigate] the flag that indicates whether the alert
- * should be auto resolved or not.
- */
- autoMitigate?: boolean;
- /**
- * @member {MetricAlertAction[]} [actions] the array of actions that are
- * performed when the alert rule becomes active, and when an alert condition
- * is resolved.
- */
- actions?: MetricAlertAction[];
- /**
- * @member {Date} [lastUpdatedTime] Last time the rule was updated in ISO8601
- * format.
- * **NOTE: This property will not be serialized. It can only be populated by
- * the server.**
- */
- readonly lastUpdatedTime?: Date;
-}
-
/**
* @interface
* An interface representing MetricAlertResource.
@@ -3269,53 +2852,6 @@ export interface Action {
odatatype: "Action";
}
-/**
- * @interface
- * An interface representing LogSearchRule.
- * Log Search Rule Definition
- *
- */
-export interface LogSearchRule {
- /**
- * @member {string} [description] The description of the Log Search rule.
- */
- description?: string;
- /**
- * @member {Enabled} [enabled] The flag which indicates whether the Log
- * Search rule is enabled. Value should be true or false. Possible values
- * include: 'true', 'false'
- */
- enabled?: Enabled;
- /**
- * @member {Date} [lastUpdatedTime] Last time the rule was updated in IS08601
- * format.
- * **NOTE: This property will not be serialized. It can only be populated by
- * the server.**
- */
- readonly lastUpdatedTime?: Date;
- /**
- * @member {ProvisioningState} [provisioningState] Provisioning state of the
- * scheduledquery rule. Possible values include: 'Succeeded', 'Deploying',
- * 'Canceled', 'Failed'
- * **NOTE: This property will not be serialized. It can only be populated by
- * the server.**
- */
- readonly provisioningState?: ProvisioningState;
- /**
- * @member {Source} source Data Source against which rule will Query Data
- */
- source: Source;
- /**
- * @member {Schedule} [schedule] Schedule (Frequnecy, Time Window) for rule.
- * Required for action type - AlertingAction
- */
- schedule?: Schedule;
- /**
- * @member {ActionUnion} action Action needs to be taken on rule execution.
- */
- action: ActionUnion;
-}
-
/**
* @interface
* An interface representing LogSearchRuleResource.
@@ -3364,21 +2900,6 @@ export interface LogSearchRuleResource extends Resource {
action: ActionUnion;
}
-/**
- * @interface
- * An interface representing LogSearchRulePatch.
- * Log Search Rule Definition for Patching
- *
- */
-export interface LogSearchRulePatch {
- /**
- * @member {Enabled} [enabled] The flag which indicates whether the Log
- * Search rule is enabled. Value should be true or false. Possible values
- * include: 'true', 'false'
- */
- enabled?: Enabled;
-}
-
/**
* @interface
* An interface representing LogSearchRuleResourcePatch.
diff --git a/packages/@azure/arm-monitor/lib/models/mappers.ts b/packages/@azure/arm-monitor/lib/models/mappers.ts
index 882581a193ac..c565abe1539d 100644
--- a/packages/@azure/arm-monitor/lib/models/mappers.ts
+++ b/packages/@azure/arm-monitor/lib/models/mappers.ts
@@ -524,63 +524,6 @@ export const AutoscaleNotification: msRest.CompositeMapper = {
}
};
-export const AutoscaleSetting: msRest.CompositeMapper = {
- serializedName: "AutoscaleSetting",
- type: {
- name: "Composite",
- className: "AutoscaleSetting",
- modelProperties: {
- profiles: {
- required: true,
- serializedName: "profiles",
- constraints: {
- MaxItems: 20
- },
- type: {
- name: "Sequence",
- element: {
- type: {
- name: "Composite",
- className: "AutoscaleProfile"
- }
- }
- }
- },
- notifications: {
- serializedName: "notifications",
- type: {
- name: "Sequence",
- element: {
- type: {
- name: "Composite",
- className: "AutoscaleNotification"
- }
- }
- }
- },
- enabled: {
- serializedName: "enabled",
- defaultValue: true,
- type: {
- name: "Boolean"
- }
- },
- name: {
- serializedName: "name",
- type: {
- name: "String"
- }
- },
- targetResourceUri: {
- serializedName: "targetResourceUri",
- type: {
- name: "String"
- }
- }
- }
- }
-};
-
export const AutoscaleSettingResource: msRest.CompositeMapper = {
serializedName: "AutoscaleSettingResource",
type: {
@@ -1235,73 +1178,6 @@ export const RuleWebhookAction: msRest.CompositeMapper = {
}
};
-export const AlertRule: msRest.CompositeMapper = {
- serializedName: "AlertRule",
- type: {
- name: "Composite",
- className: "AlertRule",
- modelProperties: {
- name: {
- required: true,
- serializedName: "name",
- type: {
- name: "String"
- }
- },
- description: {
- serializedName: "description",
- type: {
- name: "String"
- }
- },
- isEnabled: {
- required: true,
- serializedName: "isEnabled",
- type: {
- name: "Boolean"
- }
- },
- condition: {
- required: true,
- serializedName: "condition",
- type: {
- name: "Composite",
- polymorphicDiscriminator: {
- serializedName: "odata.type",
- clientName: "odatatype"
- },
- uberParent: "RuleCondition",
- className: "RuleCondition"
- }
- },
- actions: {
- serializedName: "actions",
- type: {
- name: "Sequence",
- element: {
- type: {
- name: "Composite",
- polymorphicDiscriminator: {
- serializedName: "odata.type",
- clientName: "odatatype"
- },
- uberParent: "RuleAction",
- className: "RuleAction"
- }
- }
- }
- },
- lastUpdatedTime: {
- readOnly: true,
- serializedName: "lastUpdatedTime",
- type: {
- name: "DateTime"
- }
- }
- }
- }
-};
-
export const AlertRuleResource: msRest.CompositeMapper = {
serializedName: "AlertRuleResource",
type: {
@@ -1475,60 +1351,6 @@ export const RetentionPolicy: msRest.CompositeMapper = {
}
};
-export const LogProfileProperties: msRest.CompositeMapper = {
- serializedName: "LogProfileProperties",
- type: {
- name: "Composite",
- className: "LogProfileProperties",
- modelProperties: {
- storageAccountId: {
- serializedName: "storageAccountId",
- type: {
- name: "String"
- }
- },
- serviceBusRuleId: {
- serializedName: "serviceBusRuleId",
- type: {
- name: "String"
- }
- },
- locations: {
- required: true,
- serializedName: "locations",
- type: {
- name: "Sequence",
- element: {
- type: {
- name: "String"
- }
- }
- }
- },
- categories: {
- required: true,
- serializedName: "categories",
- type: {
- name: "Sequence",
- element: {
- type: {
- name: "String"
- }
- }
- }
- },
- retentionPolicy: {
- required: true,
- serializedName: "retentionPolicy",
- type: {
- name: "Composite",
- className: "RetentionPolicy"
- }
- }
- }
- }
-};
-
export const LogProfileResource: msRest.CompositeMapper = {
serializedName: "LogProfileResource",
type: {
@@ -1746,70 +1568,6 @@ export const LogSettings: msRest.CompositeMapper = {
}
};
-export const DiagnosticSettings: msRest.CompositeMapper = {
- serializedName: "DiagnosticSettings",
- type: {
- name: "Composite",
- className: "DiagnosticSettings",
- modelProperties: {
- storageAccountId: {
- serializedName: "storageAccountId",
- type: {
- name: "String"
- }
- },
- serviceBusRuleId: {
- serializedName: "serviceBusRuleId",
- type: {
- name: "String"
- }
- },
- eventHubAuthorizationRuleId: {
- serializedName: "eventHubAuthorizationRuleId",
- type: {
- name: "String"
- }
- },
- eventHubName: {
- serializedName: "eventHubName",
- type: {
- name: "String"
- }
- },
- metrics: {
- serializedName: "metrics",
- type: {
- name: "Sequence",
- element: {
- type: {
- name: "Composite",
- className: "MetricSettings"
- }
- }
- }
- },
- logs: {
- serializedName: "logs",
- type: {
- name: "Sequence",
- element: {
- type: {
- name: "Composite",
- className: "LogSettings"
- }
- }
- }
- },
- workspaceId: {
- serializedName: "workspaceId",
- type: {
- name: "String"
- }
- }
- }
- }
-};
-
export const DiagnosticSettingsResource: msRest.CompositeMapper = {
serializedName: "DiagnosticSettingsResource",
type: {
@@ -1897,27 +1655,6 @@ export const DiagnosticSettingsResourceCollection: msRest.CompositeMapper = {
}
};
-export const DiagnosticSettingsCategory: msRest.CompositeMapper = {
- serializedName: "DiagnosticSettingsCategory",
- type: {
- name: "Composite",
- className: "DiagnosticSettingsCategory",
- modelProperties: {
- categoryType: {
- nullable: false,
- serializedName: "categoryType",
- type: {
- name: "Enum",
- allowedValues: [
- "Metrics",
- "Logs"
- ]
- }
- }
- }
- }
-};
-
export const DiagnosticSettingsCategoryResource: msRest.CompositeMapper = {
serializedName: "DiagnosticSettingsCategoryResource",
type: {
@@ -2284,142 +2021,6 @@ export const AzureFunctionReceiver: msRest.CompositeMapper = {
}
};
-export const ActionGroup: msRest.CompositeMapper = {
- serializedName: "ActionGroup",
- type: {
- name: "Composite",
- className: "ActionGroup",
- modelProperties: {
- groupShortName: {
- required: true,
- serializedName: "groupShortName",
- constraints: {
- MaxLength: 12
- },
- type: {
- name: "String"
- }
- },
- enabled: {
- required: true,
- serializedName: "enabled",
- defaultValue: true,
- type: {
- name: "Boolean"
- }
- },
- emailReceivers: {
- serializedName: "emailReceivers",
- type: {
- name: "Sequence",
- element: {
- type: {
- name: "Composite",
- className: "EmailReceiver"
- }
- }
- }
- },
- smsReceivers: {
- serializedName: "smsReceivers",
- type: {
- name: "Sequence",
- element: {
- type: {
- name: "Composite",
- className: "SmsReceiver"
- }
- }
- }
- },
- webhookReceivers: {
- serializedName: "webhookReceivers",
- type: {
- name: "Sequence",
- element: {
- type: {
- name: "Composite",
- className: "WebhookReceiver"
- }
- }
- }
- },
- itsmReceivers: {
- serializedName: "itsmReceivers",
- type: {
- name: "Sequence",
- element: {
- type: {
- name: "Composite",
- className: "ItsmReceiver"
- }
- }
- }
- },
- azureAppPushReceivers: {
- serializedName: "azureAppPushReceivers",
- type: {
- name: "Sequence",
- element: {
- type: {
- name: "Composite",
- className: "AzureAppPushReceiver"
- }
- }
- }
- },
- automationRunbookReceivers: {
- serializedName: "automationRunbookReceivers",
- type: {
- name: "Sequence",
- element: {
- type: {
- name: "Composite",
- className: "AutomationRunbookReceiver"
- }
- }
- }
- },
- voiceReceivers: {
- serializedName: "voiceReceivers",
- type: {
- name: "Sequence",
- element: {
- type: {
- name: "Composite",
- className: "VoiceReceiver"
- }
- }
- }
- },
- logicAppReceivers: {
- serializedName: "logicAppReceivers",
- type: {
- name: "Sequence",
- element: {
- type: {
- name: "Composite",
- className: "LogicAppReceiver"
- }
- }
- }
- },
- azureFunctionReceivers: {
- serializedName: "azureFunctionReceivers",
- type: {
- name: "Sequence",
- element: {
- type: {
- name: "Composite",
- className: "AzureFunctionReceiver"
- }
- }
- }
- }
- }
- }
-};
-
export const ActionGroupResource: msRest.CompositeMapper = {
serializedName: "ActionGroupResource",
type: {
@@ -2574,23 +2175,6 @@ export const EnableRequest: msRest.CompositeMapper = {
}
};
-export const ActionGroupPatch: msRest.CompositeMapper = {
- serializedName: "ActionGroupPatch",
- type: {
- name: "Composite",
- className: "ActionGroupPatch",
- modelProperties: {
- enabled: {
- serializedName: "enabled",
- defaultValue: true,
- type: {
- name: "Boolean"
- }
- }
- }
- }
-};
-
export const ActionGroupPatchBody: msRest.CompositeMapper = {
serializedName: "ActionGroupPatchBody",
type: {
@@ -2699,68 +2283,17 @@ export const ActivityLogAlertActionList: msRest.CompositeMapper = {
type: {
name: "Composite",
className: "ActivityLogAlertActionList",
- modelProperties: {
- actionGroups: {
- serializedName: "actionGroups",
- type: {
- name: "Sequence",
- element: {
- type: {
- name: "Composite",
- className: "ActivityLogAlertActionGroup"
- }
- }
- }
- }
- }
- }
-};
-
-export const ActivityLogAlert: msRest.CompositeMapper = {
- serializedName: "ActivityLogAlert",
- type: {
- name: "Composite",
- className: "ActivityLogAlert",
- modelProperties: {
- scopes: {
- required: true,
- serializedName: "scopes",
- type: {
- name: "Sequence",
- element: {
- type: {
- name: "String"
- }
- }
- }
- },
- enabled: {
- serializedName: "enabled",
- defaultValue: true,
- type: {
- name: "Boolean"
- }
- },
- condition: {
- required: true,
- serializedName: "condition",
- type: {
- name: "Composite",
- className: "ActivityLogAlertAllOfCondition"
- }
- },
- actions: {
- required: true,
- serializedName: "actions",
- type: {
- name: "Composite",
- className: "ActivityLogAlertActionList"
- }
- },
- description: {
- serializedName: "description",
+ modelProperties: {
+ actionGroups: {
+ serializedName: "actionGroups",
type: {
- name: "String"
+ name: "Sequence",
+ element: {
+ type: {
+ name: "Composite",
+ className: "ActivityLogAlertActionGroup"
+ }
+ }
}
}
}
@@ -2819,23 +2352,6 @@ export const ActivityLogAlertResource: msRest.CompositeMapper = {
}
};
-export const ActivityLogAlertPatch: msRest.CompositeMapper = {
- serializedName: "ActivityLogAlertPatch",
- type: {
- name: "Composite",
- className: "ActivityLogAlertPatch",
- modelProperties: {
- enabled: {
- serializedName: "enabled",
- defaultValue: true,
- type: {
- name: "Boolean"
- }
- }
- }
- }
-};
-
export const ActivityLogAlertPatchBody: msRest.CompositeMapper = {
serializedName: "ActivityLogAlertPatchBody",
type: {
@@ -3583,69 +3099,6 @@ export const Baseline: msRest.CompositeMapper = {
}
};
-export const BaselineProperties: msRest.CompositeMapper = {
- serializedName: "BaselineProperties",
- type: {
- name: "Composite",
- className: "BaselineProperties",
- modelProperties: {
- timespan: {
- serializedName: "timespan",
- type: {
- name: "String"
- }
- },
- interval: {
- serializedName: "interval",
- type: {
- name: "TimeSpan"
- }
- },
- aggregation: {
- serializedName: "aggregation",
- type: {
- name: "String"
- }
- },
- timestamps: {
- serializedName: "timestamps",
- type: {
- name: "Sequence",
- element: {
- type: {
- name: "DateTime"
- }
- }
- }
- },
- baseline: {
- serializedName: "baseline",
- type: {
- name: "Sequence",
- element: {
- type: {
- name: "Composite",
- className: "Baseline"
- }
- }
- }
- },
- metadata: {
- serializedName: "metadata",
- type: {
- name: "Sequence",
- element: {
- type: {
- name: "Composite",
- className: "BaselineMetadataValue"
- }
- }
- }
- }
- }
- }
-};
-
export const BaselineResponse: msRest.CompositeMapper = {
serializedName: "BaselineResponse",
type: {
@@ -3871,117 +3324,6 @@ export const MetricAlertCriteria: msRest.CompositeMapper = {
}
};
-export const MetricAlertProperties: msRest.CompositeMapper = {
- serializedName: "MetricAlertProperties",
- type: {
- name: "Composite",
- className: "MetricAlertProperties",
- modelProperties: {
- description: {
- required: true,
- serializedName: "description",
- type: {
- name: "String"
- }
- },
- severity: {
- required: true,
- serializedName: "severity",
- type: {
- name: "Number"
- }
- },
- enabled: {
- required: true,
- serializedName: "enabled",
- type: {
- name: "Boolean"
- }
- },
- scopes: {
- serializedName: "scopes",
- type: {
- name: "Sequence",
- element: {
- type: {
- name: "String"
- }
- }
- }
- },
- evaluationFrequency: {
- required: true,
- serializedName: "evaluationFrequency",
- type: {
- name: "TimeSpan"
- }
- },
- windowSize: {
- required: true,
- serializedName: "windowSize",
- type: {
- name: "TimeSpan"
- }
- },
- targetResourceType: {
- serializedName: "targetResourceType",
- type: {
- name: "String"
- }
- },
- targetResourceRegion: {
- serializedName: "targetResourceRegion",
- type: {
- name: "String"
- }
- },
- criteria: {
- required: true,
- serializedName: "criteria",
- type: {
- name: "Composite",
- polymorphicDiscriminator: {
- serializedName: "odata.type",
- clientName: "odatatype"
- },
- uberParent: "MetricAlertCriteria",
- className: "MetricAlertCriteria",
- additionalProperties: {
- type: {
- name: "Object"
- }
- }
- }
- },
- autoMitigate: {
- serializedName: "autoMitigate",
- type: {
- name: "Boolean"
- }
- },
- actions: {
- serializedName: "actions",
- type: {
- name: "Sequence",
- element: {
- type: {
- name: "Composite",
- className: "MetricAlertAction"
- }
- }
- }
- },
- lastUpdatedTime: {
- readOnly: true,
- serializedName: "lastUpdatedTime",
- type: {
- name: "DateTime"
- }
- }
- }
- }
-};
-
export const MetricAlertResource: msRest.CompositeMapper = {
serializedName: "MetricAlertResource",
type: {
@@ -4587,70 +3929,6 @@ export const Action: msRest.CompositeMapper = {
}
};
-export const LogSearchRule: msRest.CompositeMapper = {
- serializedName: "LogSearchRule",
- type: {
- name: "Composite",
- className: "LogSearchRule",
- modelProperties: {
- description: {
- serializedName: "description",
- type: {
- name: "String"
- }
- },
- enabled: {
- serializedName: "enabled",
- type: {
- name: "String"
- }
- },
- lastUpdatedTime: {
- readOnly: true,
- serializedName: "lastUpdatedTime",
- type: {
- name: "DateTime"
- }
- },
- provisioningState: {
- readOnly: true,
- serializedName: "provisioningState",
- type: {
- name: "String"
- }
- },
- source: {
- required: true,
- serializedName: "source",
- type: {
- name: "Composite",
- className: "Source"
- }
- },
- schedule: {
- serializedName: "schedule",
- type: {
- name: "Composite",
- className: "Schedule"
- }
- },
- action: {
- required: true,
- serializedName: "action",
- type: {
- name: "Composite",
- polymorphicDiscriminator: {
- serializedName: "odata.type",
- clientName: "odatatype"
- },
- uberParent: "Action",
- className: "Action"
- }
- }
- }
- }
-};
-
export const LogSearchRuleResource: msRest.CompositeMapper = {
serializedName: "LogSearchRuleResource",
type: {
@@ -4716,22 +3994,6 @@ export const LogSearchRuleResource: msRest.CompositeMapper = {
}
};
-export const LogSearchRulePatch: msRest.CompositeMapper = {
- serializedName: "LogSearchRulePatch",
- type: {
- name: "Composite",
- className: "LogSearchRulePatch",
- modelProperties: {
- enabled: {
- serializedName: "enabled",
- type: {
- name: "String"
- }
- }
- }
- }
-};
-
export const LogSearchRuleResourcePatch: msRest.CompositeMapper = {
serializedName: "LogSearchRuleResourcePatch",
type: {
diff --git a/packages/@azure/arm-monitor/package.json b/packages/@azure/arm-monitor/package.json
index 45b4d255a621..8aa281ec4eb5 100644
--- a/packages/@azure/arm-monitor/package.json
+++ b/packages/@azure/arm-monitor/package.json
@@ -4,9 +4,8 @@
"description": "MonitorManagementClient Library with typescript type definitions for node.js and browser.",
"version": "1.0.0-preview",
"dependencies": {
- "ms-rest-azure-js": "^1.0.166",
- "ms-rest-js": "^1.0.439",
- "tslib": "^1.9.3"
+ "ms-rest-azure-js": "~0.17.165",
+ "ms-rest-js": "~0.22.434"
},
"keywords": [
"node",
@@ -16,16 +15,16 @@
"isomorphic"
],
"license": "MIT",
- "main": "./dist/arm-monitor.js",
+ "main": "./cjs/monitorManagementClient.js",
"module": "./esm/monitorManagementClient.js",
- "types": "./esm/monitorManagementClient.d.ts",
+ "types": "./cjs/monitorManagementClient.d.ts",
"devDependencies": {
- "typescript": "^3.1.1",
- "rollup": "^0.66.2",
- "rollup-plugin-node-resolve": "^3.4.0",
- "uglify-js": "^3.4.9"
+ "tslib": "^1.9.3",
+ "typescript": "^3.0.3",
+ "webpack": "^4.17.2",
+ "webpack-cli": "^3.1.0"
},
- "homepage": "https://github.com/azure/azure-sdk-for-js",
+ "homepage": "https://github.com/azure/azure-sdk-for-js/tree/master/packages/@azure/arm-monitor",
"repository": {
"type": "git",
"url": "https://github.com/azure/azure-sdk-for-js.git"
@@ -34,9 +33,7 @@
"url": "https://github.com/azure/azure-sdk-for-js/issues"
},
"scripts": {
- "build": "tsc && rollup -c rollup.config.js && npm run minify",
- "minify": "uglifyjs -c -m --comments --source-map \"content='./dist/arm-monitor.js.map'\" -o ./dist/arm-monitor.min.js ./dist/arm-monitor.js",
+ "build": "tsc && tsc -p tsconfig.esm.json && webpack",
"prepare": "npm run build"
- },
- "sideEffects": false
+ }
}
diff --git a/packages/@azure/arm-monitor/tsconfig.esm.json b/packages/@azure/arm-monitor/tsconfig.esm.json
new file mode 100644
index 000000000000..0b3aed07505c
--- /dev/null
+++ b/packages/@azure/arm-monitor/tsconfig.esm.json
@@ -0,0 +1,8 @@
+{
+ "extends": "./tsconfig",
+ "compilerOptions": {
+ "outDir": "./esm",
+ "module": "es6",
+ "target": "es5"
+ }
+}
diff --git a/packages/@azure/arm-monitor/tsconfig.json b/packages/@azure/arm-monitor/tsconfig.json
index f32d1664f320..d5b25971c029 100644
--- a/packages/@azure/arm-monitor/tsconfig.json
+++ b/packages/@azure/arm-monitor/tsconfig.json
@@ -1,9 +1,9 @@
{
"compilerOptions": {
- "module": "es6",
+ "module": "commonjs",
"moduleResolution": "node",
"strict": true,
- "target": "es5",
+ "target": "es6",
"sourceMap": true,
"declarationMap": true,
"esModuleInterop": true,
@@ -11,8 +11,7 @@
"forceConsistentCasingInFileNames": true,
"lib": ["es6"],
"declaration": true,
- "outDir": "./esm",
- "importHelpers": true
+ "outDir": "./cjs"
},
"include": ["./lib/**/*"],
"exclude": ["node_modules"]
diff --git a/packages/@azure/arm-monitor/webpack.config.js b/packages/@azure/arm-monitor/webpack.config.js
new file mode 100644
index 000000000000..16fda976597a
--- /dev/null
+++ b/packages/@azure/arm-monitor/webpack.config.js
@@ -0,0 +1,30 @@
+// This is a template webpack config file with minimal configuration.
+// Users are free to create their own webpack configuration files in their application.
+const path = require('path');
+
+/**
+ * @type {import('webpack').Configuration}
+ */
+const config = {
+ mode: 'production',
+ entry: './esm/monitorManagementClient.js',
+ devtool: 'source-map',
+ output: {
+ filename: 'monitorManagementClientBundle.js',
+ path: __dirname,
+ libraryTarget: 'var',
+ library: 'monitorManagementClient'
+ },
+ // "ms-rest-js" and "ms-rest-azure-js" are dependencies of this library.
+ // Customer is expected to import/include this library in browser javascript
+ // (probably using the script tag in their html file).
+ externals: {
+ "ms-rest-js": "msRest",
+ "ms-rest-azure-js": "msRestAzure"
+ },
+ resolve: {
+ extensions: [".tsx", ".ts", ".js"]
+ }
+};
+
+module.exports = config;