diff --git a/lib/services/monitorManagement/lib/models/activityLogAlertActionList.js b/lib/services/monitorManagement/lib/models/activityLogAlertActionList.js index 2de7dd16fe..3db57621c6 100644 --- a/lib/services/monitorManagement/lib/models/activityLogAlertActionList.js +++ b/lib/services/monitorManagement/lib/models/activityLogAlertActionList.js @@ -10,8 +10,6 @@ 'use strict'; -const models = require('./index'); - /** * A list of activity log alert actions. * diff --git a/lib/services/monitorManagement/lib/models/activityLogAlertAllOfCondition.js b/lib/services/monitorManagement/lib/models/activityLogAlertAllOfCondition.js index 234f03ce70..62e16b8ba7 100644 --- a/lib/services/monitorManagement/lib/models/activityLogAlertAllOfCondition.js +++ b/lib/services/monitorManagement/lib/models/activityLogAlertAllOfCondition.js @@ -10,8 +10,6 @@ 'use strict'; -const models = require('./index'); - /** * An Activity Log alert condition that is met when all its member conditions * are met. diff --git a/lib/services/monitorManagement/lib/models/alertRuleResourcePatch.js b/lib/services/monitorManagement/lib/models/alertRuleResourcePatch.js index 3094d95d8b..5f3a812930 100644 --- a/lib/services/monitorManagement/lib/models/alertRuleResourcePatch.js +++ b/lib/services/monitorManagement/lib/models/alertRuleResourcePatch.js @@ -10,8 +10,6 @@ 'use strict'; -const models = require('./index'); - /** * The alert rule object for patch operations. * diff --git a/lib/services/monitorManagement/lib/models/autoscaleNotification.js b/lib/services/monitorManagement/lib/models/autoscaleNotification.js index d56fcbc701..df7056debe 100644 --- a/lib/services/monitorManagement/lib/models/autoscaleNotification.js +++ b/lib/services/monitorManagement/lib/models/autoscaleNotification.js @@ -10,8 +10,6 @@ 'use strict'; -const models = require('./index'); - /** * Autoscale notification. * diff --git a/lib/services/monitorManagement/lib/models/autoscaleProfile.js b/lib/services/monitorManagement/lib/models/autoscaleProfile.js index 1246fb6922..0e71d11fc7 100644 --- a/lib/services/monitorManagement/lib/models/autoscaleProfile.js +++ b/lib/services/monitorManagement/lib/models/autoscaleProfile.js @@ -10,8 +10,6 @@ 'use strict'; -const models = require('./index'); - /** * Autoscale profile. * @@ -79,6 +77,13 @@ class AutoscaleProfile { * format. * @member {object} [recurrence] the repeating times at which this profile * begins. This element is not used if the FixedDate element is used. + * @member {string} [recurrence.frequency] the recurrence frequency. How + * often the schedule profile should take effect. This value must be Week, + * meaning each week will have the same set of profiles. For example, to set + * a daily schedule, set **schedule** to every day of the week. The frequency + * property specifies that the schedule is repeated weekly. Possible values + * include: 'None', 'Second', 'Minute', 'Hour', 'Day', 'Week', 'Month', + * 'Year' * @member {object} [recurrence.schedule] the scheduling constraints for when * the profile begins. * @member {string} [recurrence.schedule.timeZone] the timezone for the hours diff --git a/lib/services/monitorManagement/lib/models/autoscaleSettingResourcePatch.js b/lib/services/monitorManagement/lib/models/autoscaleSettingResourcePatch.js index fe1ac2f14a..5a16e79145 100644 --- a/lib/services/monitorManagement/lib/models/autoscaleSettingResourcePatch.js +++ b/lib/services/monitorManagement/lib/models/autoscaleSettingResourcePatch.js @@ -10,8 +10,6 @@ 'use strict'; -const models = require('./index'); - /** * The autoscale setting object for patch operations. * diff --git a/lib/services/monitorManagement/lib/models/baselineMetadataValue.js b/lib/services/monitorManagement/lib/models/baselineMetadataValue.js index f0353fa4b3..904515ec31 100644 --- a/lib/services/monitorManagement/lib/models/baselineMetadataValue.js +++ b/lib/services/monitorManagement/lib/models/baselineMetadataValue.js @@ -10,8 +10,6 @@ 'use strict'; -const models = require('./index'); - /** * Represents a baseline metadata value. * diff --git a/lib/services/monitorManagement/lib/models/baselineResponse.js b/lib/services/monitorManagement/lib/models/baselineResponse.js index db9e23dd39..4a7ff3c87e 100644 --- a/lib/services/monitorManagement/lib/models/baselineResponse.js +++ b/lib/services/monitorManagement/lib/models/baselineResponse.js @@ -10,8 +10,6 @@ 'use strict'; -const models = require('./index'); - /** * The response to a baseline query. * diff --git a/lib/services/monitorManagement/lib/models/calculateBaselineResponse.js b/lib/services/monitorManagement/lib/models/calculateBaselineResponse.js index 3b8328e966..2c3984cfe7 100644 --- a/lib/services/monitorManagement/lib/models/calculateBaselineResponse.js +++ b/lib/services/monitorManagement/lib/models/calculateBaselineResponse.js @@ -10,8 +10,6 @@ 'use strict'; -const models = require('./index'); - /** * The response to a calcualte baseline call. * diff --git a/lib/services/monitorManagement/lib/models/diagnosticSettingsCategoryResourceCollection.js b/lib/services/monitorManagement/lib/models/diagnosticSettingsCategoryResourceCollection.js index 00199aec14..b3808199b6 100644 --- a/lib/services/monitorManagement/lib/models/diagnosticSettingsCategoryResourceCollection.js +++ b/lib/services/monitorManagement/lib/models/diagnosticSettingsCategoryResourceCollection.js @@ -10,8 +10,6 @@ 'use strict'; -const models = require('./index'); - /** * Represents a collection of diagnostic setting category resources. * diff --git a/lib/services/monitorManagement/lib/models/diagnosticSettingsResourceCollection.js b/lib/services/monitorManagement/lib/models/diagnosticSettingsResourceCollection.js index 89650e1336..adf6899c2e 100644 --- a/lib/services/monitorManagement/lib/models/diagnosticSettingsResourceCollection.js +++ b/lib/services/monitorManagement/lib/models/diagnosticSettingsResourceCollection.js @@ -10,8 +10,6 @@ 'use strict'; -const models = require('./index'); - /** * Represents a collection of alert rule resources. * diff --git a/lib/services/monitorManagement/lib/models/eventData.js b/lib/services/monitorManagement/lib/models/eventData.js index 7a0c296d1c..5b22aed759 100644 --- a/lib/services/monitorManagement/lib/models/eventData.js +++ b/lib/services/monitorManagement/lib/models/eventData.js @@ -10,8 +10,6 @@ 'use strict'; -const models = require('./index'); - /** * The Azure event log entries are of type EventData * diff --git a/lib/services/monitorManagement/lib/models/index.d.ts b/lib/services/monitorManagement/lib/models/index.d.ts index d75f226e03..e8facbcd0b 100644 --- a/lib/services/monitorManagement/lib/models/index.d.ts +++ b/lib/services/monitorManagement/lib/models/index.d.ts @@ -290,6 +290,12 @@ export interface RecurrentSchedule { * The repeating times at which this profile begins. This element is not used * if the FixedDate element is used. * + * @member {string} frequency the recurrence frequency. How often the schedule + * profile should take effect. This value must be Week, meaning each week will + * have the same set of profiles. For example, to set a daily schedule, set + * **schedule** to every day of the week. The frequency property specifies that + * the schedule is repeated weekly. Possible values include: 'None', 'Second', + * 'Minute', 'Hour', 'Day', 'Week', 'Month', 'Year' * @member {object} schedule the scheduling constraints for when the profile * begins. * @member {string} [schedule.timeZone] the timezone for the hours of the @@ -338,6 +344,7 @@ export interface RecurrentSchedule { * profile takes effect at. */ export interface Recurrence { + frequency: string; schedule: RecurrentSchedule; } @@ -406,6 +413,12 @@ export interface Recurrence { * format. * @member {object} [recurrence] the repeating times at which this profile * begins. This element is not used if the FixedDate element is used. + * @member {string} [recurrence.frequency] the recurrence frequency. How often + * the schedule profile should take effect. This value must be Week, meaning + * each week will have the same set of profiles. For example, to set a daily + * schedule, set **schedule** to every day of the week. The frequency property + * specifies that the schedule is repeated weekly. Possible values include: + * 'None', 'Second', 'Minute', 'Hour', 'Day', 'Week', 'Month', 'Year' * @member {object} [recurrence.schedule] the scheduling constraints for when * the profile begins. * @member {string} [recurrence.schedule.timeZone] the timezone for the hours diff --git a/lib/services/monitorManagement/lib/models/logProfileResourcePatch.js b/lib/services/monitorManagement/lib/models/logProfileResourcePatch.js index f9b2822b45..442c7cf801 100644 --- a/lib/services/monitorManagement/lib/models/logProfileResourcePatch.js +++ b/lib/services/monitorManagement/lib/models/logProfileResourcePatch.js @@ -10,8 +10,6 @@ 'use strict'; -const models = require('./index'); - /** * The log profile resource for patch operations. * diff --git a/lib/services/monitorManagement/lib/models/logSettings.js b/lib/services/monitorManagement/lib/models/logSettings.js index de7aa7b6c6..dc1240e08c 100644 --- a/lib/services/monitorManagement/lib/models/logSettings.js +++ b/lib/services/monitorManagement/lib/models/logSettings.js @@ -10,8 +10,6 @@ 'use strict'; -const models = require('./index'); - /** * Part of MultiTenantDiagnosticSettings. Specifies the settings for a * particular log. diff --git a/lib/services/monitorManagement/lib/models/metadataValue.js b/lib/services/monitorManagement/lib/models/metadataValue.js index e57162fef2..4d25ff04c0 100644 --- a/lib/services/monitorManagement/lib/models/metadataValue.js +++ b/lib/services/monitorManagement/lib/models/metadataValue.js @@ -10,8 +10,6 @@ 'use strict'; -const models = require('./index'); - /** * Represents a metric metadata value. * diff --git a/lib/services/monitorManagement/lib/models/metric.js b/lib/services/monitorManagement/lib/models/metric.js index 62f4e00afc..95b5947525 100644 --- a/lib/services/monitorManagement/lib/models/metric.js +++ b/lib/services/monitorManagement/lib/models/metric.js @@ -10,8 +10,6 @@ 'use strict'; -const models = require('./index'); - /** * The result data of a query. * diff --git a/lib/services/monitorManagement/lib/models/metricAlertResourcePatch.js b/lib/services/monitorManagement/lib/models/metricAlertResourcePatch.js index 2211860368..aac4cc1abd 100644 --- a/lib/services/monitorManagement/lib/models/metricAlertResourcePatch.js +++ b/lib/services/monitorManagement/lib/models/metricAlertResourcePatch.js @@ -10,8 +10,6 @@ 'use strict'; -const models = require('./index'); - /** * The metric alert resource for patch operations. * diff --git a/lib/services/monitorManagement/lib/models/metricAlertStatus.js b/lib/services/monitorManagement/lib/models/metricAlertStatus.js index 388183af45..fbf72c3a94 100644 --- a/lib/services/monitorManagement/lib/models/metricAlertStatus.js +++ b/lib/services/monitorManagement/lib/models/metricAlertStatus.js @@ -10,8 +10,6 @@ 'use strict'; -const models = require('./index'); - /** * An alert status. * diff --git a/lib/services/monitorManagement/lib/models/metricAlertStatusCollection.js b/lib/services/monitorManagement/lib/models/metricAlertStatusCollection.js index e3679d730b..deb2869449 100644 --- a/lib/services/monitorManagement/lib/models/metricAlertStatusCollection.js +++ b/lib/services/monitorManagement/lib/models/metricAlertStatusCollection.js @@ -10,8 +10,6 @@ 'use strict'; -const models = require('./index'); - /** * Represents a collection of alert rule resources. * diff --git a/lib/services/monitorManagement/lib/models/metricCriteria.js b/lib/services/monitorManagement/lib/models/metricCriteria.js index 8be5418acb..b94e6ef1bd 100644 --- a/lib/services/monitorManagement/lib/models/metricCriteria.js +++ b/lib/services/monitorManagement/lib/models/metricCriteria.js @@ -10,8 +10,6 @@ 'use strict'; -const models = require('./index'); - /** * Criterion to filter metrics. * diff --git a/lib/services/monitorManagement/lib/models/metricDefinition.js b/lib/services/monitorManagement/lib/models/metricDefinition.js index 06e73cee86..4f214262f4 100644 --- a/lib/services/monitorManagement/lib/models/metricDefinition.js +++ b/lib/services/monitorManagement/lib/models/metricDefinition.js @@ -10,8 +10,6 @@ 'use strict'; -const models = require('./index'); - /** * Metric definition class specifies the metadata for a metric. * diff --git a/lib/services/monitorManagement/lib/models/metricSettings.js b/lib/services/monitorManagement/lib/models/metricSettings.js index bdde9809ff..24fc9968a9 100644 --- a/lib/services/monitorManagement/lib/models/metricSettings.js +++ b/lib/services/monitorManagement/lib/models/metricSettings.js @@ -10,8 +10,6 @@ 'use strict'; -const models = require('./index'); - /** * Part of MultiTenantDiagnosticSettings. Specifies the settings for a * particular metric. diff --git a/lib/services/monitorManagement/lib/models/operation.js b/lib/services/monitorManagement/lib/models/operation.js index 83a27ddcc0..8f276ea7b4 100644 --- a/lib/services/monitorManagement/lib/models/operation.js +++ b/lib/services/monitorManagement/lib/models/operation.js @@ -10,8 +10,6 @@ 'use strict'; -const models = require('./index'); - /** * Microsoft Insights API operation definition. * diff --git a/lib/services/monitorManagement/lib/models/operationListResult.js b/lib/services/monitorManagement/lib/models/operationListResult.js index cad3161962..7ceaf0ffa1 100644 --- a/lib/services/monitorManagement/lib/models/operationListResult.js +++ b/lib/services/monitorManagement/lib/models/operationListResult.js @@ -10,8 +10,6 @@ 'use strict'; -const models = require('./index'); - /** * Result of the request to list Microsoft.Insights operations. It contains a * list of operations and a URL link to get the next set of results. diff --git a/lib/services/monitorManagement/lib/models/recurrence.js b/lib/services/monitorManagement/lib/models/recurrence.js index b4878ebe15..090c6fc5e2 100644 --- a/lib/services/monitorManagement/lib/models/recurrence.js +++ b/lib/services/monitorManagement/lib/models/recurrence.js @@ -10,8 +10,6 @@ 'use strict'; -const models = require('./index'); - /** * The repeating times at which this profile begins. This element is not used * if the FixedDate element is used. @@ -20,6 +18,13 @@ const models = require('./index'); class Recurrence { /** * Create a Recurrence. + * @member {string} frequency the recurrence frequency. How often the + * schedule profile should take effect. This value must be Week, meaning each + * week will have the same set of profiles. For example, to set a daily + * schedule, set **schedule** to every day of the week. The frequency + * property specifies that the schedule is repeated weekly. Possible values + * include: 'None', 'Second', 'Minute', 'Hour', 'Day', 'Week', 'Month', + * 'Year' * @member {object} schedule the scheduling constraints for when the profile * begins. * @member {string} [schedule.timeZone] the timezone for the hours of the @@ -87,11 +92,10 @@ class Recurrence { modelProperties: { frequency: { required: true, - isConstant: true, serializedName: 'frequency', - defaultValue: 'Week', type: { - name: 'String' + name: 'Enum', + allowedValues: [ 'None', 'Second', 'Minute', 'Hour', 'Day', 'Week', 'Month', 'Year' ] } }, schedule: { diff --git a/lib/services/monitorManagement/lib/models/response.js b/lib/services/monitorManagement/lib/models/response.js index 20e0c9cbb3..6e2b85c300 100644 --- a/lib/services/monitorManagement/lib/models/response.js +++ b/lib/services/monitorManagement/lib/models/response.js @@ -10,8 +10,6 @@ 'use strict'; -const models = require('./index'); - /** * The response to a metrics query. * diff --git a/lib/services/monitorManagement/lib/models/ruleCondition.js b/lib/services/monitorManagement/lib/models/ruleCondition.js index 5b43f85397..7d106a306e 100644 --- a/lib/services/monitorManagement/lib/models/ruleCondition.js +++ b/lib/services/monitorManagement/lib/models/ruleCondition.js @@ -10,8 +10,6 @@ 'use strict'; -const models = require('./index'); - /** * The condition that results in the alert rule being activated. * diff --git a/lib/services/monitorManagement/lib/models/scaleRule.js b/lib/services/monitorManagement/lib/models/scaleRule.js index 0836d498c2..beda6ba5a8 100644 --- a/lib/services/monitorManagement/lib/models/scaleRule.js +++ b/lib/services/monitorManagement/lib/models/scaleRule.js @@ -10,8 +10,6 @@ 'use strict'; -const models = require('./index'); - /** * A rule that provide the triggers and parameters for the scaling action. * diff --git a/lib/services/monitorManagement/lib/models/timeSeriesElement.js b/lib/services/monitorManagement/lib/models/timeSeriesElement.js index 576f5a51ab..1290bd7598 100644 --- a/lib/services/monitorManagement/lib/models/timeSeriesElement.js +++ b/lib/services/monitorManagement/lib/models/timeSeriesElement.js @@ -10,8 +10,6 @@ 'use strict'; -const models = require('./index'); - /** * A time series result type. The discriminator value is always TimeSeries in * this case. diff --git a/lib/services/monitorManagement/lib/models/triggerCondition.js b/lib/services/monitorManagement/lib/models/triggerCondition.js index b69f6b6a0a..b39bdee93d 100644 --- a/lib/services/monitorManagement/lib/models/triggerCondition.js +++ b/lib/services/monitorManagement/lib/models/triggerCondition.js @@ -10,8 +10,6 @@ 'use strict'; -const models = require('./index'); - /** * The condition that results in the Log Search rule. * diff --git a/lib/services/monitorManagement/package-lock.json b/lib/services/monitorManagement/package-lock.json index 18b07e59ae..b96c9d4eba 100644 --- a/lib/services/monitorManagement/package-lock.json +++ b/lib/services/monitorManagement/package-lock.json @@ -1,6 +1,6 @@ { "name": "azure-arm-monitor", - "version": "3.0.0", + "version": "4.0.0", "lockfileVersion": 1, "requires": true, "dependencies": { diff --git a/lib/services/monitorManagement/package.json b/lib/services/monitorManagement/package.json index 5d54214012..dae0ceaa3d 100644 --- a/lib/services/monitorManagement/package.json +++ b/lib/services/monitorManagement/package.json @@ -2,7 +2,7 @@ "name": "azure-arm-monitor", "author": "Microsoft Corporation", "description": "MonitorManagementClient Library with typescript type definitions for node", - "version": "3.0.0", + "version": "4.0.0", "dependencies": { "ms-rest": "^2.3.3", "ms-rest-azure": "^2.5.5" @@ -14,7 +14,7 @@ "license": "MIT", "main": "./lib/monitorManagementClient.js", "types": "./lib/monitorManagementClient.d.ts", - "homepage": "https://github.com/azure/azure-sdk-for-node/lib/services/monitorManagement", + "homepage": "https://github.com/azure/azure-sdk-for-node/tree/master/lib/services/monitorManagement", "repository": { "type": "git", "url": "https://github.com/azure/azure-sdk-for-node.git"