Source code for azure.mgmt.scheduler.models.job_recurrence_schedule_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 JobRecurrenceSchedule(Model): """JobRecurrenceSchedule. :param week_days: Gets or sets the days of the week that the job should execute on. :type week_days: list[str or ~azure.mgmt.scheduler.models.DayOfWeek] :param hours: Gets or sets the hours of the day that the job should execute at. :type hours: list[int] :param minutes: Gets or sets the minutes of the hour that the job should execute at. :type minutes: list[int] :param month_days: Gets or sets the days of the month that the job should execute on. Must be between 1 and 31. :type month_days: list[int] :param monthly_occurrences: Gets or sets the occurrences of days within a month. :type monthly_occurrences: list[~azure.mgmt.scheduler.models.JobRecurrenceScheduleMonthlyOccurrence] """ _attribute_map = { 'week_days': {'key': 'weekDays', 'type': '[DayOfWeek]'}, 'hours': {'key': 'hours', 'type': '[int]'}, 'minutes': {'key': 'minutes', 'type': '[int]'}, 'month_days': {'key': 'monthDays', 'type': '[int]'}, 'monthly_occurrences': {'key': 'monthlyOccurrences', 'type': '[JobRecurrenceScheduleMonthlyOccurrence]'}, } def __init__(self, *, week_days=None, hours=None, minutes=None, month_days=None, monthly_occurrences=None, **kwargs) -> None: super(JobRecurrenceSchedule, self).__init__(**kwargs) self.week_days = week_days self.hours = hours self.minutes = minutes self.month_days = month_days self.monthly_occurrences = monthly_occurrences