Skip to content
This repository has been archived by the owner on May 5, 2023. It is now read-only.

[AutoPR] monitor/resource-manager #4897

Closed
wants to merge 2 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions lib/services/monitorManagement/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
9 changes: 9 additions & 0 deletions lib/services/monitorManagement/lib/models/armRoleReceiver.js
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
}
Expand Down Expand Up @@ -51,6 +53,13 @@ class ArmRoleReceiver {
type: {
name: 'String'
}
},
useCommonAlertSchema: {
required: true,
serializedName: 'useCommonAlertSchema',
type: {
name: 'Boolean'
}
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
}
Expand Down Expand Up @@ -85,6 +87,13 @@ class AutomationRunbookReceiver {
type: {
name: 'String'
}
},
useCommonAlertSchema: {
required: true,
serializedName: 'useCommonAlertSchema',
type: {
name: 'Boolean'
}
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
}
Expand Down Expand Up @@ -69,6 +71,13 @@ class AzureFunctionReceiver {
type: {
name: 'String'
}
},
useCommonAlertSchema: {
required: true,
serializedName: 'useCommonAlertSchema',
type: {
name: 'Boolean'
}
}
}
}
Expand Down
9 changes: 9 additions & 0 deletions lib/services/monitorManagement/lib/models/emailReceiver.js
Original file line number Diff line number Diff line change
Expand Up @@ -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'
*/
Expand Down Expand Up @@ -54,6 +56,13 @@ class EmailReceiver {
name: 'String'
}
},
useCommonAlertSchema: {
required: true,
serializedName: 'useCommonAlertSchema',
type: {
name: 'Boolean'
}
},
status: {
required: false,
readOnly: true,
Expand Down
24 changes: 24 additions & 0 deletions lib/services/monitorManagement/lib/models/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down Expand Up @@ -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;
}

/**
Expand Down Expand Up @@ -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;
}

/**
Expand Down Expand Up @@ -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;
}

/**
Expand All @@ -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;
}

/**
Expand All @@ -1181,6 +1201,10 @@ export interface ArmRoleReceiver {
* The arm role id.
*/
roleId: string;
/**
* Indicates whether to use common alert schema.
*/
useCommonAlertSchema: boolean;
}

/**
Expand Down
9 changes: 9 additions & 0 deletions lib/services/monitorManagement/lib/models/logicAppReceiver.js
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
}
Expand Down Expand Up @@ -61,6 +63,13 @@ class LogicAppReceiver {
type: {
name: 'String'
}
},
useCommonAlertSchema: {
required: true,
serializedName: 'useCommonAlertSchema',
type: {
name: 'Boolean'
}
}
}
}
Expand Down
9 changes: 9 additions & 0 deletions lib/services/monitorManagement/lib/models/webhookReceiver.js
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
}
Expand Down Expand Up @@ -51,6 +53,13 @@ class WebhookReceiver {
type: {
name: 'String'
}
},
useCommonAlertSchema: {
required: true,
serializedName: 'useCommonAlertSchema',
type: {
name: 'Boolean'
}
}
}
}
Expand Down
14 changes: 7 additions & 7 deletions lib/services/monitorManagement/lib/operations/actionGroups.js
Original file line number Diff line number Diff line change
Expand Up @@ -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') {
Expand Down Expand Up @@ -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') {
Expand Down Expand Up @@ -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') {
Expand Down Expand Up @@ -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') {
Expand Down Expand Up @@ -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') {
Expand Down Expand Up @@ -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') {
Expand Down Expand Up @@ -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') {
Expand Down
5 changes: 1 addition & 4 deletions lib/services/monitorManagement/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": [
Expand All @@ -21,8 +21,5 @@
},
"bugs": {
"url": "https://github.com/azure/azure-sdk-for-node/issues"
},
"scripts": {
"postinstall": "node .scripts/postinstall.js"
}
}