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

Commit

Permalink
Generated from 1ca7f22a22e15cb8980176f25be20fd3e6f73162 (#3295)
Browse files Browse the repository at this point in the history
[Monitor] Fix issue #3585: revert previous commit since it is a breaking change
  • Loading branch information
AutorestCI authored Aug 6, 2018
1 parent f871fc7 commit 0eed1ea
Show file tree
Hide file tree
Showing 4 changed files with 30 additions and 4 deletions.
7 changes: 7 additions & 0 deletions lib/services/monitorManagement/lib/models/autoscaleProfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,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
Expand Down
13 changes: 13 additions & 0 deletions lib/services/monitorManagement/lib/models/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -338,6 +344,7 @@ export interface RecurrentSchedule {
* profile takes effect at.
*/
export interface Recurrence {
frequency: string;
schedule: RecurrentSchedule;
}

Expand Down Expand Up @@ -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
Expand Down
12 changes: 9 additions & 3 deletions lib/services/monitorManagement/lib/models/recurrence.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,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
Expand Down Expand Up @@ -87,11 +94,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: {
Expand Down
2 changes: 1 addition & 1 deletion lib/services/monitorManagement/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
"repository": {
"type": "git",
"url": "https://github.com/azure/azure-sdk-for-node.git"
Expand Down

0 comments on commit 0eed1ea

Please sign in to comment.