Skip to content

Commit

Permalink
Add DailySchedule to New-RscSla (#109)
Browse files Browse the repository at this point in the history
  • Loading branch information
rynardtspies authored Jun 12, 2024
1 parent 1e6ebb2 commit c64c72e
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions Toolkit/Public/New-RscSla.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,10 @@ function New-RscSla
[Parameter()]
[RubrikSecurityCloud.Types.HourlySnapshotScheduleInput]$HourlySchedule,

# Daily Schedule object
[Parameter()]
[RubrikSecurityCloud.Types.DailySnapshotScheduleInput]$DailySchedule,

# Weekly Schedule object
[Parameter()]
[RubrikSecurityCloud.Types.WeeklySnapshotScheduleInput]$WeeklySchedule,
Expand Down Expand Up @@ -61,6 +65,9 @@ function New-RscSla
if ($HourlySchedule) {
$query.var.input.SnapshotSchedule.Hourly = $HourlySchedule
}
if ($DailySchedule) {
$query.var.input.SnapshotSchedule.Daily = $DailySchedule
}
if ($MonthlySchedule) {
$query.var.input.SnapshotSchedule.Monthly = $MonthlySchedule
}
Expand Down

1 comment on commit c64c72e

@jakerobinson
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please remember to update the changelog

Please sign in to comment.