Skip to content

Commit e68932a

Browse files
committed
update new api version cmdlets to autorest v4
1 parent 7e0e518 commit e68932a

19 files changed

+90
-75
lines changed

src/StorageMover/StorageMover.Autorest/Properties/AssemblyInfo.cs

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,8 @@
2020
[assembly: System.Reflection.AssemblyCopyrightAttribute("Copyright © Microsoft")]
2121
[assembly: System.Reflection.AssemblyProductAttribute("Microsoft Azure PowerShell")]
2222
[assembly: System.Reflection.AssemblyTitleAttribute("Microsoft Azure PowerShell - StorageMover")]
23-
[assembly: System.Reflection.AssemblyFileVersionAttribute("1.5.0")]
24-
[assembly: System.Reflection.AssemblyVersionAttribute("1.5.0")]
23+
[assembly: System.Reflection.AssemblyFileVersionAttribute("1.5.1")]
24+
[assembly: System.Reflection.AssemblyVersionAttribute("1.5.1")]
2525
[assembly: System.Runtime.InteropServices.ComVisibleAttribute(false)]
2626
[assembly: System.CLSCompliantAttribute(false)]
2727

28-
29-

src/StorageMover/StorageMover.Autorest/custom/NewAzStorageMoverAzNfsFileShareEndpoint.ps1

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,11 +23,11 @@ Creates a Nfs file share endpoint resource, which represents a data transfer sou
2323
New-AzStorageMoverAzNfsFileShareEndpoint -Name $endpointName -ResourceGroupName $rgname -StorageMoverName $storagemovername -StorageAccountResourceId $accountresourceid -FileShareName $fileshareName -Description "Description"
2424
2525
.Inputs
26-
Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IEndpoint
26+
Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.IEndpoint
2727
.Inputs
2828
Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.IStorageMoverIdentity
2929
.Outputs
30-
Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IEndpoint
30+
Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.IEndpoint
3131
.Notes
3232
COMPLEX PARAMETER PROPERTIES
3333
@@ -37,7 +37,7 @@ To create the parameters described below, construct a hash table containing the
3737
https://learn.microsoft.com/powershell/module/az.storagemover/new-azstoragemoveraznfsfileshareendpoint
3838
#>
3939
function New-AzStorageMoverAzNfsFileShareEndpoint {
40-
[OutputType([Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IEndpoint])]
40+
[OutputType([Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.IEndpoint])]
4141
[CmdletBinding(DefaultParameterSetName = 'CreateExpanded', PositionalBinding =$false, SupportsShouldProcess, ConfirmImpact = 'Medium')]
4242
param(
4343
[Parameter(ParameterSetName='CreateExpanded', Mandatory)]
@@ -131,7 +131,7 @@ function New-AzStorageMoverAzNfsFileShareEndpoint {
131131
)
132132

133133
process {
134-
$Properties = [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.AzureStorageSmbFileShareEndpointProperties]::New()
134+
$Properties = [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.AzureStorageSmbFileShareEndpointProperties]::New()
135135

136136
if ($PSBoundParameters.ContainsKey('FileShareName')) {
137137
$Properties.FileShareName = $FileShareName

src/StorageMover/StorageMover.Autorest/custom/NewAzStorageMoverMultiCloudConnectorEndpoint.ps1

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -22,11 +22,11 @@ Creates a Multi-Cloud Connector endpoint resource, which represents a data trans
2222
.Example
2323
New-AzStorageMoverMultiCloudConnectorEndpoint -Name $endpointName -ResourceGroupName $rgname -StorageMoverName $storagemovername -MultiCloudConnectorId $multiCloudConnectorId -AwsS3BucketId $awsS3BucketId -Description "Description"
2424
.Inputs
25-
Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IEndpoint
25+
Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.IEndpoint
2626
.Inputs
2727
Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.IStorageMoverIdentity
2828
.Outputs
29-
Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IEndpoint
29+
Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.IEndpoint
3030
.Notes
3131
COMPLEX PARAMETER PROPERTIES
3232
@@ -36,7 +36,7 @@ To create the parameters described below, construct a hash table containing the
3636
https://learn.microsoft.com/powershell/module/az.storagemover/new-azstoragemovermulticloudconnectorendpoint
3737
#>
3838
function New-AzStorageMoverMultiCloudConnectorEndpoint {
39-
[OutputType([Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IEndpoint])]
39+
[OutputType([Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.IEndpoint])]
4040
[CmdletBinding(DefaultParameterSetName = 'CreateExpanded', PositionalBinding =$false, SupportsShouldProcess, ConfirmImpact = 'Medium')]
4141
param(
4242
[Parameter(ParameterSetName='CreateExpanded', Mandatory)]
@@ -130,8 +130,7 @@ function New-AzStorageMoverMultiCloudConnectorEndpoint {
130130
)
131131

132132
process {
133-
$Properties = [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.AzureMultiCloudConnectorEndpointProperties]::New()
134-
$Identity = [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.ManagedServiceIdentityType]::New()
133+
$Properties = [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.AzureMultiCloudConnectorEndpointProperties]::New()
135134

136135
if ($PSBoundParameters.ContainsKey('MultiCloudConnectorId')) {
137136
$Properties.MultiCloudConnectorId = $MultiCloudConnectorId
@@ -149,8 +148,7 @@ function New-AzStorageMoverMultiCloudConnectorEndpoint {
149148
$Properties.EndpointType = "AzureMultiCloudConnector"
150149
$PSBoundParameters.Add("Property", $Properties)
151150

152-
$Identity = "SystemAssigned"
153-
$PSBoundParameters.Add("IdentityType", $Identity)
151+
$PSBoundParameters.Add("EnableSystemAssignedIdentity", $True)
154152

155153
Az.StorageMover.internal\New-AzStorageMoverEndpoint @PSBoundParameters
156154
}

src/StorageMover/StorageMover.Autorest/custom/UpdateAzStorageMoverAzNfsFileShareEndpoint.ps1

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,11 +25,11 @@ Properties not specified in the request body will be unchanged.
2525
Update-AzStorageMoverAzNfsFileShareEndpoint -Name myEndpointName -ResourceGroupName myResourceGroupName -StorageMoverName myStorageMover -Description "Update Description"
2626
2727
.Inputs
28-
Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IEndpointBaseUpdateParameters
28+
Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.IEndpointBaseUpdateParameters
2929
.Inputs
3030
Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.IStorageMoverIdentity
3131
.Outputs
32-
Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IEndpoint
32+
Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.IEndpoint
3333
.Notes
3434
COMPLEX PARAMETER PROPERTIES
3535
@@ -54,7 +54,7 @@ INPUTOBJECT<IStorageMoverIdentity>: Identity Parameter
5454
https://learn.microsoft.com/powershell/module/az.storagemover/update-azstoragemovernfsfileshareendpoint
5555
#>
5656
function Update-AzStorageMoverAzNfsFileShareEndpoint {
57-
[OutputType([Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IEndpoint])]
57+
[OutputType([Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.IEndpoint])]
5858
[CmdletBinding(DefaultParameterSetName = 'UpdateExpanded', PositionalBinding =$false, SupportsShouldProcess, ConfirmImpact = 'Medium')]
5959
param(
6060
[Parameter(ParameterSetName='UpdateExpanded', Mandatory)]
@@ -146,7 +146,7 @@ function Update-AzStorageMoverAzNfsFileShareEndpoint {
146146
)
147147

148148
process {
149-
$Properties = [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.NfsMountEndpointUpdateProperties]::New()
149+
$Properties = [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.NfsMountEndpointUpdateProperties]::New()
150150
$Properties.EndpointType = 'AzureStorageNfsFileShare'
151151

152152
if ($PSBoundParameters.ContainsKey('Description')) {

src/StorageMover/StorageMover.Autorest/custom/UpdateAzStorageMoverMultiCloudConnectorEndpoint.ps1

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,11 +25,11 @@ Properties not specified in the request body will be unchanged.
2525
Update-AzStorageMoverMultiCloudConnectorEndpoint -Name myEndpointName -ResourceGroupName myResourceGroupName -StorageMoverName myStorageMover -Description "Update Description"
2626
2727
.Inputs
28-
Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IEndpointBaseUpdateParameters
28+
Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.IEndpointBaseUpdateParameters
2929
.Inputs
3030
Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.IStorageMoverIdentity
3131
.Outputs
32-
Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IEndpoint
32+
Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.IEndpoint
3333
.Notes
3434
COMPLEX PARAMETER PROPERTIES
3535
@@ -54,7 +54,7 @@ INPUTOBJECT<IStorageMoverIdentity>: Identity Parameter
5454
https://learn.microsoft.com/powershell/module/az.storagemover/update-azstoragemovermulticloudconnectorendpoint
5555
#>
5656
function Update-AzStorageMoverMultiCloudConnectorEndpoint {
57-
[OutputType([Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IEndpoint])]
57+
[OutputType([Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.IEndpoint])]
5858
[CmdletBinding(DefaultParameterSetName = 'UpdateExpanded', PositionalBinding =$false, SupportsShouldProcess, ConfirmImpact = 'Medium')]
5959
param(
6060
[Parameter(ParameterSetName='UpdateExpanded', Mandatory)]
@@ -146,7 +146,7 @@ function Update-AzStorageMoverMultiCloudConnectorEndpoint {
146146
)
147147

148148
process {
149-
$Properties = [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.AzureMultiCloudConnectorEndpointUpdateProperties]::New()
149+
$Properties = [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.AzureMultiCloudConnectorEndpointUpdateProperties]::New()
150150
$Properties.EndpointType = 'AzureMultiCloudConnector'
151151

152152
if ($PSBoundParameters.ContainsKey('Description')) {

src/StorageMover/StorageMover.Autorest/docs/Az.StorageMover.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
Module Name: Az.StorageMover
3-
Module Guid: ccf19870-3e0a-46b9-8739-0b5b083ebd23
3+
Module Guid: f9762a91-ae29-4695-bcea-2ba08d10268d
44
Download Help Link: https://learn.microsoft.com/powershell/module/az.storagemover
55
Help Version: 1.0.0.0
66
Locale: en-US

src/StorageMover/StorageMover.Autorest/docs/New-AzStorageMoverAzNfsFileShareEndpoint.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -207,13 +207,13 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable
207207
208208
## INPUTS
209209
210-
### Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IEndpoint
210+
### Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.IEndpoint
211211
212212
### Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.IStorageMoverIdentity
213213
214214
## OUTPUTS
215215
216-
### Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IEndpoint
216+
### Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.IEndpoint
217217
218218
## NOTES
219219

src/StorageMover/StorageMover.Autorest/docs/New-AzStorageMoverJobDefinition.md

Lines changed: 18 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -16,14 +16,15 @@ Create a Job Definition resource, which contains configuration for a single unit
1616
```
1717
New-AzStorageMoverJobDefinition -Name <String> -ProjectName <String> -ResourceGroupName <String>
1818
-StorageMoverName <String> -CopyMode <String> -SourceName <String> -TargetName <String>
19-
[-SubscriptionId <String>] [-AgentName <String>] [-Description <String>] [-SourceSubpath <String>]
20-
[-TargetSubpath <String>] [-DefaultProfile <PSObject>] [-Confirm] [-WhatIf] [<CommonParameters>]
19+
[-SubscriptionId <String>] [-AgentName <String>] [-Description <String>] [-JobType <String>]
20+
[-SourceSubpath <String>] [-TargetSubpath <String>] [-DefaultProfile <PSObject>] [-Confirm] [-WhatIf]
21+
[<CommonParameters>]
2122
```
2223

2324
### CreateViaIdentityProjectExpanded
2425
```
2526
New-AzStorageMoverJobDefinition -Name <String> -ProjectInputObject <IStorageMoverIdentity> -CopyMode <String>
26-
-SourceName <String> -TargetName <String> [-AgentName <String>] [-Description <String>]
27+
-SourceName <String> -TargetName <String> [-AgentName <String>] [-Description <String>] [-JobType <String>]
2728
[-SourceSubpath <String>] [-TargetSubpath <String>] [-DefaultProfile <PSObject>] [-Confirm] [-WhatIf]
2829
[<CommonParameters>]
2930
```
@@ -32,8 +33,8 @@ New-AzStorageMoverJobDefinition -Name <String> -ProjectInputObject <IStorageMove
3233
```
3334
New-AzStorageMoverJobDefinition -Name <String> -ProjectName <String>
3435
-StorageMoverInputObject <IStorageMoverIdentity> -CopyMode <String> -SourceName <String> -TargetName <String>
35-
[-AgentName <String>] [-Description <String>] [-SourceSubpath <String>] [-TargetSubpath <String>]
36-
[-DefaultProfile <PSObject>] [-Confirm] [-WhatIf] [<CommonParameters>]
36+
[-AgentName <String>] [-Description <String>] [-JobType <String>] [-SourceSubpath <String>]
37+
[-TargetSubpath <String>] [-DefaultProfile <PSObject>] [-Confirm] [-WhatIf] [<CommonParameters>]
3738
```
3839

3940
### CreateViaJsonFilePath
@@ -154,27 +155,27 @@ Accept pipeline input: False
154155
Accept wildcard characters: False
155156
```
156157
157-
### -JsonFilePath
158-
Path of Json file supplied to the Create operation
158+
### -JobType
159+
The type of the Job.
159160
160161
```yaml
161162
Type: System.String
162-
Parameter Sets: CreateViaJsonFilePath
163+
Parameter Sets: CreateExpanded, CreateViaIdentityProjectExpanded, CreateViaIdentityStorageMoverExpanded
163164
Aliases:
164165

165-
Required: True
166+
Required: False
166167
Position: Named
167168
Default value: None
168169
Accept pipeline input: False
169170
Accept wildcard characters: False
170171
```
171172
172-
### -JsonString
173-
Json string supplied to the Create operation
173+
### -JsonFilePath
174+
Path of Json file supplied to the Create operation
174175
175176
```yaml
176177
Type: System.String
177-
Parameter Sets: CreateViaJsonString
178+
Parameter Sets: CreateViaJsonFilePath
178179
Aliases:
179180

180181
Required: True
@@ -184,15 +185,15 @@ Accept pipeline input: False
184185
Accept wildcard characters: False
185186
```
186187
187-
### -JobType
188-
The type of the Job.
188+
### -JsonString
189+
Json string supplied to the Create operation
189190
190191
```yaml
191-
Type: Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.JobType
192-
Parameter Sets: CreateExpanded
192+
Type: System.String
193+
Parameter Sets: CreateViaJsonString
193194
Aliases:
194195

195-
Required: False
196+
Required: True
196197
Position: Named
197198
Default value: None
198199
Accept pipeline input: False

src/StorageMover/StorageMover.Autorest/docs/New-AzStorageMoverMultiCloudConnectorEndpoint.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -209,13 +209,13 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable
209209
210210
## INPUTS
211211
212-
### Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IEndpoint
212+
### Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.IEndpoint
213213
214214
### Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.IStorageMoverIdentity
215215
216216
## OUTPUTS
217217
218-
### Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IEndpoint
218+
### Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.IEndpoint
219219
220220
## NOTES
221221

src/StorageMover/StorageMover.Autorest/docs/Update-AzStorageMoverAzNfsFileShareEndpoint.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -207,7 +207,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable
207207
208208
## OUTPUTS
209209
210-
### Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20250701.IEndpoint
210+
### Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.IEndpoint
211211
212212
## NOTES
213213

0 commit comments

Comments
 (0)