From ff921fed79532fab8c301dca176c7f787dbb7b28 Mon Sep 17 00:00:00 2001 From: Yifan Zhang Date: Thu, 14 Dec 2023 14:03:20 +0800 Subject: [PATCH 1/3] Rename SmbFileShare endpoint cmdlets --- .../Az.StorageMover.psd1 | 4 +-- .../storageMovers-agents.json | 2 +- .../storageMovers-endpoints.json | 2 +- ...overs-projects-jobDefinitions-jobRuns.json | 2 +- ...storageMovers-projects-jobDefinitions.json | 2 +- .../storageMovers-projects.json | 2 +- .../Microsoft.StorageMover/storageMovers.json | 2 +- ...wAzStorageMoverAzSmbFileShareEndpoint.ps1} | 3 ++- ...eAzStorageMoverAzSmbFileShareEndpoint.ps1} | 3 ++- .../docs/Az.StorageMover.md | 14 +++++----- .../docs/Get-AzStorageMover.md | 18 ------------- .../docs/Get-AzStorageMoverAgent.md | 18 ------------- .../docs/Get-AzStorageMoverEndpoint.md | 18 ------------- .../docs/Get-AzStorageMoverJobDefinition.md | 18 ------------- .../docs/Get-AzStorageMoverJobRun.md | 18 ------------- .../docs/Get-AzStorageMoverProject.md | 18 ------------- .../docs/New-AzStorageMover.md | 19 -------------- ...w-AzStorageMoverAzSmbFileShareEndpoint.md} | 10 ++++--- ...zStorageMoverAzStorageContainerEndpoint.md | 2 -- .../docs/New-AzStorageMoverJobDefinition.md | 22 ---------------- .../docs/New-AzStorageMoverNfsEndpoint.md | 2 -- .../docs/New-AzStorageMoverProject.md | 16 ------------ .../docs/New-AzStorageMoverSmbEndpoint.md | 2 -- .../docs/Remove-AzStorageMover.md | 18 ------------- .../docs/Remove-AzStorageMoverEndpoint.md | 18 ------------- .../Remove-AzStorageMoverJobDefinition.md | 18 ------------- .../docs/Remove-AzStorageMoverProject.md | 18 ------------- .../docs/Start-AzStorageMoverJobDefinition.md | 18 ------------- .../docs/Stop-AzStorageMoverJobDefinition.md | 18 ------------- .../docs/Unregister-AzStorageMoverAgent.md | 18 ------------- .../docs/Update-AzStorageMover.md | 23 ---------------- .../docs/Update-AzStorageMoverAgent.md | 21 --------------- ...e-AzStorageMoverAzSmbFileShareEndpoint.md} | 26 +++++-------------- ...zStorageMoverAzStorageContainerEndpoint.md | 18 ------------- .../Update-AzStorageMoverJobDefinition.md | 23 ---------------- .../docs/Update-AzStorageMoverNfsEndpoint.md | 18 ------------- .../docs/Update-AzStorageMoverProject.md | 21 --------------- .../docs/Update-AzStorageMoverSmbEndpoint.md | 18 ------------- ...w-AzStorageMoverAzSmbFileShareEndpoint.md} | 6 ++--- ...e-AzStorageMoverAzSmbFileShareEndpoint.md} | 4 +-- ...overAzSmbFileShareEndpoint.Recording.json} | 0 ...rageMoverAzSmbFileShareEndpoint.Tests.ps1} | 6 ++--- ...orageMoverAzSmbFileShareEndpoint.Tests.ps1 | 25 ++++++++++++++++++ 43 files changed, 63 insertions(+), 489 deletions(-) rename src/StorageMover/StorageMover.Autorest/custom/{NewAzStorageMoverSmbFileShareEndpoint.ps1 => NewAzStorageMoverAzSmbFileShareEndpoint.ps1} (98%) rename src/StorageMover/StorageMover.Autorest/custom/{UpdateAzStorageMoverSmbFileShareEndpoint.ps1 => UpdateAzStorageMoverAzSmbFileShareEndpoint.ps1} (98%) rename src/StorageMover/StorageMover.Autorest/docs/{New-AzStorageMoverSmbFileShareEndpoint.md => New-AzStorageMoverAzSmbFileShareEndpoint.md} (91%) rename src/StorageMover/StorageMover.Autorest/docs/{Update-AzStorageMoverSmbFileShareEndpoint.md => Update-AzStorageMoverAzSmbFileShareEndpoint.md} (84%) rename src/StorageMover/StorageMover.Autorest/examples/{New-AzStorageMoverSmbFileShareEndpoint.md => New-AzStorageMoverAzSmbFileShareEndpoint.md} (80%) rename src/StorageMover/StorageMover.Autorest/examples/{Update-AzStorageMoverSmbFileShareEndpoint.md => Update-AzStorageMoverAzSmbFileShareEndpoint.md} (94%) rename src/StorageMover/StorageMover.Autorest/test/{New-AzStorageMoverSmbFileShareEndpoint.Recording.json => New-AzStorageMoverAzSmbFileShareEndpoint.Recording.json} (100%) rename src/StorageMover/StorageMover.Autorest/test/{New-AzStorageMoverSmbFileShareEndpoint.Tests.ps1 => New-AzStorageMoverAzSmbFileShareEndpoint.Tests.ps1} (83%) create mode 100644 src/StorageMover/StorageMover.Autorest/test/Update-AzStorageMoverAzSmbFileShareEndpoint.Tests.ps1 diff --git a/src/StorageMover/StorageMover.Autorest/Az.StorageMover.psd1 b/src/StorageMover/StorageMover.Autorest/Az.StorageMover.psd1 index 93eb49b259db..46f157fa7d95 100644 --- a/src/StorageMover/StorageMover.Autorest/Az.StorageMover.psd1 +++ b/src/StorageMover/StorageMover.Autorest/Az.StorageMover.psd1 @@ -11,8 +11,8 @@ DotNetFrameworkVersion = '4.7.2' RequiredAssemblies = './bin/Az.StorageMover.private.dll' FormatsToProcess = './Az.StorageMover.format.ps1xml' - FunctionsToExport = 'Get-AzStorageMover', 'Get-AzStorageMoverAgent', 'Get-AzStorageMoverEndpoint', 'Get-AzStorageMoverJobDefinition', 'Get-AzStorageMoverJobRun', 'Get-AzStorageMoverProject', 'New-AzStorageMover', 'New-AzStorageMoverAzStorageContainerEndpoint', 'New-AzStorageMoverJobDefinition', 'New-AzStorageMoverNfsEndpoint', 'New-AzStorageMoverProject', 'New-AzStorageMoverSmbEndpoint', 'New-AzStorageMoverSmbFileShareEndpoint', 'Remove-AzStorageMover', 'Remove-AzStorageMoverEndpoint', 'Remove-AzStorageMoverJobDefinition', 'Remove-AzStorageMoverProject', 'Start-AzStorageMoverJobDefinition', 'Stop-AzStorageMoverJobDefinition', 'Unregister-AzStorageMoverAgent', 'Update-AzStorageMover', 'Update-AzStorageMoverAgent', 'Update-AzStorageMoverAzStorageContainerEndpoint', 'Update-AzStorageMoverJobDefinition', 'Update-AzStorageMoverNfsEndpoint', 'Update-AzStorageMoverProject', 'Update-AzStorageMoverSmbEndpoint', 'Update-AzStorageMoverSmbFileShareEndpoint', '*' - AliasesToExport = '*' + FunctionsToExport = 'Get-AzStorageMover', 'Get-AzStorageMoverAgent', 'Get-AzStorageMoverEndpoint', 'Get-AzStorageMoverJobDefinition', 'Get-AzStorageMoverJobRun', 'Get-AzStorageMoverProject', 'New-AzStorageMover', 'New-AzStorageMoverAzSmbFileShareEndpoint', 'New-AzStorageMoverAzStorageContainerEndpoint', 'New-AzStorageMoverJobDefinition', 'New-AzStorageMoverNfsEndpoint', 'New-AzStorageMoverProject', 'New-AzStorageMoverSmbEndpoint', 'Remove-AzStorageMover', 'Remove-AzStorageMoverEndpoint', 'Remove-AzStorageMoverJobDefinition', 'Remove-AzStorageMoverProject', 'Start-AzStorageMoverJobDefinition', 'Stop-AzStorageMoverJobDefinition', 'Unregister-AzStorageMoverAgent', 'Update-AzStorageMover', 'Update-AzStorageMoverAgent', 'Update-AzStorageMoverAzSmbFileShareEndpoint', 'Update-AzStorageMoverAzStorageContainerEndpoint', 'Update-AzStorageMoverJobDefinition', 'Update-AzStorageMoverNfsEndpoint', 'Update-AzStorageMoverProject', 'Update-AzStorageMoverSmbEndpoint', '*' + AliasesToExport = 'New-AzStorageMoverSmbFileShareEndpoint', 'Update-AzStorageMoverSmbFileShareEndpoint', '*' PrivateData = @{ PSData = @{ Tags = 'Azure', 'ResourceManager', 'ARM', 'PSModule', 'StorageMover' diff --git a/src/StorageMover/StorageMover.Autorest/UX/Microsoft.StorageMover/storageMovers-agents.json b/src/StorageMover/StorageMover.Autorest/UX/Microsoft.StorageMover/storageMovers-agents.json index 9ace30b5213d..f26625053432 100644 --- a/src/StorageMover/StorageMover.Autorest/UX/Microsoft.StorageMover/storageMovers-agents.json +++ b/src/StorageMover/StorageMover.Autorest/UX/Microsoft.StorageMover/storageMovers-agents.json @@ -1,6 +1,6 @@ { "resourceType": "storageMovers/agents", - "apiVersion": "2023-03-01", + "apiVersion": "2023-10-01", "learnMore": { "url": "https://learn.microsoft.com/powershell/module/az.storagemover" }, diff --git a/src/StorageMover/StorageMover.Autorest/UX/Microsoft.StorageMover/storageMovers-endpoints.json b/src/StorageMover/StorageMover.Autorest/UX/Microsoft.StorageMover/storageMovers-endpoints.json index c49e3f6334a9..996a98753f3d 100644 --- a/src/StorageMover/StorageMover.Autorest/UX/Microsoft.StorageMover/storageMovers-endpoints.json +++ b/src/StorageMover/StorageMover.Autorest/UX/Microsoft.StorageMover/storageMovers-endpoints.json @@ -1,6 +1,6 @@ { "resourceType": "storageMovers/endpoints", - "apiVersion": "2023-03-01", + "apiVersion": "2023-10-01", "learnMore": { "url": "https://learn.microsoft.com/powershell/module/az.storagemover" }, diff --git a/src/StorageMover/StorageMover.Autorest/UX/Microsoft.StorageMover/storageMovers-projects-jobDefinitions-jobRuns.json b/src/StorageMover/StorageMover.Autorest/UX/Microsoft.StorageMover/storageMovers-projects-jobDefinitions-jobRuns.json index 9bbafc1e7648..fc06fba39254 100644 --- a/src/StorageMover/StorageMover.Autorest/UX/Microsoft.StorageMover/storageMovers-projects-jobDefinitions-jobRuns.json +++ b/src/StorageMover/StorageMover.Autorest/UX/Microsoft.StorageMover/storageMovers-projects-jobDefinitions-jobRuns.json @@ -1,6 +1,6 @@ { "resourceType": "storageMovers/projects/jobDefinitions/jobRuns", - "apiVersion": "2023-03-01", + "apiVersion": "2023-10-01", "learnMore": { "url": "https://learn.microsoft.com/powershell/module/az.storagemover" }, diff --git a/src/StorageMover/StorageMover.Autorest/UX/Microsoft.StorageMover/storageMovers-projects-jobDefinitions.json b/src/StorageMover/StorageMover.Autorest/UX/Microsoft.StorageMover/storageMovers-projects-jobDefinitions.json index 0a0ebc7aa9b8..15386963de75 100644 --- a/src/StorageMover/StorageMover.Autorest/UX/Microsoft.StorageMover/storageMovers-projects-jobDefinitions.json +++ b/src/StorageMover/StorageMover.Autorest/UX/Microsoft.StorageMover/storageMovers-projects-jobDefinitions.json @@ -1,6 +1,6 @@ { "resourceType": "storageMovers/projects/jobDefinitions", - "apiVersion": "2023-03-01", + "apiVersion": "2023-10-01", "learnMore": { "url": "https://learn.microsoft.com/powershell/module/az.storagemover" }, diff --git a/src/StorageMover/StorageMover.Autorest/UX/Microsoft.StorageMover/storageMovers-projects.json b/src/StorageMover/StorageMover.Autorest/UX/Microsoft.StorageMover/storageMovers-projects.json index e77e6628a7e4..53486599882a 100644 --- a/src/StorageMover/StorageMover.Autorest/UX/Microsoft.StorageMover/storageMovers-projects.json +++ b/src/StorageMover/StorageMover.Autorest/UX/Microsoft.StorageMover/storageMovers-projects.json @@ -1,6 +1,6 @@ { "resourceType": "storageMovers/projects", - "apiVersion": "2023-03-01", + "apiVersion": "2023-10-01", "learnMore": { "url": "https://learn.microsoft.com/powershell/module/az.storagemover" }, diff --git a/src/StorageMover/StorageMover.Autorest/UX/Microsoft.StorageMover/storageMovers.json b/src/StorageMover/StorageMover.Autorest/UX/Microsoft.StorageMover/storageMovers.json index f3361250977a..7e81eba21692 100644 --- a/src/StorageMover/StorageMover.Autorest/UX/Microsoft.StorageMover/storageMovers.json +++ b/src/StorageMover/StorageMover.Autorest/UX/Microsoft.StorageMover/storageMovers.json @@ -1,6 +1,6 @@ { "resourceType": "storageMovers", - "apiVersion": "2023-03-01", + "apiVersion": "2023-10-01", "learnMore": { "url": "https://learn.microsoft.com/powershell/module/az.storagemover" }, diff --git a/src/StorageMover/StorageMover.Autorest/custom/NewAzStorageMoverSmbFileShareEndpoint.ps1 b/src/StorageMover/StorageMover.Autorest/custom/NewAzStorageMoverAzSmbFileShareEndpoint.ps1 similarity index 98% rename from src/StorageMover/StorageMover.Autorest/custom/NewAzStorageMoverSmbFileShareEndpoint.ps1 rename to src/StorageMover/StorageMover.Autorest/custom/NewAzStorageMoverAzSmbFileShareEndpoint.ps1 index 044c5ece1533..80c21a49ea07 100644 --- a/src/StorageMover/StorageMover.Autorest/custom/NewAzStorageMoverSmbFileShareEndpoint.ps1 +++ b/src/StorageMover/StorageMover.Autorest/custom/NewAzStorageMoverAzSmbFileShareEndpoint.ps1 @@ -36,9 +36,10 @@ To create the parameters described below, construct a hash table containing the .Link https://learn.microsoft.com/powershell/module/az.storagemover/new-azstoragemoversmbfileshareendpoint #> -function New-AzStorageMoverSmbFileShareEndpoint { +function New-AzStorageMoverAzSmbFileShareEndpoint { [OutputType([Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IEndpoint])] [CmdletBinding(DefaultParameterSetName = 'CreateExpanded', PositionalBinding =$false, SupportsShouldProcess, ConfirmImpact = 'Medium')] + [Alias("New-AzStorageMoverSmbFileShareEndpoint")] param( [Parameter(ParameterSetName='CreateExpanded', Mandatory)] [Alias('EndpointName')] diff --git a/src/StorageMover/StorageMover.Autorest/custom/UpdateAzStorageMoverSmbFileShareEndpoint.ps1 b/src/StorageMover/StorageMover.Autorest/custom/UpdateAzStorageMoverAzSmbFileShareEndpoint.ps1 similarity index 98% rename from src/StorageMover/StorageMover.Autorest/custom/UpdateAzStorageMoverSmbFileShareEndpoint.ps1 rename to src/StorageMover/StorageMover.Autorest/custom/UpdateAzStorageMoverAzSmbFileShareEndpoint.ps1 index 43f117c849ac..0a967716c6d3 100644 --- a/src/StorageMover/StorageMover.Autorest/custom/UpdateAzStorageMoverSmbFileShareEndpoint.ps1 +++ b/src/StorageMover/StorageMover.Autorest/custom/UpdateAzStorageMoverAzSmbFileShareEndpoint.ps1 @@ -53,9 +53,10 @@ INPUTOBJECT: Identity Parameter .Link https://learn.microsoft.com/powershell/module/az.storagemover/update-azstoragemoversmbfileshareendpoint #> -function Update-AzStorageMoverSmbFileShareEndpoint { +function Update-AzStorageMoverAzSmbFileShareEndpoint { [OutputType([Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IEndpoint])] [CmdletBinding(DefaultParameterSetName = 'UpdateExpanded', PositionalBinding =$false, SupportsShouldProcess, ConfirmImpact = 'Medium')] + [Alias("Update-AzStorageMoverSmbFileShareEndpoint")] param( [Parameter(ParameterSetName='UpdateExpanded', Mandatory)] [Alias('EndpointName')] diff --git a/src/StorageMover/StorageMover.Autorest/docs/Az.StorageMover.md b/src/StorageMover/StorageMover.Autorest/docs/Az.StorageMover.md index b96290ec156c..6ed7de8cdd2d 100644 --- a/src/StorageMover/StorageMover.Autorest/docs/Az.StorageMover.md +++ b/src/StorageMover/StorageMover.Autorest/docs/Az.StorageMover.md @@ -32,6 +32,9 @@ Gets a Project resource. ### [New-AzStorageMover](New-AzStorageMover.md) Creates or updates a top-level Storage Mover resource. +### [New-AzStorageMoverAzSmbFileShareEndpoint](New-AzStorageMoverAzSmbFileShareEndpoint.md) +Creates a Smb file share endpoint resource, which represents a data transfer source or destination. + ### [New-AzStorageMoverAzStorageContainerEndpoint](New-AzStorageMoverAzStorageContainerEndpoint.md) Creates an AzStorageContainer endpoint resource, which represents a data transfer source or destination. @@ -47,9 +50,6 @@ Creates or updates a Project resource, which is a logical grouping of related jo ### [New-AzStorageMoverSmbEndpoint](New-AzStorageMoverSmbEndpoint.md) Creates an SMB endpoint resource, which represents a data transfer source or destination. -### [New-AzStorageMoverSmbFileShareEndpoint](New-AzStorageMoverSmbFileShareEndpoint.md) -Creates a Smb file share endpoint resource, which represents a data transfer source or destination. - ### [Remove-AzStorageMover](Remove-AzStorageMover.md) Deletes a Storage Mover resource. @@ -78,6 +78,10 @@ Properties not specified in the request body will be unchanged. ### [Update-AzStorageMoverAgent](Update-AzStorageMoverAgent.md) Creates or updates an Agent resource. +### [Update-AzStorageMoverAzSmbFileShareEndpoint](Update-AzStorageMoverAzSmbFileShareEndpoint.md) +Updates properties for a SMB file share endpoint resource. +Properties not specified in the request body will be unchanged. + ### [Update-AzStorageMoverAzStorageContainerEndpoint](Update-AzStorageMoverAzStorageContainerEndpoint.md) Updates properties for an AzStorageContainer endpoint resource. Properties not specified in the request body will be unchanged. @@ -98,7 +102,3 @@ Properties not specified in the request body will be unchanged. Updates properties for a SMB endpoint resource. Properties not specified in the request body will be unchanged. -### [Update-AzStorageMoverSmbFileShareEndpoint](Update-AzStorageMoverSmbFileShareEndpoint.md) -Updates properties for a SMB file share endpoint resource. -Properties not specified in the request body will be unchanged. - diff --git a/src/StorageMover/StorageMover.Autorest/docs/Get-AzStorageMover.md b/src/StorageMover/StorageMover.Autorest/docs/Get-AzStorageMover.md index 3ec2f3e37238..853ba4d09b28 100644 --- a/src/StorageMover/StorageMover.Autorest/docs/Get-AzStorageMover.md +++ b/src/StorageMover/StorageMover.Autorest/docs/Get-AzStorageMover.md @@ -227,23 +227,5 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## NOTES -ALIASES - -COMPLEX PARAMETER PROPERTIES - -To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. - - -`INPUTOBJECT `: Identity Parameter - - `[AgentName ]`: The name of the Agent resource. - - `[EndpointName ]`: The name of the Endpoint resource. - - `[Id ]`: Resource identity path - - `[JobDefinitionName ]`: The name of the Job Definition resource. - - `[JobRunName ]`: The name of the Job Run resource. - - `[ProjectName ]`: The name of the Project resource. - - `[ResourceGroupName ]`: The name of the resource group. The name is case insensitive. - - `[StorageMoverName ]`: The name of the Storage Mover resource. - - `[SubscriptionId ]`: The ID of the target subscription. - ## RELATED LINKS diff --git a/src/StorageMover/StorageMover.Autorest/docs/Get-AzStorageMoverAgent.md b/src/StorageMover/StorageMover.Autorest/docs/Get-AzStorageMoverAgent.md index d28e2e86daf3..7e7e22dc2908 100644 --- a/src/StorageMover/StorageMover.Autorest/docs/Get-AzStorageMoverAgent.md +++ b/src/StorageMover/StorageMover.Autorest/docs/Get-AzStorageMoverAgent.md @@ -206,23 +206,5 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## NOTES -ALIASES - -COMPLEX PARAMETER PROPERTIES - -To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. - - -`INPUTOBJECT `: Identity Parameter - - `[AgentName ]`: The name of the Agent resource. - - `[EndpointName ]`: The name of the Endpoint resource. - - `[Id ]`: Resource identity path - - `[JobDefinitionName ]`: The name of the Job Definition resource. - - `[JobRunName ]`: The name of the Job Run resource. - - `[ProjectName ]`: The name of the Project resource. - - `[ResourceGroupName ]`: The name of the resource group. The name is case insensitive. - - `[StorageMoverName ]`: The name of the Storage Mover resource. - - `[SubscriptionId ]`: The ID of the target subscription. - ## RELATED LINKS diff --git a/src/StorageMover/StorageMover.Autorest/docs/Get-AzStorageMoverEndpoint.md b/src/StorageMover/StorageMover.Autorest/docs/Get-AzStorageMoverEndpoint.md index fb7f5b046b3e..b24a4b493f38 100644 --- a/src/StorageMover/StorageMover.Autorest/docs/Get-AzStorageMoverEndpoint.md +++ b/src/StorageMover/StorageMover.Autorest/docs/Get-AzStorageMoverEndpoint.md @@ -209,23 +209,5 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## NOTES -ALIASES - -COMPLEX PARAMETER PROPERTIES - -To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. - - -`INPUTOBJECT `: Identity Parameter - - `[AgentName ]`: The name of the Agent resource. - - `[EndpointName ]`: The name of the Endpoint resource. - - `[Id ]`: Resource identity path - - `[JobDefinitionName ]`: The name of the Job Definition resource. - - `[JobRunName ]`: The name of the Job Run resource. - - `[ProjectName ]`: The name of the Project resource. - - `[ResourceGroupName ]`: The name of the resource group. The name is case insensitive. - - `[StorageMoverName ]`: The name of the Storage Mover resource. - - `[SubscriptionId ]`: The ID of the target subscription. - ## RELATED LINKS diff --git a/src/StorageMover/StorageMover.Autorest/docs/Get-AzStorageMoverJobDefinition.md b/src/StorageMover/StorageMover.Autorest/docs/Get-AzStorageMoverJobDefinition.md index 69c338b1b1ad..2974721bdf73 100644 --- a/src/StorageMover/StorageMover.Autorest/docs/Get-AzStorageMoverJobDefinition.md +++ b/src/StorageMover/StorageMover.Autorest/docs/Get-AzStorageMoverJobDefinition.md @@ -224,23 +224,5 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## NOTES -ALIASES - -COMPLEX PARAMETER PROPERTIES - -To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. - - -`INPUTOBJECT `: Identity Parameter - - `[AgentName ]`: The name of the Agent resource. - - `[EndpointName ]`: The name of the Endpoint resource. - - `[Id ]`: Resource identity path - - `[JobDefinitionName ]`: The name of the Job Definition resource. - - `[JobRunName ]`: The name of the Job Run resource. - - `[ProjectName ]`: The name of the Project resource. - - `[ResourceGroupName ]`: The name of the resource group. The name is case insensitive. - - `[StorageMoverName ]`: The name of the Storage Mover resource. - - `[SubscriptionId ]`: The ID of the target subscription. - ## RELATED LINKS diff --git a/src/StorageMover/StorageMover.Autorest/docs/Get-AzStorageMoverJobRun.md b/src/StorageMover/StorageMover.Autorest/docs/Get-AzStorageMoverJobRun.md index f6e55140c8af..5d468c5689f9 100644 --- a/src/StorageMover/StorageMover.Autorest/docs/Get-AzStorageMoverJobRun.md +++ b/src/StorageMover/StorageMover.Autorest/docs/Get-AzStorageMoverJobRun.md @@ -280,23 +280,5 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## NOTES -ALIASES - -COMPLEX PARAMETER PROPERTIES - -To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. - - -`INPUTOBJECT `: Identity Parameter - - `[AgentName ]`: The name of the Agent resource. - - `[EndpointName ]`: The name of the Endpoint resource. - - `[Id ]`: Resource identity path - - `[JobDefinitionName ]`: The name of the Job Definition resource. - - `[JobRunName ]`: The name of the Job Run resource. - - `[ProjectName ]`: The name of the Project resource. - - `[ResourceGroupName ]`: The name of the resource group. The name is case insensitive. - - `[StorageMoverName ]`: The name of the Storage Mover resource. - - `[SubscriptionId ]`: The ID of the target subscription. - ## RELATED LINKS diff --git a/src/StorageMover/StorageMover.Autorest/docs/Get-AzStorageMoverProject.md b/src/StorageMover/StorageMover.Autorest/docs/Get-AzStorageMoverProject.md index 52e6c1024f00..56c032067bd7 100644 --- a/src/StorageMover/StorageMover.Autorest/docs/Get-AzStorageMoverProject.md +++ b/src/StorageMover/StorageMover.Autorest/docs/Get-AzStorageMoverProject.md @@ -197,23 +197,5 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## NOTES -ALIASES - -COMPLEX PARAMETER PROPERTIES - -To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. - - -`INPUTOBJECT `: Identity Parameter - - `[AgentName ]`: The name of the Agent resource. - - `[EndpointName ]`: The name of the Endpoint resource. - - `[Id ]`: Resource identity path - - `[JobDefinitionName ]`: The name of the Job Definition resource. - - `[JobRunName ]`: The name of the Job Run resource. - - `[ProjectName ]`: The name of the Project resource. - - `[ResourceGroupName ]`: The name of the resource group. The name is case insensitive. - - `[StorageMoverName ]`: The name of the Storage Mover resource. - - `[SubscriptionId ]`: The ID of the target subscription. - ## RELATED LINKS diff --git a/src/StorageMover/StorageMover.Autorest/docs/New-AzStorageMover.md b/src/StorageMover/StorageMover.Autorest/docs/New-AzStorageMover.md index 7c5bec4af985..b3159748e7d4 100644 --- a/src/StorageMover/StorageMover.Autorest/docs/New-AzStorageMover.md +++ b/src/StorageMover/StorageMover.Autorest/docs/New-AzStorageMover.md @@ -224,24 +224,5 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## NOTES -ALIASES - -COMPLEX PARAMETER PROPERTIES - -To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. - - -`STORAGEMOVER `: The Storage Mover resource, which is a container for a group of Agents, Projects, and Endpoints. - - `Location `: The geo-location where the resource lives - - `[Tag ]`: Resource tags. - - `[(Any) ]`: This indicates any property can be added to this object. - - `[SystemDataCreatedAt ]`: The timestamp of resource creation (UTC). - - `[SystemDataCreatedBy ]`: The identity that created the resource. - - `[SystemDataCreatedByType ]`: The type of identity that created the resource. - - `[SystemDataLastModifiedAt ]`: The timestamp of resource last modification (UTC) - - `[SystemDataLastModifiedBy ]`: The identity that last modified the resource. - - `[SystemDataLastModifiedByType ]`: The type of identity that last modified the resource. - - `[Description ]`: A description for the Storage Mover. - ## RELATED LINKS diff --git a/src/StorageMover/StorageMover.Autorest/docs/New-AzStorageMoverSmbFileShareEndpoint.md b/src/StorageMover/StorageMover.Autorest/docs/New-AzStorageMoverAzSmbFileShareEndpoint.md similarity index 91% rename from src/StorageMover/StorageMover.Autorest/docs/New-AzStorageMoverSmbFileShareEndpoint.md rename to src/StorageMover/StorageMover.Autorest/docs/New-AzStorageMoverAzSmbFileShareEndpoint.md index bac305335689..04a488c1135c 100644 --- a/src/StorageMover/StorageMover.Autorest/docs/New-AzStorageMoverSmbFileShareEndpoint.md +++ b/src/StorageMover/StorageMover.Autorest/docs/New-AzStorageMoverAzSmbFileShareEndpoint.md @@ -5,7 +5,7 @@ online version: https://learn.microsoft.com/powershell/module/az.storagemover/ne schema: 2.0.0 --- -# New-AzStorageMoverSmbFileShareEndpoint +# New-AzStorageMoverAzSmbFileShareEndpoint ## SYNOPSIS Creates a Smb file share endpoint resource, which represents a data transfer source or destination. @@ -13,7 +13,7 @@ Creates a Smb file share endpoint resource, which represents a data transfer sou ## SYNTAX ``` -New-AzStorageMoverSmbFileShareEndpoint -Name -ResourceGroupName -StorageMoverName +New-AzStorageMoverAzSmbFileShareEndpoint -Name -ResourceGroupName -StorageMoverName -FileShareName -StorageAccountResourceId [-SubscriptionId ] [-Description ] [-DefaultProfile ] [-Confirm] [-WhatIf] [] ``` @@ -25,7 +25,7 @@ Creates a Smb file share endpoint resource, which represents a data transfer sou ### Example 1: Create an Smb file share endpoint ```powershell -New-AzStorageMoverSmbFileShareEndpoint -Name "myendpoint" -ResourceGroupName "myresourcegroup" -StorageMoverName "mystoragemover" -StorageAccountResourceId $accountresourceid -FileShareName testfs -Description "New smb file share endpoint" +New-AzStorageMoverAzSmbFileShareEndpoint -Name "myendpoint" -ResourceGroupName "myresourcegroup" -StorageMoverName "mystoragemover" -StorageAccountResourceId $accountresourceid -FileShareName testfs -Description "New smb file share endpoint" ``` ```output @@ -47,7 +47,7 @@ SystemDataLastModifiedByType : Application Type : microsoft.storagemover/storagemovers/endpoints ``` -This command creats a Smb file share endpoint +This command creats an Azure Storage SMB file share endpoint. ## PARAMETERS @@ -220,5 +220,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ALIASES +New-AzStorageMoverSmbFileShareEndpoint + ## RELATED LINKS diff --git a/src/StorageMover/StorageMover.Autorest/docs/New-AzStorageMoverAzStorageContainerEndpoint.md b/src/StorageMover/StorageMover.Autorest/docs/New-AzStorageMoverAzStorageContainerEndpoint.md index e88446d69317..597a28affc48 100644 --- a/src/StorageMover/StorageMover.Autorest/docs/New-AzStorageMoverAzStorageContainerEndpoint.md +++ b/src/StorageMover/StorageMover.Autorest/docs/New-AzStorageMoverAzStorageContainerEndpoint.md @@ -218,7 +218,5 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## NOTES -ALIASES - ## RELATED LINKS diff --git a/src/StorageMover/StorageMover.Autorest/docs/New-AzStorageMoverJobDefinition.md b/src/StorageMover/StorageMover.Autorest/docs/New-AzStorageMoverJobDefinition.md index 97b9a607cd7c..c15a11931b4a 100644 --- a/src/StorageMover/StorageMover.Autorest/docs/New-AzStorageMoverJobDefinition.md +++ b/src/StorageMover/StorageMover.Autorest/docs/New-AzStorageMoverJobDefinition.md @@ -325,27 +325,5 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## NOTES -ALIASES - -COMPLEX PARAMETER PROPERTIES - -To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. - - -`JOBDEFINITION `: The Job Definition resource. - - `CopyMode `: Strategy to use for copy. - - `SourceName `: The name of the source Endpoint. - - `TargetName `: The name of the target Endpoint. - - `[SystemDataCreatedAt ]`: The timestamp of resource creation (UTC). - - `[SystemDataCreatedBy ]`: The identity that created the resource. - - `[SystemDataCreatedByType ]`: The type of identity that created the resource. - - `[SystemDataLastModifiedAt ]`: The timestamp of resource last modification (UTC) - - `[SystemDataLastModifiedBy ]`: The identity that last modified the resource. - - `[SystemDataLastModifiedByType ]`: The type of identity that last modified the resource. - - `[AgentName ]`: Name of the Agent to assign for new Job Runs of this Job Definition. - - `[Description ]`: A description for the Job Definition. - - `[SourceSubpath ]`: The subpath to use when reading from the source Endpoint. - - `[TargetSubpath ]`: The subpath to use when writing to the target Endpoint. - ## RELATED LINKS diff --git a/src/StorageMover/StorageMover.Autorest/docs/New-AzStorageMoverNfsEndpoint.md b/src/StorageMover/StorageMover.Autorest/docs/New-AzStorageMoverNfsEndpoint.md index 60918805449d..81836d3dec9a 100644 --- a/src/StorageMover/StorageMover.Autorest/docs/New-AzStorageMoverNfsEndpoint.md +++ b/src/StorageMover/StorageMover.Autorest/docs/New-AzStorageMoverNfsEndpoint.md @@ -232,7 +232,5 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## NOTES -ALIASES - ## RELATED LINKS diff --git a/src/StorageMover/StorageMover.Autorest/docs/New-AzStorageMoverProject.md b/src/StorageMover/StorageMover.Autorest/docs/New-AzStorageMoverProject.md index 3ba5c6390873..77bb729d3e3b 100644 --- a/src/StorageMover/StorageMover.Autorest/docs/New-AzStorageMoverProject.md +++ b/src/StorageMover/StorageMover.Autorest/docs/New-AzStorageMoverProject.md @@ -207,21 +207,5 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## NOTES -ALIASES - -COMPLEX PARAMETER PROPERTIES - -To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. - - -`PROJECT `: The Project resource. - - `[SystemDataCreatedAt ]`: The timestamp of resource creation (UTC). - - `[SystemDataCreatedBy ]`: The identity that created the resource. - - `[SystemDataCreatedByType ]`: The type of identity that created the resource. - - `[SystemDataLastModifiedAt ]`: The timestamp of resource last modification (UTC) - - `[SystemDataLastModifiedBy ]`: The identity that last modified the resource. - - `[SystemDataLastModifiedByType ]`: The type of identity that last modified the resource. - - `[Description ]`: A description for the Project. - ## RELATED LINKS diff --git a/src/StorageMover/StorageMover.Autorest/docs/New-AzStorageMoverSmbEndpoint.md b/src/StorageMover/StorageMover.Autorest/docs/New-AzStorageMoverSmbEndpoint.md index 399fecd92f51..3d256ac5a302 100644 --- a/src/StorageMover/StorageMover.Autorest/docs/New-AzStorageMoverSmbEndpoint.md +++ b/src/StorageMover/StorageMover.Autorest/docs/New-AzStorageMoverSmbEndpoint.md @@ -255,7 +255,5 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## NOTES -ALIASES - ## RELATED LINKS diff --git a/src/StorageMover/StorageMover.Autorest/docs/Remove-AzStorageMover.md b/src/StorageMover/StorageMover.Autorest/docs/Remove-AzStorageMover.md index 72f64b656600..c9fde436a739 100644 --- a/src/StorageMover/StorageMover.Autorest/docs/Remove-AzStorageMover.md +++ b/src/StorageMover/StorageMover.Autorest/docs/Remove-AzStorageMover.md @@ -220,23 +220,5 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## NOTES -ALIASES - -COMPLEX PARAMETER PROPERTIES - -To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. - - -`INPUTOBJECT `: Identity Parameter - - `[AgentName ]`: The name of the Agent resource. - - `[EndpointName ]`: The name of the Endpoint resource. - - `[Id ]`: Resource identity path - - `[JobDefinitionName ]`: The name of the Job Definition resource. - - `[JobRunName ]`: The name of the Job Run resource. - - `[ProjectName ]`: The name of the Project resource. - - `[ResourceGroupName ]`: The name of the resource group. The name is case insensitive. - - `[StorageMoverName ]`: The name of the Storage Mover resource. - - `[SubscriptionId ]`: The ID of the target subscription. - ## RELATED LINKS diff --git a/src/StorageMover/StorageMover.Autorest/docs/Remove-AzStorageMoverEndpoint.md b/src/StorageMover/StorageMover.Autorest/docs/Remove-AzStorageMoverEndpoint.md index d109114ad5bd..0cfccc20af17 100644 --- a/src/StorageMover/StorageMover.Autorest/docs/Remove-AzStorageMoverEndpoint.md +++ b/src/StorageMover/StorageMover.Autorest/docs/Remove-AzStorageMoverEndpoint.md @@ -221,23 +221,5 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## NOTES -ALIASES - -COMPLEX PARAMETER PROPERTIES - -To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. - - -`INPUTOBJECT `: Identity Parameter - - `[AgentName ]`: The name of the Agent resource. - - `[EndpointName ]`: The name of the Endpoint resource. - - `[Id ]`: Resource identity path - - `[JobDefinitionName ]`: The name of the Job Definition resource. - - `[JobRunName ]`: The name of the Job Run resource. - - `[ProjectName ]`: The name of the Project resource. - - `[ResourceGroupName ]`: The name of the resource group. The name is case insensitive. - - `[StorageMoverName ]`: The name of the Storage Mover resource. - - `[SubscriptionId ]`: The ID of the target subscription. - ## RELATED LINKS diff --git a/src/StorageMover/StorageMover.Autorest/docs/Remove-AzStorageMoverJobDefinition.md b/src/StorageMover/StorageMover.Autorest/docs/Remove-AzStorageMoverJobDefinition.md index d0629986876b..8e92f1776869 100644 --- a/src/StorageMover/StorageMover.Autorest/docs/Remove-AzStorageMoverJobDefinition.md +++ b/src/StorageMover/StorageMover.Autorest/docs/Remove-AzStorageMoverJobDefinition.md @@ -236,23 +236,5 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## NOTES -ALIASES - -COMPLEX PARAMETER PROPERTIES - -To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. - - -`INPUTOBJECT `: Identity Parameter - - `[AgentName ]`: The name of the Agent resource. - - `[EndpointName ]`: The name of the Endpoint resource. - - `[Id ]`: Resource identity path - - `[JobDefinitionName ]`: The name of the Job Definition resource. - - `[JobRunName ]`: The name of the Job Run resource. - - `[ProjectName ]`: The name of the Project resource. - - `[ResourceGroupName ]`: The name of the resource group. The name is case insensitive. - - `[StorageMoverName ]`: The name of the Storage Mover resource. - - `[SubscriptionId ]`: The ID of the target subscription. - ## RELATED LINKS diff --git a/src/StorageMover/StorageMover.Autorest/docs/Remove-AzStorageMoverProject.md b/src/StorageMover/StorageMover.Autorest/docs/Remove-AzStorageMoverProject.md index c045a6b45b54..06fef09dac97 100644 --- a/src/StorageMover/StorageMover.Autorest/docs/Remove-AzStorageMoverProject.md +++ b/src/StorageMover/StorageMover.Autorest/docs/Remove-AzStorageMoverProject.md @@ -221,23 +221,5 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## NOTES -ALIASES - -COMPLEX PARAMETER PROPERTIES - -To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. - - -`INPUTOBJECT `: Identity Parameter - - `[AgentName ]`: The name of the Agent resource. - - `[EndpointName ]`: The name of the Endpoint resource. - - `[Id ]`: Resource identity path - - `[JobDefinitionName ]`: The name of the Job Definition resource. - - `[JobRunName ]`: The name of the Job Run resource. - - `[ProjectName ]`: The name of the Project resource. - - `[ResourceGroupName ]`: The name of the resource group. The name is case insensitive. - - `[StorageMoverName ]`: The name of the Storage Mover resource. - - `[SubscriptionId ]`: The ID of the target subscription. - ## RELATED LINKS diff --git a/src/StorageMover/StorageMover.Autorest/docs/Start-AzStorageMoverJobDefinition.md b/src/StorageMover/StorageMover.Autorest/docs/Start-AzStorageMoverJobDefinition.md index 102795062bd8..e11228593968 100644 --- a/src/StorageMover/StorageMover.Autorest/docs/Start-AzStorageMoverJobDefinition.md +++ b/src/StorageMover/StorageMover.Autorest/docs/Start-AzStorageMoverJobDefinition.md @@ -201,23 +201,5 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## NOTES -ALIASES - -COMPLEX PARAMETER PROPERTIES - -To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. - - -`INPUTOBJECT `: Identity Parameter - - `[AgentName ]`: The name of the Agent resource. - - `[EndpointName ]`: The name of the Endpoint resource. - - `[Id ]`: Resource identity path - - `[JobDefinitionName ]`: The name of the Job Definition resource. - - `[JobRunName ]`: The name of the Job Run resource. - - `[ProjectName ]`: The name of the Project resource. - - `[ResourceGroupName ]`: The name of the resource group. The name is case insensitive. - - `[StorageMoverName ]`: The name of the Storage Mover resource. - - `[SubscriptionId ]`: The ID of the target subscription. - ## RELATED LINKS diff --git a/src/StorageMover/StorageMover.Autorest/docs/Stop-AzStorageMoverJobDefinition.md b/src/StorageMover/StorageMover.Autorest/docs/Stop-AzStorageMoverJobDefinition.md index a84618431fe0..32f41d7ac826 100644 --- a/src/StorageMover/StorageMover.Autorest/docs/Stop-AzStorageMoverJobDefinition.md +++ b/src/StorageMover/StorageMover.Autorest/docs/Stop-AzStorageMoverJobDefinition.md @@ -195,23 +195,5 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## NOTES -ALIASES - -COMPLEX PARAMETER PROPERTIES - -To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. - - -`INPUTOBJECT `: Identity Parameter - - `[AgentName ]`: The name of the Agent resource. - - `[EndpointName ]`: The name of the Endpoint resource. - - `[Id ]`: Resource identity path - - `[JobDefinitionName ]`: The name of the Job Definition resource. - - `[JobRunName ]`: The name of the Job Run resource. - - `[ProjectName ]`: The name of the Project resource. - - `[ResourceGroupName ]`: The name of the resource group. The name is case insensitive. - - `[StorageMoverName ]`: The name of the Storage Mover resource. - - `[SubscriptionId ]`: The ID of the target subscription. - ## RELATED LINKS diff --git a/src/StorageMover/StorageMover.Autorest/docs/Unregister-AzStorageMoverAgent.md b/src/StorageMover/StorageMover.Autorest/docs/Unregister-AzStorageMoverAgent.md index 9923ad0d53ce..336dac67d104 100644 --- a/src/StorageMover/StorageMover.Autorest/docs/Unregister-AzStorageMoverAgent.md +++ b/src/StorageMover/StorageMover.Autorest/docs/Unregister-AzStorageMoverAgent.md @@ -235,23 +235,5 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## NOTES -ALIASES - -COMPLEX PARAMETER PROPERTIES - -To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. - - -`INPUTOBJECT `: Identity Parameter - - `[AgentName ]`: The name of the Agent resource. - - `[EndpointName ]`: The name of the Endpoint resource. - - `[Id ]`: Resource identity path - - `[JobDefinitionName ]`: The name of the Job Definition resource. - - `[JobRunName ]`: The name of the Job Run resource. - - `[ProjectName ]`: The name of the Project resource. - - `[ResourceGroupName ]`: The name of the resource group. The name is case insensitive. - - `[StorageMoverName ]`: The name of the Storage Mover resource. - - `[SubscriptionId ]`: The ID of the target subscription. - ## RELATED LINKS diff --git a/src/StorageMover/StorageMover.Autorest/docs/Update-AzStorageMover.md b/src/StorageMover/StorageMover.Autorest/docs/Update-AzStorageMover.md index 2f2d35f6e3b9..7a1dfeb5f9ce 100644 --- a/src/StorageMover/StorageMover.Autorest/docs/Update-AzStorageMover.md +++ b/src/StorageMover/StorageMover.Autorest/docs/Update-AzStorageMover.md @@ -240,28 +240,5 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## NOTES -ALIASES - -COMPLEX PARAMETER PROPERTIES - -To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. - - -`INPUTOBJECT `: Identity Parameter - - `[AgentName ]`: The name of the Agent resource. - - `[EndpointName ]`: The name of the Endpoint resource. - - `[Id ]`: Resource identity path - - `[JobDefinitionName ]`: The name of the Job Definition resource. - - `[JobRunName ]`: The name of the Job Run resource. - - `[ProjectName ]`: The name of the Project resource. - - `[ResourceGroupName ]`: The name of the resource group. The name is case insensitive. - - `[StorageMoverName ]`: The name of the Storage Mover resource. - - `[SubscriptionId ]`: The ID of the target subscription. - -`STORAGEMOVER `: The Storage Mover resource. - - `[Description ]`: A description for the Storage Mover. - - `[Tag ]`: Resource tags. - - `[(Any) ]`: This indicates any property can be added to this object. - ## RELATED LINKS diff --git a/src/StorageMover/StorageMover.Autorest/docs/Update-AzStorageMoverAgent.md b/src/StorageMover/StorageMover.Autorest/docs/Update-AzStorageMoverAgent.md index b7ed8f55d3af..67bccfb7ee1c 100644 --- a/src/StorageMover/StorageMover.Autorest/docs/Update-AzStorageMoverAgent.md +++ b/src/StorageMover/StorageMover.Autorest/docs/Update-AzStorageMoverAgent.md @@ -247,26 +247,5 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## NOTES -ALIASES - -COMPLEX PARAMETER PROPERTIES - -To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. - - -`AGENT `: The Agent resource. - - `[Description ]`: A description for the Agent. - -`INPUTOBJECT `: Identity Parameter - - `[AgentName ]`: The name of the Agent resource. - - `[EndpointName ]`: The name of the Endpoint resource. - - `[Id ]`: Resource identity path - - `[JobDefinitionName ]`: The name of the Job Definition resource. - - `[JobRunName ]`: The name of the Job Run resource. - - `[ProjectName ]`: The name of the Project resource. - - `[ResourceGroupName ]`: The name of the resource group. The name is case insensitive. - - `[StorageMoverName ]`: The name of the Storage Mover resource. - - `[SubscriptionId ]`: The ID of the target subscription. - ## RELATED LINKS diff --git a/src/StorageMover/StorageMover.Autorest/docs/Update-AzStorageMoverSmbFileShareEndpoint.md b/src/StorageMover/StorageMover.Autorest/docs/Update-AzStorageMoverAzSmbFileShareEndpoint.md similarity index 84% rename from src/StorageMover/StorageMover.Autorest/docs/Update-AzStorageMoverSmbFileShareEndpoint.md rename to src/StorageMover/StorageMover.Autorest/docs/Update-AzStorageMoverAzSmbFileShareEndpoint.md index caa8bce28da5..5004a7419ebf 100644 --- a/src/StorageMover/StorageMover.Autorest/docs/Update-AzStorageMoverSmbFileShareEndpoint.md +++ b/src/StorageMover/StorageMover.Autorest/docs/Update-AzStorageMoverAzSmbFileShareEndpoint.md @@ -5,7 +5,7 @@ online version: https://learn.microsoft.com/powershell/module/az.storagemover/up schema: 2.0.0 --- -# Update-AzStorageMoverSmbFileShareEndpoint +# Update-AzStorageMoverAzSmbFileShareEndpoint ## SYNOPSIS Updates properties for a SMB file share endpoint resource. @@ -15,14 +15,14 @@ Properties not specified in the request body will be unchanged. ### UpdateExpanded (Default) ``` -Update-AzStorageMoverSmbFileShareEndpoint -Name -ResourceGroupName +Update-AzStorageMoverAzSmbFileShareEndpoint -Name -ResourceGroupName -StorageMoverName [-SubscriptionId ] [-Description ] [-DefaultProfile ] [-Confirm] [-WhatIf] [] ``` ### UpdateViaIdentityExpanded ``` -Update-AzStorageMoverSmbFileShareEndpoint -InputObject [-Description ] +Update-AzStorageMoverAzSmbFileShareEndpoint -InputObject [-Description ] [-DefaultProfile ] [-Confirm] [-WhatIf] [] ``` @@ -56,7 +56,7 @@ SystemDataLastModifiedByType : Application Type : microsoft.storagemover/storagemovers/endpoints ``` -This command updates a Smb file share enpdoint's description by manual inputs. +This command updates an Azure Storage SMB file share enpdoint's description by manual inputs. ### Example 2: Update a Smb file share endpoint by pipeline ```powershell @@ -82,7 +82,7 @@ SystemDataLastModifiedByType : Application Type : microsoft.storagemover/storagemovers/endpoints ``` -This command updates a Smb file share endpoint's description by pipeline +This command updates an Azure Storage SMB file share endpoint's description by pipeline. ## PARAMETERS @@ -239,21 +239,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ALIASES -COMPLEX PARAMETER PROPERTIES - -To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. - - -`INPUTOBJECT `: Identity Parameter - - `[AgentName ]`: The name of the Agent resource. - - `[EndpointName ]`: The name of the Endpoint resource. - - `[Id ]`: Resource identity path - - `[JobDefinitionName ]`: The name of the Job Definition resource. - - `[JobRunName ]`: The name of the Job Run resource. - - `[ProjectName ]`: The name of the Project resource. - - `[ResourceGroupName ]`: The name of the resource group. The name is case insensitive. - - `[StorageMoverName ]`: The name of the Storage Mover resource. - - `[SubscriptionId ]`: The ID of the target subscription. +Update-AzStorageMoverSmbFileShareEndpoint ## RELATED LINKS diff --git a/src/StorageMover/StorageMover.Autorest/docs/Update-AzStorageMoverAzStorageContainerEndpoint.md b/src/StorageMover/StorageMover.Autorest/docs/Update-AzStorageMoverAzStorageContainerEndpoint.md index 7bc91cba4a6d..8b7dae9399f6 100644 --- a/src/StorageMover/StorageMover.Autorest/docs/Update-AzStorageMoverAzStorageContainerEndpoint.md +++ b/src/StorageMover/StorageMover.Autorest/docs/Update-AzStorageMoverAzStorageContainerEndpoint.md @@ -211,23 +211,5 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## NOTES -ALIASES - -COMPLEX PARAMETER PROPERTIES - -To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. - - -`INPUTOBJECT `: Identity Parameter - - `[AgentName ]`: The name of the Agent resource. - - `[EndpointName ]`: The name of the Endpoint resource. - - `[Id ]`: Resource identity path - - `[JobDefinitionName ]`: The name of the Job Definition resource. - - `[JobRunName ]`: The name of the Job Run resource. - - `[ProjectName ]`: The name of the Project resource. - - `[ResourceGroupName ]`: The name of the resource group. The name is case insensitive. - - `[StorageMoverName ]`: The name of the Storage Mover resource. - - `[SubscriptionId ]`: The ID of the target subscription. - ## RELATED LINKS diff --git a/src/StorageMover/StorageMover.Autorest/docs/Update-AzStorageMoverJobDefinition.md b/src/StorageMover/StorageMover.Autorest/docs/Update-AzStorageMoverJobDefinition.md index d9b661ac04d0..fc41332c5ae8 100644 --- a/src/StorageMover/StorageMover.Autorest/docs/Update-AzStorageMoverJobDefinition.md +++ b/src/StorageMover/StorageMover.Autorest/docs/Update-AzStorageMoverJobDefinition.md @@ -297,28 +297,5 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## NOTES -ALIASES - -COMPLEX PARAMETER PROPERTIES - -To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. - - -`INPUTOBJECT `: Identity Parameter - - `[AgentName ]`: The name of the Agent resource. - - `[EndpointName ]`: The name of the Endpoint resource. - - `[Id ]`: Resource identity path - - `[JobDefinitionName ]`: The name of the Job Definition resource. - - `[JobRunName ]`: The name of the Job Run resource. - - `[ProjectName ]`: The name of the Project resource. - - `[ResourceGroupName ]`: The name of the resource group. The name is case insensitive. - - `[StorageMoverName ]`: The name of the Storage Mover resource. - - `[SubscriptionId ]`: The ID of the target subscription. - -`JOBDEFINITION `: The Job Definition resource. - - `[AgentName ]`: Name of the Agent to assign for new Job Runs of this Job Definition. - - `[CopyMode ]`: Strategy to use for copy. - - `[Description ]`: A description for the Job Definition. - ## RELATED LINKS diff --git a/src/StorageMover/StorageMover.Autorest/docs/Update-AzStorageMoverNfsEndpoint.md b/src/StorageMover/StorageMover.Autorest/docs/Update-AzStorageMoverNfsEndpoint.md index e21933028dcc..6e4d985c71fe 100644 --- a/src/StorageMover/StorageMover.Autorest/docs/Update-AzStorageMoverNfsEndpoint.md +++ b/src/StorageMover/StorageMover.Autorest/docs/Update-AzStorageMoverNfsEndpoint.md @@ -211,23 +211,5 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## NOTES -ALIASES - -COMPLEX PARAMETER PROPERTIES - -To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. - - -`INPUTOBJECT `: Identity Parameter - - `[AgentName ]`: The name of the Agent resource. - - `[EndpointName ]`: The name of the Endpoint resource. - - `[Id ]`: Resource identity path - - `[JobDefinitionName ]`: The name of the Job Definition resource. - - `[JobRunName ]`: The name of the Job Run resource. - - `[ProjectName ]`: The name of the Project resource. - - `[ResourceGroupName ]`: The name of the resource group. The name is case insensitive. - - `[StorageMoverName ]`: The name of the Storage Mover resource. - - `[SubscriptionId ]`: The ID of the target subscription. - ## RELATED LINKS diff --git a/src/StorageMover/StorageMover.Autorest/docs/Update-AzStorageMoverProject.md b/src/StorageMover/StorageMover.Autorest/docs/Update-AzStorageMoverProject.md index 0f506f8bf306..e71f63b0655e 100644 --- a/src/StorageMover/StorageMover.Autorest/docs/Update-AzStorageMoverProject.md +++ b/src/StorageMover/StorageMover.Autorest/docs/Update-AzStorageMoverProject.md @@ -238,26 +238,5 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## NOTES -ALIASES - -COMPLEX PARAMETER PROPERTIES - -To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. - - -`INPUTOBJECT `: Identity Parameter - - `[AgentName ]`: The name of the Agent resource. - - `[EndpointName ]`: The name of the Endpoint resource. - - `[Id ]`: Resource identity path - - `[JobDefinitionName ]`: The name of the Job Definition resource. - - `[JobRunName ]`: The name of the Job Run resource. - - `[ProjectName ]`: The name of the Project resource. - - `[ResourceGroupName ]`: The name of the resource group. The name is case insensitive. - - `[StorageMoverName ]`: The name of the Storage Mover resource. - - `[SubscriptionId ]`: The ID of the target subscription. - -`PROJECT `: The Project resource. - - `[Description ]`: A description for the Project. - ## RELATED LINKS diff --git a/src/StorageMover/StorageMover.Autorest/docs/Update-AzStorageMoverSmbEndpoint.md b/src/StorageMover/StorageMover.Autorest/docs/Update-AzStorageMoverSmbEndpoint.md index 7841490c9b7a..4655025fb0b7 100644 --- a/src/StorageMover/StorageMover.Autorest/docs/Update-AzStorageMoverSmbEndpoint.md +++ b/src/StorageMover/StorageMover.Autorest/docs/Update-AzStorageMoverSmbEndpoint.md @@ -280,23 +280,5 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## NOTES -ALIASES - -COMPLEX PARAMETER PROPERTIES - -To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. - - -`INPUTOBJECT `: Identity Parameter - - `[AgentName ]`: The name of the Agent resource. - - `[EndpointName ]`: The name of the Endpoint resource. - - `[Id ]`: Resource identity path - - `[JobDefinitionName ]`: The name of the Job Definition resource. - - `[JobRunName ]`: The name of the Job Run resource. - - `[ProjectName ]`: The name of the Project resource. - - `[ResourceGroupName ]`: The name of the resource group. The name is case insensitive. - - `[StorageMoverName ]`: The name of the Storage Mover resource. - - `[SubscriptionId ]`: The ID of the target subscription. - ## RELATED LINKS diff --git a/src/StorageMover/StorageMover.Autorest/examples/New-AzStorageMoverSmbFileShareEndpoint.md b/src/StorageMover/StorageMover.Autorest/examples/New-AzStorageMoverAzSmbFileShareEndpoint.md similarity index 80% rename from src/StorageMover/StorageMover.Autorest/examples/New-AzStorageMoverSmbFileShareEndpoint.md rename to src/StorageMover/StorageMover.Autorest/examples/New-AzStorageMoverAzSmbFileShareEndpoint.md index 6e1420c74ee3..cc93aeebef16 100644 --- a/src/StorageMover/StorageMover.Autorest/examples/New-AzStorageMoverSmbFileShareEndpoint.md +++ b/src/StorageMover/StorageMover.Autorest/examples/New-AzStorageMoverAzSmbFileShareEndpoint.md @@ -1,6 +1,6 @@ ### Example 1: Create an Smb file share endpoint ```powershell -New-AzStorageMoverSmbFileShareEndpoint -Name "myendpoint" -ResourceGroupName "myresourcegroup" -StorageMoverName "mystoragemover" -StorageAccountResourceId $accountresourceid -FileShareName testfs -Description "New smb file share endpoint" +New-AzStorageMoverAzSmbFileShareEndpoint -Name "myendpoint" -ResourceGroupName "myresourcegroup" -StorageMoverName "mystoragemover" -StorageAccountResourceId $accountresourceid -FileShareName testfs -Description "New smb file share endpoint" ``` ```output @@ -22,6 +22,4 @@ SystemDataLastModifiedByType : Application Type : microsoft.storagemover/storagemovers/endpoints ``` -This command creats a Smb file share endpoint - - +This command creats an Azure Storage SMB file share endpoint. diff --git a/src/StorageMover/StorageMover.Autorest/examples/Update-AzStorageMoverSmbFileShareEndpoint.md b/src/StorageMover/StorageMover.Autorest/examples/Update-AzStorageMoverAzSmbFileShareEndpoint.md similarity index 94% rename from src/StorageMover/StorageMover.Autorest/examples/Update-AzStorageMoverSmbFileShareEndpoint.md rename to src/StorageMover/StorageMover.Autorest/examples/Update-AzStorageMoverAzSmbFileShareEndpoint.md index 90233395d1b2..4a46938d1ece 100644 --- a/src/StorageMover/StorageMover.Autorest/examples/Update-AzStorageMoverSmbFileShareEndpoint.md +++ b/src/StorageMover/StorageMover.Autorest/examples/Update-AzStorageMoverAzSmbFileShareEndpoint.md @@ -22,7 +22,7 @@ SystemDataLastModifiedByType : Application Type : microsoft.storagemover/storagemovers/endpoints ``` -This command updates a Smb file share enpdoint's description by manual inputs. +This command updates an Azure Storage SMB file share enpdoint's description by manual inputs. ### Example 2: Update a Smb file share endpoint by pipeline ```powershell @@ -48,5 +48,5 @@ SystemDataLastModifiedByType : Application Type : microsoft.storagemover/storagemovers/endpoints ``` -This command updates a Smb file share endpoint's description by pipeline +This command updates an Azure Storage SMB file share endpoint's description by pipeline. diff --git a/src/StorageMover/StorageMover.Autorest/test/New-AzStorageMoverSmbFileShareEndpoint.Recording.json b/src/StorageMover/StorageMover.Autorest/test/New-AzStorageMoverAzSmbFileShareEndpoint.Recording.json similarity index 100% rename from src/StorageMover/StorageMover.Autorest/test/New-AzStorageMoverSmbFileShareEndpoint.Recording.json rename to src/StorageMover/StorageMover.Autorest/test/New-AzStorageMoverAzSmbFileShareEndpoint.Recording.json diff --git a/src/StorageMover/StorageMover.Autorest/test/New-AzStorageMoverSmbFileShareEndpoint.Tests.ps1 b/src/StorageMover/StorageMover.Autorest/test/New-AzStorageMoverAzSmbFileShareEndpoint.Tests.ps1 similarity index 83% rename from src/StorageMover/StorageMover.Autorest/test/New-AzStorageMoverSmbFileShareEndpoint.Tests.ps1 rename to src/StorageMover/StorageMover.Autorest/test/New-AzStorageMoverAzSmbFileShareEndpoint.Tests.ps1 index 3fb64c540695..f3293526a5ef 100644 --- a/src/StorageMover/StorageMover.Autorest/test/New-AzStorageMoverSmbFileShareEndpoint.Tests.ps1 +++ b/src/StorageMover/StorageMover.Autorest/test/New-AzStorageMoverAzSmbFileShareEndpoint.Tests.ps1 @@ -5,7 +5,7 @@ if(($null -eq $TestName) -or ($TestName -contains 'New-AzStorageMoverSmbFileShar $loadEnvPath = Join-Path $PSScriptRoot '..\loadEnv.ps1' } . ($loadEnvPath) - $TestRecordingFile = Join-Path $PSScriptRoot 'New-AzStorageMoverSmbFileShareEndpoint.Recording.json' + $TestRecordingFile = Join-Path $PSScriptRoot 'New-AzStorageMoverAzSmbFileShareEndpoint.Recording.json' $currentPath = $PSScriptRoot while(-not $mockingPath) { $mockingPath = Get-ChildItem -Path $currentPath -Recurse -Include 'HttpPipelineMocking.ps1' -File @@ -17,7 +17,7 @@ if(($null -eq $TestName) -or ($TestName -contains 'New-AzStorageMoverSmbFileShar Describe 'New/Update-AzStorageMoverSmbFileShareEndpoint' { It 'Create and update' { $endpointName = "fseendpoint1" + $env.RandomString - $fsendpoint = New-AzStorageMoverSmbFileShareEndpoint -Name $endpointName -ResourceGroupName $env.ResourceGroupName -StorageMoverName $env.InitialStoMoverName -StorageAccountResourceId $env.StoraccId -FileShareName "testfs" -Description "New smb file share endpoint" + $fsendpoint = New-AzStorageMoverAzSmbFileShareEndpoint -Name $endpointName -ResourceGroupName $env.ResourceGroupName -StorageMoverName $env.InitialStoMoverName -StorageAccountResourceId $env.StoraccId -FileShareName "testfs" -Description "New smb file share endpoint" $fsendpoint.Name | Should -Be $endpointName $fsendpoint.Property.EndpointType | Should -Be "AzureStorageSmbFileShare" $fsendpoint.Property.Description | Should -Be "New smb file share endpoint" @@ -31,7 +31,7 @@ Describe 'New/Update-AzStorageMoverSmbFileShareEndpoint' { $fsendpoint.Property.FileShareName | Should -Be "testfs" $fsendpoint.Property.StorageAccountResourceId | Should -Be $env.StoraccId - $fsendpoint = Update-AzStorageMoverSmbFileShareEndpoint -Name $endpointName -ResourceGroupName $env.ResourceGroupName -StorageMoverName $env.InitialStoMoverName -Description "updated file share endpoint" + $fsendpoint = Update-AzStorageMoverAzSmbFileShareEndpoint -Name $endpointName -ResourceGroupName $env.ResourceGroupName -StorageMoverName $env.InitialStoMoverName -Description "updated file share endpoint" $fsendpoint.Name | Should -Be $endpointName $fsendpoint.Property.EndpointType | Should -Be "AzureStorageSmbFileShare" $fsendpoint.Property.Description | Should -Be "updated file share endpoint" diff --git a/src/StorageMover/StorageMover.Autorest/test/Update-AzStorageMoverAzSmbFileShareEndpoint.Tests.ps1 b/src/StorageMover/StorageMover.Autorest/test/Update-AzStorageMoverAzSmbFileShareEndpoint.Tests.ps1 new file mode 100644 index 000000000000..16cc2f6a8df9 --- /dev/null +++ b/src/StorageMover/StorageMover.Autorest/test/Update-AzStorageMoverAzSmbFileShareEndpoint.Tests.ps1 @@ -0,0 +1,25 @@ +if(($null -eq $TestName) -or ($TestName -contains 'Update-AzStorageMoverAzSmbFileShareEndpoint')) +{ + $loadEnvPath = Join-Path $PSScriptRoot 'loadEnv.ps1' + if (-Not (Test-Path -Path $loadEnvPath)) { + $loadEnvPath = Join-Path $PSScriptRoot '..\loadEnv.ps1' + } + . ($loadEnvPath) + $TestRecordingFile = Join-Path $PSScriptRoot 'Update-AzStorageMoverAzSmbFileShareEndpoint.Recording.json' + $currentPath = $PSScriptRoot + while(-not $mockingPath) { + $mockingPath = Get-ChildItem -Path $currentPath -Recurse -Include 'HttpPipelineMocking.ps1' -File + $currentPath = Split-Path -Path $currentPath -Parent + } + . ($mockingPath | Select-Object -First 1).FullName +} + +Describe 'Update-AzStorageMoverAzSmbFileShareEndpoint' { + It 'UpdateExpanded' -skip { + { throw [System.NotImplementedException] } | Should -Not -Throw + } + + It 'UpdateViaIdentityExpanded' -skip { + { throw [System.NotImplementedException] } | Should -Not -Throw + } +} From b2018bda8c18e5bf48bc129fa2846e1d5222b11e Mon Sep 17 00:00:00 2001 From: Yifan Zhang Date: Thu, 14 Dec 2023 16:47:42 +0800 Subject: [PATCH 2/3] update remaining --- ...ewAzStorageMoverAzSmbFileShareEndpoint.ps1 | 4 +- ...teAzStorageMoverAzSmbFileShareEndpoint.ps1 | 4 +- ...ew-AzStorageMoverAzSmbFileShareEndpoint.md | 2 +- ...te-AzStorageMoverAzSmbFileShareEndpoint.md | 6 +- ...te-AzStorageMoverAzSmbFileShareEndpoint.md | 4 +- ...MoverAzSmbFileShareEndpoint.Recording.json | 168 +++++++++++++++++- ...orageMoverAzSmbFileShareEndpoint.Tests.ps1 | 33 +++- ...StorageMoverSmbFileShareEndpoint.Tests.ps1 | 6 +- 8 files changed, 208 insertions(+), 19 deletions(-) diff --git a/src/StorageMover/StorageMover.Autorest/custom/NewAzStorageMoverAzSmbFileShareEndpoint.ps1 b/src/StorageMover/StorageMover.Autorest/custom/NewAzStorageMoverAzSmbFileShareEndpoint.ps1 index 80c21a49ea07..efc563341019 100644 --- a/src/StorageMover/StorageMover.Autorest/custom/NewAzStorageMoverAzSmbFileShareEndpoint.ps1 +++ b/src/StorageMover/StorageMover.Autorest/custom/NewAzStorageMoverAzSmbFileShareEndpoint.ps1 @@ -20,7 +20,7 @@ Creates a Smb file share endpoint resource, which represents a data transfer sou .Description Creates a Smb file share endpoint resource, which represents a data transfer source or destination. .Example -New-AzStorageMoverSmbFileShareEndpoint -Name $endpointName -ResourceGroupName $rgname -StorageMoverName $storagemovername -StorageAccountResourceId $accountresourceid -FileShareName $fileshareName -Description "Description" +New-AzStorageMoverAzSmbFileShareEndpoint -Name $endpointName -ResourceGroupName $rgname -StorageMoverName $storagemovername -StorageAccountResourceId $accountresourceid -FileShareName $fileshareName -Description "Description" .Inputs Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IEndpoint @@ -34,7 +34,7 @@ COMPLEX PARAMETER PROPERTIES To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. .Link -https://learn.microsoft.com/powershell/module/az.storagemover/new-azstoragemoversmbfileshareendpoint +https://learn.microsoft.com/powershell/module/az.storagemover/new-azstoragemoverazsmbfileshareendpoint #> function New-AzStorageMoverAzSmbFileShareEndpoint { [OutputType([Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IEndpoint])] diff --git a/src/StorageMover/StorageMover.Autorest/custom/UpdateAzStorageMoverAzSmbFileShareEndpoint.ps1 b/src/StorageMover/StorageMover.Autorest/custom/UpdateAzStorageMoverAzSmbFileShareEndpoint.ps1 index 0a967716c6d3..b9cb3bded52b 100644 --- a/src/StorageMover/StorageMover.Autorest/custom/UpdateAzStorageMoverAzSmbFileShareEndpoint.ps1 +++ b/src/StorageMover/StorageMover.Autorest/custom/UpdateAzStorageMoverAzSmbFileShareEndpoint.ps1 @@ -22,7 +22,7 @@ Properties not specified in the request body will be unchanged. Updates properties for a SMB file share endpoint resource. Properties not specified in the request body will be unchanged. .Example -Update-AzStorageMoverSmbFileShareEndpoint -Name "myendpoint" -ResourceGroupName "myresourcegroup" -StorageMoverName "mystoragemover" -Description "updated endpoint" +Update-AzStorageMoverAzSmbFileShareEndpoint -Name "myendpoint" -ResourceGroupName "myresourcegroup" -StorageMoverName "mystoragemover" -Description "updated endpoint" .Inputs Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IEndpointBaseUpdateParameters @@ -51,7 +51,7 @@ INPUTOBJECT: Identity Parameter [SubscriptionId]: The ID of the target subscription. .Link -https://learn.microsoft.com/powershell/module/az.storagemover/update-azstoragemoversmbfileshareendpoint +https://learn.microsoft.com/powershell/module/az.storagemover/update-azstoragemoverazsmbfileshareendpoint #> function Update-AzStorageMoverAzSmbFileShareEndpoint { [OutputType([Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IEndpoint])] diff --git a/src/StorageMover/StorageMover.Autorest/docs/New-AzStorageMoverAzSmbFileShareEndpoint.md b/src/StorageMover/StorageMover.Autorest/docs/New-AzStorageMoverAzSmbFileShareEndpoint.md index 04a488c1135c..0ad56f825dfe 100644 --- a/src/StorageMover/StorageMover.Autorest/docs/New-AzStorageMoverAzSmbFileShareEndpoint.md +++ b/src/StorageMover/StorageMover.Autorest/docs/New-AzStorageMoverAzSmbFileShareEndpoint.md @@ -1,7 +1,7 @@ --- external help file: Module Name: Az.StorageMover -online version: https://learn.microsoft.com/powershell/module/az.storagemover/new-azstoragemoversmbfileshareendpoint +online version: https://learn.microsoft.com/powershell/module/az.storagemover/new-azstoragemoverazsmbfileshareendpoint schema: 2.0.0 --- diff --git a/src/StorageMover/StorageMover.Autorest/docs/Update-AzStorageMoverAzSmbFileShareEndpoint.md b/src/StorageMover/StorageMover.Autorest/docs/Update-AzStorageMoverAzSmbFileShareEndpoint.md index 5004a7419ebf..5d3088a5b2e8 100644 --- a/src/StorageMover/StorageMover.Autorest/docs/Update-AzStorageMoverAzSmbFileShareEndpoint.md +++ b/src/StorageMover/StorageMover.Autorest/docs/Update-AzStorageMoverAzSmbFileShareEndpoint.md @@ -1,7 +1,7 @@ --- external help file: Module Name: Az.StorageMover -online version: https://learn.microsoft.com/powershell/module/az.storagemover/update-azstoragemoversmbfileshareendpoint +online version: https://learn.microsoft.com/powershell/module/az.storagemover/update-azstoragemoverazsmbfileshareendpoint schema: 2.0.0 --- @@ -34,7 +34,7 @@ Properties not specified in the request body will be unchanged. ### Example 1: Update a Smb file share endpoint ```powershell -Update-AzStorageMoverSmbFileShareEndpoint -Name "myendpoint" -ResourceGroupName "myresourcegroup" -StorageMoverName "mystoragemover" -Description "updated endpoint" +Update-AzStorageMoverAzSmbFileShareEndpoint -Name "myendpoint" -ResourceGroupName "myresourcegroup" -StorageMoverName "mystoragemover" -Description "updated endpoint" ``` ```output @@ -60,7 +60,7 @@ This command updates an Azure Storage SMB file share enpdoint's description by m ### Example 2: Update a Smb file share endpoint by pipeline ```powershell -Get-AzStorageMoverEndpoint -ResourceGroupName "myresourcegroup" -StorageMoverName "mystoragemover" -Name "myendpoint" | Update-AzStorageMoverSmbFileShareEndpoint -Description "updated endpoint again" +Get-AzStorageMoverEndpoint -ResourceGroupName "myresourcegroup" -StorageMoverName "mystoragemover" -Name "myendpoint" | Update-AzStorageMoverAzSmbFileShareEndpoint -Description "updated endpoint again" ``` ```output diff --git a/src/StorageMover/StorageMover.Autorest/examples/Update-AzStorageMoverAzSmbFileShareEndpoint.md b/src/StorageMover/StorageMover.Autorest/examples/Update-AzStorageMoverAzSmbFileShareEndpoint.md index 4a46938d1ece..23959fb1041b 100644 --- a/src/StorageMover/StorageMover.Autorest/examples/Update-AzStorageMoverAzSmbFileShareEndpoint.md +++ b/src/StorageMover/StorageMover.Autorest/examples/Update-AzStorageMoverAzSmbFileShareEndpoint.md @@ -1,6 +1,6 @@ ### Example 1: Update a Smb file share endpoint ```powershell -Update-AzStorageMoverSmbFileShareEndpoint -Name "myendpoint" -ResourceGroupName "myresourcegroup" -StorageMoverName "mystoragemover" -Description "updated endpoint" +Update-AzStorageMoverAzSmbFileShareEndpoint -Name "myendpoint" -ResourceGroupName "myresourcegroup" -StorageMoverName "mystoragemover" -Description "updated endpoint" ``` ```output @@ -26,7 +26,7 @@ This command updates an Azure Storage SMB file share enpdoint's description by m ### Example 2: Update a Smb file share endpoint by pipeline ```powershell -Get-AzStorageMoverEndpoint -ResourceGroupName "myresourcegroup" -StorageMoverName "mystoragemover" -Name "myendpoint" | Update-AzStorageMoverSmbFileShareEndpoint -Description "updated endpoint again" +Get-AzStorageMoverEndpoint -ResourceGroupName "myresourcegroup" -StorageMoverName "mystoragemover" -Name "myendpoint" | Update-AzStorageMoverAzSmbFileShareEndpoint -Description "updated endpoint again" ``` ```output diff --git a/src/StorageMover/StorageMover.Autorest/test/New-AzStorageMoverAzSmbFileShareEndpoint.Recording.json b/src/StorageMover/StorageMover.Autorest/test/New-AzStorageMoverAzSmbFileShareEndpoint.Recording.json index 6d6c5b892907..57a927ffb364 100644 --- a/src/StorageMover/StorageMover.Autorest/test/New-AzStorageMoverAzSmbFileShareEndpoint.Recording.json +++ b/src/StorageMover/StorageMover.Autorest/test/New-AzStorageMoverAzSmbFileShareEndpoint.Recording.json @@ -1,5 +1,5 @@ { - "New/Update-AzStorageMoverSmbFileShareEndpoint+[NoContext]+Create and update+$PUT+https://management.azure.com/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/teststoragemover/providers/Microsoft.StorageMover/storageMovers/testStoMover1hc715gxy/endpoints/fseendpoint1hc715gxy?api-version=2023-10-01+1": { + "New/Update-AzStorageMoverAzSmbFileShareEndpoint+[NoContext]+Create and update+$PUT+https://management.azure.com/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/teststoragemover/providers/Microsoft.StorageMover/storageMovers/testStoMover1hc715gxy/endpoints/fseendpoint1hc715gxy?api-version=2023-10-01+1": { "Request": { "Method": "PUT", "RequestUri": "https://management.azure.com/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/teststoragemover/providers/Microsoft.StorageMover/storageMovers/testStoMover1hc715gxy/endpoints/fseendpoint1hc715gxy?api-version=2023-10-01", @@ -37,7 +37,45 @@ "isContentBase64": false } }, - "New/Update-AzStorageMoverSmbFileShareEndpoint+[NoContext]+Create and update+$GET+https://management.azure.com/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/teststoragemover/providers/Microsoft.StorageMover/storageMovers/testStoMover1hc715gxy/endpoints/fseendpoint1hc715gxy?api-version=2023-10-01+2": { + "New/Update-AzStorageMoverAzSmbFileShareEndpoint+[NoContext]+Create and update+$PUT+https://management.azure.com/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/teststoragemover/providers/Microsoft.StorageMover/storageMovers/testStoMover1hc715gxy/endpoints/fseendpoint2hc715gxy?api-version=2023-10-01+2": { + "Request": { + "Method": "PUT", + "RequestUri": "https://management.azure.com/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/teststoragemover/providers/Microsoft.StorageMover/storageMovers/testStoMover2hc715gxy/endpoints/fseendpoint2hc715gxy?api-version=2023-10-01", + "Content": "{\r\n \"properties\": {\r\n \"endpointType\": \"AzureStorageSmbFileShare\",\r\n \"description\": \"New smb file share endpoint\",\r\n \"storageAccountResourceId\": \"/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/teststoragemover/providers/Microsoft.Storage/storageAccounts/storacchc715gxy\",\r\n \"fileShareName\": \"testfs\"\r\n }\r\n}", + "isContentBase64": false, + "Headers": { + }, + "ContentHeaders": { + "Content-Type": [ "application/json" ], + "Content-Length": [ "339" ] + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "ETag": [ "\"2d011c48-0000-3400-0000-64ba09a10000\"" ], + "x-ms-ratelimit-remaining-subscription-writes": [ "1191" ], + "x-ms-providerhub-traffic": [ "True" ], + "mise-correlation-id": [ "e2ca2827-3c7e-4a2e-808e-13d705e41049" ], + "x-ms-request-id": [ "e186296f-e455-44e8-9af2-5c510c5aaf96" ], + "x-ms-correlation-request-id": [ "fed03c95-e2aa-49e8-b6ee-816a857127d7" ], + "x-ms-routing-request-id": [ "EASTUS2EUAP:20230721T042921Z:fed03c95-e2aa-49e8-b6ee-816a857127d7" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Fri, 21 Jul 2023 04:29:21 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "887" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"id\":\"/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/teststoragemover/providers/Microsoft.StorageMover/storageMovers/testStoMover1hc715gxy/endpoints/fseendpoint2hc715gxy\",\"name\":\"fseendpoint2hc715gxy\",\"type\":\"microsoft.storagemover/storagemovers/endpoints\",\"systemData\":{\"createdBy\":\"a000255f-5f09-45e0-a970-9d9ed9cc6453\",\"createdByType\":\"Application\",\"createdAt\":\"2023-07-21T04:29:21.5382807Z\",\"lastModifiedBy\":\"a000255f-5f09-45e0-a970-9d9ed9cc6453\",\"lastModifiedByType\":\"Application\",\"lastModifiedAt\":\"2023-07-21T04:29:21.5382807Z\"},\"properties\":{\"storageAccountResourceId\":\"/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/teststoragemover/providers/Microsoft.Storage/storageAccounts/storacchc715gxy\",\"fileShareName\":\"testfs\",\"endpointType\":\"AzureStorageSmbFileShare\",\"description\":\"New smb file share endpoint\",\"provisioningState\":\"Succeeded\"}}", + "isContentBase64": false + } + }, + "New/Update-AzStorageMoverAzSmbFileShareEndpoint+[NoContext]+Create and update+$GET+https://management.azure.com/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/teststoragemover/providers/Microsoft.StorageMover/storageMovers/testStoMover1hc715gxy/endpoints/fseendpoint1hc715gxy?api-version=2023-10-01+3": { "Request": { "Method": "GET", "RequestUri": "https://management.azure.com/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/teststoragemover/providers/Microsoft.StorageMover/storageMovers/testStoMover1hc715gxy/endpoints/fseendpoint1hc715gxy?api-version=2023-10-01", @@ -79,7 +117,49 @@ "isContentBase64": false } }, - "New/Update-AzStorageMoverSmbFileShareEndpoint+[NoContext]+Create and update+$PATCH+https://management.azure.com/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/teststoragemover/providers/Microsoft.StorageMover/storageMovers/testStoMover1hc715gxy/endpoints/fseendpoint1hc715gxy?api-version=2023-10-01+3": { + "New/Update-AzStorageMoverAzSmbFileShareEndpoint+[NoContext]+Create and update+$GET+https://management.azure.com/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/teststoragemover/providers/Microsoft.StorageMover/storageMovers/testStoMover1hc715gxy/endpoints/fseendpoint2hc715gxy?api-version=2023-10-01+4": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/teststoragemover/providers/Microsoft.StorageMover/storageMovers/testStoMover1hc715gxy/endpoints/fseendpoint2hc715gxy?api-version=2023-10-01", + "Content": null, + "isContentBase64": false, + "Headers": { + "x-ms-unique-id": [ "28" ], + "x-ms-client-request-id": [ "eab0c0d7-cff6-4579-a7e2-86846f4799bd" ], + "CommandName": [ "Get-AzStorageMoverEndpoint" ], + "FullCommandName": [ "Get-AzStorageMoverEndpoint_Get" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.2.12", "Az.StorageMover/1.0.1" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "ETag": [ "\"2d011c48-0000-3400-0000-64ba09a10000\"" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11983" ], + "x-ms-providerhub-traffic": [ "True" ], + "x-ms-request-id": [ "72a4ab1c-2a83-43d2-907c-d548019c4070" ], + "x-ms-correlation-request-id": [ "ebb30065-2430-421c-a32d-b594686cd04e" ], + "x-ms-routing-request-id": [ "EASTUS2EUAP:20230721T042922Z:ebb30065-2430-421c-a32d-b594686cd04e" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Fri, 21 Jul 2023 04:29:22 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "887" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"id\":\"/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/teststoragemover/providers/Microsoft.StorageMover/storageMovers/testStoMover1hc715gxy/endpoints/fseendpoint2hc715gxy\",\"name\":\"fseendpoint2hc715gxy\",\"type\":\"microsoft.storagemover/storagemovers/endpoints\",\"systemData\":{\"createdBy\":\"a000255f-5f09-45e0-a970-9d9ed9cc6453\",\"createdByType\":\"Application\",\"createdAt\":\"2023-07-21T04:29:21.5382807Z\",\"lastModifiedBy\":\"a000255f-5f09-45e0-a970-9d9ed9cc6453\",\"lastModifiedByType\":\"Application\",\"lastModifiedAt\":\"2023-07-21T04:29:21.5382807Z\"},\"properties\":{\"storageAccountResourceId\":\"/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/teststoragemover/providers/Microsoft.Storage/storageAccounts/storacchc715gxy\",\"fileShareName\":\"testfs\",\"endpointType\":\"AzureStorageSmbFileShare\",\"description\":\"New smb file share endpoint\",\"provisioningState\":\"Succeeded\"}}", + "isContentBase64": false + } + }, + "New/Update-AzStorageMoverAzSmbFileShareEndpoint+[NoContext]+Create and update+$PATCH+https://management.azure.com/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/teststoragemover/providers/Microsoft.StorageMover/storageMovers/testStoMover1hc715gxy/endpoints/fseendpoint1hc715gxy?api-version=2023-10-01+5": { "Request": { "Method": "PATCH", "RequestUri": "https://management.azure.com/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/teststoragemover/providers/Microsoft.StorageMover/storageMovers/testStoMover1hc715gxy/endpoints/fseendpoint1hc715gxy?api-version=2023-10-01", @@ -117,7 +197,45 @@ "isContentBase64": false } }, - "New/Update-AzStorageMoverSmbFileShareEndpoint+[NoContext]+Create and update+$GET+https://management.azure.com/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/teststoragemover/providers/Microsoft.StorageMover/storageMovers/testStoMover1hc715gxy/endpoints/fseendpoint1hc715gxy?api-version=2023-10-01+4": { + "New/Update-AzStorageMoverAzSmbFileShareEndpoint+[NoContext]+Create and update+$PATCH+https://management.azure.com/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/teststoragemover/providers/Microsoft.StorageMover/storageMovers/testStoMover1hc715gxy/endpoints/fseendpoint2hc715gxy?api-version=2023-10-01+6": { + "Request": { + "Method": "PATCH", + "RequestUri": "https://management.azure.com/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/teststoragemover/providers/Microsoft.StorageMover/storageMovers/testStoMover1hc715gxy/endpoints/fseendpoint2hc715gxy?api-version=2023-10-01", + "Content": "{\r\n \"properties\": {\r\n \"endpointType\": \"AzureStorageSmbFileShare\",\r\n \"description\": \"updated file share endpoint\"\r\n }\r\n}", + "isContentBase64": false, + "Headers": { + }, + "ContentHeaders": { + "Content-Type": [ "application/json" ], + "Content-Length": [ "127" ] + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "ETag": [ "\"2d011e48-0000-3400-0000-64ba09a30000\"" ], + "x-ms-ratelimit-remaining-subscription-writes": [ "1190" ], + "x-ms-providerhub-traffic": [ "True" ], + "mise-correlation-id": [ "e95db91d-a025-43c8-ad7e-c8c1fef0ae2a" ], + "x-ms-request-id": [ "968c861f-53fc-4d13-84a6-7ebcf88e590f" ], + "x-ms-correlation-request-id": [ "b0e3a516-516a-478c-b8f9-4b373e973817" ], + "x-ms-routing-request-id": [ "EASTUS2EUAP:20230721T042923Z:b0e3a516-516a-478c-b8f9-4b373e973817" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Fri, 21 Jul 2023 04:29:22 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "887" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"id\":\"/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/teststoragemover/providers/Microsoft.StorageMover/storageMovers/testStoMover1hc715gxy/endpoints/fseendpoint2hc715gxy\",\"name\":\"fseendpoint2hc715gxy\",\"type\":\"microsoft.storagemover/storagemovers/endpoints\",\"systemData\":{\"createdBy\":\"a000255f-5f09-45e0-a970-9d9ed9cc6453\",\"createdByType\":\"Application\",\"createdAt\":\"2023-07-21T04:29:21.5382807Z\",\"lastModifiedBy\":\"a000255f-5f09-45e0-a970-9d9ed9cc6453\",\"lastModifiedByType\":\"Application\",\"lastModifiedAt\":\"2023-07-21T04:29:23.3351405Z\"},\"properties\":{\"storageAccountResourceId\":\"/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/teststoragemover/providers/Microsoft.Storage/storageAccounts/storacchc715gxy\",\"fileShareName\":\"testfs\",\"endpointType\":\"AzureStorageSmbFileShare\",\"description\":\"updated file share endpoint\",\"provisioningState\":\"Succeeded\"}}", + "isContentBase64": false + } + }, + "New/Update-AzStorageMoverAzSmbFileShareEndpoint+[NoContext]+Create and update+$GET+https://management.azure.com/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/teststoragemover/providers/Microsoft.StorageMover/storageMovers/testStoMover1hc715gxy/endpoints/fseendpoint1hc715gxy?api-version=2023-10-01+7": { "Request": { "Method": "GET", "RequestUri": "https://management.azure.com/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/teststoragemover/providers/Microsoft.StorageMover/storageMovers/testStoMover1hc715gxy/endpoints/fseendpoint1hc715gxy?api-version=2023-10-01", @@ -158,5 +276,47 @@ "Content": "{\"id\":\"/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/teststoragemover/providers/Microsoft.StorageMover/storageMovers/testStoMover1hc715gxy/endpoints/fseendpoint1hc715gxy\",\"name\":\"fseendpoint1hc715gxy\",\"type\":\"microsoft.storagemover/storagemovers/endpoints\",\"systemData\":{\"createdBy\":\"a000255f-5f09-45e0-a970-9d9ed9cc6453\",\"createdByType\":\"Application\",\"createdAt\":\"2023-07-21T04:29:21.5382807Z\",\"lastModifiedBy\":\"a000255f-5f09-45e0-a970-9d9ed9cc6453\",\"lastModifiedByType\":\"Application\",\"lastModifiedAt\":\"2023-07-21T04:29:23.3351405Z\"},\"properties\":{\"storageAccountResourceId\":\"/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/teststoragemover/providers/Microsoft.Storage/storageAccounts/storacchc715gxy\",\"fileShareName\":\"testfs\",\"endpointType\":\"AzureStorageSmbFileShare\",\"description\":\"updated file share endpoint\",\"provisioningState\":\"Succeeded\"}}", "isContentBase64": false } + }, + "New/Update-AzStorageMoverAzSmbFileShareEndpoint+[NoContext]+Create and update+$GET+https://management.azure.com/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/teststoragemover/providers/Microsoft.StorageMover/storageMovers/testStoMover1hc715gxy/endpoints/fseendpoint2hc715gxy?api-version=2023-10-01+8": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/teststoragemover/providers/Microsoft.StorageMover/storageMovers/testStoMover1hc715gxy/endpoints/fseendpoint2hc715gxy?api-version=2023-10-01", + "Content": null, + "isContentBase64": false, + "Headers": { + "x-ms-unique-id": [ "30" ], + "x-ms-client-request-id": [ "85576754-82ea-4f57-8474-d454a6b94cb6" ], + "CommandName": [ "Get-AzStorageMoverEndpoint" ], + "FullCommandName": [ "Get-AzStorageMoverEndpoint_Get" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.2.12", "Az.StorageMover/1.0.1" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "ETag": [ "\"2d011e48-0000-3400-0000-64ba09a30000\"" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11982" ], + "x-ms-providerhub-traffic": [ "True" ], + "x-ms-request-id": [ "8ce80585-3365-4d04-a990-11f76a56b502" ], + "x-ms-correlation-request-id": [ "d6eb34a0-daad-44d3-88cc-469f0299c03c" ], + "x-ms-routing-request-id": [ "EASTUS2EUAP:20230721T042924Z:d6eb34a0-daad-44d3-88cc-469f0299c03c" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Fri, 21 Jul 2023 04:29:24 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "887" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"id\":\"/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/teststoragemover/providers/Microsoft.StorageMover/storageMovers/testStoMover1hc715gxy/endpoints/fseendpoint2hc715gxy\",\"name\":\"fseendpoint2hc715gxy\",\"type\":\"microsoft.storagemover/storagemovers/endpoints\",\"systemData\":{\"createdBy\":\"a000255f-5f09-45e0-a970-9d9ed9cc6453\",\"createdByType\":\"Application\",\"createdAt\":\"2023-07-21T04:29:21.5382807Z\",\"lastModifiedBy\":\"a000255f-5f09-45e0-a970-9d9ed9cc6453\",\"lastModifiedByType\":\"Application\",\"lastModifiedAt\":\"2023-07-21T04:29:23.3351405Z\"},\"properties\":{\"storageAccountResourceId\":\"/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/teststoragemover/providers/Microsoft.Storage/storageAccounts/storacchc715gxy\",\"fileShareName\":\"testfs\",\"endpointType\":\"AzureStorageSmbFileShare\",\"description\":\"updated file share endpoint\",\"provisioningState\":\"Succeeded\"}}", + "isContentBase64": false + } } } \ No newline at end of file diff --git a/src/StorageMover/StorageMover.Autorest/test/New-AzStorageMoverAzSmbFileShareEndpoint.Tests.ps1 b/src/StorageMover/StorageMover.Autorest/test/New-AzStorageMoverAzSmbFileShareEndpoint.Tests.ps1 index f3293526a5ef..a9bccbd6988f 100644 --- a/src/StorageMover/StorageMover.Autorest/test/New-AzStorageMoverAzSmbFileShareEndpoint.Tests.ps1 +++ b/src/StorageMover/StorageMover.Autorest/test/New-AzStorageMoverAzSmbFileShareEndpoint.Tests.ps1 @@ -1,4 +1,4 @@ -if(($null -eq $TestName) -or ($TestName -contains 'New-AzStorageMoverSmbFileShareEndpoint')) +if(($null -eq $TestName) -or ($TestName -contains 'New/Update-AzStorageMoverAzSmbFileShareEndpoint')) { $loadEnvPath = Join-Path $PSScriptRoot 'loadEnv.ps1' if (-Not (Test-Path -Path $loadEnvPath)) { @@ -14,7 +14,7 @@ if(($null -eq $TestName) -or ($TestName -contains 'New-AzStorageMoverSmbFileShar . ($mockingPath | Select-Object -First 1).FullName } -Describe 'New/Update-AzStorageMoverSmbFileShareEndpoint' { +Describe 'New/Update-AzStorageMoverAzSmbFileShareEndpoint' { It 'Create and update' { $endpointName = "fseendpoint1" + $env.RandomString $fsendpoint = New-AzStorageMoverAzSmbFileShareEndpoint -Name $endpointName -ResourceGroupName $env.ResourceGroupName -StorageMoverName $env.InitialStoMoverName -StorageAccountResourceId $env.StoraccId -FileShareName "testfs" -Description "New smb file share endpoint" @@ -23,6 +23,14 @@ Describe 'New/Update-AzStorageMoverSmbFileShareEndpoint' { $fsendpoint.Property.Description | Should -Be "New smb file share endpoint" $fsendpoint.Property.FileShareName | Should -Be "testfs" $fsendpoint.Property.StorageAccountResourceId | Should -Be $env.StoraccId + + $endpointName2 = "fseendpoint2" + $env.RandomString + $fsendpoint = New-AzStorageMoverSmbFileShareEndpoint -Name $endpointName2 -ResourceGroupName $env.ResourceGroupName -StorageMoverName $env.InitialStoMoverName -StorageAccountResourceId $env.StoraccId -FileShareName "testfs" -Description "New smb file share endpoint" + $fsendpoint.Name | Should -Be $endpointName2 + $fsendpoint.Property.EndpointType | Should -Be "AzureStorageSmbFileShare" + $fsendpoint.Property.Description | Should -Be "New smb file share endpoint" + $fsendpoint.Property.FileShareName | Should -Be "testfs" + $fsendpoint.Property.StorageAccountResourceId | Should -Be $env.StoraccId $fsendpoint = Get-AzStorageMoverEndpoint -Name $endpointName -ResourceGroupName $env.ResourceGroupName -StorageMoverName $env.InitialStoMoverName $fsendpoint.Name | Should -Be $endpointName @@ -31,6 +39,13 @@ Describe 'New/Update-AzStorageMoverSmbFileShareEndpoint' { $fsendpoint.Property.FileShareName | Should -Be "testfs" $fsendpoint.Property.StorageAccountResourceId | Should -Be $env.StoraccId + $fsendpoint = Get-AzStorageMoverEndpoint -Name $endpointName2 -ResourceGroupName $env.ResourceGroupName -StorageMoverName $env.InitialStoMoverName + $fsendpoint.Name | Should -Be $endpointName2 + $fsendpoint.Property.EndpointType | Should -Be "AzureStorageSmbFileShare" + $fsendpoint.Property.Description | Should -Be "New smb file share endpoint" + $fsendpoint.Property.FileShareName | Should -Be "testfs" + $fsendpoint.Property.StorageAccountResourceId | Should -Be $env.StoraccId + $fsendpoint = Update-AzStorageMoverAzSmbFileShareEndpoint -Name $endpointName -ResourceGroupName $env.ResourceGroupName -StorageMoverName $env.InitialStoMoverName -Description "updated file share endpoint" $fsendpoint.Name | Should -Be $endpointName $fsendpoint.Property.EndpointType | Should -Be "AzureStorageSmbFileShare" @@ -38,11 +53,25 @@ Describe 'New/Update-AzStorageMoverSmbFileShareEndpoint' { $fsendpoint.Property.FileShareName | Should -Be "testfs" $fsendpoint.Property.StorageAccountResourceId | Should -Be $env.StoraccId + $fsendpoint = Update-AzStorageMoverSmbFileShareEndpoint -Name $endpointName2 -ResourceGroupName $env.ResourceGroupName -StorageMoverName $env.InitialStoMoverName -Description "updated file share endpoint" + $fsendpoint.Name | Should -Be $endpointName2 + $fsendpoint.Property.EndpointType | Should -Be "AzureStorageSmbFileShare" + $fsendpoint.Property.Description | Should -Be "updated file share endpoint" + $fsendpoint.Property.FileShareName | Should -Be "testfs" + $fsendpoint.Property.StorageAccountResourceId | Should -Be $env.StoraccId + $fsendpoint = Get-AzStorageMoverEndpoint -Name $endpointName -ResourceGroupName $env.ResourceGroupName -StorageMoverName $env.InitialStoMoverName $fsendpoint.Name | Should -Be $endpointName $fsendpoint.Property.EndpointType | Should -Be "AzureStorageSmbFileShare" $fsendpoint.Property.Description | Should -Be "updated file share endpoint" $fsendpoint.Property.FileShareName | Should -Be "testfs" $fsendpoint.Property.StorageAccountResourceId | Should -Be $env.StoraccId + + $fsendpoint = Get-AzStorageMoverEndpoint -Name $endpointName2 -ResourceGroupName $env.ResourceGroupName -StorageMoverName $env.InitialStoMoverName + $fsendpoint.Name | Should -Be $endpointName2 + $fsendpoint.Property.EndpointType | Should -Be "AzureStorageSmbFileShare" + $fsendpoint.Property.Description | Should -Be "updated file share endpoint" + $fsendpoint.Property.FileShareName | Should -Be "testfs" + $fsendpoint.Property.StorageAccountResourceId | Should -Be $env.StoraccId } } diff --git a/src/StorageMover/StorageMover.Autorest/test/Update-AzStorageMoverSmbFileShareEndpoint.Tests.ps1 b/src/StorageMover/StorageMover.Autorest/test/Update-AzStorageMoverSmbFileShareEndpoint.Tests.ps1 index 284a450b908b..16cc2f6a8df9 100644 --- a/src/StorageMover/StorageMover.Autorest/test/Update-AzStorageMoverSmbFileShareEndpoint.Tests.ps1 +++ b/src/StorageMover/StorageMover.Autorest/test/Update-AzStorageMoverSmbFileShareEndpoint.Tests.ps1 @@ -1,11 +1,11 @@ -if(($null -eq $TestName) -or ($TestName -contains 'Update-AzStorageMoverSmbFileShareEndpoint')) +if(($null -eq $TestName) -or ($TestName -contains 'Update-AzStorageMoverAzSmbFileShareEndpoint')) { $loadEnvPath = Join-Path $PSScriptRoot 'loadEnv.ps1' if (-Not (Test-Path -Path $loadEnvPath)) { $loadEnvPath = Join-Path $PSScriptRoot '..\loadEnv.ps1' } . ($loadEnvPath) - $TestRecordingFile = Join-Path $PSScriptRoot 'Update-AzStorageMoverSmbFileShareEndpoint.Recording.json' + $TestRecordingFile = Join-Path $PSScriptRoot 'Update-AzStorageMoverAzSmbFileShareEndpoint.Recording.json' $currentPath = $PSScriptRoot while(-not $mockingPath) { $mockingPath = Get-ChildItem -Path $currentPath -Recurse -Include 'HttpPipelineMocking.ps1' -File @@ -14,7 +14,7 @@ if(($null -eq $TestName) -or ($TestName -contains 'Update-AzStorageMoverSmbFileS . ($mockingPath | Select-Object -First 1).FullName } -Describe 'Update-AzStorageMoverSmbFileShareEndpoint' { +Describe 'Update-AzStorageMoverAzSmbFileShareEndpoint' { It 'UpdateExpanded' -skip { { throw [System.NotImplementedException] } | Should -Not -Throw } From 651a299f0f6f68b28fea5ac7a59b45aa0357cef0 Mon Sep 17 00:00:00 2001 From: Yifan Zhang Date: Thu, 14 Dec 2023 16:54:42 +0800 Subject: [PATCH 3/3] Remove old test file --- ...StorageMoverSmbFileShareEndpoint.Tests.ps1 | 25 ------------------- 1 file changed, 25 deletions(-) delete mode 100644 src/StorageMover/StorageMover.Autorest/test/Update-AzStorageMoverSmbFileShareEndpoint.Tests.ps1 diff --git a/src/StorageMover/StorageMover.Autorest/test/Update-AzStorageMoverSmbFileShareEndpoint.Tests.ps1 b/src/StorageMover/StorageMover.Autorest/test/Update-AzStorageMoverSmbFileShareEndpoint.Tests.ps1 deleted file mode 100644 index 16cc2f6a8df9..000000000000 --- a/src/StorageMover/StorageMover.Autorest/test/Update-AzStorageMoverSmbFileShareEndpoint.Tests.ps1 +++ /dev/null @@ -1,25 +0,0 @@ -if(($null -eq $TestName) -or ($TestName -contains 'Update-AzStorageMoverAzSmbFileShareEndpoint')) -{ - $loadEnvPath = Join-Path $PSScriptRoot 'loadEnv.ps1' - if (-Not (Test-Path -Path $loadEnvPath)) { - $loadEnvPath = Join-Path $PSScriptRoot '..\loadEnv.ps1' - } - . ($loadEnvPath) - $TestRecordingFile = Join-Path $PSScriptRoot 'Update-AzStorageMoverAzSmbFileShareEndpoint.Recording.json' - $currentPath = $PSScriptRoot - while(-not $mockingPath) { - $mockingPath = Get-ChildItem -Path $currentPath -Recurse -Include 'HttpPipelineMocking.ps1' -File - $currentPath = Split-Path -Path $currentPath -Parent - } - . ($mockingPath | Select-Object -First 1).FullName -} - -Describe 'Update-AzStorageMoverAzSmbFileShareEndpoint' { - It 'UpdateExpanded' -skip { - { throw [System.NotImplementedException] } | Should -Not -Throw - } - - It 'UpdateViaIdentityExpanded' -skip { - { throw [System.NotImplementedException] } | Should -Not -Throw - } -}