Skip to content

Commit 873df79

Browse files
committed
migrate StorageMover module to autorest v4
1 parent a8ab243 commit 873df79

File tree

76 files changed

+1900
-627
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

76 files changed

+1900
-627
lines changed
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
// Copyright (c) Microsoft Corporation. All rights reserved.
2+
// Licensed under the Apache License, Version 2.0 (the ""License"");
3+
// you may not use this file except in compliance with the License.
4+
// You may obtain a copy of the License at
5+
// http://www.apache.org/licenses/LICENSE-2.0
6+
// Unless required by applicable law or agreed to in writing, software
7+
// distributed under the License is distributed on an ""AS IS"" BASIS,
8+
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
9+
// See the License for the specific language governing permissions and
10+
// limitations under the License.
11+
// Code generated by Microsoft (R) AutoRest Code Generator.Changes may cause incorrect behavior and will be lost if the code
12+
// is regenerated.
13+
14+
using System;
15+
using System.Reflection;
16+
using System.Runtime.CompilerServices;
17+
using System.Runtime.InteropServices;
18+
19+
[assembly: System.Reflection.AssemblyCompanyAttribute("Microsoft")]
20+
[assembly: System.Reflection.AssemblyCopyrightAttribute("Copyright © Microsoft")]
21+
[assembly: System.Reflection.AssemblyProductAttribute("Microsoft Azure PowerShell")]
22+
[assembly: System.Reflection.AssemblyTitleAttribute("Microsoft Azure PowerShell - StorageMover")]
23+
[assembly: System.Reflection.AssemblyFileVersionAttribute("1.5.0")]
24+
[assembly: System.Reflection.AssemblyVersionAttribute("1.5.0")]
25+
[assembly: System.Runtime.InteropServices.ComVisibleAttribute(false)]
26+
[assembly: System.CLSCompliantAttribute(false)]
27+

src/StorageMover/StorageMover.Autorest/README.md

Lines changed: 12 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -40,12 +40,6 @@ module-version: 1.2.0
4040
# Normally, title is the service name
4141
title: StorageMover
4242
subject-prefix: $(service-name)
43-
nested-object-to-string: true
44-
identity-correction-for-post: true
45-
46-
# For new modules, please avoid setting 3.x using the use-extension method and instead, use 4.x as the default option
47-
use-extension:
48-
"@autorest/powershell": "3.x"
4943

