ArmComputeScheduleModelFactory.ScheduledActionsSchedule Method

Definition

Specify the schedule in which the scheduled action is supposed to follow.

public static Azure.ResourceManager.ComputeSchedule.Models.ScheduledActionsSchedule ScheduledActionsSchedule(TimeSpan scheduledTime = default, string timeZone = default, System.Collections.Generic.IEnumerable<Azure.ResourceManager.ComputeSchedule.Models.ScheduledActionsScheduleWeekDay> requestedWeekDays = default, System.Collections.Generic.IEnumerable<Azure.ResourceManager.ComputeSchedule.Models.ScheduledActionsScheduleMonth> requestedMonths = default, System.Collections.Generic.IEnumerable<int> requestedDaysOfTheMonth = default, Azure.ResourceManager.ComputeSchedule.Models.ScheduledActionExecutionParameterDetail executionParameters = default, Azure.ResourceManager.ComputeSchedule.Models.ScheduledActionDeadlineType? deadlineType = default);
static member ScheduledActionsSchedule : TimeSpan * string * seq<Azure.ResourceManager.ComputeSchedule.Models.ScheduledActionsScheduleWeekDay> * seq<Azure.ResourceManager.ComputeSchedule.Models.ScheduledActionsScheduleMonth> * seq<int> * Azure.ResourceManager.ComputeSchedule.Models.ScheduledActionExecutionParameterDetail * Nullable<Azure.ResourceManager.ComputeSchedule.Models.ScheduledActionDeadlineType> -> Azure.ResourceManager.ComputeSchedule.Models.ScheduledActionsSchedule
Public Shared Function ScheduledActionsSchedule (Optional scheduledTime As TimeSpan = Nothing, Optional timeZone As String = Nothing, Optional requestedWeekDays As IEnumerable(Of ScheduledActionsScheduleWeekDay) = Nothing, Optional requestedMonths As IEnumerable(Of ScheduledActionsScheduleMonth) = Nothing, Optional requestedDaysOfTheMonth As IEnumerable(Of Integer) = Nothing, Optional executionParameters As ScheduledActionExecutionParameterDetail = Nothing, Optional deadlineType As Nullable(Of ScheduledActionDeadlineType) = Nothing) As ScheduledActionsSchedule

Parameters

scheduledTime
TimeSpan

The time the scheduled action is supposed to run on.

timeZone
String

The timezone the scheduled time is specified on.

requestedWeekDays
IEnumerable<ScheduledActionsScheduleWeekDay>

The week days the scheduled action is supposed to run on.

requestedMonths
IEnumerable<ScheduledActionsScheduleMonth>

The months the scheduled action is supposed to run on.

requestedDaysOfTheMonth
IEnumerable<Int32>

The days of the month the scheduled action is supposed to run on. If empty, it means it will run on every day of the month.

executionParameters
ScheduledActionExecutionParameterDetail

The execution parameters the scheduled action is supposed to follow.

deadlineType
Nullable<ScheduledActionDeadlineType>

The type of deadline the scheduled action is supposed to follow for the schedule. If no value is passed, it will default to InitiateAt.

Returns

A new ScheduledActionsSchedule instance for mocking.

Applies to