From 1802b262673a15d5b44c8769170a4e05999fd7da Mon Sep 17 00:00:00 2001 From: Azure SDK for Python bot Date: Fri, 20 Jul 2018 13:48:31 -0700 Subject: [PATCH] Generated from 6110295138cbd6959df204de3830b4ada943a4fc (#2970) updated description of recurrent frequency --- .../azure/mgmt/monitor/models/__init__.py | 2 -- .../models/monitor_management_client_enums.py | 12 ---------- .../azure/mgmt/monitor/models/recurrence.py | 20 +++++++++++------ .../mgmt/monitor/models/recurrence_py3.py | 22 ++++++++++++------- 4 files changed, 27 insertions(+), 29 deletions(-) diff --git a/azure-mgmt-monitor/azure/mgmt/monitor/models/__init__.py b/azure-mgmt-monitor/azure/mgmt/monitor/models/__init__.py index 1f76267967cf..ed1aa377731e 100644 --- a/azure-mgmt-monitor/azure/mgmt/monitor/models/__init__.py +++ b/azure-mgmt-monitor/azure/mgmt/monitor/models/__init__.py @@ -220,7 +220,6 @@ ComparisonOperationType, ScaleDirection, ScaleType, - RecurrenceFrequency, ConditionOperator, TimeAggregationOperator, CategoryType, @@ -351,7 +350,6 @@ 'ComparisonOperationType', 'ScaleDirection', 'ScaleType', - 'RecurrenceFrequency', 'ConditionOperator', 'TimeAggregationOperator', 'CategoryType', diff --git a/azure-mgmt-monitor/azure/mgmt/monitor/models/monitor_management_client_enums.py b/azure-mgmt-monitor/azure/mgmt/monitor/models/monitor_management_client_enums.py index d2bda057fbd3..3084c6fb47a2 100644 --- a/azure-mgmt-monitor/azure/mgmt/monitor/models/monitor_management_client_enums.py +++ b/azure-mgmt-monitor/azure/mgmt/monitor/models/monitor_management_client_enums.py @@ -53,18 +53,6 @@ class ScaleType(str, Enum): exact_count = "ExactCount" -class RecurrenceFrequency(str, Enum): - - none = "None" - second = "Second" - minute = "Minute" - hour = "Hour" - day = "Day" - week = "Week" - month = "Month" - year = "Year" - - class ConditionOperator(str, Enum): greater_than = "GreaterThan" diff --git a/azure-mgmt-monitor/azure/mgmt/monitor/models/recurrence.py b/azure-mgmt-monitor/azure/mgmt/monitor/models/recurrence.py index d9034ce60be9..3de6062f1f3f 100644 --- a/azure-mgmt-monitor/azure/mgmt/monitor/models/recurrence.py +++ b/azure-mgmt-monitor/azure/mgmt/monitor/models/recurrence.py @@ -16,29 +16,35 @@ class Recurrence(Model): """The repeating times at which this profile begins. This element is not used if the FixedDate element is used. + Variables are only populated by the server, and will be ignored when + sending a request. + All required parameters must be populated in order to send to Azure. - :param frequency: Required. the recurrence frequency. How often the + :ivar frequency: Required. 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. Possible values include: 'None', - 'Second', 'Minute', 'Hour', 'Day', 'Week', 'Month', 'Year' - :type frequency: str or ~azure.mgmt.monitor.models.RecurrenceFrequency + 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. Default value: + "Week" . + :vartype frequency: str :param schedule: Required. the scheduling constraints for when the profile begins. :type schedule: ~azure.mgmt.monitor.models.RecurrentSchedule """ _validation = { - 'frequency': {'required': True}, + 'frequency': {'required': True, 'constant': True}, 'schedule': {'required': True}, } _attribute_map = { - 'frequency': {'key': 'frequency', 'type': 'RecurrenceFrequency'}, + 'frequency': {'key': 'frequency', 'type': 'str'}, 'schedule': {'key': 'schedule', 'type': 'RecurrentSchedule'}, } + frequency = "Week" + def __init__(self, **kwargs): super(Recurrence, self).__init__(**kwargs) - self.frequency = kwargs.get('frequency', None) self.schedule = kwargs.get('schedule', None) diff --git a/azure-mgmt-monitor/azure/mgmt/monitor/models/recurrence_py3.py b/azure-mgmt-monitor/azure/mgmt/monitor/models/recurrence_py3.py index 759577e56a12..e58ed67951b9 100644 --- a/azure-mgmt-monitor/azure/mgmt/monitor/models/recurrence_py3.py +++ b/azure-mgmt-monitor/azure/mgmt/monitor/models/recurrence_py3.py @@ -16,29 +16,35 @@ class Recurrence(Model): """The repeating times at which this profile begins. This element is not used if the FixedDate element is used. + Variables are only populated by the server, and will be ignored when + sending a request. + All required parameters must be populated in order to send to Azure. - :param frequency: Required. the recurrence frequency. How often the + :ivar frequency: Required. 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. Possible values include: 'None', - 'Second', 'Minute', 'Hour', 'Day', 'Week', 'Month', 'Year' - :type frequency: str or ~azure.mgmt.monitor.models.RecurrenceFrequency + 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. Default value: + "Week" . + :vartype frequency: str :param schedule: Required. the scheduling constraints for when the profile begins. :type schedule: ~azure.mgmt.monitor.models.RecurrentSchedule """ _validation = { - 'frequency': {'required': True}, + 'frequency': {'required': True, 'constant': True}, 'schedule': {'required': True}, } _attribute_map = { - 'frequency': {'key': 'frequency', 'type': 'RecurrenceFrequency'}, + 'frequency': {'key': 'frequency', 'type': 'str'}, 'schedule': {'key': 'schedule', 'type': 'RecurrentSchedule'}, } - def __init__(self, *, frequency, schedule, **kwargs) -> None: + frequency = "Week" + + def __init__(self, *, schedule, **kwargs) -> None: super(Recurrence, self).__init__(**kwargs) - self.frequency = frequency self.schedule = schedule