Source code for azure.mgmt.monitor.models.recurrence_py3

# coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for
# license information.
#
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
# --------------------------------------------------------------------------

from msrest.serialization import Model


[docs]class Recurrence(Model): """The repeating times at which this profile begins. This element is not used if the FixedDate element is used. All required parameters must be populated in order to send to Azure. :param 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 :param schedule: Required. the scheduling constraints for when the profile begins. :type schedule: ~azure.mgmt.monitor.models.RecurrentSchedule """ _validation = { 'frequency': {'required': True}, 'schedule': {'required': True}, } _attribute_map = { 'frequency': {'key': 'frequency', 'type': 'RecurrenceFrequency'}, 'schedule': {'key': 'schedule', 'type': 'RecurrentSchedule'}, } def __init__(self, *, frequency, schedule, **kwargs) -> None: super(Recurrence, self).__init__(**kwargs) self.frequency = frequency self.schedule = schedule