From 8a969ca9f68a0d155952251eef2f37290241c14a Mon Sep 17 00:00:00 2001 From: Azure SDK for Python bot Date: Mon, 6 Aug 2018 14:50:29 -0700 Subject: [PATCH] Generated from 1ca7f22a22e15cb8980176f25be20fd3e6f73162 (#2402) [Monitor] Fix issue #3585: revert previous commit since it is a breaking change --- .../preview/monitor/mgmt/insights/models.go | 16 +++++++ .../2017-05-01-preview/insights/models.go | 47 +++++++++++++++---- .../mgmt/2018-03-01/insights/models.go | 31 +++++++++++- 3 files changed, 82 insertions(+), 12 deletions(-) diff --git a/profiles/preview/preview/monitor/mgmt/insights/models.go b/profiles/preview/preview/monitor/mgmt/insights/models.go index 566c8f024867..6a7ff0543789 100644 --- a/profiles/preview/preview/monitor/mgmt/insights/models.go +++ b/profiles/preview/preview/monitor/mgmt/insights/models.go @@ -193,6 +193,19 @@ const ( ReceiverStatusNotSpecified ReceiverStatus = original.ReceiverStatusNotSpecified ) +type RecurrenceFrequency = original.RecurrenceFrequency + +const ( + RecurrenceFrequencyDay RecurrenceFrequency = original.RecurrenceFrequencyDay + RecurrenceFrequencyHour RecurrenceFrequency = original.RecurrenceFrequencyHour + RecurrenceFrequencyMinute RecurrenceFrequency = original.RecurrenceFrequencyMinute + RecurrenceFrequencyMonth RecurrenceFrequency = original.RecurrenceFrequencyMonth + RecurrenceFrequencyNone RecurrenceFrequency = original.RecurrenceFrequencyNone + RecurrenceFrequencySecond RecurrenceFrequency = original.RecurrenceFrequencySecond + RecurrenceFrequencyWeek RecurrenceFrequency = original.RecurrenceFrequencyWeek + RecurrenceFrequencyYear RecurrenceFrequency = original.RecurrenceFrequencyYear +) + type ResultType = original.ResultType const ( @@ -541,6 +554,9 @@ func PossibleQueryTypeValues() []QueryType { func PossibleReceiverStatusValues() []ReceiverStatus { return original.PossibleReceiverStatusValues() } +func PossibleRecurrenceFrequencyValues() []RecurrenceFrequency { + return original.PossibleRecurrenceFrequencyValues() +} func PossibleResultTypeValues() []ResultType { return original.PossibleResultTypeValues() } diff --git a/services/preview/monitor/mgmt/2017-05-01-preview/insights/models.go b/services/preview/monitor/mgmt/2017-05-01-preview/insights/models.go index c11a0d376f84..60e3b677c229 100644 --- a/services/preview/monitor/mgmt/2017-05-01-preview/insights/models.go +++ b/services/preview/monitor/mgmt/2017-05-01-preview/insights/models.go @@ -171,21 +171,48 @@ func PossibleReceiverStatusValues() []ReceiverStatus { return []ReceiverStatus{Disabled, Enabled, NotSpecified} } +// RecurrenceFrequency enumerates the values for recurrence frequency. +type RecurrenceFrequency string + +const ( + // Day ... + Day RecurrenceFrequency = "Day" + // Hour ... + Hour RecurrenceFrequency = "Hour" + // Minute ... + Minute RecurrenceFrequency = "Minute" + // Month ... + Month RecurrenceFrequency = "Month" + // None ... + None RecurrenceFrequency = "None" + // Second ... + Second RecurrenceFrequency = "Second" + // Week ... + Week RecurrenceFrequency = "Week" + // Year ... + Year RecurrenceFrequency = "Year" +) + +// PossibleRecurrenceFrequencyValues returns an array of possible values for the RecurrenceFrequency const type. +func PossibleRecurrenceFrequencyValues() []RecurrenceFrequency { + return []RecurrenceFrequency{Day, Hour, Minute, Month, None, Second, Week, Year} +} + // ScaleDirection enumerates the values for scale direction. type ScaleDirection string const ( - // Decrease ... - Decrease ScaleDirection = "Decrease" - // Increase ... - Increase ScaleDirection = "Increase" - // None ... - None ScaleDirection = "None" + // ScaleDirectionDecrease ... + ScaleDirectionDecrease ScaleDirection = "Decrease" + // ScaleDirectionIncrease ... + ScaleDirectionIncrease ScaleDirection = "Increase" + // ScaleDirectionNone ... + ScaleDirectionNone ScaleDirection = "None" ) // PossibleScaleDirectionValues returns an array of possible values for the ScaleDirection const type. func PossibleScaleDirectionValues() []ScaleDirection { - return []ScaleDirection{Decrease, Increase, None} + return []ScaleDirection{ScaleDirectionDecrease, ScaleDirectionIncrease, ScaleDirectionNone} } // ScaleType enumerates the values for scale type. @@ -2003,8 +2030,8 @@ type ProxyOnlyResource struct { // Recurrence the repeating times at which this profile begins. This element is not used if the FixedDate element // is used. type Recurrence struct { - // 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. - Frequency *string `json:"frequency,omitempty"` + // 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' + Frequency RecurrenceFrequency `json:"frequency,omitempty"` // Schedule - the scheduling constraints for when the profile begins. Schedule *RecurrentSchedule `json:"schedule,omitempty"` } @@ -2604,7 +2631,7 @@ func (rwa RuleWebhookAction) AsBasicRuleAction() (BasicRuleAction, bool) { // ScaleAction the parameters for the scaling action. type ScaleAction struct { - // Direction - the scale direction. Whether the scaling action increases or decreases the number of instances. Possible values include: 'None', 'Increase', 'Decrease' + // Direction - the scale direction. Whether the scaling action increases or decreases the number of instances. Possible values include: 'ScaleDirectionNone', 'ScaleDirectionIncrease', 'ScaleDirectionDecrease' Direction ScaleDirection `json:"direction,omitempty"` // Type - the type of action that should occur when the scale rule fires. Possible values include: 'ChangeCount', 'PercentChangeCount', 'ExactCount' Type ScaleType `json:"type,omitempty"` diff --git a/services/preview/monitor/mgmt/2018-03-01/insights/models.go b/services/preview/monitor/mgmt/2018-03-01/insights/models.go index 2ac1be3ce05d..f542517d51ea 100644 --- a/services/preview/monitor/mgmt/2018-03-01/insights/models.go +++ b/services/preview/monitor/mgmt/2018-03-01/insights/models.go @@ -345,6 +345,33 @@ func PossibleReceiverStatusValues() []ReceiverStatus { return []ReceiverStatus{ReceiverStatusDisabled, ReceiverStatusEnabled, ReceiverStatusNotSpecified} } +// RecurrenceFrequency enumerates the values for recurrence frequency. +type RecurrenceFrequency string + +const ( + // RecurrenceFrequencyDay ... + RecurrenceFrequencyDay RecurrenceFrequency = "Day" + // RecurrenceFrequencyHour ... + RecurrenceFrequencyHour RecurrenceFrequency = "Hour" + // RecurrenceFrequencyMinute ... + RecurrenceFrequencyMinute RecurrenceFrequency = "Minute" + // RecurrenceFrequencyMonth ... + RecurrenceFrequencyMonth RecurrenceFrequency = "Month" + // RecurrenceFrequencyNone ... + RecurrenceFrequencyNone RecurrenceFrequency = "None" + // RecurrenceFrequencySecond ... + RecurrenceFrequencySecond RecurrenceFrequency = "Second" + // RecurrenceFrequencyWeek ... + RecurrenceFrequencyWeek RecurrenceFrequency = "Week" + // RecurrenceFrequencyYear ... + RecurrenceFrequencyYear RecurrenceFrequency = "Year" +) + +// PossibleRecurrenceFrequencyValues returns an array of possible values for the RecurrenceFrequency const type. +func PossibleRecurrenceFrequencyValues() []RecurrenceFrequency { + return []RecurrenceFrequency{RecurrenceFrequencyDay, RecurrenceFrequencyHour, RecurrenceFrequencyMinute, RecurrenceFrequencyMonth, RecurrenceFrequencyNone, RecurrenceFrequencySecond, RecurrenceFrequencyWeek, RecurrenceFrequencyYear} +} + // ResultType enumerates the values for result type. type ResultType string @@ -3660,8 +3687,8 @@ type ProxyOnlyResource struct { // Recurrence the repeating times at which this profile begins. This element is not used if the FixedDate element // is used. type Recurrence struct { - // 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. - Frequency *string `json:"frequency,omitempty"` + // 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: 'RecurrenceFrequencyNone', 'RecurrenceFrequencySecond', 'RecurrenceFrequencyMinute', 'RecurrenceFrequencyHour', 'RecurrenceFrequencyDay', 'RecurrenceFrequencyWeek', 'RecurrenceFrequencyMonth', 'RecurrenceFrequencyYear' + Frequency RecurrenceFrequency `json:"frequency,omitempty"` // Schedule - the scheduling constraints for when the profile begins. Schedule *RecurrentSchedule `json:"schedule,omitempty"` }