5044
directive:
5145
- from: swagger-document
@@ -61,6 +55,9 @@ directive:
6155
],
6256
"default": 0
6357
}
58+
- where:
59+
variant: ^(Create|Update)(?!.*?(Expanded|JsonFilePath|JsonString))|^CreateViaIdentityExpanded$
60+
remove: true
6461
- where:
6562
verb: Set
6663
remove: true
@@ -70,7 +67,6 @@ directive:
7067
suppress-format: true
7168
- no-inline:
7269
- EndpointBaseProperties
73-
- no-inline:
7470
- EndpointBaseUpdateProperties
7571
# Rename Start-AzDataMoverJobDefinitionJob -> Start-AzDataMoverJobDefinition
7672
- where:
@@ -101,18 +97,6 @@ directive:
10197
verb: Remove
10298
subject: Agent
10399
hide: true
104-
# Remove parameter sets Create and CreateViaIdentity
105-
- where:
106-
verb: New
107-
subject: Endpoint
108-
variant: ^Create$|^CreateViaIdentity$
109-
remove: true
110-
# Remove parameter set Update and UpdateViaIdentity
111-
- where:
112-
verb: Update
113-
subject: Endpoint
114-
variant: ^Update$|^UpdateViaIdentity$
115-
remove: true
116100
# Hide New-AzStorageMoverEndpoint
117101
- where:
118102
verb: New
@@ -150,18 +134,14 @@ directive:
150134
property-name: Message
151135
set:
152136
property-name: ErrorMessage
153-
- where:
154-
verb: New
155-
variant: ^CreateViaIdentity$|^CreateViaIdentityExpanded$
156-
remove: true
157137
# Delete the original ShouldProcess as a ShouldProcess and ShouldContinue are added in the custom cmdlets
158-
- from: source-file-csharp
159-
where: $
160-
transform: $ = $.replace('ShouldProcess($\"Call remote \'StorageMoversDelete\' operation\")', 'true');
161-
- from: source-file-csharp
162-
where: $
163-
transform: $ = $.replace('ShouldProcess($\"Call remote \'AgentsDelete\' operation\")', 'true');
164-
- from: source-file-csharp
165-
where: $
166-
transform: $ = $.replace('public Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.ISystemData', 'private Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.ISystemData');
138+
# - from: source-file-csharp
139+
# where: $
140+
# transform: $ = $.replace('ShouldProcess($\"Call remote \'StorageMoversDelete\' operation\")', 'true');
141+
# - from: source-file-csharp
142+
# where: $
143+
# transform: $ = $.replace('ShouldProcess($\"Call remote \'AgentsDelete\' operation\")', 'true');
144+
# Customize add validate
145+
# - model-cmdlet:
146+
# - model-name: UploadLimitWeeklyRecurrence
167147
```

src/StorageMover/StorageMover.Autorest/UX/Microsoft.StorageMover/storageMovers-projects-jobDefinitions.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@
103103
},
104104
{
105105
"name": "Start-AzStorageMoverJobDefinition",
106-
"description": "Creates a new Job Run resource for the specified Job Definition and passes it to the Agent for execution.",
106+
"description": "Start a new Job Run resource for the specified Job Definition and passes it to the Agent for execution.",
107107
"path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorageMover/storageMovers/{storageMoverName}/projects/{projectName}/jobDefinitions/{jobDefinitionName}/startJob",
108108
"help": {
109109
"learnMore": {
@@ -123,7 +123,7 @@
123123
},
124124
"examples": [
125125
{
126-
"description": "Creates a new Job Run resource for the specified Job Definition and passes it to the Agent for execution.",
126+
"description": "start a new Job Run resource for the specified Job Definition and passes it to the Agent for execution.",
127127
"parameters": [
128128
{
129129
"name": "-JobDefinitionName",

src/StorageMover/StorageMover.Autorest/custom/NewAzStorageMoverAzSmbFileShareEndpoint.ps1

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,11 +23,11 @@ Creates a Smb file share endpoint resource, which represents a data transfer sou
2323
New-AzStorageMoverAzSmbFileShareEndpoint -Name $endpointName -ResourceGroupName $rgname -StorageMoverName $storagemovername -StorageAccountResourceId $accountresourceid -FileShareName $fileshareName -Description "Description"
2424
2525
.Inputs
26-
Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.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.Api20240701.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-azstoragemoverazsmbfileshareendpoint
3838
#>
3939
function New-AzStorageMoverAzSmbFileShareEndpoint {
40-
[OutputType([Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IEndpoint])]
40+
[OutputType([Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.IEndpoint])]
4141
[CmdletBinding(DefaultParameterSetName = 'CreateExpanded', PositionalBinding =$false, SupportsShouldProcess, ConfirmImpact = 'Medium')]
4242
[Alias("New-AzStorageMoverSmbFileShareEndpoint")]
4343
param(
@@ -132,7 +132,7 @@ function New-AzStorageMoverAzSmbFileShareEndpoint {
132132
)
133133

134134
process {
135-
$Properties = [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.AzureStorageSmbFileShareEndpointProperties]::New()
135+
$Properties = [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.AzureStorageSmbFileShareEndpointProperties]::New()
136136

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

src/StorageMover/StorageMover.Autorest/custom/NewAzStorageMoverAzStorageContainerEndpoint.ps1

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,11 +23,11 @@ Creates an AzStorageContainer endpoint resource, which represents a data transfe
2323
New-AzStorageMoverAzStorageContainerEndpoint -Name myendpointName -ResourceGroupName myResourceGroup -BlobContainerName myContainer -StorageMoverName myStorageMover -StorageAccountResourceId myAccountResourceId
2424
2525
.Inputs
26-
Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.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.Api20240701.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-azstoragemoverazstoragecontainerendpoint
3838
#>
3939
function New-AzStorageMoverAzStorageContainerEndpoint {
40-
[OutputType([Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.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-AzStorageMoverAzStorageContainerEndpoint {
131131
)
132132

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

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

src/StorageMover/StorageMover.Autorest/custom/NewAzStorageMoverNfsEndpoint.ps1

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -23,11 +23,11 @@ Creates a Nfs endpoint resource, which represents a data transfer source or dest
2323
New-AzStorageMoverNfsEndpoint -Name myEndpoint -ResourceGroupName myResourceGroup -StorageMoverName myStorageMover -Host "x.x.x.x" -Export "/" -NfsVersion NFSv3 -Description "Description"
2424
2525
.Inputs
26-
Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.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.Api20240701.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-azstoragemovernfsendpoint
3838
#>
3939
function New-AzStorageMoverNfsEndpoint {
40-
[OutputType([Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.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)]
@@ -67,8 +67,8 @@ function New-AzStorageMoverNfsEndpoint {
6767

6868
[Parameter(ParameterSetName = 'CreateExpanded')]
6969
[Parameter(HelpMessage="The NFS protocol version.")]
70-
[ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.NfsVersion])]
71-
[Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.NfsVersion]
70+
[Microsoft.Azure.PowerShell.Cmdlets.StorageMover.PSArgumentCompleterAttribute("NFSauto", "NFSv3", "NFSv4")]
71+
[System.String]
7272
${NfsVersion},
7373

7474
[Parameter(ParameterSetName = 'CreateExpanded')]
@@ -137,7 +137,7 @@ function New-AzStorageMoverNfsEndpoint {
137137
)
138138

139139
process {
140-
$Properties = [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.NfsMountEndpointProperties]::New()
140+
$Properties = [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.NfsMountEndpointProperties]::New()
141141
if ($PSBoundParameters.ContainsKey('Host')) {
142142
$Properties.Host = $Host
143143
$null = $PSBoundParameters.Remove("Host")

src/StorageMover/StorageMover.Autorest/custom/NewAzStorageMoverSmbEndpoint.ps1

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,11 +22,11 @@ Creates an SMB endpoint resource, which represents a data transfer source or des
2222
.Example
2323
New-AzStorageMoverSmbEndpoint -Name $endpointName -ResourceGroupName $rgname -StorageMoverName $storagemovername -Host $host -ShareName $shareName -CredentialsUsernameUri "https://examples-azureKeyVault.vault.azure.net/secrets/examples-username" -CredentialsPasswordUri "https://examples-azureKeyVault.vault.azure.net/secrets/examples-password" -Description "Description"
2424
.Inputs
25-
Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.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.Api20240701.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-azstoragemoversmbendpoint
3737
#>
3838
function New-AzStorageMoverSmbEndpoint {
39-
[OutputType([Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.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)]
@@ -140,7 +140,7 @@ function New-AzStorageMoverSmbEndpoint {
140140
)
141141

142142
process {
143-
$Properties = [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.SmbMountEndpointProperties]::New()
143+
$Properties = [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.SmbMountEndpointProperties]::New()
144144

145145
if ($PSBoundParameters.ContainsKey('Host')) {
146146
$Properties.Host = $Host

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

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -21,18 +21,18 @@ Create an in-memory object for UploadLimitWeeklyRecurrence.
2121
Create an in-memory object for UploadLimitWeeklyRecurrence.
2222
2323
.Outputs
24-
Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.UploadLimitWeeklyRecurrence
24+
Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.UploadLimitWeeklyRecurrence
2525
.Link
2626
https://learn.microsoft.com/powershell/module/Az.StorageMover/new-AzStorageMoverUploadLimitWeeklyRecurrenceObject
2727
#>
2828
function New-AzStorageMoverUploadLimitWeeklyRecurrenceObject {
29-
[OutputType('Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.UploadLimitWeeklyRecurrence')]
29+
[OutputType('Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.UploadLimitWeeklyRecurrence')]
3030
[CmdletBinding(PositionalBinding=$false)]
3131
Param(
3232

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.")]
34-
[ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.DayOfWeek])]
35-
[Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.DayOfWeek[]]
34+
[Microsoft.Azure.PowerShell.Cmdlets.StorageMover.PSArgumentCompleterAttribute("Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday", "Sunday")]
35+
[string[]]
3636
[ValidateSet("Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday", "Sunday", IgnoreCase = $true)]
3737
$Day,
3838
[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.")]
@@ -60,7 +60,7 @@ function New-AzStorageMoverUploadLimitWeeklyRecurrenceObject {
6060
)
6161

6262
process {
63-
$Object = [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.UploadLimitWeeklyRecurrence]::New()
63+
$Object = [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.UploadLimitWeeklyRecurrence]::New()
6464

6565
if ($PSBoundParameters.ContainsKey('Day')) {
6666
$Object.Day = $Day

src/StorageMover/StorageMover.Autorest/custom/UpdateAzStorageMoverAzSmbFileShareEndpoint.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-AzStorageMoverAzSmbFileShareEndpoint -Name "myendpoint" -ResourceGroupName "myresourcegroup" -StorageMoverName "mystoragemover" -Description "updated endpoint"
2626
2727
.Inputs
28-
Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.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.Api20240701.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-azstoragemoverazsmbfileshareendpoint
5555
#>
5656
function Update-AzStorageMoverAzSmbFileShareEndpoint {
57-
[OutputType([Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.IEndpoint])]
57+
[OutputType([Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.IEndpoint])]
5858
[CmdletBinding(DefaultParameterSetName = 'UpdateExpanded', PositionalBinding =$false, SupportsShouldProcess, ConfirmImpact = 'Medium')]
5959
[Alias("Update-AzStorageMoverSmbFileShareEndpoint")]
6060
param(
@@ -147,7 +147,7 @@ function Update-AzStorageMoverAzSmbFileShareEndpoint {
147147
)
148148

149149
process {
150-
$Properties = [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.AzureStorageSmbFileShareEndpointUpdateProperties]::New()
150+
$Properties = [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.AzureStorageSmbFileShareEndpointUpdateProperties]::New()
151151
$Properties.EndpointType = 'AzureStorageSmbFileShare'
152152

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

src/StorageMover/StorageMover.Autorest/custom/UpdateAzStorageMoverAzStorageContainerEndpoint.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-AzStorageMoverAzStorageContainerEndpoint -Name myEndpointName -ResourceGroupName myResourceGroupName -StorageMoverName myStorageMover -Description "Update Description"
2626
2727
.Inputs
28-
Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.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.Api20240701.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-azstoragemoverazstoragecontainerendpoint
5555
#>
5656
function Update-AzStorageMoverAzStorageContainerEndpoint {
57-
[OutputType([Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20240701.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-AzStorageMoverAzStorageContainerEndpoint {
146146
)
147147

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

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

0 commit comments

Comments
 (0)