From 47d28ec6b01a2e748a826e3bffb5ceeb0758300e Mon Sep 17 00:00:00 2001 From: Azure SDK for Python bot Date: Wed, 13 Mar 2019 14:48:35 -0700 Subject: [PATCH 1/2] Generated from 3db75735b23d7ad733668c5f03e1682016c86d58 (#4887) move global settings before packages --- lib/services/monitorManagement/README.md | 3 +-- lib/services/monitorManagement/package.json | 5 +---- 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/lib/services/monitorManagement/README.md b/lib/services/monitorManagement/README.md index 1baa1c6b0a..c6cb00e87a 100644 --- a/lib/services/monitorManagement/README.md +++ b/lib/services/monitorManagement/README.md @@ -3,8 +3,7 @@ uid: azure-arm-monitor summary: *content --- -**This SDK will be deprecated next year and will be replaced by a new TypeScript-based isomorphic SDK (found at https://www.npmjs.com/package/@azure/arm-monitor) which works on Node.js and browsers.** -**See https://aka.ms/azure-sdk-for-js-migration to learn more.** +**This SDK will be deprecated next year and will be replaced by a new TypeScript-based isomorphic SDK (found at https://github.com/Azure/azure-sdk-for-js) which works on Node.js and browsers.** ## Microsoft Azure SDK for Node.js - MonitorManagementClient This project provides a Node.js package for accessing Azure. Right now it supports: diff --git a/lib/services/monitorManagement/package.json b/lib/services/monitorManagement/package.json index 4803399b78..1216d619ec 100644 --- a/lib/services/monitorManagement/package.json +++ b/lib/services/monitorManagement/package.json @@ -4,7 +4,7 @@ "description": "MonitorManagementClient Library with typescript type definitions for node", "version": "5.3.0", "dependencies": { - "ms-rest": "^2.5.0", + "ms-rest": "^2.3.3", "ms-rest-azure": "^2.5.5" }, "keywords": [ @@ -21,8 +21,5 @@ }, "bugs": { "url": "https://github.com/azure/azure-sdk-for-node/issues" - }, - "scripts": { - "postinstall": "node .scripts/postinstall.js" } } From 840761148837b5e5edb64ad923ab4336052d16dc Mon Sep 17 00:00:00 2001 From: Azure SDK for Python bot Date: Wed, 13 Mar 2019 16:26:25 -0700 Subject: [PATCH 2/2] Generated from 3ee75a557636de42d727d65142c74ff42b754a67 (#4899) fix package tag for new API version --- .../lib/models/armRoleReceiver.js | 9 +++++++ .../lib/models/automationRunbookReceiver.js | 9 +++++++ .../lib/models/azureFunctionReceiver.js | 9 +++++++ .../lib/models/emailReceiver.js | 9 +++++++ .../monitorManagement/lib/models/index.d.ts | 24 +++++++++++++++++++ .../lib/models/logicAppReceiver.js | 9 +++++++ .../lib/models/webhookReceiver.js | 9 +++++++ .../lib/operations/actionGroups.js | 14 +++++------ 8 files changed, 85 insertions(+), 7 deletions(-) diff --git a/lib/services/monitorManagement/lib/models/armRoleReceiver.js b/lib/services/monitorManagement/lib/models/armRoleReceiver.js index 422989e1ae..23666207fb 100644 --- a/lib/services/monitorManagement/lib/models/armRoleReceiver.js +++ b/lib/services/monitorManagement/lib/models/armRoleReceiver.js @@ -20,6 +20,8 @@ class ArmRoleReceiver { * @property {string} name The name of the arm role receiver. Names must be * unique across all receivers within an action group. * @property {string} roleId The arm role id. + * @property {boolean} useCommonAlertSchema Indicates whether to use common + * alert schema. */ constructor() { } @@ -51,6 +53,13 @@ class ArmRoleReceiver { type: { name: 'String' } + }, + useCommonAlertSchema: { + required: true, + serializedName: 'useCommonAlertSchema', + type: { + name: 'Boolean' + } } } } diff --git a/lib/services/monitorManagement/lib/models/automationRunbookReceiver.js b/lib/services/monitorManagement/lib/models/automationRunbookReceiver.js index 2de8a7f17e..ff7d688e88 100644 --- a/lib/services/monitorManagement/lib/models/automationRunbookReceiver.js +++ b/lib/services/monitorManagement/lib/models/automationRunbookReceiver.js @@ -26,6 +26,8 @@ class AutomationRunbookReceiver { * global runbook. * @property {string} [name] Indicates name of the webhook. * @property {string} [serviceUri] The URI where webhooks should be sent. + * @property {boolean} useCommonAlertSchema Indicates whether to use common + * alert schema. */ constructor() { } @@ -85,6 +87,13 @@ class AutomationRunbookReceiver { type: { name: 'String' } + }, + useCommonAlertSchema: { + required: true, + serializedName: 'useCommonAlertSchema', + type: { + name: 'Boolean' + } } } } diff --git a/lib/services/monitorManagement/lib/models/azureFunctionReceiver.js b/lib/services/monitorManagement/lib/models/azureFunctionReceiver.js index 385154e52f..686be7b3e2 100644 --- a/lib/services/monitorManagement/lib/models/azureFunctionReceiver.js +++ b/lib/services/monitorManagement/lib/models/azureFunctionReceiver.js @@ -24,6 +24,8 @@ class AzureFunctionReceiver { * @property {string} functionName The function name in the function app. * @property {string} httpTriggerUrl The http trigger url where http request * sent to. + * @property {boolean} useCommonAlertSchema Indicates whether to use common + * alert schema. */ constructor() { } @@ -69,6 +71,13 @@ class AzureFunctionReceiver { type: { name: 'String' } + }, + useCommonAlertSchema: { + required: true, + serializedName: 'useCommonAlertSchema', + type: { + name: 'Boolean' + } } } } diff --git a/lib/services/monitorManagement/lib/models/emailReceiver.js b/lib/services/monitorManagement/lib/models/emailReceiver.js index 6fb715da8a..9bb452b469 100644 --- a/lib/services/monitorManagement/lib/models/emailReceiver.js +++ b/lib/services/monitorManagement/lib/models/emailReceiver.js @@ -20,6 +20,8 @@ class EmailReceiver { * @property {string} name The name of the email receiver. Names must be * unique across all receivers within an action group. * @property {string} emailAddress The email address of this receiver. + * @property {boolean} useCommonAlertSchema Indicates whether to use common + * alert schema. * @property {string} [status] The receiver status of the e-mail. Possible * values include: 'NotSpecified', 'Enabled', 'Disabled' */ @@ -54,6 +56,13 @@ class EmailReceiver { name: 'String' } }, + useCommonAlertSchema: { + required: true, + serializedName: 'useCommonAlertSchema', + type: { + name: 'Boolean' + } + }, status: { required: false, readOnly: true, diff --git a/lib/services/monitorManagement/lib/models/index.d.ts b/lib/services/monitorManagement/lib/models/index.d.ts index 7c4c00e808..dc3a028875 100644 --- a/lib/services/monitorManagement/lib/models/index.d.ts +++ b/lib/services/monitorManagement/lib/models/index.d.ts @@ -988,6 +988,10 @@ export interface EmailReceiver { * The email address of this receiver. */ emailAddress: string; + /** + * Indicates whether to use common alert schema. + */ + useCommonAlertSchema: boolean; /** * The receiver status of the e-mail. Possible values include: 'NotSpecified', 'Enabled', * 'Disabled' @@ -1031,6 +1035,10 @@ export interface WebhookReceiver { * The URI where webhooks should be sent. */ serviceUri: string; + /** + * Indicates whether to use common alert schema. + */ + useCommonAlertSchema: boolean; } /** @@ -1105,6 +1113,10 @@ export interface AutomationRunbookReceiver { * The URI where webhooks should be sent. */ serviceUri?: string; + /** + * Indicates whether to use common alert schema. + */ + useCommonAlertSchema: boolean; } /** @@ -1143,6 +1155,10 @@ export interface LogicAppReceiver { * The callback url where http request sent to. */ callbackUrl: string; + /** + * Indicates whether to use common alert schema. + */ + useCommonAlertSchema: boolean; } /** @@ -1166,6 +1182,10 @@ export interface AzureFunctionReceiver { * The http trigger url where http request sent to. */ httpTriggerUrl: string; + /** + * Indicates whether to use common alert schema. + */ + useCommonAlertSchema: boolean; } /** @@ -1181,6 +1201,10 @@ export interface ArmRoleReceiver { * The arm role id. */ roleId: string; + /** + * Indicates whether to use common alert schema. + */ + useCommonAlertSchema: boolean; } /** diff --git a/lib/services/monitorManagement/lib/models/logicAppReceiver.js b/lib/services/monitorManagement/lib/models/logicAppReceiver.js index 7cfe116aac..a35226a899 100644 --- a/lib/services/monitorManagement/lib/models/logicAppReceiver.js +++ b/lib/services/monitorManagement/lib/models/logicAppReceiver.js @@ -23,6 +23,8 @@ class LogicAppReceiver { * receiver. * @property {string} callbackUrl The callback url where http request sent * to. + * @property {boolean} useCommonAlertSchema Indicates whether to use common + * alert schema. */ constructor() { } @@ -61,6 +63,13 @@ class LogicAppReceiver { type: { name: 'String' } + }, + useCommonAlertSchema: { + required: true, + serializedName: 'useCommonAlertSchema', + type: { + name: 'Boolean' + } } } } diff --git a/lib/services/monitorManagement/lib/models/webhookReceiver.js b/lib/services/monitorManagement/lib/models/webhookReceiver.js index 5cb93a12b1..186dac5e28 100644 --- a/lib/services/monitorManagement/lib/models/webhookReceiver.js +++ b/lib/services/monitorManagement/lib/models/webhookReceiver.js @@ -20,6 +20,8 @@ class WebhookReceiver { * @property {string} name The name of the webhook receiver. Names must be * unique across all receivers within an action group. * @property {string} serviceUri The URI where webhooks should be sent. + * @property {boolean} useCommonAlertSchema Indicates whether to use common + * alert schema. */ constructor() { } @@ -51,6 +53,13 @@ class WebhookReceiver { type: { name: 'String' } + }, + useCommonAlertSchema: { + required: true, + serializedName: 'useCommonAlertSchema', + type: { + name: 'Boolean' + } } } } diff --git a/lib/services/monitorManagement/lib/operations/actionGroups.js b/lib/services/monitorManagement/lib/operations/actionGroups.js index e3ad5a9b2e..ea98c26636 100644 --- a/lib/services/monitorManagement/lib/operations/actionGroups.js +++ b/lib/services/monitorManagement/lib/operations/actionGroups.js @@ -94,7 +94,7 @@ function _createOrUpdate(resourceGroupName, actionGroupName, actionGroup, option if (!callback) { throw new Error('callback cannot be null.'); } - let apiVersion = '2018-09-01'; + let apiVersion = '2019-03-01'; // Validate try { if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') { @@ -272,7 +272,7 @@ function _get(resourceGroupName, actionGroupName, options, callback) { if (!callback) { throw new Error('callback cannot be null.'); } - let apiVersion = '2018-09-01'; + let apiVersion = '2019-03-01'; // Validate try { if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') { @@ -415,7 +415,7 @@ function _deleteMethod(resourceGroupName, actionGroupName, options, callback) { if (!callback) { throw new Error('callback cannot be null.'); } - let apiVersion = '2018-09-01'; + let apiVersion = '2019-03-01'; // Validate try { if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') { @@ -551,7 +551,7 @@ function _update(resourceGroupName, actionGroupName, actionGroupPatch, options, if (!callback) { throw new Error('callback cannot be null.'); } - let apiVersion = '2018-09-01'; + let apiVersion = '2019-03-01'; // Validate try { if (this.client.subscriptionId === null || this.client.subscriptionId === undefined || typeof this.client.subscriptionId.valueOf() !== 'string') { @@ -708,7 +708,7 @@ function _listBySubscriptionId(options, callback) { if (!callback) { throw new Error('callback cannot be null.'); } - let apiVersion = '2018-09-01'; + let apiVersion = '2019-03-01'; // Validate try { if (this.client.subscriptionId === null || this.client.subscriptionId === undefined || typeof this.client.subscriptionId.valueOf() !== 'string') { @@ -842,7 +842,7 @@ function _listByResourceGroup(resourceGroupName, options, callback) { if (!callback) { throw new Error('callback cannot be null.'); } - let apiVersion = '2018-09-01'; + let apiVersion = '2019-03-01'; // Validate try { if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') { @@ -985,7 +985,7 @@ function _enableReceiver(resourceGroupName, actionGroupName, receiverName, optio if (!callback) { throw new Error('callback cannot be null.'); } - let apiVersion = '2018-09-01'; + let apiVersion = '2019-03-01'; // Validate try { if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') {