Skip to content

Commit 869dda5

Browse files
Migrate StorageMover from generation to main (#25337)
* Move StorageMover to main * Update ChangeLog.md --------- Co-authored-by: NoriZC <[email protected]>
1 parent dcc82f4 commit 869dda5

File tree

3 files changed

+6
-1
lines changed

3 files changed

+6
-1
lines changed

src/StorageMover/StorageMover.Autorest/custom/NewAzStorageMoverUploadLimitWeeklyRecurrenceObject.ps1

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,12 +33,15 @@ function New-AzStorageMoverUploadLimitWeeklyRecurrenceObject {
3333
[Parameter(Mandatory, HelpMessage="The set of days of week for the schedule recurrence. A day must not be specified more than once in a recurrence.")]
3434
[ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.DayOfWeek])]
3535
[Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.DayOfWeek[]]
36+
[ValidateSet("Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday", "Sunday", IgnoreCase = $true)]
3637
$Day,
3738
[Parameter(Mandatory, HelpMessage="The WAN-link upload bandwidth (maximum data transfer rate) in megabits per second. Value of 0 indicates no throughput is allowed and any running migration job is effectively paused for the duration of this recurrence. Only data plane operations are governed by this limit. Control plane operations ensure seamless functionality. The agent may exceed this limit with control messages, if necessary.")]
3839
[int]
40+
[ValidateRange(0, 2147483647)]
3941
$LimitInMbps,
4042
[Parameter(Mandatory, HelpMessage="The hour element of the time. Allowed values range from 0 (start of the selected day) to 24 (end of the selected day). Hour value 24 cannot be combined with any other minute value but 0.")]
4143
[int]
44+
[ValidateRange(0, 24)]
4245
$EndTimeHour,
4346
[Parameter(HelpMessage="The minute element of the time. Allowed values are 0 and 30. If not specified, its value defaults to 0.")]
4447
[ArgumentCompleter({0, 30})]
@@ -47,6 +50,7 @@ function New-AzStorageMoverUploadLimitWeeklyRecurrenceObject {
4750
$EndTimeMinute,
4851
[Parameter(Mandatory, HelpMessage="The hour element of the time. Allowed values range from 0 (start of the selected day) to 24 (end of the selected day). Hour value 24 cannot be combined with any other minute value but 0.")]
4952
[int]
53+
[ValidateRange(0, 24)]
5054
$StartTimeHour,
5155
[Parameter(HelpMessage="The minute element of the time. Allowed values are 0 and 30. If not specified, its value defaults to 0.")]
5256
[ArgumentCompleter({0, 30})]

src/StorageMover/StorageMover/Az.StorageMover.psd1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
#
44
# Generated by: Microsoft Corporation
55
#
6-
# Generated on: 6/13/2024
6+
# Generated on: 6/21/2024
77
#
88

99
@{

src/StorageMover/StorageMover/ChangeLog.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
- Additional information about change #1
1919
-->
2020
## Upcoming Release
21+
* Added input parameter validation set for UploadLimitWeeklyRecurrenceObject
2122
* Supported Uploaded Limit Schedule
2223

2324
## Version 1.3.1

0 commit comments

Comments
 (0)