You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/ResourceManager/Automation/Commands.Automation/Cmdlet/NewAzureAutomationSchedule.cs
+94-38Lines changed: 94 additions & 38 deletions
Original file line number
Diff line number
Diff line change
@@ -62,27 +62,26 @@ public NewAzureAutomationSchedule()
62
62
/// <summary>
63
63
/// Gets or sets the schedule days of the week.
64
64
/// </summary>
65
-
[Parameter(Mandatory=false,ValueFromPipelineByPropertyName=true,HelpMessage="The list of days of the week for weekly schedule.")]
66
-
[Parameter(ParameterSetName=AutomationCmdletParameterSets.ByWeekly,Mandatory=false,HelpMessage="The weekly schedule days of the week.")]
67
-
publicDayOfWeek[]WeekDays{get;set;}
65
+
[Parameter(ParameterSetName=AutomationCmdletParameterSets.ByWeekly,Mandatory=false,HelpMessage="The list of days of the week for weekly schedule.")]
66
+
publicDayOfWeek[]DaysOfWeek{get;set;}
68
67
69
68
/// <summary>
70
69
/// Gets or sets the schedule days of the month.
71
70
/// </summary>
72
-
[Parameter(ParameterSetName=AutomationCmdletParameterSets.ByMonthlyWithMonthDays,Mandatory=false,HelpMessage="The list of days of the month for monthly schedule.")]
73
-
publicint[]MonthDays{get;set;}
71
+
[Parameter(ParameterSetName=AutomationCmdletParameterSets.ByMonthlyDaysOfMonth,Mandatory=false,HelpMessage="The list of days of the month for monthly schedule.")]
72
+
publicDaysOfMonth[]DaysOfMonth{get;set;}
74
73
75
74
/// <summary>
76
75
/// Gets or sets the schedule day of the week.
77
76
/// </summary>
78
-
[Parameter(ParameterSetName=AutomationCmdletParameterSets.ByMonthlyWithMonthlyOccurrence,Mandatory=false,HelpMessage="The day of week for monthly occurrence.")]
77
+
[Parameter(ParameterSetName=AutomationCmdletParameterSets.ByMonthlyDayOfWeek,Mandatory=false,HelpMessage="The day of week for monthly occurrence.")]
79
78
publicDayOfWeek?DayOfWeek{get;set;}
80
79
81
80
/// <summary>
82
81
/// Gets or sets the schedule day of the week.
83
82
/// </summary>
84
-
[Parameter(ParameterSetName=AutomationCmdletParameterSets.ByMonthlyWithMonthlyOccurrence,Mandatory=false,HelpMessage="Occurrence of the week within the month.")]
85
-
publicint?Occurrence{get;set;}
83
+
[Parameter(ParameterSetName=AutomationCmdletParameterSets.ByMonthlyDayOfWeek,Mandatory=false,HelpMessage="The Occurrence of the week within the month.")]
0 commit comments