diff --git a/src/StorageMover/Az.StorageMover.format.ps1xml b/src/StorageMover/Az.StorageMover.format.ps1xml index d2491df3ce20..875485a964af 100644 --- a/src/StorageMover/Az.StorageMover.format.ps1xml +++ b/src/StorageMover/Az.StorageMover.format.ps1xml @@ -2,9 +2,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.ErrorDetail + Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.ErrorDetail - Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.ErrorDetail + Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.ErrorDetail @@ -36,9 +36,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.Operation + Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.Operation - Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.Operation + Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.Operation @@ -76,9 +76,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.OperationDisplay + Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.OperationDisplay - Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.OperationDisplay + Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.OperationDisplay @@ -116,9 +116,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.OperationListResult + Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.OperationListResult - Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.OperationListResult + Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.OperationListResult @@ -138,15 +138,33 @@ - Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.ProxyResource + Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.ProxyResource - Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.ProxyResource + Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.ProxyResource + + + + + + + + + + + + + + + + + + @@ -154,15 +172,33 @@ Name + + SystemDataCreatedAt + + + SystemDataCreatedBy + + + SystemDataCreatedByType + + + SystemDataLastModifiedAt + + + SystemDataLastModifiedBy + + + SystemDataLastModifiedByType + - Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.Resource + Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.Resource - Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.Resource + Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.Resource @@ -182,9 +218,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.SystemData + Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.SystemData - Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.SystemData + Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.SystemData @@ -234,15 +270,33 @@ - Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.TrackedResource + Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.TrackedResource - Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.TrackedResource + Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.TrackedResource + + + + + + + + + + + + + + + + + + @@ -253,6 +307,24 @@ Name + + SystemDataCreatedAt + + + SystemDataCreatedBy + + + SystemDataCreatedByType + + + SystemDataLastModifiedAt + + + SystemDataLastModifiedBy + + + SystemDataLastModifiedByType + Location @@ -262,9 +334,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.TrackedResourceTags + Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.TrackedResourceTags - Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.TrackedResourceTags + Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.TrackedResourceTags @@ -284,9 +356,37 @@ - Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.StorageMoverUpdateParametersTags + Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.AzureKeyVaultSmbCredentials + + Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.AzureKeyVaultSmbCredentials + + + + + + + + + + + + + + + PasswordUri + + + UsernameUri + + + + + + + + Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.StorageMoverUpdateParametersTags - Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.StorageMoverUpdateParametersTags + Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.StorageMoverUpdateParametersTags diff --git a/src/StorageMover/Az.StorageMover.psd1 b/src/StorageMover/Az.StorageMover.psd1 index 271c27026129..444e7b8b81c6 100644 --- a/src/StorageMover/Az.StorageMover.psd1 +++ b/src/StorageMover/Az.StorageMover.psd1 @@ -3,7 +3,7 @@ # # Generated by: Microsoft Corporation # -# Generated on: 06/29/2023 +# Generated on: 10/19/2023 # @{ @@ -75,7 +75,8 @@ FunctionsToExport = 'Get-AzStorageMover', 'Get-AzStorageMoverAgent', 'New-AzStorageMover', 'New-AzStorageMoverAzStorageContainerEndpoint', 'New-AzStorageMoverJobDefinition', 'New-AzStorageMoverNfsEndpoint', - 'New-AzStorageMoverProject', 'Remove-AzStorageMover', + 'New-AzStorageMoverProject', 'New-AzStorageMoverSmbEndpoint', + 'New-AzStorageMoverSmbFileShareEndpoint', 'Remove-AzStorageMover', 'Remove-AzStorageMoverEndpoint', 'Remove-AzStorageMoverJobDefinition', 'Remove-AzStorageMoverProject', 'Start-AzStorageMoverJobDefinition', @@ -84,7 +85,9 @@ FunctionsToExport = 'Get-AzStorageMover', 'Get-AzStorageMoverAgent', 'Update-AzStorageMoverAgent', 'Update-AzStorageMoverAzStorageContainerEndpoint', 'Update-AzStorageMoverJobDefinition', - 'Update-AzStorageMoverNfsEndpoint', 'Update-AzStorageMoverProject' + 'Update-AzStorageMoverNfsEndpoint', 'Update-AzStorageMoverProject', + 'Update-AzStorageMoverSmbEndpoint', + 'Update-AzStorageMoverSmbFileShareEndpoint' # Cmdlets to export from this module, for best performance, do not use wildcards and do not delete the entry, use an empty array if there are no cmdlets to export. CmdletsToExport = @() @@ -122,7 +125,7 @@ PrivateData = @{ # IconUri = '' # ReleaseNotes of this module - ReleaseNotes = '* Fixed the issue of System.Management.Automation.Internal.Host.InternalHost conflicting with system parameter System.Management.Automation.Internal.Host.InternalHost' + # ReleaseNotes = '' # Prerelease string of this module # Prerelease = '' diff --git a/src/StorageMover/ChangeLog.md b/src/StorageMover/ChangeLog.md index 5f416e133a11..38e074ba2f41 100644 --- a/src/StorageMover/ChangeLog.md +++ b/src/StorageMover/ChangeLog.md @@ -18,6 +18,7 @@ - Additional information about change #1 --> ## Upcoming Release +* Supported SmbFileShareEndpoint and SmbEndpoint ## Version 1.0.1 * Fixed the issue of $Host conflicting with system parameter $Host diff --git a/src/StorageMover/README.md b/src/StorageMover/README.md index 8b8d6f200a22..006dd660c507 100644 --- a/src/StorageMover/README.md +++ b/src/StorageMover/README.md @@ -31,15 +31,15 @@ For information on how to develop for `Az.StorageMover`, see [how-to.md](how-to. ``` yaml # Please specify the commit id that includes your features to make sure generated codes stable. -brach: 470c544393281cc986c9b343fa441f54576bc0bc +brach: 74948e5fb9b1e1f8b9d58fb65fc81d5cba6b6ced require: # readme.azure.noprofile.md is the common configuration file - $(this-folder)/../readme.azure.noprofile.md input-file: - - $(repo)/specification/storagemover/resource-manager/Microsoft.StorageMover/stable/2023-03-01/storagemover.json + - $(repo)/specification/storagemover/resource-manager/Microsoft.StorageMover/stable/2023-10-01/storagemover.json # For new RP, the version is 0.1.0 -module-version: 1.0.0 +module-version: 1.1.0 # Normally, title is the service name title: StorageMover subject-prefix: $(service-name) @@ -147,4 +147,7 @@ directive: - from: source-file-csharp where: $ transform: $ = $.replace('ShouldProcess($\"Call remote \'AgentsDelete\' operation\")', 'true'); + - from: source-file-csharp + where: $ + transform: $ = $.replace('public Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.ISystemData', 'private Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.ISystemData'); ``` diff --git a/src/StorageMover/StorageMover.sln b/src/StorageMover/StorageMover.sln index 064906b99dbc..dd1ee0ee2a5c 100644 --- a/src/StorageMover/StorageMover.sln +++ b/src/StorageMover/StorageMover.sln @@ -3,19 +3,19 @@ Microsoft Visual Studio Solution File, Format Version 12.00 # Visual Studio Version 17 VisualStudioVersion = 17.0.31903.59 MinimumVisualStudioVersion = 10.0.40219.1 -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Accounts", "..\Accounts\Accounts\Accounts.csproj", "{3716E4F5-4879-4541-B02A-FC91A9DD456A}" +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Accounts", "..\Accounts\Accounts\Accounts.csproj", "{0A999E9B-259F-4752-9E74-63C38B6FE5C3}" EndProject -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "AssemblyLoading", "..\Accounts\AssemblyLoading\AssemblyLoading.csproj", "{2B52CF8B-A8A3-4ADE-BA9B-C5AD40B51BB3}" +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "AssemblyLoading", "..\Accounts\AssemblyLoading\AssemblyLoading.csproj", "{D6F6F43D-2D21-4F1B-BFD9-FB237F3BFBBA}" EndProject -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Authentication", "..\Accounts\Authentication\Authentication.csproj", "{1F20359A-BE1B-4308-ACEF-885509B260AA}" +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Authentication", "..\Accounts\Authentication\Authentication.csproj", "{441038FC-3EFC-4F54-8E94-A171285A8CF4}" EndProject -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Authentication.ResourceManager", "..\Accounts\Authentication.ResourceManager\Authentication.ResourceManager.csproj", "{83DE0EB5-3BBD-4C7D-ADC3-C9ECB31584A4}" +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Authentication.ResourceManager", "..\Accounts\Authentication.ResourceManager\Authentication.ResourceManager.csproj", "{C093C69A-4EA0-4213-BBA5-602759737A24}" EndProject -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "AuthenticationAssemblyLoadContext", "..\Accounts\AuthenticationAssemblyLoadContext\AuthenticationAssemblyLoadContext.csproj", "{267B0F8F-8D51-45F9-A904-38BB45D3416E}" +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "AuthenticationAssemblyLoadContext", "..\Accounts\AuthenticationAssemblyLoadContext\AuthenticationAssemblyLoadContext.csproj", "{0A500B77-AE21-4E04-8641-793588B6E4FE}" EndProject -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Authenticators", "..\Accounts\Authenticators\Authenticators.csproj", "{1DCB3AC3-BDF6-4C58-80C4-1C55FA90CBBE}" +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Authenticators", "..\Accounts\Authenticators\Authenticators.csproj", "{9A09D3DF-0C9F-47A6-82BA-07CFF7A8B972}" EndProject -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Az.StorageMover", "Az.StorageMover.csproj", "{D01B6C61-8B9F-447A-9893-64CFB6999C7D}" +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Az.StorageMover", "Az.StorageMover.csproj", "{BBD9D4EF-86E8-4CA8-8AA0-F660E4916536}" EndProject Global GlobalSection(SolutionConfigurationPlatforms) = preSolution @@ -26,33 +26,33 @@ Global HideSolutionNode = FALSE EndGlobalSection GlobalSection(ProjectConfigurationPlatforms) = postSolution - {3716E4F5-4879-4541-B02A-FC91A9DD456A}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {3716E4F5-4879-4541-B02A-FC91A9DD456A}.Debug|Any CPU.Build.0 = Debug|Any CPU - {3716E4F5-4879-4541-B02A-FC91A9DD456A}.Release|Any CPU.ActiveCfg = Release|Any CPU - {3716E4F5-4879-4541-B02A-FC91A9DD456A}.Release|Any CPU.Build.0 = Release|Any CPU - {2B52CF8B-A8A3-4ADE-BA9B-C5AD40B51BB3}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {2B52CF8B-A8A3-4ADE-BA9B-C5AD40B51BB3}.Debug|Any CPU.Build.0 = Debug|Any CPU - {2B52CF8B-A8A3-4ADE-BA9B-C5AD40B51BB3}.Release|Any CPU.ActiveCfg = Release|Any CPU - {2B52CF8B-A8A3-4ADE-BA9B-C5AD40B51BB3}.Release|Any CPU.Build.0 = Release|Any CPU - {1F20359A-BE1B-4308-ACEF-885509B260AA}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {1F20359A-BE1B-4308-ACEF-885509B260AA}.Debug|Any CPU.Build.0 = Debug|Any CPU - {1F20359A-BE1B-4308-ACEF-885509B260AA}.Release|Any CPU.ActiveCfg = Release|Any CPU - {1F20359A-BE1B-4308-ACEF-885509B260AA}.Release|Any CPU.Build.0 = Release|Any CPU - {83DE0EB5-3BBD-4C7D-ADC3-C9ECB31584A4}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {83DE0EB5-3BBD-4C7D-ADC3-C9ECB31584A4}.Debug|Any CPU.Build.0 = Debug|Any CPU - {83DE0EB5-3BBD-4C7D-ADC3-C9ECB31584A4}.Release|Any CPU.ActiveCfg = Release|Any CPU - {83DE0EB5-3BBD-4C7D-ADC3-C9ECB31584A4}.Release|Any CPU.Build.0 = Release|Any CPU - {267B0F8F-8D51-45F9-A904-38BB45D3416E}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {267B0F8F-8D51-45F9-A904-38BB45D3416E}.Debug|Any CPU.Build.0 = Debug|Any CPU - {267B0F8F-8D51-45F9-A904-38BB45D3416E}.Release|Any CPU.ActiveCfg = Release|Any CPU - {267B0F8F-8D51-45F9-A904-38BB45D3416E}.Release|Any CPU.Build.0 = Release|Any CPU - {1DCB3AC3-BDF6-4C58-80C4-1C55FA90CBBE}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {1DCB3AC3-BDF6-4C58-80C4-1C55FA90CBBE}.Debug|Any CPU.Build.0 = Debug|Any CPU - {1DCB3AC3-BDF6-4C58-80C4-1C55FA90CBBE}.Release|Any CPU.ActiveCfg = Release|Any CPU - {1DCB3AC3-BDF6-4C58-80C4-1C55FA90CBBE}.Release|Any CPU.Build.0 = Release|Any CPU - {D01B6C61-8B9F-447A-9893-64CFB6999C7D}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {D01B6C61-8B9F-447A-9893-64CFB6999C7D}.Debug|Any CPU.Build.0 = Debug|Any CPU - {D01B6C61-8B9F-447A-9893-64CFB6999C7D}.Release|Any CPU.ActiveCfg = Release|Any CPU - {D01B6C61-8B9F-447A-9893-64CFB6999C7D}.Release|Any CPU.Build.0 = Release|Any CPU + {0A999E9B-259F-4752-9E74-63C38B6FE5C3}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {0A999E9B-259F-4752-9E74-63C38B6FE5C3}.Debug|Any CPU.Build.0 = Debug|Any CPU + {0A999E9B-259F-4752-9E74-63C38B6FE5C3}.Release|Any CPU.ActiveCfg = Release|Any CPU + {0A999E9B-259F-4752-9E74-63C38B6FE5C3}.Release|Any CPU.Build.0 = Release|Any CPU + {D6F6F43D-2D21-4F1B-BFD9-FB237F3BFBBA}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {D6F6F43D-2D21-4F1B-BFD9-FB237F3BFBBA}.Debug|Any CPU.Build.0 = Debug|Any CPU + {D6F6F43D-2D21-4F1B-BFD9-FB237F3BFBBA}.Release|Any CPU.ActiveCfg = Release|Any CPU + {D6F6F43D-2D21-4F1B-BFD9-FB237F3BFBBA}.Release|Any CPU.Build.0 = Release|Any CPU + {441038FC-3EFC-4F54-8E94-A171285A8CF4}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {441038FC-3EFC-4F54-8E94-A171285A8CF4}.Debug|Any CPU.Build.0 = Debug|Any CPU + {441038FC-3EFC-4F54-8E94-A171285A8CF4}.Release|Any CPU.ActiveCfg = Release|Any CPU + {441038FC-3EFC-4F54-8E94-A171285A8CF4}.Release|Any CPU.Build.0 = Release|Any CPU + {C093C69A-4EA0-4213-BBA5-602759737A24}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {C093C69A-4EA0-4213-BBA5-602759737A24}.Debug|Any CPU.Build.0 = Debug|Any CPU + {C093C69A-4EA0-4213-BBA5-602759737A24}.Release|Any CPU.ActiveCfg = Release|Any CPU + {C093C69A-4EA0-4213-BBA5-602759737A24}.Release|Any CPU.Build.0 = Release|Any CPU + {0A500B77-AE21-4E04-8641-793588B6E4FE}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {0A500B77-AE21-4E04-8641-793588B6E4FE}.Debug|Any CPU.Build.0 = Debug|Any CPU + {0A500B77-AE21-4E04-8641-793588B6E4FE}.Release|Any CPU.ActiveCfg = Release|Any CPU + {0A500B77-AE21-4E04-8641-793588B6E4FE}.Release|Any CPU.Build.0 = Release|Any CPU + {9A09D3DF-0C9F-47A6-82BA-07CFF7A8B972}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {9A09D3DF-0C9F-47A6-82BA-07CFF7A8B972}.Debug|Any CPU.Build.0 = Debug|Any CPU + {9A09D3DF-0C9F-47A6-82BA-07CFF7A8B972}.Release|Any CPU.ActiveCfg = Release|Any CPU + {9A09D3DF-0C9F-47A6-82BA-07CFF7A8B972}.Release|Any CPU.Build.0 = Release|Any CPU + {BBD9D4EF-86E8-4CA8-8AA0-F660E4916536}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {BBD9D4EF-86E8-4CA8-8AA0-F660E4916536}.Debug|Any CPU.Build.0 = Debug|Any CPU + {BBD9D4EF-86E8-4CA8-8AA0-F660E4916536}.Release|Any CPU.ActiveCfg = Release|Any CPU + {BBD9D4EF-86E8-4CA8-8AA0-F660E4916536}.Release|Any CPU.Build.0 = Release|Any CPU EndGlobalSection EndGlobal diff --git a/src/StorageMover/UX/Microsoft.StorageMover/storageMovers-agents.json b/src/StorageMover/UX/Microsoft.StorageMover/storageMovers-agents.json index 9ace30b5213d..f26625053432 100644 --- a/src/StorageMover/UX/Microsoft.StorageMover/storageMovers-agents.json +++ b/src/StorageMover/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/UX/Microsoft.StorageMover/storageMovers-endpoints.json b/src/StorageMover/UX/Microsoft.StorageMover/storageMovers-endpoints.json index c49e3f6334a9..996a98753f3d 100644 --- a/src/StorageMover/UX/Microsoft.StorageMover/storageMovers-endpoints.json +++ b/src/StorageMover/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/UX/Microsoft.StorageMover/storageMovers-projects-jobDefinitions-jobRuns.json b/src/StorageMover/UX/Microsoft.StorageMover/storageMovers-projects-jobDefinitions-jobRuns.json index 9bbafc1e7648..fc06fba39254 100644 --- a/src/StorageMover/UX/Microsoft.StorageMover/storageMovers-projects-jobDefinitions-jobRuns.json +++ b/src/StorageMover/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/UX/Microsoft.StorageMover/storageMovers-projects-jobDefinitions.json b/src/StorageMover/UX/Microsoft.StorageMover/storageMovers-projects-jobDefinitions.json index 0a0ebc7aa9b8..15386963de75 100644 --- a/src/StorageMover/UX/Microsoft.StorageMover/storageMovers-projects-jobDefinitions.json +++ b/src/StorageMover/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/UX/Microsoft.StorageMover/storageMovers-projects.json b/src/StorageMover/UX/Microsoft.StorageMover/storageMovers-projects.json index e77e6628a7e4..53486599882a 100644 --- a/src/StorageMover/UX/Microsoft.StorageMover/storageMovers-projects.json +++ b/src/StorageMover/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/UX/Microsoft.StorageMover/storageMovers.json b/src/StorageMover/UX/Microsoft.StorageMover/storageMovers.json index f3361250977a..7e81eba21692 100644 --- a/src/StorageMover/UX/Microsoft.StorageMover/storageMovers.json +++ b/src/StorageMover/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/build-module.ps1 b/src/StorageMover/build-module.ps1 index a0d107adab81..8b6f285e3ed8 100644 --- a/src/StorageMover/build-module.ps1 +++ b/src/StorageMover/build-module.ps1 @@ -143,7 +143,8 @@ if($NoDocs) { $null = Get-ChildItem -Path $docsFolder -Recurse -Exclude 'README.md' | Remove-Item -Recurse -ErrorAction SilentlyContinue } $null = New-Item -ItemType Directory -Force -Path $docsFolder - Export-ProxyCmdlet -ModuleName $moduleName -ModulePath $modulePaths -ExportsFolder $exportsFolder -InternalFolder $internalFolder -ModuleDescription $moduleDescription -DocsFolder $docsFolder -ExamplesFolder $examplesFolder -ModuleGuid $guid + $addComplexInterfaceInfo = ![System.Convert]::ToBoolean('true') + Export-ProxyCmdlet -ModuleName $moduleName -ModulePath $modulePaths -ExportsFolder $exportsFolder -InternalFolder $internalFolder -ModuleDescription $moduleDescription -DocsFolder $docsFolder -ExamplesFolder $examplesFolder -ModuleGuid $guid -AddComplexInterfaceInfo:$addComplexInterfaceInfo } Write-Host -ForegroundColor Green 'Creating format.ps1xml...' @@ -162,4 +163,10 @@ Export-TestStub -ModuleName $moduleName -ExportsFolder $exportsFolder -OutputFol Write-Host -ForegroundColor Green 'Creating example stubs...' Export-ExampleStub -ExportsFolder $exportsFolder -OutputFolder $examplesFolder +if (Test-Path (Join-Path $PSScriptRoot 'generate-portal-ux.ps1')) +{ + Write-Host -ForegroundColor Green 'Creating ux metadata...' + . (Join-Path $PSScriptRoot 'generate-portal-ux.ps1') +} + Write-Host -ForegroundColor Green '-------------Done-------------' diff --git a/src/StorageMover/custom/NewAzStorageMoverAzStorageContainerEndpoint.ps1 b/src/StorageMover/custom/NewAzStorageMoverAzStorageContainerEndpoint.ps1 index c6e1c1144e5a..36a4ab592ee8 100644 --- a/src/StorageMover/custom/NewAzStorageMoverAzStorageContainerEndpoint.ps1 +++ b/src/StorageMover/custom/NewAzStorageMoverAzStorageContainerEndpoint.ps1 @@ -23,11 +23,11 @@ Creates an AzStorageContainer endpoint resource, which represents a data transfe New-AzStorageMoverAzStorageContainerEndpoint -Name myendpointName -ResourceGroupName myResourceGroup -BlobContainerName myContainer -StorageMoverName myStorageMover -StorageAccountResourceId myAccountResourceId .Inputs -Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IEndpoint +Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IEndpoint .Inputs Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.IStorageMoverIdentity .Outputs -Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IEndpoint +Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IEndpoint .Notes COMPLEX PARAMETER PROPERTIES @@ -37,7 +37,7 @@ To create the parameters described below, construct a hash table containing the https://learn.microsoft.com/powershell/module/az.storagemover/new-azstoragemoverazstoragecontainerendpoint #> function New-AzStorageMoverAzStorageContainerEndpoint { - [OutputType([Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IEndpoint])] + [OutputType([Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IEndpoint])] [CmdletBinding(DefaultParameterSetName = 'CreateExpanded', PositionalBinding =$false, SupportsShouldProcess, ConfirmImpact = 'Medium')] param( [Parameter(ParameterSetName='CreateExpanded', Mandatory)] @@ -131,7 +131,7 @@ function New-AzStorageMoverAzStorageContainerEndpoint { ) process { - $Properties = [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.AzureStorageBlobContainerEndpointProperties]::New() + $Properties = [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.AzureStorageBlobContainerEndpointProperties]::New() if ($PSBoundParameters.ContainsKey('BlobContainerName')) { $Properties.BlobContainerName = $BlobContainerName diff --git a/src/StorageMover/custom/NewAzStorageMoverNfsEndpoint.ps1 b/src/StorageMover/custom/NewAzStorageMoverNfsEndpoint.ps1 index 8dbb209ec1b3..16fb4740e899 100644 --- a/src/StorageMover/custom/NewAzStorageMoverNfsEndpoint.ps1 +++ b/src/StorageMover/custom/NewAzStorageMoverNfsEndpoint.ps1 @@ -23,11 +23,11 @@ Creates a Nfs endpoint resource, which represents a data transfer source or dest New-AzStorageMoverNfsEndpoint -Name myEndpoint -ResourceGroupName myResourceGroup -StorageMoverName myStorageMover -Host "x.x.x.x" -Export "/" -NfsVersion NFSv3 -Description "Description" .Inputs -Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IEndpoint +Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IEndpoint .Inputs Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.IStorageMoverIdentity .Outputs -Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IEndpoint +Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IEndpoint .Notes COMPLEX PARAMETER PROPERTIES @@ -37,7 +37,7 @@ To create the parameters described below, construct a hash table containing the https://learn.microsoft.com/powershell/module/az.storagemover/new-azstoragemovernfsendpoint #> function New-AzStorageMoverNfsEndpoint { - [OutputType([Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IEndpoint])] + [OutputType([Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IEndpoint])] [CmdletBinding(DefaultParameterSetName = 'CreateExpanded', PositionalBinding =$false, SupportsShouldProcess, ConfirmImpact = 'Medium')] param( [Parameter(ParameterSetName='CreateExpanded', Mandatory)] @@ -137,7 +137,7 @@ function New-AzStorageMoverNfsEndpoint { ) process { - $Properties = [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.NfsMountEndpointProperties]::New() + $Properties = [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.NfsMountEndpointProperties]::New() if ($PSBoundParameters.ContainsKey('Host')) { $Properties.Host = $Host $null = $PSBoundParameters.Remove("Host") diff --git a/src/StorageMover/custom/NewAzStorageMoverSmbEndpoint.ps1 b/src/StorageMover/custom/NewAzStorageMoverSmbEndpoint.ps1 new file mode 100644 index 000000000000..94ce19a372ae --- /dev/null +++ b/src/StorageMover/custom/NewAzStorageMoverSmbEndpoint.ps1 @@ -0,0 +1,171 @@ + +# ---------------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# http://www.apache.org/licenses/LICENSE-2.0 +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# Code generated by Microsoft (R) AutoRest Code Generator.Changes may cause incorrect behavior and will be lost if the code +# is regenerated. +# ---------------------------------------------------------------------------------- + +<# +.Synopsis +Creates an SMB endpoint resource, which represents a data transfer source or destination. +.Description +Creates an SMB endpoint resource, which represents a data transfer source or destination. +.Example +New-AzStorageMoverSmbEndpoint -Name $endpointName -ResourceGroupName $rgname -StorageMoverName $storagemovername -Host $host -ShareName $shareName -CredentialsUsernameUri "https://examples-azureKeyVault.vault.azure.net/secrets/examples-username" -CredentialsPasswordUri "https://examples-azureKeyVault.vault.azure.net/secrets/examples-password" -Description "Description" +.Inputs +Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IEndpoint +.Inputs +Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.IStorageMoverIdentity +.Outputs +Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IEndpoint +.Notes +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-azstoragemoversmbendpoint +#> +function New-AzStorageMoverSmbEndpoint { + [OutputType([Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IEndpoint])] + [CmdletBinding(DefaultParameterSetName = 'CreateExpanded', PositionalBinding =$false, SupportsShouldProcess, ConfirmImpact = 'Medium')] + param( + [Parameter(ParameterSetName='CreateExpanded', Mandatory)] + [Alias('EndpointName')] + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Category('Path')] + [System.String] + # The name of the endpoint resource. + ${Name}, + + [Parameter(ParameterSetName='CreateExpanded', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Category('Path')] + [System.String] + # The name of the resource group. + # The name is case insensitive. + ${ResourceGroupName}, + + [Parameter(ParameterSetName='CreateExpanded', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Category('Path')] + [System.String] + # The name of the Storage Mover resource. + ${StorageMoverName}, + + [Parameter(ParameterSetName = 'CreateExpanded')] + [Parameter(Mandatory, HelpMessage="The host name or IP address of the server exporting the file system.")] + [string] + ${Host}, + + [Parameter(ParameterSetName = 'CreateExpanded')] + [Parameter(Mandatory, HelpMessage="The name of the SMB share being exported from the server")] + [string] + ${ShareName}, + + [Parameter(ParameterSetName = 'CreateExpanded')] + [Parameter(HelpMessage="The secret URI which stores the username. Use empty string to clean-up existing value.")] + [string] + ${CredentialsUsernameUri}, + + [Parameter(ParameterSetName = 'CreateExpanded')] + [Parameter(HelpMessage="The secret URI which stores the password. Use empty string to clean-up existing value.")] + [string] + ${CredentialsPasswordUri}, + + [Parameter(ParameterSetName = 'CreateExpanded')] + [Parameter(HelpMessage="A description for the endpoint.")] + [string] + ${Description}, + + [Parameter(ParameterSetName='CreateExpanded')] + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] + [System.String] + # The ID of the target subscription. + ${SubscriptionId}, + + [Parameter()] + [Alias('AzureRMContext', 'AzureCredential')] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Category('Azure')] + [System.Management.Automation.PSObject] + # The credentials, account, tenant, and subscription used for communication with Azure. + ${DefaultProfile}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Wait for .NET debugger to attach + ${Break}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be appended to the front of the pipeline + ${HttpPipelineAppend}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be prepended to the front of the pipeline + ${HttpPipelinePrepend}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Category('Runtime')] + [System.Uri] + # The URI for the proxy server to use + ${Proxy}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Category('Runtime')] + [System.Management.Automation.PSCredential] + # Credentials for a proxy server to use for the remote call + ${ProxyCredential}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Use the default credentials for the proxy + ${ProxyUseDefaultCredentials} + ) + + process { + $Properties = [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.SmbMountEndpointProperties]::New() + + if ($PSBoundParameters.ContainsKey('Host')) { + $Properties.Host = $Host + $null = $PSBoundParameters.Remove("Host") + } + if ($PSBoundParameters.ContainsKey('ShareName')) { + $Properties.ShareName = $ShareName + $null = $PSBoundParameters.Remove("ShareName") + } + if ($PSBoundParameters.ContainsKey('CredentialsUsernameUri')) { + $Properties.CredentialsUsernameUri = $CredentialsUsernameUri + $null = $PSBoundParameters.Remove("CredentialsUsernameUri") + } + if ($PSBoundParameters.ContainsKey('CredentialsPasswordUri')) { + $Properties.CredentialsPasswordUri = $CredentialsPasswordUri + $null = $PSBoundParameters.Remove("CredentialsPasswordUri") + } + if ($PSBoundParameters.ContainsKey('Description')) { + $Properties.Description = $Description + $null = $PSBoundParameters.Remove("Description") + } + + $Properties.EndpointType = "SmbMount" + $PSBoundParameters.Add("Property", $Properties) + + Az.StorageMover.internal\New-AzStorageMoverEndpoint @PSBoundParameters + } +} diff --git a/src/StorageMover/custom/NewAzStorageMoverSmbFileShareEndpoint.ps1 b/src/StorageMover/custom/NewAzStorageMoverSmbFileShareEndpoint.ps1 new file mode 100644 index 000000000000..044c5ece1533 --- /dev/null +++ b/src/StorageMover/custom/NewAzStorageMoverSmbFileShareEndpoint.ps1 @@ -0,0 +1,154 @@ + +# ---------------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# http://www.apache.org/licenses/LICENSE-2.0 +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# Code generated by Microsoft (R) AutoRest Code Generator.Changes may cause incorrect behavior and will be lost if the code +# is regenerated. +# ---------------------------------------------------------------------------------- + +<# +.Synopsis +Creates a Smb file share endpoint resource, which represents a data transfer source or destination. +.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" + +.Inputs +Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IEndpoint +.Inputs +Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.IStorageMoverIdentity +.Outputs +Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IEndpoint +.Notes +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 +#> +function New-AzStorageMoverSmbFileShareEndpoint { + [OutputType([Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IEndpoint])] + [CmdletBinding(DefaultParameterSetName = 'CreateExpanded', PositionalBinding =$false, SupportsShouldProcess, ConfirmImpact = 'Medium')] + param( + [Parameter(ParameterSetName='CreateExpanded', Mandatory)] + [Alias('EndpointName')] + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Category('Path')] + [System.String] + # The name of the endpoint resource. + ${Name}, + + [Parameter(ParameterSetName='CreateExpanded', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Category('Path')] + [System.String] + # The name of the resource group. + # The name is case insensitive. + ${ResourceGroupName}, + + [Parameter(ParameterSetName='CreateExpanded', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Category('Path')] + [System.String] + # The name of the Storage Mover resource. + ${StorageMoverName}, + + [Parameter(ParameterSetName = 'CreateExpanded')] + [Parameter(Mandatory, HelpMessage="The Azure Resource ID of the storage account that is the target destination.")] + [string] + ${StorageAccountResourceId}, + + [Parameter(ParameterSetName = 'CreateExpanded')] + [Parameter(Mandatory, HelpMessage="The name of the Azure Storage file share.")] + [string] + ${FileShareName}, + + [Parameter(ParameterSetName = 'CreateExpanded')] + [Parameter(HelpMessage="A description for the endpoint.")] + [string] + ${Description}, + + [Parameter(ParameterSetName='CreateExpanded')] + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] + [System.String] + # The ID of the target subscription. + ${SubscriptionId}, + + [Parameter()] + [Alias('AzureRMContext', 'AzureCredential')] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Category('Azure')] + [System.Management.Automation.PSObject] + # The credentials, account, tenant, and subscription used for communication with Azure. + ${DefaultProfile}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Wait for .NET debugger to attach + ${Break}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be appended to the front of the pipeline + ${HttpPipelineAppend}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be prepended to the front of the pipeline + ${HttpPipelinePrepend}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Category('Runtime')] + [System.Uri] + # The URI for the proxy server to use + ${Proxy}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Category('Runtime')] + [System.Management.Automation.PSCredential] + # Credentials for a proxy server to use for the remote call + ${ProxyCredential}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Use the default credentials for the proxy + ${ProxyUseDefaultCredentials} + ) + + process { + $Properties = [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.AzureStorageSmbFileShareEndpointProperties]::New() + + if ($PSBoundParameters.ContainsKey('FileShareName')) { + $Properties.FileShareName = $FileShareName + $null = $PSBoundParameters.Remove("FileShareName") + } + if ($PSBoundParameters.ContainsKey('StorageAccountResourceId')) { + $Properties.StorageAccountResourceId = $StorageAccountResourceId + $null = $PSBoundParameters.Remove("StorageAccountResourceId") + } + if ($PSBoundParameters.ContainsKey('Description')) { + $Properties.Description = $Description + $null = $PSBoundParameters.Remove("Description") + } + + $Properties.EndpointType = "AzureStorageSmbFileShare" + $PSBoundParameters.Add("Property", $Properties) + + Az.StorageMover.internal\New-AzStorageMoverEndpoint @PSBoundParameters + } +} diff --git a/src/StorageMover/custom/UpdateAzStorageMoverAzStorageContainerEndpoint.ps1 b/src/StorageMover/custom/UpdateAzStorageMoverAzStorageContainerEndpoint.ps1 index da32af615db1..4c5a7a903f31 100644 --- a/src/StorageMover/custom/UpdateAzStorageMoverAzStorageContainerEndpoint.ps1 +++ b/src/StorageMover/custom/UpdateAzStorageMoverAzStorageContainerEndpoint.ps1 @@ -25,11 +25,11 @@ Properties not specified in the request body will be unchanged. Update-AzStorageMoverAzStorageContainerEndpoint -Name myEndpointName -ResourceGroupName myResourceGroupName -StorageMoverName myStorageMover -Description "Update Description" .Inputs -Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IEndpointBaseUpdateParameters +Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IEndpointBaseUpdateParameters .Inputs Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.IStorageMoverIdentity .Outputs -Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IEndpoint +Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IEndpoint .Notes COMPLEX PARAMETER PROPERTIES @@ -54,7 +54,7 @@ INPUTOBJECT: Identity Parameter https://learn.microsoft.com/powershell/module/az.storagemover/update-azstoragemoverazstoragecontainerendpoint #> function Update-AzStorageMoverAzStorageContainerEndpoint { - [OutputType([Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IEndpoint])] + [OutputType([Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IEndpoint])] [CmdletBinding(DefaultParameterSetName = 'UpdateExpanded', PositionalBinding =$false, SupportsShouldProcess, ConfirmImpact = 'Medium')] param( [Parameter(ParameterSetName='UpdateExpanded', Mandatory)] @@ -146,7 +146,8 @@ function Update-AzStorageMoverAzStorageContainerEndpoint { ) process { - $Properties = [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.AzureStorageBlobContainerEndpointUpdateProperties]::New() + $Properties = [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.AzureStorageBlobContainerEndpointUpdateProperties]::New() + $Properties.EndpointType = 'AzureStorageBlobContainer' if ($PSBoundParameters.ContainsKey('Description')) { $Properties.Description = $Description diff --git a/src/StorageMover/custom/UpdateAzStorageMoverNfsEndpoint.ps1 b/src/StorageMover/custom/UpdateAzStorageMoverNfsEndpoint.ps1 index d4ab0bc2dea4..afa50585041a 100644 --- a/src/StorageMover/custom/UpdateAzStorageMoverNfsEndpoint.ps1 +++ b/src/StorageMover/custom/UpdateAzStorageMoverNfsEndpoint.ps1 @@ -25,11 +25,11 @@ Properties not specified in the request body will be unchanged. Update-AzStorageMoverNfsEndpoint -Name myEndpointName -ResourceGroupName myResourceGroupName -StorageMoverName myStorageMover -Description "Update Description" .Inputs -Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IEndpointBaseUpdateParameters +Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IEndpointBaseUpdateParameters .Inputs Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.IStorageMoverIdentity .Outputs -Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IEndpoint +Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IEndpoint .Notes COMPLEX PARAMETER PROPERTIES @@ -54,7 +54,7 @@ INPUTOBJECT: Identity Parameter https://learn.microsoft.com/powershell/module/az.storagemover/update-azstoragemovernfsendpoint #> function Update-AzStorageMoverNfsEndpoint { - [OutputType([Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IEndpoint])] + [OutputType([Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IEndpoint])] [CmdletBinding(DefaultParameterSetName = 'UpdateExpanded', PositionalBinding =$false, SupportsShouldProcess, ConfirmImpact = 'Medium')] param( [Parameter(ParameterSetName='UpdateExpanded', Mandatory)] @@ -146,7 +146,8 @@ function Update-AzStorageMoverNfsEndpoint { ) process { - $Properties = [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.NfsMountEndpointUpdateProperties]::New() + $Properties = [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.NfsMountEndpointUpdateProperties]::New() + $Properties.EndpointType = 'NfsMount' if ($PSBoundParameters.ContainsKey('Description')) { $Properties.Description = $Description diff --git a/src/StorageMover/custom/UpdateAzStorageMoverSmbEndpoint.ps1 b/src/StorageMover/custom/UpdateAzStorageMoverSmbEndpoint.ps1 new file mode 100644 index 000000000000..fe58b8209ead --- /dev/null +++ b/src/StorageMover/custom/UpdateAzStorageMoverSmbEndpoint.ps1 @@ -0,0 +1,183 @@ + +# ---------------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# http://www.apache.org/licenses/LICENSE-2.0 +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# Code generated by Microsoft (R) AutoRest Code Generator.Changes may cause incorrect behavior and will be lost if the code +# is regenerated. +# ---------------------------------------------------------------------------------- + +<# +.Synopsis +Updates properties for a SMB endpoint resource. +Properties not specified in the request body will be unchanged. +.Description +Updates properties for a SMB endpoint resource. +Properties not specified in the request body will be unchanged. +.Example +Update-AzStorageMoverSmbEndpoint -Name myendpoint -ResourceGroupName myresourcegroup -StorageMoverName mystoragemover -CredentialsUsernameUri "https://examples-azureKeyVault.vault.azure.net/secrets/username2" -CredentialsPasswordUri "https://examples-azureKeyVault.vault.azure.net/secrets/password2" -Description "update endpoint" + +.Inputs +Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IEndpointBaseUpdateParameters +.Inputs +Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.IStorageMoverIdentity +.Outputs +Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IEndpoint +.Notes +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. + +ENDPOINT: The endpoint resource. + [Property]: The endpoint resource, which contains information about file sources and targets. + [Description]: A description for the endpoint. + +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. + [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. + +.Link +https://learn.microsoft.com/powershell/module/az.storagemover/update-azstoragemoversmbendpoint +#> +function Update-AzStorageMoverSmbEndpoint { + [OutputType([Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IEndpoint])] + [CmdletBinding(DefaultParameterSetName = 'UpdateExpanded', PositionalBinding =$false, SupportsShouldProcess, ConfirmImpact = 'Medium')] + param( + [Parameter(ParameterSetName='UpdateExpanded', Mandatory)] + [Alias('EndpointName')] + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Category('Path')] + [System.String] + # The name of the endpoint resource. + ${Name}, + + [Parameter(ParameterSetName='UpdateExpanded', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Category('Path')] + [System.String] + # The name of the resource group. + # The name is case insensitive. + ${ResourceGroupName}, + + [Parameter(ParameterSetName='UpdateExpanded', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Category('Path')] + [System.String] + # The name of the Storage Mover resource. + ${StorageMoverName}, + + [Parameter(ParameterSetName = 'UpdateExpanded')] + [Parameter(ParameterSetName = 'UpdateViaIdentityExpanded')] + [Parameter(HelpMessage="The secret URI which stores the username. Use empty string to clean-up existing value.")] + [string] + ${CredentialsUsernameUri}, + + [Parameter(ParameterSetName = 'UpdateExpanded')] + [Parameter(ParameterSetName = 'UpdateViaIdentityExpanded')] + [Parameter(HelpMessage="The secret URI which stores the password. Use empty string to clean-up existing value.")] + [string] + ${CredentialsPasswordUri}, + + [Parameter(ParameterSetName = 'UpdateExpanded')] + [Parameter(ParameterSetName = 'UpdateViaIdentityExpanded')] + [Parameter(HelpMessage = "A description for the endpoint.")] + [string] + ${Description}, + + [Parameter(ParameterSetName='UpdateExpanded')] + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] + [System.String] + # The ID of the target subscription. + ${SubscriptionId}, + + [Parameter(ParameterSetName='UpdateViaIdentityExpanded', Mandatory, ValueFromPipeline)] + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.IStorageMoverIdentity] + # Identity Parameter + # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. + ${InputObject}, + + [Parameter()] + [Alias('AzureRMContext', 'AzureCredential')] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Category('Azure')] + [System.Management.Automation.PSObject] + # The credentials, account, tenant, and subscription used for communication with Azure. + ${DefaultProfile}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Wait for .NET debugger to attach + ${Break}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be appended to the front of the pipeline + ${HttpPipelineAppend}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be prepended to the front of the pipeline + ${HttpPipelinePrepend}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Category('Runtime')] + [System.Uri] + # The URI for the proxy server to use + ${Proxy}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Category('Runtime')] + [System.Management.Automation.PSCredential] + # Credentials for a proxy server to use for the remote call + ${ProxyCredential}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Use the default credentials for the proxy + ${ProxyUseDefaultCredentials} + ) + + process { + $Properties = [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.SmbMountEndpointUpdateProperties]::New() + $Properties.EndpointType = 'SmbMount' + + if ($PSBoundParameters.ContainsKey('Description')) { + $Properties.Description = $Description + } + if ($PSBoundParameters.ContainsKey('CredentialsUsernameUri')) { + $Properties.CredentialsUsernameUri = $CredentialsUsernameUri + $null = $PSBoundParameters.Remove("CredentialsUsernameUri") + } + if ($PSBoundParameters.ContainsKey('CredentialsPasswordUri')) { + $Properties.CredentialsPasswordUri = $CredentialsPasswordUri + $null = $PSBoundParameters.Remove("CredentialsPasswordUri") + } + + $PSBoundParameters.Add("Property", $Properties) + if ($PSBoundParameters.ContainsKey('Description')) { + $null = $PSBoundParameters.Remove('Description') + } + + Az.StorageMover.internal\Update-AzStorageMoverEndpoint @PSBoundParameters + } +} diff --git a/src/StorageMover/custom/UpdateAzStorageMoverSmbFileShareEndpoint.ps1 b/src/StorageMover/custom/UpdateAzStorageMoverSmbFileShareEndpoint.ps1 new file mode 100644 index 000000000000..43f117c849ac --- /dev/null +++ b/src/StorageMover/custom/UpdateAzStorageMoverSmbFileShareEndpoint.ps1 @@ -0,0 +1,163 @@ + +# ---------------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# http://www.apache.org/licenses/LICENSE-2.0 +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# Code generated by Microsoft (R) AutoRest Code Generator.Changes may cause incorrect behavior and will be lost if the code +# is regenerated. +# ---------------------------------------------------------------------------------- + +<# +.Synopsis +Updates properties for a SMB file share endpoint resource. +Properties not specified in the request body will be unchanged. +.Description +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" + +.Inputs +Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IEndpointBaseUpdateParameters +.Inputs +Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.IStorageMoverIdentity +.Outputs +Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IEndpoint +.Notes +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. + +ENDPOINT: The endpoint resource. + [Property]: The endpoint resource, which contains information about file sources and targets. + [Description]: A description for the endpoint. + +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. + [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. + +.Link +https://learn.microsoft.com/powershell/module/az.storagemover/update-azstoragemoversmbfileshareendpoint +#> +function Update-AzStorageMoverSmbFileShareEndpoint { + [OutputType([Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IEndpoint])] + [CmdletBinding(DefaultParameterSetName = 'UpdateExpanded', PositionalBinding =$false, SupportsShouldProcess, ConfirmImpact = 'Medium')] + param( + [Parameter(ParameterSetName='UpdateExpanded', Mandatory)] + [Alias('EndpointName')] + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Category('Path')] + [System.String] + # The name of the endpoint resource. + ${Name}, + + [Parameter(ParameterSetName='UpdateExpanded', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Category('Path')] + [System.String] + # The name of the resource group. + # The name is case insensitive. + ${ResourceGroupName}, + + [Parameter(ParameterSetName='UpdateExpanded', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Category('Path')] + [System.String] + # The name of the Storage Mover resource. + ${StorageMoverName}, + + [Parameter(ParameterSetName = 'UpdateExpanded')] + [Parameter(ParameterSetName = 'UpdateViaIdentityExpanded')] + [Parameter(HelpMessage = "A description for the endpoint.")] + [string] + ${Description}, + + [Parameter(ParameterSetName='UpdateExpanded')] + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] + [System.String] + # The ID of the target subscription. + ${SubscriptionId}, + + [Parameter(ParameterSetName='UpdateViaIdentityExpanded', Mandatory, ValueFromPipeline)] + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.IStorageMoverIdentity] + # Identity Parameter + # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. + ${InputObject}, + + [Parameter()] + [Alias('AzureRMContext', 'AzureCredential')] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Category('Azure')] + [System.Management.Automation.PSObject] + # The credentials, account, tenant, and subscription used for communication with Azure. + ${DefaultProfile}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Wait for .NET debugger to attach + ${Break}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be appended to the front of the pipeline + ${HttpPipelineAppend}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be prepended to the front of the pipeline + ${HttpPipelinePrepend}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Category('Runtime')] + [System.Uri] + # The URI for the proxy server to use + ${Proxy}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Category('Runtime')] + [System.Management.Automation.PSCredential] + # Credentials for a proxy server to use for the remote call + ${ProxyCredential}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Use the default credentials for the proxy + ${ProxyUseDefaultCredentials} + ) + + process { + $Properties = [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.AzureStorageSmbFileShareEndpointUpdateProperties]::New() + $Properties.EndpointType = 'AzureStorageSmbFileShare' + + if ($PSBoundParameters.ContainsKey('Description')) { + $Properties.Description = $Description + } + + $PSBoundParameters.Add("Property", $Properties) + if ($PSBoundParameters.ContainsKey('Description')) { + $null = $PSBoundParameters.Remove('Description') + } + + Az.StorageMover.internal\Update-AzStorageMoverEndpoint @PSBoundParameters + } +} diff --git a/src/StorageMover/examples/New-AzStorageMoverSmbEndpoint.md b/src/StorageMover/examples/New-AzStorageMoverSmbEndpoint.md new file mode 100644 index 000000000000..6bc3c6efad1d --- /dev/null +++ b/src/StorageMover/examples/New-AzStorageMoverSmbEndpoint.md @@ -0,0 +1,30 @@ +### Example 1: Create a SMB endpoint +```powershell +New-AzStorageMoverSmbEndpoint -Name "myendpoint" -ResourceGroupName "myresourcegroup" -StorageMoverName "mystoragemover" -Host "10.0.0.1" -ShareName "testshare" -CredentialsUsernameUri "https://examples-azureKeyVault.vault.azure.net/secrets/username1" -CredentialsPasswordUri "https://examples-azureKeyVault.vault.azure.net/secrets/password1" +``` + +```output +Id : /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myresourcegroup/providers/Microsoft.StorageMover/storageMovers/mystoragemover/endpoints/myendpoint +Name : myendpoint +Property : { + "endpointType": "SmbMount", + "provisioningState": "Succeeded", + "credentials": { + "type": "AzureKeyVaultSmb", + "usernameUri": "https://examples-azureKeyVault.vault.azure.net/secrets/username1", + "passwordUri": "https://examples-azureKeyVault.vault.azure.net/secrets/password1" + }, + "host": "10.0.0.1", + "shareName": "testshare" + } +SystemDataCreatedAt : 6/27/2023 4:30:50 AM +SystemDataCreatedBy : 00000000-0000-0000-0000-000000000000 +SystemDataCreatedByType : Application +SystemDataLastModifiedAt : 7/13/2023 8:19:34 AM +SystemDataLastModifiedBy : 00000000-0000-0000-0000-000000000000 +SystemDataLastModifiedByType : Application +Type : microsoft.storagemover/storagemovers/endpoints +``` + +This command creates a SMB endpoint for a Storage mover named "mystoragemover". + diff --git a/src/StorageMover/examples/New-AzStorageMoverSmbFileShareEndpoint.md b/src/StorageMover/examples/New-AzStorageMoverSmbFileShareEndpoint.md new file mode 100644 index 000000000000..6e1420c74ee3 --- /dev/null +++ b/src/StorageMover/examples/New-AzStorageMoverSmbFileShareEndpoint.md @@ -0,0 +1,27 @@ +### 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" +``` + +```output +Id : /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myresourcegroup/providers/Microsoft.StorageMover/storageMovers/mystoragemover/endpoints/myendpoint +Name : myendpoint +Property : { + "endpointType": "AzureStorageSmbFileShare", + "description": "New smb file share endpoint", + "provisioningState": "Succeeded", + "storageAccountResourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myresourcegroup/providers/Microsoft.Storage/storageAccounts/myaccount", + "fileShareName": "testfs" + } +SystemDataCreatedAt : 6/27/2023 4:30:13 AM +SystemDataCreatedBy :00000000-0000-0000-0000-000000000000 +SystemDataCreatedByType : Application +SystemDataLastModifiedAt : 7/13/2023 7:21:21 AM +SystemDataLastModifiedBy : 00000000-0000-0000-0000-000000000000 +SystemDataLastModifiedByType : Application +Type : microsoft.storagemover/storagemovers/endpoints +``` + +This command creats a Smb file share endpoint + + diff --git a/src/StorageMover/examples/Update-AzStorageMoverSmbEndpoint.md b/src/StorageMover/examples/Update-AzStorageMoverSmbEndpoint.md new file mode 100644 index 000000000000..218ff289ab96 --- /dev/null +++ b/src/StorageMover/examples/Update-AzStorageMoverSmbEndpoint.md @@ -0,0 +1,62 @@ +### Example 1: Update a SMB endpoint +```powershell +Update-AzStorageMoverSmbEndpoint -Name "myendpoint" -ResourceGroupName "myresourcegroup" -StorageMoverName "mystoragemover" -CredentialsUsernameUri "https://examples-azureKeyVault.vault.azure.net/secrets/username2" -CredentialsPasswordUri "https://examples-azureKeyVault.vault.azure.net/secrets/password2" -Description "update endpoint" +``` + +```output +Id : /subscriptions/00000000-0000-0000-0000-000000000000e/resourceGroups/myresourcegroup/providers/Microsoft.StorageMover/storageMovers/mystoragemover/endpoints/myendpoint +Name : myendpoint +Property : { + "endpointType": "SmbMount", + "description": "update endpoint", + "provisioningState": "Succeeded", + "credentials": { + "type": "AzureKeyVaultSmb", + "usernameUri": "https://examples-azureKeyVault.vault.azure.net/secrets/username2", + "passwordUri": "https://examples-azureKeyVault.vault.azure.net/secrets/password2" + }, + "host": "10.0.0.1", + "shareName": "testshare" + } +SystemDataCreatedAt : 6/27/2023 4:30:50 AM +SystemDataCreatedBy : 00000000-0000-0000-0000-000000000000 +SystemDataCreatedByType : Application +SystemDataLastModifiedAt : 7/13/2023 8:26:34 AM +SystemDataLastModifiedBy : 00000000-0000-0000-0000-000000000000 +SystemDataLastModifiedByType : Application +Type : microsoft.storagemover/storagemovers/endpoints +``` + +This command updates the description, credential username, and credential password of a SMB endpoint by manual inputs. + +### Example 2: Update a SMB endpoint by pipeline +```powershell +Get-AzStorageMoverEndpoint -ResourceGroupName "myresourcegroup" -StorageMoverName "mystoragemover" -Name "myendpoint" | Update-AzStorageMoverSmbEndpoint -CredentialsPasswordUri "" -CredentialsUsernameUri "" -Description "update endpoint again" +``` + +```output +Id : /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myresourcegorup/providers/Microsoft.StorageMover/storageMovers/mystoragemover/endpoints/myendpoint +Name : myendpoint +Property : { + "endpointType": "SmbMount", + "description": "update endpoint again", + "provisioningState": "Succeeded", + "credentials": { + "type": "AzureKeyVaultSmb", + "usernameUri": "", + "passwordUri": "" + }, + "host": "10.0.0.1", + "shareName": "testshare" + } +SystemDataCreatedAt : 6/27/2023 4:30:50 AM +SystemDataCreatedBy : 00000000-0000-0000-0000-000000000000 +SystemDataCreatedByType : Application +SystemDataLastModifiedAt : 7/13/2023 8:29:10 AM +SystemDataLastModifiedBy : 00000000-0000-0000-0000-000000000000 +SystemDataLastModifiedByType : Application +Type : microsoft.storagemover/storagemovers/endpoints +``` + +This command updates the description and clears the credential username and password of a SMB endpoint by pipeline. + diff --git a/src/StorageMover/examples/Update-AzStorageMoverSmbFileShareEndpoint.md b/src/StorageMover/examples/Update-AzStorageMoverSmbFileShareEndpoint.md new file mode 100644 index 000000000000..90233395d1b2 --- /dev/null +++ b/src/StorageMover/examples/Update-AzStorageMoverSmbFileShareEndpoint.md @@ -0,0 +1,52 @@ +### Example 1: Update a Smb file share endpoint +```powershell +Update-AzStorageMoverSmbFileShareEndpoint -Name "myendpoint" -ResourceGroupName "myresourcegroup" -StorageMoverName "mystoragemover" -Description "updated endpoint" +``` + +```output +Id : /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myresourcegroup/providers/Microsoft.StorageMover/storageMovers/mystoragemover/endpoints/myendpoint +Name : myendpoint +Property : { + "endpointType": "AzureStorageSmbFileShare", + "description": "updated endpoint", + "provisioningState": "Succeeded", + "storageAccountResourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myresourcegroup/providers/Microsoft.Storage/storageAccounts/myaccount", + "fileShareName": "testfs" + } +SystemDataCreatedAt : 6/27/2023 4:30:13 AM +SystemDataCreatedBy : 00000000-0000-0000-0000-000000000000 +SystemDataCreatedByType : Application +SystemDataLastModifiedAt : 7/13/2023 7:25:59 AM +SystemDataLastModifiedBy : 00000000-0000-0000-0000-000000000000 +SystemDataLastModifiedByType : Application +Type : microsoft.storagemover/storagemovers/endpoints +``` + +This command updates a Smb file share enpdoint's description by manual inputs. + +### 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" +``` + +```output +Id : /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myresourcegroup/providers/Microsoft.StorageMover/storageMovers/mystoragemover/endpoints/myendpoint +Name : myendpoint +Property : { + "endpointType": "AzureStorageSmbFileShare", + "description": "updated endpoint again", + "provisioningState": "Succeeded", + "storageAccountResourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myresourcegorup/providers/Microsoft.Storage/storageAccounts/myaccount", + "fileShareName": "testfs" + } +SystemDataCreatedAt : 6/27/2023 4:30:13 AM +SystemDataCreatedBy : 00000000-0000-0000-0000-000000000000 +SystemDataCreatedByType : Application +SystemDataLastModifiedAt : 7/13/2023 8:21:51 AM +SystemDataLastModifiedBy : 00000000-0000-0000-0000-000000000000 +SystemDataLastModifiedByType : Application +Type : microsoft.storagemover/storagemovers/endpoints +``` + +This command updates a Smb file share endpoint's description by pipeline + diff --git a/src/StorageMover/exports/Get-AzStorageMover.ps1 b/src/StorageMover/exports/Get-AzStorageMover.ps1 index 7485178cbb81..69e61310d611 100644 --- a/src/StorageMover/exports/Get-AzStorageMover.ps1 +++ b/src/StorageMover/exports/Get-AzStorageMover.ps1 @@ -29,7 +29,7 @@ Get-AzStorageMover -ResourceGroupName myResourceGroup -Name myStorageMover1 .Inputs Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.IStorageMoverIdentity .Outputs -Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IStorageMover +Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IStorageMover .Notes COMPLEX PARAMETER PROPERTIES @@ -49,7 +49,7 @@ INPUTOBJECT : Identity Parameter https://learn.microsoft.com/powershell/module/az.storagemover/get-azstoragemover #> function Get-AzStorageMover { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IStorageMover])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IStorageMover])] [CmdletBinding(DefaultParameterSetName='List', PositionalBinding=$false)] param( [Parameter(ParameterSetName='Get', Mandatory)] @@ -168,6 +168,10 @@ begin { } $cmdInfo = Get-Command -Name $mapping[$parameterSet] [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) + if ($null -ne $MyInvocation.MyCommand -and [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets -notcontains $MyInvocation.MyCommand.Name -and [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){ + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.MessageAttributeHelper]::ProcessPreviewMessageAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) + } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) diff --git a/src/StorageMover/exports/Get-AzStorageMoverAgent.ps1 b/src/StorageMover/exports/Get-AzStorageMoverAgent.ps1 index 7b9f5bc629ad..6eebbf09e4fd 100644 --- a/src/StorageMover/exports/Get-AzStorageMoverAgent.ps1 +++ b/src/StorageMover/exports/Get-AzStorageMoverAgent.ps1 @@ -27,7 +27,7 @@ Get-AzStorageMoverAgent -ResourceGroupName myResourceGroup -StorageMoverName myS .Inputs Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.IStorageMoverIdentity .Outputs -Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IAgent +Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IAgent .Notes COMPLEX PARAMETER PROPERTIES @@ -47,7 +47,7 @@ INPUTOBJECT : Identity Parameter https://learn.microsoft.com/powershell/module/az.storagemover/get-azstoragemoveragent #> function Get-AzStorageMoverAgent { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IAgent])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IAgent])] [CmdletBinding(DefaultParameterSetName='List', PositionalBinding=$false)] param( [Parameter(ParameterSetName='Get', Mandatory)] @@ -171,6 +171,10 @@ begin { } $cmdInfo = Get-Command -Name $mapping[$parameterSet] [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) + if ($null -ne $MyInvocation.MyCommand -and [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets -notcontains $MyInvocation.MyCommand.Name -and [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){ + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.MessageAttributeHelper]::ProcessPreviewMessageAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) + } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) diff --git a/src/StorageMover/exports/Get-AzStorageMoverEndpoint.ps1 b/src/StorageMover/exports/Get-AzStorageMoverEndpoint.ps1 index e18cc53188ba..d872fd46b3f7 100644 --- a/src/StorageMover/exports/Get-AzStorageMoverEndpoint.ps1 +++ b/src/StorageMover/exports/Get-AzStorageMoverEndpoint.ps1 @@ -27,7 +27,7 @@ Get-AzStorageMoverEndpoint -ResourceGroupName myResourceGroupName -StorageMoverN .Inputs Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.IStorageMoverIdentity .Outputs -Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IEndpoint +Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IEndpoint .Notes COMPLEX PARAMETER PROPERTIES @@ -47,7 +47,7 @@ INPUTOBJECT : Identity Parameter https://learn.microsoft.com/powershell/module/az.storagemover/get-azstoragemoverendpoint #> function Get-AzStorageMoverEndpoint { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IEndpoint])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IEndpoint])] [CmdletBinding(DefaultParameterSetName='List', PositionalBinding=$false)] param( [Parameter(ParameterSetName='Get', Mandatory)] @@ -171,6 +171,10 @@ begin { } $cmdInfo = Get-Command -Name $mapping[$parameterSet] [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) + if ($null -ne $MyInvocation.MyCommand -and [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets -notcontains $MyInvocation.MyCommand.Name -and [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){ + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.MessageAttributeHelper]::ProcessPreviewMessageAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) + } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) diff --git a/src/StorageMover/exports/Get-AzStorageMoverJobDefinition.ps1 b/src/StorageMover/exports/Get-AzStorageMoverJobDefinition.ps1 index c10f04997852..f29d5e647ad8 100644 --- a/src/StorageMover/exports/Get-AzStorageMoverJobDefinition.ps1 +++ b/src/StorageMover/exports/Get-AzStorageMoverJobDefinition.ps1 @@ -27,7 +27,7 @@ Get-AzStorageMoverJobDefinition -ProjectName myProject -ResourceGroupName myReso .Inputs Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.IStorageMoverIdentity .Outputs -Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobDefinition +Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobDefinition .Notes COMPLEX PARAMETER PROPERTIES @@ -47,7 +47,7 @@ INPUTOBJECT : Identity Parameter https://learn.microsoft.com/powershell/module/az.storagemover/get-azstoragemoverjobdefinition #> function Get-AzStorageMoverJobDefinition { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobDefinition])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobDefinition])] [CmdletBinding(DefaultParameterSetName='List', PositionalBinding=$false)] param( [Parameter(ParameterSetName='Get', Mandatory)] @@ -178,6 +178,10 @@ begin { } $cmdInfo = Get-Command -Name $mapping[$parameterSet] [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) + if ($null -ne $MyInvocation.MyCommand -and [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets -notcontains $MyInvocation.MyCommand.Name -and [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){ + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.MessageAttributeHelper]::ProcessPreviewMessageAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) + } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) diff --git a/src/StorageMover/exports/Get-AzStorageMoverJobRun.ps1 b/src/StorageMover/exports/Get-AzStorageMoverJobRun.ps1 index 79a29583231b..91a3406d094a 100644 --- a/src/StorageMover/exports/Get-AzStorageMoverJobRun.ps1 +++ b/src/StorageMover/exports/Get-AzStorageMoverJobRun.ps1 @@ -27,7 +27,7 @@ Get-AzStorageMoverJobRun -Name myJobRun -JobDefinitionName myJobDefinition -Reso .Inputs Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.IStorageMoverIdentity .Outputs -Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobRun +Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobRun .Notes COMPLEX PARAMETER PROPERTIES @@ -47,7 +47,7 @@ INPUTOBJECT : Identity Parameter https://learn.microsoft.com/powershell/module/az.storagemover/get-azstoragemoverjobrun #> function Get-AzStorageMoverJobRun { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobRun])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobRun])] [CmdletBinding(DefaultParameterSetName='List', PositionalBinding=$false)] param( [Parameter(ParameterSetName='Get', Mandatory)] @@ -185,6 +185,10 @@ begin { } $cmdInfo = Get-Command -Name $mapping[$parameterSet] [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) + if ($null -ne $MyInvocation.MyCommand -and [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets -notcontains $MyInvocation.MyCommand.Name -and [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){ + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.MessageAttributeHelper]::ProcessPreviewMessageAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) + } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) diff --git a/src/StorageMover/exports/Get-AzStorageMoverProject.ps1 b/src/StorageMover/exports/Get-AzStorageMoverProject.ps1 index 3ca66511edee..bb73b353e9b0 100644 --- a/src/StorageMover/exports/Get-AzStorageMoverProject.ps1 +++ b/src/StorageMover/exports/Get-AzStorageMoverProject.ps1 @@ -27,7 +27,7 @@ $projectList = Get-AzStorageMoverProject -ResourceGroupName myResourceGroup -Sto .Inputs Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.IStorageMoverIdentity .Outputs -Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IProject +Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IProject .Notes COMPLEX PARAMETER PROPERTIES @@ -47,7 +47,7 @@ INPUTOBJECT : Identity Parameter https://learn.microsoft.com/powershell/module/az.storagemover/get-azstoragemoverproject #> function Get-AzStorageMoverProject { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IProject])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IProject])] [CmdletBinding(DefaultParameterSetName='List', PositionalBinding=$false)] param( [Parameter(ParameterSetName='Get', Mandatory)] @@ -171,6 +171,10 @@ begin { } $cmdInfo = Get-Command -Name $mapping[$parameterSet] [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) + if ($null -ne $MyInvocation.MyCommand -and [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets -notcontains $MyInvocation.MyCommand.Name -and [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){ + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.MessageAttributeHelper]::ProcessPreviewMessageAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) + } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) diff --git a/src/StorageMover/exports/New-AzStorageMover.ps1 b/src/StorageMover/exports/New-AzStorageMover.ps1 index 618f95aca19b..779f19f0e08a 100644 --- a/src/StorageMover/exports/New-AzStorageMover.ps1 +++ b/src/StorageMover/exports/New-AzStorageMover.ps1 @@ -23,9 +23,9 @@ Creates or updates a top-level Storage Mover resource. New-AzStorageMover -ResourceGroupName myResourceGroup -Name myStorageMover -Location eastus -Description "Description" .Inputs -Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IStorageMover +Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IStorageMover .Outputs -Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IStorageMover +Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IStorageMover .Notes COMPLEX PARAMETER PROPERTIES @@ -35,18 +35,18 @@ STORAGEMOVER : The Storage Mover resource, which is a container f Location : The geo-location where the resource lives [Tag ]: Resource tags. [(Any) ]: This indicates any property can be added to this object. - [Description ]: A description for the Storage Mover. [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. .Link https://learn.microsoft.com/powershell/module/az.storagemover/new-azstoragemover #> function New-AzStorageMover { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IStorageMover])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IStorageMover])] [CmdletBinding(DefaultParameterSetName='CreateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param( [Parameter(Mandatory)] @@ -72,7 +72,7 @@ param( [Parameter(ParameterSetName='Create', Mandatory, ValueFromPipeline)] [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IStorageMover] + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IStorageMover] # The Storage Mover resource, which is a container for a group of Agents, Projects, and Endpoints. # To construct, see NOTES section for STORAGEMOVER properties and create a hash table. ${StorageMover}, @@ -91,7 +91,7 @@ param( [Parameter(ParameterSetName='CreateExpanded')] [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.ITrackedResourceTags]))] + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.ITrackedResourceTags]))] [System.Collections.Hashtable] # Resource tags. ${Tag}, @@ -179,6 +179,10 @@ begin { } $cmdInfo = Get-Command -Name $mapping[$parameterSet] [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) + if ($null -ne $MyInvocation.MyCommand -and [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets -notcontains $MyInvocation.MyCommand.Name -and [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){ + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.MessageAttributeHelper]::ProcessPreviewMessageAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) + } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) diff --git a/src/StorageMover/exports/New-AzStorageMoverAzStorageContainerEndpoint.ps1 b/src/StorageMover/exports/New-AzStorageMoverAzStorageContainerEndpoint.ps1 index b5ce9407080d..4d8e54797319 100644 --- a/src/StorageMover/exports/New-AzStorageMoverAzStorageContainerEndpoint.ps1 +++ b/src/StorageMover/exports/New-AzStorageMoverAzStorageContainerEndpoint.ps1 @@ -23,16 +23,16 @@ Creates an AzStorageContainer endpoint resource, which represents a data transfe New-AzStorageMoverAzStorageContainerEndpoint -Name myEndpoint -ResourceGroupName myResourceGroup -BlobContainerName myContainer -StorageMoverName myStorageMover -StorageAccountResourceId myAccountResourceId .Inputs -Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IEndpoint +Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IEndpoint .Inputs Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.IStorageMoverIdentity .Outputs -Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IEndpoint +Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IEndpoint .Link https://learn.microsoft.com/powershell/module/az.storagemover/new-azstoragemoverazstoragecontainerendpoint #> function New-AzStorageMoverAzStorageContainerEndpoint { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IEndpoint])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IEndpoint])] [CmdletBinding(DefaultParameterSetName='CreateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param( [Parameter(Mandatory)] @@ -161,6 +161,10 @@ begin { } $cmdInfo = Get-Command -Name $mapping[$parameterSet] [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) + if ($null -ne $MyInvocation.MyCommand -and [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets -notcontains $MyInvocation.MyCommand.Name -and [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){ + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.MessageAttributeHelper]::ProcessPreviewMessageAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) + } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) diff --git a/src/StorageMover/exports/New-AzStorageMoverJobDefinition.ps1 b/src/StorageMover/exports/New-AzStorageMoverJobDefinition.ps1 index 7aaf42c7b277..55ef2972f985 100644 --- a/src/StorageMover/exports/New-AzStorageMoverJobDefinition.ps1 +++ b/src/StorageMover/exports/New-AzStorageMoverJobDefinition.ps1 @@ -23,9 +23,9 @@ Creates or updates a Job Definition resource, which contains configuration for a New-AzStorageMoverJobDefinition -Name myJob -ProjectName myProject -ResourceGroupName myResourceGroup -StorageMoverName myStorageMover -AgentName myAgent -SourceName myNfsEndpoint -TargetName myContainerEndpoint -CopyMode "Additive" -Description "job definition" .Inputs -Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobDefinition +Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobDefinition .Outputs -Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobDefinition +Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobDefinition .Notes COMPLEX PARAMETER PROPERTIES @@ -35,21 +35,21 @@ 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. - [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. [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. .Link https://learn.microsoft.com/powershell/module/az.storagemover/new-azstoragemoverjobdefinition #> function New-AzStorageMoverJobDefinition { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobDefinition])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobDefinition])] [CmdletBinding(DefaultParameterSetName='CreateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param( [Parameter(Mandatory)] @@ -87,7 +87,7 @@ param( [Parameter(ParameterSetName='Create', Mandatory, ValueFromPipeline)] [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobDefinition] + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobDefinition] # The Job Definition resource. # To construct, see NOTES section for JOBDEFINITION properties and create a hash table. ${JobDefinition}, @@ -218,6 +218,10 @@ begin { } $cmdInfo = Get-Command -Name $mapping[$parameterSet] [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) + if ($null -ne $MyInvocation.MyCommand -and [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets -notcontains $MyInvocation.MyCommand.Name -and [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){ + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.MessageAttributeHelper]::ProcessPreviewMessageAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) + } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) diff --git a/src/StorageMover/exports/New-AzStorageMoverNfsEndpoint.ps1 b/src/StorageMover/exports/New-AzStorageMoverNfsEndpoint.ps1 index 530475090a28..c18c1881e857 100644 --- a/src/StorageMover/exports/New-AzStorageMoverNfsEndpoint.ps1 +++ b/src/StorageMover/exports/New-AzStorageMoverNfsEndpoint.ps1 @@ -23,16 +23,16 @@ Creates a Nfs endpoint resource, which represents a data transfer source or dest New-AzStorageMoverNfsEndpoint -Name myEndpoint -ResourceGroupName myResourceGroup -StorageMoverName myStorageMover -Host "10.0.0.1" -Export "/" -NfsVersion NFSv3 -Description "Description" .Inputs -Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IEndpoint +Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IEndpoint .Inputs Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.IStorageMoverIdentity .Outputs -Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IEndpoint +Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IEndpoint .Link https://learn.microsoft.com/powershell/module/az.storagemover/new-azstoragemovernfsendpoint #> function New-AzStorageMoverNfsEndpoint { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IEndpoint])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IEndpoint])] [CmdletBinding(DefaultParameterSetName='CreateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param( [Parameter(Mandatory)] @@ -168,6 +168,10 @@ begin { } $cmdInfo = Get-Command -Name $mapping[$parameterSet] [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) + if ($null -ne $MyInvocation.MyCommand -and [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets -notcontains $MyInvocation.MyCommand.Name -and [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){ + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.MessageAttributeHelper]::ProcessPreviewMessageAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) + } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) diff --git a/src/StorageMover/exports/New-AzStorageMoverProject.ps1 b/src/StorageMover/exports/New-AzStorageMoverProject.ps1 index 1a813331eb66..e934340d7d51 100644 --- a/src/StorageMover/exports/New-AzStorageMoverProject.ps1 +++ b/src/StorageMover/exports/New-AzStorageMoverProject.ps1 @@ -23,27 +23,27 @@ Creates or updates a Project resource, which is a logical grouping of related jo New-AzStorageMoverProject -ResourceGroupName myResourceGroup -StorageMoverName myStorageMover -Name myProject -Description "description" .Inputs -Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IProject +Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IProject .Outputs -Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IProject +Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IProject .Notes 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. - [Description ]: A description for the Project. [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. .Link https://learn.microsoft.com/powershell/module/az.storagemover/new-azstoragemoverproject #> function New-AzStorageMoverProject { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IProject])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IProject])] [CmdletBinding(DefaultParameterSetName='CreateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param( [Parameter(Mandatory)] @@ -75,7 +75,7 @@ param( [Parameter(ParameterSetName='Create', Mandatory, ValueFromPipeline)] [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IProject] + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IProject] # The Project resource. # To construct, see NOTES section for PROJECT properties and create a hash table. ${Project}, @@ -169,6 +169,10 @@ begin { } $cmdInfo = Get-Command -Name $mapping[$parameterSet] [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) + if ($null -ne $MyInvocation.MyCommand -and [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets -notcontains $MyInvocation.MyCommand.Name -and [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){ + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.MessageAttributeHelper]::ProcessPreviewMessageAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) + } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) diff --git a/src/StorageMover/exports/New-AzStorageMoverSmbEndpoint.ps1 b/src/StorageMover/exports/New-AzStorageMoverSmbEndpoint.ps1 new file mode 100644 index 000000000000..eaaa6bc13059 --- /dev/null +++ b/src/StorageMover/exports/New-AzStorageMoverSmbEndpoint.ps1 @@ -0,0 +1,224 @@ + +# ---------------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# http://www.apache.org/licenses/LICENSE-2.0 +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# Code generated by Microsoft (R) AutoRest Code Generator.Changes may cause incorrect behavior and will be lost if the code +# is regenerated. +# ---------------------------------------------------------------------------------- + +<# +.Synopsis +Creates an SMB endpoint resource, which represents a data transfer source or destination. +.Description +Creates an SMB endpoint resource, which represents a data transfer source or destination. +.Example +New-AzStorageMoverSmbEndpoint -Name "myendpoint" -ResourceGroupName "myresourcegroup" -StorageMoverName "mystoragemover" -Host "10.0.0.1" -ShareName "testshare" -CredentialsUsernameUri "https://examples-azureKeyVault.vault.azure.net/secrets/username1" -CredentialsPasswordUri "https://examples-azureKeyVault.vault.azure.net/secrets/password1" + +.Inputs +Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IEndpoint +.Inputs +Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.IStorageMoverIdentity +.Outputs +Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IEndpoint +.Link +https://learn.microsoft.com/powershell/module/az.storagemover/new-azstoragemoversmbendpoint +#> +function New-AzStorageMoverSmbEndpoint { +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IEndpoint])] +[CmdletBinding(DefaultParameterSetName='CreateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] +param( + [Parameter(Mandatory)] + [Alias('EndpointName')] + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Category('Path')] + [System.String] + # The name of the endpoint resource. + ${Name}, + + [Parameter(Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Category('Path')] + [System.String] + # The name of the resource group. + # The name is case insensitive. + ${ResourceGroupName}, + + [Parameter(Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Category('Path')] + [System.String] + # The name of the Storage Mover resource. + ${StorageMoverName}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] + [System.String] + # The ID of the target subscription. + ${SubscriptionId}, + + [Parameter(Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Category('Body')] + [System.String] + # The host name or IP address of the server exporting the file system. + ${Host}, + + [Parameter(Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Category('Body')] + [System.String] + # The name of the SMB share being exported from the server + ${ShareName}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Category('Body')] + [System.String] + # The secret URI which stores the username. + # Use empty string to clean-up existing value. + ${CredentialsUsernameUri}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Category('Body')] + [System.String] + # The secret URI which stores the password. + # Use empty string to clean-up existing value. + ${CredentialsPasswordUri}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Category('Body')] + [System.String] + # A description for the endpoint. + ${Description}, + + [Parameter()] + [Alias('AzureRMContext', 'AzureCredential')] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Category('Azure')] + [System.Management.Automation.PSObject] + # The credentials, account, tenant, and subscription used for communication with Azure. + ${DefaultProfile}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Wait for .NET debugger to attach + ${Break}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be appended to the front of the pipeline + ${HttpPipelineAppend}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be prepended to the front of the pipeline + ${HttpPipelinePrepend}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Category('Runtime')] + [System.Uri] + # The URI for the proxy server to use + ${Proxy}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Category('Runtime')] + [System.Management.Automation.PSCredential] + # Credentials for a proxy server to use for the remote call + ${ProxyCredential}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Use the default credentials for the proxy + ${ProxyUseDefaultCredentials} +) + +begin { + try { + $outBuffer = $null + if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { + $PSBoundParameters['OutBuffer'] = 1 + } + $parameterSet = $PSCmdlet.ParameterSetName + + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() + } + $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId + if ($preTelemetryId -eq '') { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId =(New-Guid).ToString() + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.module]::Instance.Telemetry.Invoke('Create', $MyInvocation, $parameterSet, $PSCmdlet) + } else { + $internalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets + if ($internalCalledCmdlets -eq '') { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $MyInvocation.MyCommand.Name + } else { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets += ',' + $MyInvocation.MyCommand.Name + } + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = 'internal' + } + + $mapping = @{ + CreateExpanded = 'Az.StorageMover.custom\New-AzStorageMoverSmbEndpoint'; + } + if (('CreateExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { + $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + } + $cmdInfo = Get-Command -Name $mapping[$parameterSet] + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) + if ($null -ne $MyInvocation.MyCommand -and [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets -notcontains $MyInvocation.MyCommand.Name -and [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){ + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.MessageAttributeHelper]::ProcessPreviewMessageAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) + } + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + $scriptCmd = {& $wrappedCmd @PSBoundParameters} + $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) + $steppablePipeline.Begin($PSCmdlet) + } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + throw + } +} + +process { + try { + $steppablePipeline.Process($_) + } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + throw + } + + finally { + $backupTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId + $backupInternalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + } + +} +end { + try { + $steppablePipeline.End() + + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $backupTelemetryId + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $backupInternalCalledCmdlets + if ($preTelemetryId -eq '') { + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.module]::Instance.Telemetry.Invoke('Send', $MyInvocation, $parameterSet, $PSCmdlet) + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + } + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $preTelemetryId + + } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + throw + } +} +} diff --git a/src/StorageMover/exports/New-AzStorageMoverSmbFileShareEndpoint.ps1 b/src/StorageMover/exports/New-AzStorageMoverSmbFileShareEndpoint.ps1 new file mode 100644 index 000000000000..c1e046942355 --- /dev/null +++ b/src/StorageMover/exports/New-AzStorageMoverSmbFileShareEndpoint.ps1 @@ -0,0 +1,210 @@ + +# ---------------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# http://www.apache.org/licenses/LICENSE-2.0 +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# Code generated by Microsoft (R) AutoRest Code Generator.Changes may cause incorrect behavior and will be lost if the code +# is regenerated. +# ---------------------------------------------------------------------------------- + +<# +.Synopsis +Creates a Smb file share endpoint resource, which represents a data transfer source or destination. +.Description +Creates a Smb file share endpoint resource, which represents a data transfer source or destination. +.Example +New-AzStorageMoverSmbFileShareEndpoint -Name "myendpoint" -ResourceGroupName "myresourcegroup" -StorageMoverName "mystoragemover" -StorageAccountResourceId $accountresourceid -FileShareName testfs -Description "New smb file share endpoint" + +.Inputs +Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IEndpoint +.Inputs +Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.IStorageMoverIdentity +.Outputs +Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IEndpoint +.Link +https://learn.microsoft.com/powershell/module/az.storagemover/new-azstoragemoversmbfileshareendpoint +#> +function New-AzStorageMoverSmbFileShareEndpoint { +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IEndpoint])] +[CmdletBinding(DefaultParameterSetName='CreateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] +param( + [Parameter(Mandatory)] + [Alias('EndpointName')] + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Category('Path')] + [System.String] + # The name of the endpoint resource. + ${Name}, + + [Parameter(Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Category('Path')] + [System.String] + # The name of the resource group. + # The name is case insensitive. + ${ResourceGroupName}, + + [Parameter(Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Category('Path')] + [System.String] + # The name of the Storage Mover resource. + ${StorageMoverName}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] + [System.String] + # The ID of the target subscription. + ${SubscriptionId}, + + [Parameter(Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Category('Body')] + [System.String] + # The Azure Resource ID of the storage account that is the target destination. + ${StorageAccountResourceId}, + + [Parameter(Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Category('Body')] + [System.String] + # The name of the Azure Storage file share. + ${FileShareName}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Category('Body')] + [System.String] + # A description for the endpoint. + ${Description}, + + [Parameter()] + [Alias('AzureRMContext', 'AzureCredential')] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Category('Azure')] + [System.Management.Automation.PSObject] + # The credentials, account, tenant, and subscription used for communication with Azure. + ${DefaultProfile}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Wait for .NET debugger to attach + ${Break}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be appended to the front of the pipeline + ${HttpPipelineAppend}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be prepended to the front of the pipeline + ${HttpPipelinePrepend}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Category('Runtime')] + [System.Uri] + # The URI for the proxy server to use + ${Proxy}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Category('Runtime')] + [System.Management.Automation.PSCredential] + # Credentials for a proxy server to use for the remote call + ${ProxyCredential}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Use the default credentials for the proxy + ${ProxyUseDefaultCredentials} +) + +begin { + try { + $outBuffer = $null + if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { + $PSBoundParameters['OutBuffer'] = 1 + } + $parameterSet = $PSCmdlet.ParameterSetName + + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() + } + $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId + if ($preTelemetryId -eq '') { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId =(New-Guid).ToString() + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.module]::Instance.Telemetry.Invoke('Create', $MyInvocation, $parameterSet, $PSCmdlet) + } else { + $internalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets + if ($internalCalledCmdlets -eq '') { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $MyInvocation.MyCommand.Name + } else { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets += ',' + $MyInvocation.MyCommand.Name + } + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = 'internal' + } + + $mapping = @{ + CreateExpanded = 'Az.StorageMover.custom\New-AzStorageMoverSmbFileShareEndpoint'; + } + if (('CreateExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { + $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + } + $cmdInfo = Get-Command -Name $mapping[$parameterSet] + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) + if ($null -ne $MyInvocation.MyCommand -and [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets -notcontains $MyInvocation.MyCommand.Name -and [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){ + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.MessageAttributeHelper]::ProcessPreviewMessageAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) + } + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + $scriptCmd = {& $wrappedCmd @PSBoundParameters} + $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) + $steppablePipeline.Begin($PSCmdlet) + } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + throw + } +} + +process { + try { + $steppablePipeline.Process($_) + } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + throw + } + + finally { + $backupTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId + $backupInternalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + } + +} +end { + try { + $steppablePipeline.End() + + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $backupTelemetryId + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $backupInternalCalledCmdlets + if ($preTelemetryId -eq '') { + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.module]::Instance.Telemetry.Invoke('Send', $MyInvocation, $parameterSet, $PSCmdlet) + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + } + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $preTelemetryId + + } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + throw + } +} +} diff --git a/src/StorageMover/exports/ProxyCmdletDefinitions.ps1 b/src/StorageMover/exports/ProxyCmdletDefinitions.ps1 index 7f8857536b20..b02f3e322215 100644 --- a/src/StorageMover/exports/ProxyCmdletDefinitions.ps1 +++ b/src/StorageMover/exports/ProxyCmdletDefinitions.ps1 @@ -27,7 +27,7 @@ Get-AzStorageMoverAgent -ResourceGroupName myResourceGroup -StorageMoverName myS .Inputs Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.IStorageMoverIdentity .Outputs -Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IAgent +Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IAgent .Notes COMPLEX PARAMETER PROPERTIES @@ -47,7 +47,7 @@ INPUTOBJECT : Identity Parameter https://learn.microsoft.com/powershell/module/az.storagemover/get-azstoragemoveragent #> function Get-AzStorageMoverAgent { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IAgent])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IAgent])] [CmdletBinding(DefaultParameterSetName='List', PositionalBinding=$false)] param( [Parameter(ParameterSetName='Get', Mandatory)] @@ -171,6 +171,10 @@ begin { } $cmdInfo = Get-Command -Name $mapping[$parameterSet] [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) + if ($null -ne $MyInvocation.MyCommand -and [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets -notcontains $MyInvocation.MyCommand.Name -and [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){ + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.MessageAttributeHelper]::ProcessPreviewMessageAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) + } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) @@ -228,7 +232,7 @@ Get-AzStorageMoverEndpoint -ResourceGroupName myResourceGroupName -StorageMoverN .Inputs Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.IStorageMoverIdentity .Outputs -Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IEndpoint +Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IEndpoint .Notes COMPLEX PARAMETER PROPERTIES @@ -248,7 +252,7 @@ INPUTOBJECT : Identity Parameter https://learn.microsoft.com/powershell/module/az.storagemover/get-azstoragemoverendpoint #> function Get-AzStorageMoverEndpoint { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IEndpoint])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IEndpoint])] [CmdletBinding(DefaultParameterSetName='List', PositionalBinding=$false)] param( [Parameter(ParameterSetName='Get', Mandatory)] @@ -372,6 +376,10 @@ begin { } $cmdInfo = Get-Command -Name $mapping[$parameterSet] [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) + if ($null -ne $MyInvocation.MyCommand -and [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets -notcontains $MyInvocation.MyCommand.Name -and [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){ + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.MessageAttributeHelper]::ProcessPreviewMessageAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) + } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) @@ -429,7 +437,7 @@ Get-AzStorageMoverJobDefinition -ProjectName myProject -ResourceGroupName myReso .Inputs Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.IStorageMoverIdentity .Outputs -Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobDefinition +Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobDefinition .Notes COMPLEX PARAMETER PROPERTIES @@ -449,7 +457,7 @@ INPUTOBJECT : Identity Parameter https://learn.microsoft.com/powershell/module/az.storagemover/get-azstoragemoverjobdefinition #> function Get-AzStorageMoverJobDefinition { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobDefinition])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobDefinition])] [CmdletBinding(DefaultParameterSetName='List', PositionalBinding=$false)] param( [Parameter(ParameterSetName='Get', Mandatory)] @@ -580,6 +588,10 @@ begin { } $cmdInfo = Get-Command -Name $mapping[$parameterSet] [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) + if ($null -ne $MyInvocation.MyCommand -and [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets -notcontains $MyInvocation.MyCommand.Name -and [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){ + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.MessageAttributeHelper]::ProcessPreviewMessageAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) + } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) @@ -637,7 +649,7 @@ Get-AzStorageMoverJobRun -Name myJobRun -JobDefinitionName myJobDefinition -Reso .Inputs Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.IStorageMoverIdentity .Outputs -Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobRun +Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobRun .Notes COMPLEX PARAMETER PROPERTIES @@ -657,7 +669,7 @@ INPUTOBJECT : Identity Parameter https://learn.microsoft.com/powershell/module/az.storagemover/get-azstoragemoverjobrun #> function Get-AzStorageMoverJobRun { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobRun])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobRun])] [CmdletBinding(DefaultParameterSetName='List', PositionalBinding=$false)] param( [Parameter(ParameterSetName='Get', Mandatory)] @@ -795,6 +807,10 @@ begin { } $cmdInfo = Get-Command -Name $mapping[$parameterSet] [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) + if ($null -ne $MyInvocation.MyCommand -and [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets -notcontains $MyInvocation.MyCommand.Name -and [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){ + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.MessageAttributeHelper]::ProcessPreviewMessageAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) + } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) @@ -852,7 +868,7 @@ $projectList = Get-AzStorageMoverProject -ResourceGroupName myResourceGroup -Sto .Inputs Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.IStorageMoverIdentity .Outputs -Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IProject +Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IProject .Notes COMPLEX PARAMETER PROPERTIES @@ -872,7 +888,7 @@ INPUTOBJECT : Identity Parameter https://learn.microsoft.com/powershell/module/az.storagemover/get-azstoragemoverproject #> function Get-AzStorageMoverProject { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IProject])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IProject])] [CmdletBinding(DefaultParameterSetName='List', PositionalBinding=$false)] param( [Parameter(ParameterSetName='Get', Mandatory)] @@ -996,6 +1012,10 @@ begin { } $cmdInfo = Get-Command -Name $mapping[$parameterSet] [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) + if ($null -ne $MyInvocation.MyCommand -and [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets -notcontains $MyInvocation.MyCommand.Name -and [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){ + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.MessageAttributeHelper]::ProcessPreviewMessageAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) + } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) @@ -1055,7 +1075,7 @@ Get-AzStorageMover -ResourceGroupName myResourceGroup -Name myStorageMover1 .Inputs Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.IStorageMoverIdentity .Outputs -Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IStorageMover +Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IStorageMover .Notes COMPLEX PARAMETER PROPERTIES @@ -1075,7 +1095,7 @@ INPUTOBJECT : Identity Parameter https://learn.microsoft.com/powershell/module/az.storagemover/get-azstoragemover #> function Get-AzStorageMover { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IStorageMover])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IStorageMover])] [CmdletBinding(DefaultParameterSetName='List', PositionalBinding=$false)] param( [Parameter(ParameterSetName='Get', Mandatory)] @@ -1194,6 +1214,10 @@ begin { } $cmdInfo = Get-Command -Name $mapping[$parameterSet] [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) + if ($null -ne $MyInvocation.MyCommand -and [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets -notcontains $MyInvocation.MyCommand.Name -and [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){ + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.MessageAttributeHelper]::ProcessPreviewMessageAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) + } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) @@ -1247,9 +1271,9 @@ Creates or updates a Job Definition resource, which contains configuration for a New-AzStorageMoverJobDefinition -Name myJob -ProjectName myProject -ResourceGroupName myResourceGroup -StorageMoverName myStorageMover -AgentName myAgent -SourceName myNfsEndpoint -TargetName myContainerEndpoint -CopyMode "Additive" -Description "job definition" .Inputs -Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobDefinition +Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobDefinition .Outputs -Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobDefinition +Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobDefinition .Notes COMPLEX PARAMETER PROPERTIES @@ -1259,21 +1283,21 @@ 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. - [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. [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. .Link https://learn.microsoft.com/powershell/module/az.storagemover/new-azstoragemoverjobdefinition #> function New-AzStorageMoverJobDefinition { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobDefinition])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobDefinition])] [CmdletBinding(DefaultParameterSetName='CreateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param( [Parameter(Mandatory)] @@ -1311,7 +1335,7 @@ param( [Parameter(ParameterSetName='Create', Mandatory, ValueFromPipeline)] [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobDefinition] + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobDefinition] # The Job Definition resource. # To construct, see NOTES section for JOBDEFINITION properties and create a hash table. ${JobDefinition}, @@ -1442,6 +1466,10 @@ begin { } $cmdInfo = Get-Command -Name $mapping[$parameterSet] [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) + if ($null -ne $MyInvocation.MyCommand -and [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets -notcontains $MyInvocation.MyCommand.Name -and [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){ + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.MessageAttributeHelper]::ProcessPreviewMessageAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) + } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) @@ -1495,27 +1523,27 @@ Creates or updates a Project resource, which is a logical grouping of related jo New-AzStorageMoverProject -ResourceGroupName myResourceGroup -StorageMoverName myStorageMover -Name myProject -Description "description" .Inputs -Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IProject +Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IProject .Outputs -Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IProject +Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IProject .Notes 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. - [Description ]: A description for the Project. [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. .Link https://learn.microsoft.com/powershell/module/az.storagemover/new-azstoragemoverproject #> function New-AzStorageMoverProject { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IProject])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IProject])] [CmdletBinding(DefaultParameterSetName='CreateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param( [Parameter(Mandatory)] @@ -1547,7 +1575,7 @@ param( [Parameter(ParameterSetName='Create', Mandatory, ValueFromPipeline)] [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IProject] + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IProject] # The Project resource. # To construct, see NOTES section for PROJECT properties and create a hash table. ${Project}, @@ -1641,6 +1669,10 @@ begin { } $cmdInfo = Get-Command -Name $mapping[$parameterSet] [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) + if ($null -ne $MyInvocation.MyCommand -and [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets -notcontains $MyInvocation.MyCommand.Name -and [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){ + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.MessageAttributeHelper]::ProcessPreviewMessageAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) + } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) @@ -1694,9 +1726,9 @@ Creates or updates a top-level Storage Mover resource. New-AzStorageMover -ResourceGroupName myResourceGroup -Name myStorageMover -Location eastus -Description "Description" .Inputs -Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IStorageMover +Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IStorageMover .Outputs -Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IStorageMover +Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IStorageMover .Notes COMPLEX PARAMETER PROPERTIES @@ -1706,18 +1738,18 @@ STORAGEMOVER : The Storage Mover resource, which is a container f Location : The geo-location where the resource lives [Tag ]: Resource tags. [(Any) ]: This indicates any property can be added to this object. - [Description ]: A description for the Storage Mover. [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. .Link https://learn.microsoft.com/powershell/module/az.storagemover/new-azstoragemover #> function New-AzStorageMover { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IStorageMover])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IStorageMover])] [CmdletBinding(DefaultParameterSetName='CreateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param( [Parameter(Mandatory)] @@ -1743,7 +1775,7 @@ param( [Parameter(ParameterSetName='Create', Mandatory, ValueFromPipeline)] [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IStorageMover] + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IStorageMover] # The Storage Mover resource, which is a container for a group of Agents, Projects, and Endpoints. # To construct, see NOTES section for STORAGEMOVER properties and create a hash table. ${StorageMover}, @@ -1762,7 +1794,7 @@ param( [Parameter(ParameterSetName='CreateExpanded')] [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.ITrackedResourceTags]))] + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.ITrackedResourceTags]))] [System.Collections.Hashtable] # Resource tags. ${Tag}, @@ -1850,6 +1882,10 @@ begin { } $cmdInfo = Get-Command -Name $mapping[$parameterSet] [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) + if ($null -ne $MyInvocation.MyCommand -and [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets -notcontains $MyInvocation.MyCommand.Name -and [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){ + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.MessageAttributeHelper]::ProcessPreviewMessageAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) + } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) @@ -2063,6 +2099,10 @@ begin { } $cmdInfo = Get-Command -Name $mapping[$parameterSet] [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) + if ($null -ne $MyInvocation.MyCommand -and [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets -notcontains $MyInvocation.MyCommand.Name -and [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){ + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.MessageAttributeHelper]::ProcessPreviewMessageAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) + } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) @@ -2282,6 +2322,10 @@ begin { } $cmdInfo = Get-Command -Name $mapping[$parameterSet] [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) + if ($null -ne $MyInvocation.MyCommand -and [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets -notcontains $MyInvocation.MyCommand.Name -and [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){ + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.MessageAttributeHelper]::ProcessPreviewMessageAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) + } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) @@ -2495,6 +2539,10 @@ begin { } $cmdInfo = Get-Command -Name $mapping[$parameterSet] [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) + if ($null -ne $MyInvocation.MyCommand -and [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets -notcontains $MyInvocation.MyCommand.Name -and [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){ + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.MessageAttributeHelper]::ProcessPreviewMessageAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) + } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) @@ -2701,6 +2749,10 @@ begin { } $cmdInfo = Get-Command -Name $mapping[$parameterSet] [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) + if ($null -ne $MyInvocation.MyCommand -and [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets -notcontains $MyInvocation.MyCommand.Name -and [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){ + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.MessageAttributeHelper]::ProcessPreviewMessageAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) + } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) @@ -2901,6 +2953,10 @@ begin { } $cmdInfo = Get-Command -Name $mapping[$parameterSet] [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) + if ($null -ne $MyInvocation.MyCommand -and [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets -notcontains $MyInvocation.MyCommand.Name -and [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){ + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.MessageAttributeHelper]::ProcessPreviewMessageAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) + } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) @@ -2954,11 +3010,11 @@ Creates or updates an Agent resource. Update-AzStorageMoverAgent -ResourceGroupName myResourceGroup -StorageMoverName myStorageMover -Name myAgent -Description "Update description" .Inputs -Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IAgentUpdateParameters +Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IAgentUpdateParameters .Inputs Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.IStorageMoverIdentity .Outputs -Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IAgent +Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IAgent .Notes COMPLEX PARAMETER PROPERTIES @@ -2981,7 +3037,7 @@ INPUTOBJECT : Identity Parameter https://learn.microsoft.com/powershell/module/az.storagemover/update-azstoragemoveragent #> function Update-AzStorageMoverAgent { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IAgent])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IAgent])] [CmdletBinding(DefaultParameterSetName='UpdateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param( [Parameter(ParameterSetName='Update', Mandatory)] @@ -3026,7 +3082,7 @@ param( [Parameter(ParameterSetName='Update', Mandatory, ValueFromPipeline)] [Parameter(ParameterSetName='UpdateViaIdentity', Mandatory, ValueFromPipeline)] [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IAgentUpdateParameters] + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IAgentUpdateParameters] # The Agent resource. # To construct, see NOTES section for AGENT properties and create a hash table. ${Agent}, @@ -3123,6 +3179,10 @@ begin { } $cmdInfo = Get-Command -Name $mapping[$parameterSet] [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) + if ($null -ne $MyInvocation.MyCommand -and [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets -notcontains $MyInvocation.MyCommand.Name -and [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){ + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.MessageAttributeHelper]::ProcessPreviewMessageAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) + } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) @@ -3178,11 +3238,11 @@ Properties not specified in the request body will be unchanged. Update-AzStorageMoverJobDefinition -Name myJob -ProjectName myProject -ResourceGroupName myResourceGroup -StorageMoverName myStorageMover -Description "Update Description" .Inputs -Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobDefinitionUpdateParameters +Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobDefinitionUpdateParameters .Inputs Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.IStorageMoverIdentity .Outputs -Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobDefinition +Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobDefinition .Notes COMPLEX PARAMETER PROPERTIES @@ -3207,7 +3267,7 @@ JOBDEFINITION : The Job Definition resource. https://learn.microsoft.com/powershell/module/az.storagemover/update-azstoragemoverjobdefinition #> function Update-AzStorageMoverJobDefinition { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobDefinition])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobDefinition])] [CmdletBinding(DefaultParameterSetName='UpdateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param( [Parameter(ParameterSetName='Update', Mandatory)] @@ -3259,7 +3319,7 @@ param( [Parameter(ParameterSetName='Update', Mandatory, ValueFromPipeline)] [Parameter(ParameterSetName='UpdateViaIdentity', Mandatory, ValueFromPipeline)] [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobDefinitionUpdateParameters] + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobDefinitionUpdateParameters] # The Job Definition resource. # To construct, see NOTES section for JOBDEFINITION properties and create a hash table. ${JobDefinition}, @@ -3371,6 +3431,10 @@ begin { } $cmdInfo = Get-Command -Name $mapping[$parameterSet] [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) + if ($null -ne $MyInvocation.MyCommand -and [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets -notcontains $MyInvocation.MyCommand.Name -and [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){ + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.MessageAttributeHelper]::ProcessPreviewMessageAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) + } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) @@ -3426,11 +3490,11 @@ Properties not specified in the request body will be unchanged. Update-AzStorageMoverProject -ResourceGroupName myResourceGroup -StorageMoverName myStorageMover -Name myProject -Description "Update Description" .Inputs -Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IProjectUpdateParameters +Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IProjectUpdateParameters .Inputs Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.IStorageMoverIdentity .Outputs -Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IProject +Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IProject .Notes COMPLEX PARAMETER PROPERTIES @@ -3453,7 +3517,7 @@ PROJECT : The Project resource. https://learn.microsoft.com/powershell/module/az.storagemover/update-azstoragemoverproject #> function Update-AzStorageMoverProject { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IProject])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IProject])] [CmdletBinding(DefaultParameterSetName='UpdateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param( [Parameter(ParameterSetName='Update', Mandatory)] @@ -3498,7 +3562,7 @@ param( [Parameter(ParameterSetName='Update', Mandatory, ValueFromPipeline)] [Parameter(ParameterSetName='UpdateViaIdentity', Mandatory, ValueFromPipeline)] [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IProjectUpdateParameters] + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IProjectUpdateParameters] # The Project resource. # To construct, see NOTES section for PROJECT properties and create a hash table. ${Project}, @@ -3595,6 +3659,10 @@ begin { } $cmdInfo = Get-Command -Name $mapping[$parameterSet] [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) + if ($null -ne $MyInvocation.MyCommand -and [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets -notcontains $MyInvocation.MyCommand.Name -and [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){ + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.MessageAttributeHelper]::ProcessPreviewMessageAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) + } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) @@ -3650,11 +3718,11 @@ Properties not specified in the request body will be unchanged. Update-AzStorageMover -ResourceGroupName myResourceGroup -Name myStorageMover -Description "Update description" .Inputs -Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IStorageMoverUpdateParameters +Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IStorageMoverUpdateParameters .Inputs Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.IStorageMoverIdentity .Outputs -Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IStorageMover +Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IStorageMover .Notes COMPLEX PARAMETER PROPERTIES @@ -3679,7 +3747,7 @@ STORAGEMOVER : The Storage Mover resource. https://learn.microsoft.com/powershell/module/az.storagemover/update-azstoragemover #> function Update-AzStorageMover { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IStorageMover])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IStorageMover])] [CmdletBinding(DefaultParameterSetName='UpdateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param( [Parameter(ParameterSetName='Update', Mandatory)] @@ -3717,7 +3785,7 @@ param( [Parameter(ParameterSetName='Update', Mandatory, ValueFromPipeline)] [Parameter(ParameterSetName='UpdateViaIdentity', Mandatory, ValueFromPipeline)] [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IStorageMoverUpdateParameters] + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IStorageMoverUpdateParameters] # The Storage Mover resource. # To construct, see NOTES section for STORAGEMOVER properties and create a hash table. ${StorageMover}, @@ -3732,7 +3800,7 @@ param( [Parameter(ParameterSetName='UpdateExpanded')] [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IStorageMoverUpdateParametersTags]))] + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IStorageMoverUpdateParametersTags]))] [System.Collections.Hashtable] # Resource tags. ${Tag}, @@ -3822,6 +3890,10 @@ begin { } $cmdInfo = Get-Command -Name $mapping[$parameterSet] [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) + if ($null -ne $MyInvocation.MyCommand -and [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets -notcontains $MyInvocation.MyCommand.Name -and [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){ + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.MessageAttributeHelper]::ProcessPreviewMessageAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) + } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) @@ -3875,16 +3947,16 @@ Creates an AzStorageContainer endpoint resource, which represents a data transfe New-AzStorageMoverAzStorageContainerEndpoint -Name myEndpoint -ResourceGroupName myResourceGroup -BlobContainerName myContainer -StorageMoverName myStorageMover -StorageAccountResourceId myAccountResourceId .Inputs -Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IEndpoint +Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IEndpoint .Inputs Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.IStorageMoverIdentity .Outputs -Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IEndpoint +Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IEndpoint .Link https://learn.microsoft.com/powershell/module/az.storagemover/new-azstoragemoverazstoragecontainerendpoint #> function New-AzStorageMoverAzStorageContainerEndpoint { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IEndpoint])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IEndpoint])] [CmdletBinding(DefaultParameterSetName='CreateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param( [Parameter(Mandatory)] @@ -4013,6 +4085,10 @@ begin { } $cmdInfo = Get-Command -Name $mapping[$parameterSet] [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) + if ($null -ne $MyInvocation.MyCommand -and [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets -notcontains $MyInvocation.MyCommand.Name -and [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){ + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.MessageAttributeHelper]::ProcessPreviewMessageAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) + } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) @@ -4066,16 +4142,16 @@ Creates a Nfs endpoint resource, which represents a data transfer source or dest New-AzStorageMoverNfsEndpoint -Name myEndpoint -ResourceGroupName myResourceGroup -StorageMoverName myStorageMover -Host "10.0.0.1" -Export "/" -NfsVersion NFSv3 -Description "Description" .Inputs -Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IEndpoint +Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IEndpoint .Inputs Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.IStorageMoverIdentity .Outputs -Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IEndpoint +Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IEndpoint .Link https://learn.microsoft.com/powershell/module/az.storagemover/new-azstoragemovernfsendpoint #> function New-AzStorageMoverNfsEndpoint { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IEndpoint])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IEndpoint])] [CmdletBinding(DefaultParameterSetName='CreateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param( [Parameter(Mandatory)] @@ -4211,6 +4287,10 @@ begin { } $cmdInfo = Get-Command -Name $mapping[$parameterSet] [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) + if ($null -ne $MyInvocation.MyCommand -and [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets -notcontains $MyInvocation.MyCommand.Name -and [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){ + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.MessageAttributeHelper]::ProcessPreviewMessageAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) + } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) @@ -4257,65 +4337,83 @@ end { <# .Synopsis -Deletes a Storage Mover resource. +Creates an SMB endpoint resource, which represents a data transfer source or destination. .Description -Deletes a Storage Mover resource. +Creates an SMB endpoint resource, which represents a data transfer source or destination. .Example -Remove-AzStorageMover -ResourceGroupName myResourceGroup -Name myStorageMover +New-AzStorageMoverSmbEndpoint -Name "myendpoint" -ResourceGroupName "myresourcegroup" -StorageMoverName "mystoragemover" -Host "10.0.0.1" -ShareName "testshare" -CredentialsUsernameUri "https://examples-azureKeyVault.vault.azure.net/secrets/username1" -CredentialsPasswordUri "https://examples-azureKeyVault.vault.azure.net/secrets/password1" +.Inputs +Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IEndpoint .Inputs Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.IStorageMoverIdentity .Outputs -System.Boolean -.Notes -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. +Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IEndpoint .Link -https://learn.microsoft.com/powershell/module/az.storagemover/remove-azstoragemover +https://learn.microsoft.com/powershell/module/az.storagemover/new-azstoragemoversmbendpoint #> -function Remove-AzStorageMover { -[OutputType([System.Boolean])] -[CmdletBinding(DefaultParameterSetName='Delete', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] +function New-AzStorageMoverSmbEndpoint { +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IEndpoint])] +[CmdletBinding(DefaultParameterSetName='CreateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param( - [Parameter(ParameterSetName='Delete', Mandatory)] - [Alias('StorageMoverName')] + [Parameter(Mandatory)] + [Alias('EndpointName')] [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Category('Path')] [System.String] - # The name of the Storage Mover resource. + # The name of the endpoint resource. ${Name}, - [Parameter(ParameterSetName='Delete', Mandatory)] + [Parameter(Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Category('Path')] [System.String] # The name of the resource group. # The name is case insensitive. ${ResourceGroupName}, - [Parameter(ParameterSetName='Delete')] + [Parameter(Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Category('Path')] + [System.String] + # The name of the Storage Mover resource. + ${StorageMoverName}, + + [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] [System.String] # The ID of the target subscription. ${SubscriptionId}, - [Parameter(ParameterSetName='DeleteViaIdentity', Mandatory, ValueFromPipeline)] - [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Category('Path')] - [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.IStorageMoverIdentity] - # Identity Parameter - # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. - ${InputObject}, + [Parameter(Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Category('Body')] + [System.String] + # The host name or IP address of the server exporting the file system. + ${Host}, + + [Parameter(Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Category('Body')] + [System.String] + # The name of the SMB share being exported from the server + ${ShareName}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Category('Body')] + [System.String] + # The secret URI which stores the username. + # Use empty string to clean-up existing value. + ${CredentialsUsernameUri}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Category('Body')] + [System.String] + # The secret URI which stores the password. + # Use empty string to clean-up existing value. + ${CredentialsPasswordUri}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Category('Body')] + [System.String] + # A description for the endpoint. + ${Description}, [Parameter()] [Alias('AzureRMContext', 'AzureCredential')] @@ -4325,17 +4423,6 @@ param( # The credentials, account, tenant, and subscription used for communication with Azure. ${DefaultProfile}, - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Category('Runtime')] - [System.Management.Automation.SwitchParameter] - ${Force}, - - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Category('Runtime')] - [System.Management.Automation.SwitchParameter] - # Run the command as a job - ${AsJob}, - [Parameter(DontShow)] [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Category('Runtime')] [System.Management.Automation.SwitchParameter] @@ -4356,18 +4443,6 @@ param( # SendAsync Pipeline Steps to be prepended to the front of the pipeline ${HttpPipelinePrepend}, - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Category('Runtime')] - [System.Management.Automation.SwitchParameter] - # Run the command asynchronously - ${NoWait}, - - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Category('Runtime')] - [System.Management.Automation.SwitchParameter] - # Returns true when the command succeeds - ${PassThru}, - [Parameter(DontShow)] [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Category('Runtime')] [System.Uri] @@ -4414,14 +4489,17 @@ begin { } $mapping = @{ - Delete = 'Az.StorageMover.custom\Remove-AzStorageMover'; - DeleteViaIdentity = 'Az.StorageMover.custom\Remove-AzStorageMover'; + CreateExpanded = 'Az.StorageMover.custom\New-AzStorageMoverSmbEndpoint'; } - if (('Delete') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { + if (('CreateExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id } $cmdInfo = Get-Command -Name $mapping[$parameterSet] [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) + if ($null -ne $MyInvocation.MyCommand -and [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets -notcontains $MyInvocation.MyCommand.Name -and [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){ + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.MessageAttributeHelper]::ProcessPreviewMessageAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) + } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) @@ -4468,71 +4546,69 @@ end { <# .Synopsis -Deletes an agent resource. +Creates a Smb file share endpoint resource, which represents a data transfer source or destination. .Description -Deletes an agent resource. +Creates a Smb file share endpoint resource, which represents a data transfer source or destination. .Example -Unregister-AzStorageMoverAgent -ResourceGroupName myResourceGroup -StorageMoverName myStorageMover -Name myAgent +New-AzStorageMoverSmbFileShareEndpoint -Name "myendpoint" -ResourceGroupName "myresourcegroup" -StorageMoverName "mystoragemover" -StorageAccountResourceId $accountresourceid -FileShareName testfs -Description "New smb file share endpoint" +.Inputs +Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IEndpoint .Inputs Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.IStorageMoverIdentity .Outputs -System.Boolean -.Notes -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. +Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IEndpoint .Link -https://learn.microsoft.com/powershell/module/az.storagemover/unregister-azstoragemoveragent +https://learn.microsoft.com/powershell/module/az.storagemover/new-azstoragemoversmbfileshareendpoint #> -function Unregister-AzStorageMoverAgent { -[OutputType([System.Boolean])] -[CmdletBinding(DefaultParameterSetName='Delete', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] +function New-AzStorageMoverSmbFileShareEndpoint { +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IEndpoint])] +[CmdletBinding(DefaultParameterSetName='CreateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param( - [Parameter(ParameterSetName='Delete', Mandatory)] - [Alias('AgentName')] + [Parameter(Mandatory)] + [Alias('EndpointName')] [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Category('Path')] [System.String] - # The name of the agent resource. + # The name of the endpoint resource. ${Name}, - [Parameter(ParameterSetName='Delete', Mandatory)] + [Parameter(Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Category('Path')] [System.String] # The name of the resource group. # The name is case insensitive. ${ResourceGroupName}, - [Parameter(ParameterSetName='Delete', Mandatory)] + [Parameter(Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Category('Path')] [System.String] # The name of the Storage Mover resource. ${StorageMoverName}, - [Parameter(ParameterSetName='Delete')] + [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] [System.String] # The ID of the target subscription. ${SubscriptionId}, - [Parameter(ParameterSetName='DeleteViaIdentity', Mandatory, ValueFromPipeline)] - [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Category('Path')] - [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.IStorageMoverIdentity] - # Identity Parameter - # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. - ${InputObject}, + [Parameter(Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Category('Body')] + [System.String] + # The Azure Resource ID of the storage account that is the target destination. + ${StorageAccountResourceId}, + + [Parameter(Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Category('Body')] + [System.String] + # The name of the Azure Storage file share. + ${FileShareName}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Category('Body')] + [System.String] + # A description for the endpoint. + ${Description}, [Parameter()] [Alias('AzureRMContext', 'AzureCredential')] @@ -4542,17 +4618,6 @@ param( # The credentials, account, tenant, and subscription used for communication with Azure. ${DefaultProfile}, - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Category('Runtime')] - [System.Management.Automation.SwitchParameter] - ${Force}, - - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Category('Runtime')] - [System.Management.Automation.SwitchParameter] - # Run the command as a job - ${AsJob}, - [Parameter(DontShow)] [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Category('Runtime')] [System.Management.Automation.SwitchParameter] @@ -4573,18 +4638,6 @@ param( # SendAsync Pipeline Steps to be prepended to the front of the pipeline ${HttpPipelinePrepend}, - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Category('Runtime')] - [System.Management.Automation.SwitchParameter] - # Run the command asynchronously - ${NoWait}, - - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Category('Runtime')] - [System.Management.Automation.SwitchParameter] - # Returns true when the command succeeds - ${PassThru}, - [Parameter(DontShow)] [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Category('Runtime')] [System.Uri] @@ -4631,14 +4684,17 @@ begin { } $mapping = @{ - Delete = 'Az.StorageMover.custom\Unregister-AzStorageMoverAgent'; - DeleteViaIdentity = 'Az.StorageMover.custom\Unregister-AzStorageMoverAgent'; + CreateExpanded = 'Az.StorageMover.custom\New-AzStorageMoverSmbFileShareEndpoint'; } - if (('Delete') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { + if (('CreateExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id } $cmdInfo = Get-Command -Name $mapping[$parameterSet] [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) + if ($null -ne $MyInvocation.MyCommand -and [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets -notcontains $MyInvocation.MyCommand.Name -and [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){ + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.MessageAttributeHelper]::ProcessPreviewMessageAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) + } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) @@ -4685,18 +4741,16 @@ end { <# .Synopsis -Updates properties for an AzStorageContainer endpoint resource. -Properties not specified in the request body will be unchanged. +Deletes a Storage Mover resource. .Description -Updates properties for an AzStorageContainer endpoint resource. -Properties not specified in the request body will be unchanged. +Deletes a Storage Mover resource. .Example -Update-AzStorageMoverAzStorageContainerEndpoint -Name myEndpoint -ResourceGroupName myResourceGroup -StorageMoverName myStorageMover -Description "Update Description" +Remove-AzStorageMover -ResourceGroupName myResourceGroup -Name myStorageMover .Inputs Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.IStorageMoverIdentity .Outputs -Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IEndpoint +System.Boolean .Notes COMPLEX PARAMETER PROPERTIES @@ -4713,52 +4767,40 @@ INPUTOBJECT : Identity Parameter [StorageMoverName ]: The name of the Storage Mover resource. [SubscriptionId ]: The ID of the target subscription. .Link -https://learn.microsoft.com/powershell/module/az.storagemover/update-azstoragemoverazstoragecontainerendpoint +https://learn.microsoft.com/powershell/module/az.storagemover/remove-azstoragemover #> -function Update-AzStorageMoverAzStorageContainerEndpoint { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IEndpoint])] -[CmdletBinding(DefaultParameterSetName='UpdateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] +function Remove-AzStorageMover { +[OutputType([System.Boolean])] +[CmdletBinding(DefaultParameterSetName='Delete', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param( - [Parameter(ParameterSetName='UpdateExpanded', Mandatory)] - [Alias('EndpointName')] + [Parameter(ParameterSetName='Delete', Mandatory)] + [Alias('StorageMoverName')] [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Category('Path')] [System.String] - # The name of the endpoint resource. + # The name of the Storage Mover resource. ${Name}, - [Parameter(ParameterSetName='UpdateExpanded', Mandatory)] + [Parameter(ParameterSetName='Delete', Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Category('Path')] [System.String] # The name of the resource group. # The name is case insensitive. ${ResourceGroupName}, - [Parameter(ParameterSetName='UpdateExpanded', Mandatory)] - [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Category('Path')] - [System.String] - # The name of the Storage Mover resource. - ${StorageMoverName}, - - [Parameter(ParameterSetName='UpdateExpanded')] + [Parameter(ParameterSetName='Delete')] [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] [System.String] # The ID of the target subscription. ${SubscriptionId}, - [Parameter(ParameterSetName='UpdateViaIdentityExpanded', Mandatory, ValueFromPipeline)] + [Parameter(ParameterSetName='DeleteViaIdentity', Mandatory, ValueFromPipeline)] [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.IStorageMoverIdentity] # Identity Parameter # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ${InputObject}, - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Category('Body')] - [System.String] - # A description for the endpoint. - ${Description}, - [Parameter()] [Alias('AzureRMContext', 'AzureCredential')] [ValidateNotNull()] @@ -4767,7 +4809,663 @@ param( # The credentials, account, tenant, and subscription used for communication with Azure. ${DefaultProfile}, - [Parameter(DontShow)] + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + ${Force}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Run the command as a job + ${AsJob}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Wait for .NET debugger to attach + ${Break}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be appended to the front of the pipeline + ${HttpPipelineAppend}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be prepended to the front of the pipeline + ${HttpPipelinePrepend}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Run the command asynchronously + ${NoWait}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Returns true when the command succeeds + ${PassThru}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Category('Runtime')] + [System.Uri] + # The URI for the proxy server to use + ${Proxy}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Category('Runtime')] + [System.Management.Automation.PSCredential] + # Credentials for a proxy server to use for the remote call + ${ProxyCredential}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Use the default credentials for the proxy + ${ProxyUseDefaultCredentials} +) + +begin { + try { + $outBuffer = $null + if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { + $PSBoundParameters['OutBuffer'] = 1 + } + $parameterSet = $PSCmdlet.ParameterSetName + + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() + } + $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId + if ($preTelemetryId -eq '') { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId =(New-Guid).ToString() + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.module]::Instance.Telemetry.Invoke('Create', $MyInvocation, $parameterSet, $PSCmdlet) + } else { + $internalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets + if ($internalCalledCmdlets -eq '') { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $MyInvocation.MyCommand.Name + } else { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets += ',' + $MyInvocation.MyCommand.Name + } + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = 'internal' + } + + $mapping = @{ + Delete = 'Az.StorageMover.custom\Remove-AzStorageMover'; + DeleteViaIdentity = 'Az.StorageMover.custom\Remove-AzStorageMover'; + } + if (('Delete') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { + $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + } + $cmdInfo = Get-Command -Name $mapping[$parameterSet] + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) + if ($null -ne $MyInvocation.MyCommand -and [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets -notcontains $MyInvocation.MyCommand.Name -and [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){ + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.MessageAttributeHelper]::ProcessPreviewMessageAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) + } + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + $scriptCmd = {& $wrappedCmd @PSBoundParameters} + $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) + $steppablePipeline.Begin($PSCmdlet) + } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + throw + } +} + +process { + try { + $steppablePipeline.Process($_) + } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + throw + } + + finally { + $backupTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId + $backupInternalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + } + +} +end { + try { + $steppablePipeline.End() + + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $backupTelemetryId + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $backupInternalCalledCmdlets + if ($preTelemetryId -eq '') { + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.module]::Instance.Telemetry.Invoke('Send', $MyInvocation, $parameterSet, $PSCmdlet) + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + } + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $preTelemetryId + + } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + throw + } +} +} + +<# +.Synopsis +Deletes an agent resource. +.Description +Deletes an agent resource. +.Example +Unregister-AzStorageMoverAgent -ResourceGroupName myResourceGroup -StorageMoverName myStorageMover -Name myAgent + +.Inputs +Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.IStorageMoverIdentity +.Outputs +System.Boolean +.Notes +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. +.Link +https://learn.microsoft.com/powershell/module/az.storagemover/unregister-azstoragemoveragent +#> +function Unregister-AzStorageMoverAgent { +[OutputType([System.Boolean])] +[CmdletBinding(DefaultParameterSetName='Delete', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] +param( + [Parameter(ParameterSetName='Delete', Mandatory)] + [Alias('AgentName')] + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Category('Path')] + [System.String] + # The name of the agent resource. + ${Name}, + + [Parameter(ParameterSetName='Delete', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Category('Path')] + [System.String] + # The name of the resource group. + # The name is case insensitive. + ${ResourceGroupName}, + + [Parameter(ParameterSetName='Delete', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Category('Path')] + [System.String] + # The name of the Storage Mover resource. + ${StorageMoverName}, + + [Parameter(ParameterSetName='Delete')] + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] + [System.String] + # The ID of the target subscription. + ${SubscriptionId}, + + [Parameter(ParameterSetName='DeleteViaIdentity', Mandatory, ValueFromPipeline)] + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.IStorageMoverIdentity] + # Identity Parameter + # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. + ${InputObject}, + + [Parameter()] + [Alias('AzureRMContext', 'AzureCredential')] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Category('Azure')] + [System.Management.Automation.PSObject] + # The credentials, account, tenant, and subscription used for communication with Azure. + ${DefaultProfile}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + ${Force}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Run the command as a job + ${AsJob}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Wait for .NET debugger to attach + ${Break}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be appended to the front of the pipeline + ${HttpPipelineAppend}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be prepended to the front of the pipeline + ${HttpPipelinePrepend}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Run the command asynchronously + ${NoWait}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Returns true when the command succeeds + ${PassThru}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Category('Runtime')] + [System.Uri] + # The URI for the proxy server to use + ${Proxy}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Category('Runtime')] + [System.Management.Automation.PSCredential] + # Credentials for a proxy server to use for the remote call + ${ProxyCredential}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Use the default credentials for the proxy + ${ProxyUseDefaultCredentials} +) + +begin { + try { + $outBuffer = $null + if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { + $PSBoundParameters['OutBuffer'] = 1 + } + $parameterSet = $PSCmdlet.ParameterSetName + + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() + } + $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId + if ($preTelemetryId -eq '') { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId =(New-Guid).ToString() + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.module]::Instance.Telemetry.Invoke('Create', $MyInvocation, $parameterSet, $PSCmdlet) + } else { + $internalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets + if ($internalCalledCmdlets -eq '') { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $MyInvocation.MyCommand.Name + } else { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets += ',' + $MyInvocation.MyCommand.Name + } + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = 'internal' + } + + $mapping = @{ + Delete = 'Az.StorageMover.custom\Unregister-AzStorageMoverAgent'; + DeleteViaIdentity = 'Az.StorageMover.custom\Unregister-AzStorageMoverAgent'; + } + if (('Delete') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { + $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + } + $cmdInfo = Get-Command -Name $mapping[$parameterSet] + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) + if ($null -ne $MyInvocation.MyCommand -and [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets -notcontains $MyInvocation.MyCommand.Name -and [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){ + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.MessageAttributeHelper]::ProcessPreviewMessageAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) + } + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + $scriptCmd = {& $wrappedCmd @PSBoundParameters} + $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) + $steppablePipeline.Begin($PSCmdlet) + } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + throw + } +} + +process { + try { + $steppablePipeline.Process($_) + } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + throw + } + + finally { + $backupTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId + $backupInternalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + } + +} +end { + try { + $steppablePipeline.End() + + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $backupTelemetryId + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $backupInternalCalledCmdlets + if ($preTelemetryId -eq '') { + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.module]::Instance.Telemetry.Invoke('Send', $MyInvocation, $parameterSet, $PSCmdlet) + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + } + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $preTelemetryId + + } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + throw + } +} +} + +<# +.Synopsis +Updates properties for an AzStorageContainer endpoint resource. +Properties not specified in the request body will be unchanged. +.Description +Updates properties for an AzStorageContainer endpoint resource. +Properties not specified in the request body will be unchanged. +.Example +Update-AzStorageMoverAzStorageContainerEndpoint -Name myEndpoint -ResourceGroupName myResourceGroup -StorageMoverName myStorageMover -Description "Update Description" + +.Inputs +Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.IStorageMoverIdentity +.Outputs +Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IEndpoint +.Notes +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. +.Link +https://learn.microsoft.com/powershell/module/az.storagemover/update-azstoragemoverazstoragecontainerendpoint +#> +function Update-AzStorageMoverAzStorageContainerEndpoint { +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IEndpoint])] +[CmdletBinding(DefaultParameterSetName='UpdateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] +param( + [Parameter(ParameterSetName='UpdateExpanded', Mandatory)] + [Alias('EndpointName')] + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Category('Path')] + [System.String] + # The name of the endpoint resource. + ${Name}, + + [Parameter(ParameterSetName='UpdateExpanded', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Category('Path')] + [System.String] + # The name of the resource group. + # The name is case insensitive. + ${ResourceGroupName}, + + [Parameter(ParameterSetName='UpdateExpanded', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Category('Path')] + [System.String] + # The name of the Storage Mover resource. + ${StorageMoverName}, + + [Parameter(ParameterSetName='UpdateExpanded')] + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] + [System.String] + # The ID of the target subscription. + ${SubscriptionId}, + + [Parameter(ParameterSetName='UpdateViaIdentityExpanded', Mandatory, ValueFromPipeline)] + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.IStorageMoverIdentity] + # Identity Parameter + # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. + ${InputObject}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Category('Body')] + [System.String] + # A description for the endpoint. + ${Description}, + + [Parameter()] + [Alias('AzureRMContext', 'AzureCredential')] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Category('Azure')] + [System.Management.Automation.PSObject] + # The credentials, account, tenant, and subscription used for communication with Azure. + ${DefaultProfile}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Wait for .NET debugger to attach + ${Break}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be appended to the front of the pipeline + ${HttpPipelineAppend}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be prepended to the front of the pipeline + ${HttpPipelinePrepend}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Category('Runtime')] + [System.Uri] + # The URI for the proxy server to use + ${Proxy}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Category('Runtime')] + [System.Management.Automation.PSCredential] + # Credentials for a proxy server to use for the remote call + ${ProxyCredential}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Use the default credentials for the proxy + ${ProxyUseDefaultCredentials} +) + +begin { + try { + $outBuffer = $null + if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { + $PSBoundParameters['OutBuffer'] = 1 + } + $parameterSet = $PSCmdlet.ParameterSetName + + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() + } + $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId + if ($preTelemetryId -eq '') { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId =(New-Guid).ToString() + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.module]::Instance.Telemetry.Invoke('Create', $MyInvocation, $parameterSet, $PSCmdlet) + } else { + $internalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets + if ($internalCalledCmdlets -eq '') { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $MyInvocation.MyCommand.Name + } else { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets += ',' + $MyInvocation.MyCommand.Name + } + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = 'internal' + } + + $mapping = @{ + UpdateExpanded = 'Az.StorageMover.custom\Update-AzStorageMoverAzStorageContainerEndpoint'; + UpdateViaIdentityExpanded = 'Az.StorageMover.custom\Update-AzStorageMoverAzStorageContainerEndpoint'; + } + if (('UpdateExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { + $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + } + $cmdInfo = Get-Command -Name $mapping[$parameterSet] + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) + if ($null -ne $MyInvocation.MyCommand -and [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets -notcontains $MyInvocation.MyCommand.Name -and [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){ + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.MessageAttributeHelper]::ProcessPreviewMessageAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) + } + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + $scriptCmd = {& $wrappedCmd @PSBoundParameters} + $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) + $steppablePipeline.Begin($PSCmdlet) + } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + throw + } +} + +process { + try { + $steppablePipeline.Process($_) + } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + throw + } + + finally { + $backupTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId + $backupInternalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + } + +} +end { + try { + $steppablePipeline.End() + + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $backupTelemetryId + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $backupInternalCalledCmdlets + if ($preTelemetryId -eq '') { + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.module]::Instance.Telemetry.Invoke('Send', $MyInvocation, $parameterSet, $PSCmdlet) + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + } + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $preTelemetryId + + } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + throw + } +} +} + +<# +.Synopsis +Updates properties for a Nfs endpoint resource. +Properties not specified in the request body will be unchanged. +.Description +Updates properties for a Nfs endpoint resource. +Properties not specified in the request body will be unchanged. +.Example +Update-AzStorageMoverNfsEndpoint -Name myEndpoint -ResourceGroupName myResourceGroup -StorageMoverName myStorageMover -Description "Update Description" + +.Inputs +Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.IStorageMoverIdentity +.Outputs +Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IEndpoint +.Notes +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. +.Link +https://learn.microsoft.com/powershell/module/az.storagemover/update-azstoragemovernfsendpoint +#> +function Update-AzStorageMoverNfsEndpoint { +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IEndpoint])] +[CmdletBinding(DefaultParameterSetName='UpdateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] +param( + [Parameter(ParameterSetName='UpdateExpanded', Mandatory)] + [Alias('EndpointName')] + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Category('Path')] + [System.String] + # The name of the endpoint resource. + ${Name}, + + [Parameter(ParameterSetName='UpdateExpanded', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Category('Path')] + [System.String] + # The name of the resource group. + # The name is case insensitive. + ${ResourceGroupName}, + + [Parameter(ParameterSetName='UpdateExpanded', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Category('Path')] + [System.String] + # The name of the Storage Mover resource. + ${StorageMoverName}, + + [Parameter(ParameterSetName='UpdateExpanded')] + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] + [System.String] + # The ID of the target subscription. + ${SubscriptionId}, + + [Parameter(ParameterSetName='UpdateViaIdentityExpanded', Mandatory, ValueFromPipeline)] + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.IStorageMoverIdentity] + # Identity Parameter + # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. + ${InputObject}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Category('Body')] + [System.String] + # A description for the endpoint. + ${Description}, + + [Parameter()] + [Alias('AzureRMContext', 'AzureCredential')] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Category('Azure')] + [System.Management.Automation.PSObject] + # The credentials, account, tenant, and subscription used for communication with Azure. + ${DefaultProfile}, + + [Parameter(DontShow)] [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Wait for .NET debugger to attach @@ -4833,14 +5531,18 @@ begin { } $mapping = @{ - UpdateExpanded = 'Az.StorageMover.custom\Update-AzStorageMoverAzStorageContainerEndpoint'; - UpdateViaIdentityExpanded = 'Az.StorageMover.custom\Update-AzStorageMoverAzStorageContainerEndpoint'; + UpdateExpanded = 'Az.StorageMover.custom\Update-AzStorageMoverNfsEndpoint'; + UpdateViaIdentityExpanded = 'Az.StorageMover.custom\Update-AzStorageMoverNfsEndpoint'; } if (('UpdateExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id } $cmdInfo = Get-Command -Name $mapping[$parameterSet] [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) + if ($null -ne $MyInvocation.MyCommand -and [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets -notcontains $MyInvocation.MyCommand.Name -and [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){ + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.MessageAttributeHelper]::ProcessPreviewMessageAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) + } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) @@ -4887,18 +5589,20 @@ end { <# .Synopsis -Updates properties for a Nfs endpoint resource. +Updates properties for a SMB endpoint resource. Properties not specified in the request body will be unchanged. .Description -Updates properties for a Nfs endpoint resource. +Updates properties for a SMB endpoint resource. Properties not specified in the request body will be unchanged. .Example -Update-AzStorageMoverNfsEndpoint -Name myEndpoint -ResourceGroupName myResourceGroup -StorageMoverName myStorageMover -Description "Update Description" +Update-AzStorageMoverSmbEndpoint -Name "myendpoint" -ResourceGroupName "myresourcegroup" -StorageMoverName "mystoragemover" -CredentialsUsernameUri "https://examples-azureKeyVault.vault.azure.net/secrets/username2" -CredentialsPasswordUri "https://examples-azureKeyVault.vault.azure.net/secrets/password2" -Description "update endpoint" +.Example +Get-AzStorageMoverEndpoint -ResourceGroupName "myresourcegroup" -StorageMoverName "mystoragemover" -Name "myendpoint" | Update-AzStorageMoverSmbEndpoint -CredentialsPasswordUri "" -CredentialsUsernameUri "" -Description "update endpoint again" .Inputs Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.IStorageMoverIdentity .Outputs -Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IEndpoint +Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IEndpoint .Notes COMPLEX PARAMETER PROPERTIES @@ -4915,10 +5619,10 @@ INPUTOBJECT : Identity Parameter [StorageMoverName ]: The name of the Storage Mover resource. [SubscriptionId ]: The ID of the target subscription. .Link -https://learn.microsoft.com/powershell/module/az.storagemover/update-azstoragemovernfsendpoint +https://learn.microsoft.com/powershell/module/az.storagemover/update-azstoragemoversmbendpoint #> -function Update-AzStorageMoverNfsEndpoint { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IEndpoint])] +function Update-AzStorageMoverSmbEndpoint { +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IEndpoint])] [CmdletBinding(DefaultParameterSetName='UpdateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param( [Parameter(ParameterSetName='UpdateExpanded', Mandatory)] @@ -4955,6 +5659,20 @@ param( # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ${InputObject}, + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Category('Body')] + [System.String] + # The secret URI which stores the username. + # Use empty string to clean-up existing value. + ${CredentialsUsernameUri}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Category('Body')] + [System.String] + # The secret URI which stores the password. + # Use empty string to clean-up existing value. + ${CredentialsPasswordUri}, + [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Category('Body')] [System.String] @@ -5035,14 +5753,226 @@ begin { } $mapping = @{ - UpdateExpanded = 'Az.StorageMover.custom\Update-AzStorageMoverNfsEndpoint'; - UpdateViaIdentityExpanded = 'Az.StorageMover.custom\Update-AzStorageMoverNfsEndpoint'; + UpdateExpanded = 'Az.StorageMover.custom\Update-AzStorageMoverSmbEndpoint'; + UpdateViaIdentityExpanded = 'Az.StorageMover.custom\Update-AzStorageMoverSmbEndpoint'; + } + if (('UpdateExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { + $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + } + $cmdInfo = Get-Command -Name $mapping[$parameterSet] + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) + if ($null -ne $MyInvocation.MyCommand -and [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets -notcontains $MyInvocation.MyCommand.Name -and [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){ + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.MessageAttributeHelper]::ProcessPreviewMessageAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) + } + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + $scriptCmd = {& $wrappedCmd @PSBoundParameters} + $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) + $steppablePipeline.Begin($PSCmdlet) + } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + throw + } +} + +process { + try { + $steppablePipeline.Process($_) + } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + throw + } + + finally { + $backupTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId + $backupInternalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + } + +} +end { + try { + $steppablePipeline.End() + + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $backupTelemetryId + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $backupInternalCalledCmdlets + if ($preTelemetryId -eq '') { + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.module]::Instance.Telemetry.Invoke('Send', $MyInvocation, $parameterSet, $PSCmdlet) + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + } + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $preTelemetryId + + } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + throw + } +} +} + +<# +.Synopsis +Updates properties for a SMB file share endpoint resource. +Properties not specified in the request body will be unchanged. +.Description +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" +.Example +Get-AzStorageMoverEndpoint -ResourceGroupName "myresourcegroup" -StorageMoverName "mystoragemover" -Name "myendpoint" | Update-AzStorageMoverSmbFileShareEndpoint -Description "updated endpoint again" + +.Inputs +Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.IStorageMoverIdentity +.Outputs +Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IEndpoint +.Notes +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. +.Link +https://learn.microsoft.com/powershell/module/az.storagemover/update-azstoragemoversmbfileshareendpoint +#> +function Update-AzStorageMoverSmbFileShareEndpoint { +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IEndpoint])] +[CmdletBinding(DefaultParameterSetName='UpdateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] +param( + [Parameter(ParameterSetName='UpdateExpanded', Mandatory)] + [Alias('EndpointName')] + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Category('Path')] + [System.String] + # The name of the endpoint resource. + ${Name}, + + [Parameter(ParameterSetName='UpdateExpanded', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Category('Path')] + [System.String] + # The name of the resource group. + # The name is case insensitive. + ${ResourceGroupName}, + + [Parameter(ParameterSetName='UpdateExpanded', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Category('Path')] + [System.String] + # The name of the Storage Mover resource. + ${StorageMoverName}, + + [Parameter(ParameterSetName='UpdateExpanded')] + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] + [System.String] + # The ID of the target subscription. + ${SubscriptionId}, + + [Parameter(ParameterSetName='UpdateViaIdentityExpanded', Mandatory, ValueFromPipeline)] + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.IStorageMoverIdentity] + # Identity Parameter + # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. + ${InputObject}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Category('Body')] + [System.String] + # A description for the endpoint. + ${Description}, + + [Parameter()] + [Alias('AzureRMContext', 'AzureCredential')] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Category('Azure')] + [System.Management.Automation.PSObject] + # The credentials, account, tenant, and subscription used for communication with Azure. + ${DefaultProfile}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Wait for .NET debugger to attach + ${Break}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be appended to the front of the pipeline + ${HttpPipelineAppend}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be prepended to the front of the pipeline + ${HttpPipelinePrepend}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Category('Runtime')] + [System.Uri] + # The URI for the proxy server to use + ${Proxy}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Category('Runtime')] + [System.Management.Automation.PSCredential] + # Credentials for a proxy server to use for the remote call + ${ProxyCredential}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Use the default credentials for the proxy + ${ProxyUseDefaultCredentials} +) + +begin { + try { + $outBuffer = $null + if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { + $PSBoundParameters['OutBuffer'] = 1 + } + $parameterSet = $PSCmdlet.ParameterSetName + + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() + } + $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId + if ($preTelemetryId -eq '') { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId =(New-Guid).ToString() + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.module]::Instance.Telemetry.Invoke('Create', $MyInvocation, $parameterSet, $PSCmdlet) + } else { + $internalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets + if ($internalCalledCmdlets -eq '') { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $MyInvocation.MyCommand.Name + } else { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets += ',' + $MyInvocation.MyCommand.Name + } + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = 'internal' + } + + $mapping = @{ + UpdateExpanded = 'Az.StorageMover.custom\Update-AzStorageMoverSmbFileShareEndpoint'; + UpdateViaIdentityExpanded = 'Az.StorageMover.custom\Update-AzStorageMoverSmbFileShareEndpoint'; } if (('UpdateExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id } $cmdInfo = Get-Command -Name $mapping[$parameterSet] [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) + if ($null -ne $MyInvocation.MyCommand -and [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets -notcontains $MyInvocation.MyCommand.Name -and [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){ + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.MessageAttributeHelper]::ProcessPreviewMessageAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) + } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) diff --git a/src/StorageMover/exports/Remove-AzStorageMover.ps1 b/src/StorageMover/exports/Remove-AzStorageMover.ps1 index 26eda9c50ba6..1891ae7c16d0 100644 --- a/src/StorageMover/exports/Remove-AzStorageMover.ps1 +++ b/src/StorageMover/exports/Remove-AzStorageMover.ps1 @@ -181,6 +181,10 @@ begin { } $cmdInfo = Get-Command -Name $mapping[$parameterSet] [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) + if ($null -ne $MyInvocation.MyCommand -and [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets -notcontains $MyInvocation.MyCommand.Name -and [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){ + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.MessageAttributeHelper]::ProcessPreviewMessageAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) + } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) diff --git a/src/StorageMover/exports/Remove-AzStorageMoverEndpoint.ps1 b/src/StorageMover/exports/Remove-AzStorageMoverEndpoint.ps1 index 29568c714cc9..041688dbd026 100644 --- a/src/StorageMover/exports/Remove-AzStorageMoverEndpoint.ps1 +++ b/src/StorageMover/exports/Remove-AzStorageMoverEndpoint.ps1 @@ -183,6 +183,10 @@ begin { } $cmdInfo = Get-Command -Name $mapping[$parameterSet] [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) + if ($null -ne $MyInvocation.MyCommand -and [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets -notcontains $MyInvocation.MyCommand.Name -and [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){ + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.MessageAttributeHelper]::ProcessPreviewMessageAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) + } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) diff --git a/src/StorageMover/exports/Remove-AzStorageMoverJobDefinition.ps1 b/src/StorageMover/exports/Remove-AzStorageMoverJobDefinition.ps1 index 8e2cb7e320b1..a2c7b73c5052 100644 --- a/src/StorageMover/exports/Remove-AzStorageMoverJobDefinition.ps1 +++ b/src/StorageMover/exports/Remove-AzStorageMoverJobDefinition.ps1 @@ -189,6 +189,10 @@ begin { } $cmdInfo = Get-Command -Name $mapping[$parameterSet] [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) + if ($null -ne $MyInvocation.MyCommand -and [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets -notcontains $MyInvocation.MyCommand.Name -and [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){ + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.MessageAttributeHelper]::ProcessPreviewMessageAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) + } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) diff --git a/src/StorageMover/exports/Remove-AzStorageMoverProject.ps1 b/src/StorageMover/exports/Remove-AzStorageMoverProject.ps1 index cf53ce862271..ed7f6afaa06d 100644 --- a/src/StorageMover/exports/Remove-AzStorageMoverProject.ps1 +++ b/src/StorageMover/exports/Remove-AzStorageMoverProject.ps1 @@ -183,6 +183,10 @@ begin { } $cmdInfo = Get-Command -Name $mapping[$parameterSet] [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) + if ($null -ne $MyInvocation.MyCommand -and [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets -notcontains $MyInvocation.MyCommand.Name -and [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){ + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.MessageAttributeHelper]::ProcessPreviewMessageAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) + } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) diff --git a/src/StorageMover/exports/Start-AzStorageMoverJobDefinition.ps1 b/src/StorageMover/exports/Start-AzStorageMoverJobDefinition.ps1 index 8c071b87a09c..c0741ea850f3 100644 --- a/src/StorageMover/exports/Start-AzStorageMoverJobDefinition.ps1 +++ b/src/StorageMover/exports/Start-AzStorageMoverJobDefinition.ps1 @@ -176,6 +176,10 @@ begin { } $cmdInfo = Get-Command -Name $mapping[$parameterSet] [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) + if ($null -ne $MyInvocation.MyCommand -and [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets -notcontains $MyInvocation.MyCommand.Name -and [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){ + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.MessageAttributeHelper]::ProcessPreviewMessageAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) + } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) diff --git a/src/StorageMover/exports/Stop-AzStorageMoverJobDefinition.ps1 b/src/StorageMover/exports/Stop-AzStorageMoverJobDefinition.ps1 index 12946a0418e9..8c9bbd1d10eb 100644 --- a/src/StorageMover/exports/Stop-AzStorageMoverJobDefinition.ps1 +++ b/src/StorageMover/exports/Stop-AzStorageMoverJobDefinition.ps1 @@ -170,6 +170,10 @@ begin { } $cmdInfo = Get-Command -Name $mapping[$parameterSet] [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) + if ($null -ne $MyInvocation.MyCommand -and [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets -notcontains $MyInvocation.MyCommand.Name -and [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){ + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.MessageAttributeHelper]::ProcessPreviewMessageAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) + } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) diff --git a/src/StorageMover/exports/Unregister-AzStorageMoverAgent.ps1 b/src/StorageMover/exports/Unregister-AzStorageMoverAgent.ps1 index 44a2aaaf6545..9930520c6eb0 100644 --- a/src/StorageMover/exports/Unregister-AzStorageMoverAgent.ps1 +++ b/src/StorageMover/exports/Unregister-AzStorageMoverAgent.ps1 @@ -187,6 +187,10 @@ begin { } $cmdInfo = Get-Command -Name $mapping[$parameterSet] [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) + if ($null -ne $MyInvocation.MyCommand -and [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets -notcontains $MyInvocation.MyCommand.Name -and [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){ + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.MessageAttributeHelper]::ProcessPreviewMessageAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) + } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) diff --git a/src/StorageMover/exports/Update-AzStorageMover.ps1 b/src/StorageMover/exports/Update-AzStorageMover.ps1 index a86303efe8ff..381c18ba0a11 100644 --- a/src/StorageMover/exports/Update-AzStorageMover.ps1 +++ b/src/StorageMover/exports/Update-AzStorageMover.ps1 @@ -25,11 +25,11 @@ Properties not specified in the request body will be unchanged. Update-AzStorageMover -ResourceGroupName myResourceGroup -Name myStorageMover -Description "Update description" .Inputs -Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IStorageMoverUpdateParameters +Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IStorageMoverUpdateParameters .Inputs Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.IStorageMoverIdentity .Outputs -Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IStorageMover +Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IStorageMover .Notes COMPLEX PARAMETER PROPERTIES @@ -54,7 +54,7 @@ STORAGEMOVER : The Storage Mover resource. https://learn.microsoft.com/powershell/module/az.storagemover/update-azstoragemover #> function Update-AzStorageMover { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IStorageMover])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IStorageMover])] [CmdletBinding(DefaultParameterSetName='UpdateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param( [Parameter(ParameterSetName='Update', Mandatory)] @@ -92,7 +92,7 @@ param( [Parameter(ParameterSetName='Update', Mandatory, ValueFromPipeline)] [Parameter(ParameterSetName='UpdateViaIdentity', Mandatory, ValueFromPipeline)] [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IStorageMoverUpdateParameters] + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IStorageMoverUpdateParameters] # The Storage Mover resource. # To construct, see NOTES section for STORAGEMOVER properties and create a hash table. ${StorageMover}, @@ -107,7 +107,7 @@ param( [Parameter(ParameterSetName='UpdateExpanded')] [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IStorageMoverUpdateParametersTags]))] + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IStorageMoverUpdateParametersTags]))] [System.Collections.Hashtable] # Resource tags. ${Tag}, @@ -197,6 +197,10 @@ begin { } $cmdInfo = Get-Command -Name $mapping[$parameterSet] [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) + if ($null -ne $MyInvocation.MyCommand -and [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets -notcontains $MyInvocation.MyCommand.Name -and [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){ + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.MessageAttributeHelper]::ProcessPreviewMessageAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) + } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) diff --git a/src/StorageMover/exports/Update-AzStorageMoverAgent.ps1 b/src/StorageMover/exports/Update-AzStorageMoverAgent.ps1 index 4c696cad06b2..74c290539eb8 100644 --- a/src/StorageMover/exports/Update-AzStorageMoverAgent.ps1 +++ b/src/StorageMover/exports/Update-AzStorageMoverAgent.ps1 @@ -23,11 +23,11 @@ Creates or updates an Agent resource. Update-AzStorageMoverAgent -ResourceGroupName myResourceGroup -StorageMoverName myStorageMover -Name myAgent -Description "Update description" .Inputs -Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IAgentUpdateParameters +Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IAgentUpdateParameters .Inputs Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.IStorageMoverIdentity .Outputs -Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IAgent +Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IAgent .Notes COMPLEX PARAMETER PROPERTIES @@ -50,7 +50,7 @@ INPUTOBJECT : Identity Parameter https://learn.microsoft.com/powershell/module/az.storagemover/update-azstoragemoveragent #> function Update-AzStorageMoverAgent { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IAgent])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IAgent])] [CmdletBinding(DefaultParameterSetName='UpdateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param( [Parameter(ParameterSetName='Update', Mandatory)] @@ -95,7 +95,7 @@ param( [Parameter(ParameterSetName='Update', Mandatory, ValueFromPipeline)] [Parameter(ParameterSetName='UpdateViaIdentity', Mandatory, ValueFromPipeline)] [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IAgentUpdateParameters] + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IAgentUpdateParameters] # The Agent resource. # To construct, see NOTES section for AGENT properties and create a hash table. ${Agent}, @@ -192,6 +192,10 @@ begin { } $cmdInfo = Get-Command -Name $mapping[$parameterSet] [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) + if ($null -ne $MyInvocation.MyCommand -and [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets -notcontains $MyInvocation.MyCommand.Name -and [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){ + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.MessageAttributeHelper]::ProcessPreviewMessageAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) + } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) diff --git a/src/StorageMover/exports/Update-AzStorageMoverAzStorageContainerEndpoint.ps1 b/src/StorageMover/exports/Update-AzStorageMoverAzStorageContainerEndpoint.ps1 index ca381692fb6d..aadcf5c79f11 100644 --- a/src/StorageMover/exports/Update-AzStorageMoverAzStorageContainerEndpoint.ps1 +++ b/src/StorageMover/exports/Update-AzStorageMoverAzStorageContainerEndpoint.ps1 @@ -27,7 +27,7 @@ Update-AzStorageMoverAzStorageContainerEndpoint -Name myEndpoint -ResourceGroupN .Inputs Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.IStorageMoverIdentity .Outputs -Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IEndpoint +Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IEndpoint .Notes COMPLEX PARAMETER PROPERTIES @@ -47,7 +47,7 @@ INPUTOBJECT : Identity Parameter https://learn.microsoft.com/powershell/module/az.storagemover/update-azstoragemoverazstoragecontainerendpoint #> function Update-AzStorageMoverAzStorageContainerEndpoint { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IEndpoint])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IEndpoint])] [CmdletBinding(DefaultParameterSetName='UpdateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param( [Parameter(ParameterSetName='UpdateExpanded', Mandatory)] @@ -172,6 +172,10 @@ begin { } $cmdInfo = Get-Command -Name $mapping[$parameterSet] [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) + if ($null -ne $MyInvocation.MyCommand -and [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets -notcontains $MyInvocation.MyCommand.Name -and [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){ + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.MessageAttributeHelper]::ProcessPreviewMessageAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) + } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) diff --git a/src/StorageMover/exports/Update-AzStorageMoverJobDefinition.ps1 b/src/StorageMover/exports/Update-AzStorageMoverJobDefinition.ps1 index b93ab2b74561..27abe1f3d12d 100644 --- a/src/StorageMover/exports/Update-AzStorageMoverJobDefinition.ps1 +++ b/src/StorageMover/exports/Update-AzStorageMoverJobDefinition.ps1 @@ -25,11 +25,11 @@ Properties not specified in the request body will be unchanged. Update-AzStorageMoverJobDefinition -Name myJob -ProjectName myProject -ResourceGroupName myResourceGroup -StorageMoverName myStorageMover -Description "Update Description" .Inputs -Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobDefinitionUpdateParameters +Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobDefinitionUpdateParameters .Inputs Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.IStorageMoverIdentity .Outputs -Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobDefinition +Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobDefinition .Notes COMPLEX PARAMETER PROPERTIES @@ -54,7 +54,7 @@ JOBDEFINITION : The Job Definition resource. https://learn.microsoft.com/powershell/module/az.storagemover/update-azstoragemoverjobdefinition #> function Update-AzStorageMoverJobDefinition { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobDefinition])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobDefinition])] [CmdletBinding(DefaultParameterSetName='UpdateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param( [Parameter(ParameterSetName='Update', Mandatory)] @@ -106,7 +106,7 @@ param( [Parameter(ParameterSetName='Update', Mandatory, ValueFromPipeline)] [Parameter(ParameterSetName='UpdateViaIdentity', Mandatory, ValueFromPipeline)] [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobDefinitionUpdateParameters] + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobDefinitionUpdateParameters] # The Job Definition resource. # To construct, see NOTES section for JOBDEFINITION properties and create a hash table. ${JobDefinition}, @@ -218,6 +218,10 @@ begin { } $cmdInfo = Get-Command -Name $mapping[$parameterSet] [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) + if ($null -ne $MyInvocation.MyCommand -and [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets -notcontains $MyInvocation.MyCommand.Name -and [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){ + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.MessageAttributeHelper]::ProcessPreviewMessageAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) + } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) diff --git a/src/StorageMover/exports/Update-AzStorageMoverNfsEndpoint.ps1 b/src/StorageMover/exports/Update-AzStorageMoverNfsEndpoint.ps1 index 1ceefd98f557..7a427dcc7c03 100644 --- a/src/StorageMover/exports/Update-AzStorageMoverNfsEndpoint.ps1 +++ b/src/StorageMover/exports/Update-AzStorageMoverNfsEndpoint.ps1 @@ -27,7 +27,7 @@ Update-AzStorageMoverNfsEndpoint -Name myEndpoint -ResourceGroupName myResourceG .Inputs Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.IStorageMoverIdentity .Outputs -Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IEndpoint +Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IEndpoint .Notes COMPLEX PARAMETER PROPERTIES @@ -47,7 +47,7 @@ INPUTOBJECT : Identity Parameter https://learn.microsoft.com/powershell/module/az.storagemover/update-azstoragemovernfsendpoint #> function Update-AzStorageMoverNfsEndpoint { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IEndpoint])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IEndpoint])] [CmdletBinding(DefaultParameterSetName='UpdateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param( [Parameter(ParameterSetName='UpdateExpanded', Mandatory)] @@ -172,6 +172,10 @@ begin { } $cmdInfo = Get-Command -Name $mapping[$parameterSet] [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) + if ($null -ne $MyInvocation.MyCommand -and [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets -notcontains $MyInvocation.MyCommand.Name -and [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){ + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.MessageAttributeHelper]::ProcessPreviewMessageAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) + } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) diff --git a/src/StorageMover/exports/Update-AzStorageMoverProject.ps1 b/src/StorageMover/exports/Update-AzStorageMoverProject.ps1 index f1f9d9f7bc3e..d7f5e873f625 100644 --- a/src/StorageMover/exports/Update-AzStorageMoverProject.ps1 +++ b/src/StorageMover/exports/Update-AzStorageMoverProject.ps1 @@ -25,11 +25,11 @@ Properties not specified in the request body will be unchanged. Update-AzStorageMoverProject -ResourceGroupName myResourceGroup -StorageMoverName myStorageMover -Name myProject -Description "Update Description" .Inputs -Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IProjectUpdateParameters +Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IProjectUpdateParameters .Inputs Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.IStorageMoverIdentity .Outputs -Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IProject +Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IProject .Notes COMPLEX PARAMETER PROPERTIES @@ -52,7 +52,7 @@ PROJECT : The Project resource. https://learn.microsoft.com/powershell/module/az.storagemover/update-azstoragemoverproject #> function Update-AzStorageMoverProject { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IProject])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IProject])] [CmdletBinding(DefaultParameterSetName='UpdateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param( [Parameter(ParameterSetName='Update', Mandatory)] @@ -97,7 +97,7 @@ param( [Parameter(ParameterSetName='Update', Mandatory, ValueFromPipeline)] [Parameter(ParameterSetName='UpdateViaIdentity', Mandatory, ValueFromPipeline)] [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IProjectUpdateParameters] + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IProjectUpdateParameters] # The Project resource. # To construct, see NOTES section for PROJECT properties and create a hash table. ${Project}, @@ -194,6 +194,10 @@ begin { } $cmdInfo = Get-Command -Name $mapping[$parameterSet] [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) + if ($null -ne $MyInvocation.MyCommand -and [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets -notcontains $MyInvocation.MyCommand.Name -and [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){ + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.MessageAttributeHelper]::ProcessPreviewMessageAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) + } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) diff --git a/src/StorageMover/exports/Update-AzStorageMoverSmbEndpoint.ps1 b/src/StorageMover/exports/Update-AzStorageMoverSmbEndpoint.ps1 new file mode 100644 index 000000000000..15304efd17ae --- /dev/null +++ b/src/StorageMover/exports/Update-AzStorageMoverSmbEndpoint.ps1 @@ -0,0 +1,237 @@ + +# ---------------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# http://www.apache.org/licenses/LICENSE-2.0 +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# Code generated by Microsoft (R) AutoRest Code Generator.Changes may cause incorrect behavior and will be lost if the code +# is regenerated. +# ---------------------------------------------------------------------------------- + +<# +.Synopsis +Updates properties for a SMB endpoint resource. +Properties not specified in the request body will be unchanged. +.Description +Updates properties for a SMB endpoint resource. +Properties not specified in the request body will be unchanged. +.Example +Update-AzStorageMoverSmbEndpoint -Name "myendpoint" -ResourceGroupName "myresourcegroup" -StorageMoverName "mystoragemover" -CredentialsUsernameUri "https://examples-azureKeyVault.vault.azure.net/secrets/username2" -CredentialsPasswordUri "https://examples-azureKeyVault.vault.azure.net/secrets/password2" -Description "update endpoint" +.Example +Get-AzStorageMoverEndpoint -ResourceGroupName "myresourcegroup" -StorageMoverName "mystoragemover" -Name "myendpoint" | Update-AzStorageMoverSmbEndpoint -CredentialsPasswordUri "" -CredentialsUsernameUri "" -Description "update endpoint again" + +.Inputs +Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.IStorageMoverIdentity +.Outputs +Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IEndpoint +.Notes +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. +.Link +https://learn.microsoft.com/powershell/module/az.storagemover/update-azstoragemoversmbendpoint +#> +function Update-AzStorageMoverSmbEndpoint { +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IEndpoint])] +[CmdletBinding(DefaultParameterSetName='UpdateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] +param( + [Parameter(ParameterSetName='UpdateExpanded', Mandatory)] + [Alias('EndpointName')] + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Category('Path')] + [System.String] + # The name of the endpoint resource. + ${Name}, + + [Parameter(ParameterSetName='UpdateExpanded', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Category('Path')] + [System.String] + # The name of the resource group. + # The name is case insensitive. + ${ResourceGroupName}, + + [Parameter(ParameterSetName='UpdateExpanded', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Category('Path')] + [System.String] + # The name of the Storage Mover resource. + ${StorageMoverName}, + + [Parameter(ParameterSetName='UpdateExpanded')] + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] + [System.String] + # The ID of the target subscription. + ${SubscriptionId}, + + [Parameter(ParameterSetName='UpdateViaIdentityExpanded', Mandatory, ValueFromPipeline)] + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.IStorageMoverIdentity] + # Identity Parameter + # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. + ${InputObject}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Category('Body')] + [System.String] + # The secret URI which stores the username. + # Use empty string to clean-up existing value. + ${CredentialsUsernameUri}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Category('Body')] + [System.String] + # The secret URI which stores the password. + # Use empty string to clean-up existing value. + ${CredentialsPasswordUri}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Category('Body')] + [System.String] + # A description for the endpoint. + ${Description}, + + [Parameter()] + [Alias('AzureRMContext', 'AzureCredential')] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Category('Azure')] + [System.Management.Automation.PSObject] + # The credentials, account, tenant, and subscription used for communication with Azure. + ${DefaultProfile}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Wait for .NET debugger to attach + ${Break}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be appended to the front of the pipeline + ${HttpPipelineAppend}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be prepended to the front of the pipeline + ${HttpPipelinePrepend}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Category('Runtime')] + [System.Uri] + # The URI for the proxy server to use + ${Proxy}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Category('Runtime')] + [System.Management.Automation.PSCredential] + # Credentials for a proxy server to use for the remote call + ${ProxyCredential}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Use the default credentials for the proxy + ${ProxyUseDefaultCredentials} +) + +begin { + try { + $outBuffer = $null + if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { + $PSBoundParameters['OutBuffer'] = 1 + } + $parameterSet = $PSCmdlet.ParameterSetName + + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() + } + $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId + if ($preTelemetryId -eq '') { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId =(New-Guid).ToString() + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.module]::Instance.Telemetry.Invoke('Create', $MyInvocation, $parameterSet, $PSCmdlet) + } else { + $internalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets + if ($internalCalledCmdlets -eq '') { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $MyInvocation.MyCommand.Name + } else { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets += ',' + $MyInvocation.MyCommand.Name + } + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = 'internal' + } + + $mapping = @{ + UpdateExpanded = 'Az.StorageMover.custom\Update-AzStorageMoverSmbEndpoint'; + UpdateViaIdentityExpanded = 'Az.StorageMover.custom\Update-AzStorageMoverSmbEndpoint'; + } + if (('UpdateExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { + $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + } + $cmdInfo = Get-Command -Name $mapping[$parameterSet] + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) + if ($null -ne $MyInvocation.MyCommand -and [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets -notcontains $MyInvocation.MyCommand.Name -and [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){ + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.MessageAttributeHelper]::ProcessPreviewMessageAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) + } + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + $scriptCmd = {& $wrappedCmd @PSBoundParameters} + $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) + $steppablePipeline.Begin($PSCmdlet) + } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + throw + } +} + +process { + try { + $steppablePipeline.Process($_) + } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + throw + } + + finally { + $backupTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId + $backupInternalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + } + +} +end { + try { + $steppablePipeline.End() + + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $backupTelemetryId + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $backupInternalCalledCmdlets + if ($preTelemetryId -eq '') { + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.module]::Instance.Telemetry.Invoke('Send', $MyInvocation, $parameterSet, $PSCmdlet) + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + } + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $preTelemetryId + + } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + throw + } +} +} diff --git a/src/StorageMover/exports/Update-AzStorageMoverSmbFileShareEndpoint.ps1 b/src/StorageMover/exports/Update-AzStorageMoverSmbFileShareEndpoint.ps1 new file mode 100644 index 000000000000..727254a4cebf --- /dev/null +++ b/src/StorageMover/exports/Update-AzStorageMoverSmbFileShareEndpoint.ps1 @@ -0,0 +1,223 @@ + +# ---------------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# http://www.apache.org/licenses/LICENSE-2.0 +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# Code generated by Microsoft (R) AutoRest Code Generator.Changes may cause incorrect behavior and will be lost if the code +# is regenerated. +# ---------------------------------------------------------------------------------- + +<# +.Synopsis +Updates properties for a SMB file share endpoint resource. +Properties not specified in the request body will be unchanged. +.Description +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" +.Example +Get-AzStorageMoverEndpoint -ResourceGroupName "myresourcegroup" -StorageMoverName "mystoragemover" -Name "myendpoint" | Update-AzStorageMoverSmbFileShareEndpoint -Description "updated endpoint again" + +.Inputs +Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.IStorageMoverIdentity +.Outputs +Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IEndpoint +.Notes +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. +.Link +https://learn.microsoft.com/powershell/module/az.storagemover/update-azstoragemoversmbfileshareendpoint +#> +function Update-AzStorageMoverSmbFileShareEndpoint { +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IEndpoint])] +[CmdletBinding(DefaultParameterSetName='UpdateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] +param( + [Parameter(ParameterSetName='UpdateExpanded', Mandatory)] + [Alias('EndpointName')] + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Category('Path')] + [System.String] + # The name of the endpoint resource. + ${Name}, + + [Parameter(ParameterSetName='UpdateExpanded', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Category('Path')] + [System.String] + # The name of the resource group. + # The name is case insensitive. + ${ResourceGroupName}, + + [Parameter(ParameterSetName='UpdateExpanded', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Category('Path')] + [System.String] + # The name of the Storage Mover resource. + ${StorageMoverName}, + + [Parameter(ParameterSetName='UpdateExpanded')] + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] + [System.String] + # The ID of the target subscription. + ${SubscriptionId}, + + [Parameter(ParameterSetName='UpdateViaIdentityExpanded', Mandatory, ValueFromPipeline)] + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.IStorageMoverIdentity] + # Identity Parameter + # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. + ${InputObject}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Category('Body')] + [System.String] + # A description for the endpoint. + ${Description}, + + [Parameter()] + [Alias('AzureRMContext', 'AzureCredential')] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Category('Azure')] + [System.Management.Automation.PSObject] + # The credentials, account, tenant, and subscription used for communication with Azure. + ${DefaultProfile}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Wait for .NET debugger to attach + ${Break}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be appended to the front of the pipeline + ${HttpPipelineAppend}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be prepended to the front of the pipeline + ${HttpPipelinePrepend}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Category('Runtime')] + [System.Uri] + # The URI for the proxy server to use + ${Proxy}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Category('Runtime')] + [System.Management.Automation.PSCredential] + # Credentials for a proxy server to use for the remote call + ${ProxyCredential}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Use the default credentials for the proxy + ${ProxyUseDefaultCredentials} +) + +begin { + try { + $outBuffer = $null + if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { + $PSBoundParameters['OutBuffer'] = 1 + } + $parameterSet = $PSCmdlet.ParameterSetName + + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() + } + $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId + if ($preTelemetryId -eq '') { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId =(New-Guid).ToString() + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.module]::Instance.Telemetry.Invoke('Create', $MyInvocation, $parameterSet, $PSCmdlet) + } else { + $internalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets + if ($internalCalledCmdlets -eq '') { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $MyInvocation.MyCommand.Name + } else { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets += ',' + $MyInvocation.MyCommand.Name + } + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = 'internal' + } + + $mapping = @{ + UpdateExpanded = 'Az.StorageMover.custom\Update-AzStorageMoverSmbFileShareEndpoint'; + UpdateViaIdentityExpanded = 'Az.StorageMover.custom\Update-AzStorageMoverSmbFileShareEndpoint'; + } + if (('UpdateExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { + $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + } + $cmdInfo = Get-Command -Name $mapping[$parameterSet] + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) + if ($null -ne $MyInvocation.MyCommand -and [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets -notcontains $MyInvocation.MyCommand.Name -and [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){ + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.MessageAttributeHelper]::ProcessPreviewMessageAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) + } + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + $scriptCmd = {& $wrappedCmd @PSBoundParameters} + $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) + $steppablePipeline.Begin($PSCmdlet) + } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + throw + } +} + +process { + try { + $steppablePipeline.Process($_) + } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + throw + } + + finally { + $backupTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId + $backupInternalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + } + +} +end { + try { + $steppablePipeline.End() + + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $backupTelemetryId + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $backupInternalCalledCmdlets + if ($preTelemetryId -eq '') { + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.module]::Instance.Telemetry.Invoke('Send', $MyInvocation, $parameterSet, $PSCmdlet) + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + } + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $preTelemetryId + + } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + throw + } +} +} diff --git a/src/StorageMover/generate-help.ps1 b/src/StorageMover/generate-help.ps1 index 9d876faf6eb5..5cc13d3005ab 100644 --- a/src/StorageMover/generate-help.ps1 +++ b/src/StorageMover/generate-help.ps1 @@ -66,8 +66,8 @@ foreach($directory in $directories) $docsPath = Join-Path $docsFolder $directory.Name $null = New-Item -ItemType Directory -Force -Path $docsPath -ErrorAction SilentlyContinue $examplesPath = Join-Path $examplesFolder $directory.Name - - Export-HelpMarkdown -ModuleInfo $moduleInfo -FunctionInfo $cmdletFunctionInfo -HelpInfo $cmdletHelpInfo -DocsFolder $docsPath -ExamplesFolder $examplesPath + $addComplexInterfaceInfo = ![System.Convert]::ToBoolean('true') + Export-HelpMarkdown -ModuleInfo $moduleInfo -FunctionInfo $cmdletFunctionInfo -HelpInfo $cmdletHelpInfo -DocsFolder $docsPath -ExamplesFolder $examplesPath -AddComplexInterfaceInfo:$addComplexInterfaceInfo Write-Host -ForegroundColor Green "Created documentation in '$docsPath'" } diff --git a/src/StorageMover/generate-info.json b/src/StorageMover/generate-info.json index 605737c59b41..eb10aad3abac 100644 --- a/src/StorageMover/generate-info.json +++ b/src/StorageMover/generate-info.json @@ -1,8 +1,8 @@ { - "swagger_commit": "6c6b16dc98d720304633b76c8e82c282ffa9cc08", + "swagger_commit": "4c38cb9966cd6afbb03c7e9b14997720a728baee", "node": "v14.15.5", "autorest": "`-- (empty)", - "autorest_core": "3.9.6", + "autorest_core": "3.9.7", "autorest_modelerfour": "4.15.414", - "autorest_powershell": "3.0.504" + "autorest_powershell": "3.0.512" } diff --git a/src/StorageMover/generate-portal-ux.ps1 b/src/StorageMover/generate-portal-ux.ps1 new file mode 100644 index 000000000000..ff71572c8d87 --- /dev/null +++ b/src/StorageMover/generate-portal-ux.ps1 @@ -0,0 +1,375 @@ +# ---------------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# http://www.apache.org/licenses/LICENSE-2.0 +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# Code generated by Microsoft (R) AutoRest Code Generator.Changes may cause incorrect behavior and will be lost if the code +# is regenerated. +# +# This Script will create a folder dedicated to Azure-specific content and includes metadata files essential for enhancing the user experience (UX) within the Azure portal. +# These files are utilized by the Azure portal to effectively present the usage of cmdlets related to specific resources on portal pages. +# ---------------------------------------------------------------------------------- +param([switch]$Isolated) +$ErrorActionPreference = 'Stop' + +$pwsh = [System.Diagnostics.Process]::GetCurrentProcess().Path +if(-not $Isolated) { + Write-Host -ForegroundColor Green 'Creating isolated process...' + & "$pwsh" -NonInteractive -NoLogo -NoProfile -File $MyInvocation.MyCommand.Path @PSBoundParameters -Isolated + return +} + +$moduleName = 'Az.StorageMover' +$rootModuleName = '' +if ($rootModuleName -eq "") +{ + $rootModuleName = $moduleName +} +$modulePsd1 = Get-Item -Path (Join-Path $PSScriptRoot "./$moduleName.psd1") +$modulePath = $modulePsd1.FullName + +# Load DLL to use build-time cmdlets +Import-Module -Name $modulePath +Import-Module -Name (Join-Path $PSScriptRoot "./bin/$moduleName.private.dll") +$instance = [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Module]::Instance +# Module info is shared per profile +$moduleInfo = Get-Module -Name $moduleName +$parameterSetsInfo = Get-Module -Name "$moduleName.private" + +$buildinFunctions = @("Export-CmdletSurface", "Export-ExampleStub", "Export-FormatPs1xml", "Export-HelpMarkdown", "Export-ModelSurface", "Export-ProxyCmdlet", "Export-Psd1", "Export-TestStub", "Get-CommonParameter", "Get-ModuleGuid", "Get-ScriptCmdlet") + +function Test-FunctionSupported() +{ + [CmdletBinding()] + Param ( + [Parameter()] + [string] + $FunctionName + ) + + If ($buildinfunctions.Contains($FunctionName)) { + return $false + } + + $cmdletName, $parameterSetName = $FunctionName.Split("_") + If ($parameterSetName.Contains("List") -or $parameterSetName.Contains("ViaIdentity")) { + return $false + } + If ($cmdletName.StartsWith("New") -or $cmdletName.StartsWith("Set") -or $cmdletName.StartsWith("Update")) { + return $false + } + + $parameterSetInfo = $parameterSetsInfo.ExportedCmdlets[$FunctionName] + foreach ($parameterInfo in $parameterSetInfo.Parameters.Values) + { + $category = (Get-ParameterAttribute -ParameterInfo $parameterInfo -AttributeName "CategoryAttribute").Categories + $invalideCategory = @('Query', 'Body') + if ($invalideCategory -contains $category) + { + return $false + } + } + + $customFiles = Get-ChildItem -Path custom -Filter "$cmdletName.*" + if ($customFiles.Length -ne 0) + { + return $false + } + + return $true +} + +function Get-MappedCmdletFromFunctionName() +{ + [CmdletBinding()] + Param ( + [Parameter()] + [string] + $FunctionName + ) + + $cmdletName, $parameterSetName = $FunctionName.Split("_") + + return $cmdletName +} + +function Get-ParameterAttribute() +{ + [CmdletBinding()] + Param ( + [Parameter()] + [System.Management.Automation.ParameterMetadata] + $ParameterInfo, + [Parameter()] + [String] + $AttributeName + ) + return $ParameterInfo.Attributes | Where-Object { $_.TypeId.Name -eq $AttributeName } +} + +function Get-CmdletAttribute() +{ + [CmdletBinding()] + Param ( + [Parameter()] + [System.Management.Automation.CommandInfo] + $CmdletInfo, + [Parameter()] + [String] + $AttributeName + ) + + return $CmdletInfo.ImplementingType.GetTypeInfo().GetCustomAttributes([System.object], $true) | Where-Object { $_.TypeId.Name -eq $AttributeName } +} + +function Get-CmdletDescription() +{ + [CmdletBinding()] + Param ( + [Parameter()] + [String] + $CmdletName + ) + $helpInfo = Get-Help $CmdletName -Full + + $description = $helpInfo.Description.Text + if ($null -eq $description) + { + return "" + } + return $description +} + +# Test whether the parameter is from swagger http path +function Test-ParameterFromSwagger() +{ + [CmdletBinding()] + Param ( + [Parameter()] + [System.Management.Automation.ParameterMetadata] + $ParameterInfo + ) + $category = (Get-ParameterAttribute -ParameterInfo $ParameterInfo -AttributeName "CategoryAttribute").Categories + $doNotExport = Get-ParameterAttribute -ParameterInfo $ParameterInfo -AttributeName "DoNotExportAttribute" + if ($null -ne $doNotExport) + { + return $false + } + + $valideCategory = @('Path') + if ($valideCategory -contains $category) + { + return $true + } + return $false +} + +function New-ExampleForParameterSet() +{ + [CmdletBinding()] + Param ( + [Parameter()] + [System.Management.Automation.CommandInfo] + $ParameterSetInfo + ) + $parameters = $ParameterSetInfo.Parameters.Values | Where-Object { Test-ParameterFromSwagger $_ } + $result = @() + foreach ($parameter in $parameters) + { + $category = (Get-ParameterAttribute -parameterInfo $parameter -AttributeName "CategoryAttribute").Categories + $sourceName = (Get-ParameterAttribute -parameterInfo $parameter -AttributeName "InfoAttribute").SerializedName + $name = $parameter.Name + $result += [ordered]@{ + name = "-$Name" + value = "[$category.$sourceName]" + } + } + + return $result +} + +function New-ParameterArrayInParameterSet() +{ + [CmdletBinding()] + Param ( + [Parameter()] + [System.Management.Automation.CommandInfo] + $ParameterSetInfo + ) + $parameters = $ParameterSetInfo.Parameters.Values | Where-Object { Test-ParameterFromSwagger $_ } + $result = @() + foreach ($parameter in $parameters) + { + $isMandatory = (Get-ParameterAttribute -parameterInfo $parameter -AttributeName "ParameterAttribute").Mandatory + $parameterName = $parameter.Name + $parameterType = $parameter.ParameterType.ToString().Split('.')[1] + if ($parameter.SwitchParameter) + { + $parameterSignature = "-$parameterName" + } + else + { + $parameterSignature = "-$parameterName <$parameterType>" + } + if ($parameterName -eq "SubscriptionId") + { + $isMandatory = $false + } + if (-not $isMandatory) + { + $parameterSignature = "[$parameterSignature]" + } + $result += $parameterSignature + } + + return $result +} + +function New-MetadataForParameterSet() +{ + [CmdletBinding()] + Param ( + [Parameter()] + [System.Management.Automation.CommandInfo] + $ParameterSetInfo + ) + $httpAttribute = Get-CmdletAttribute -CmdletInfo $ParameterSetInfo -AttributeName "HttpPathAttribute" + $httpPath = $httpAttribute.Path + $apiVersion = $httpAttribute.ApiVersion + $provider = [System.Text.RegularExpressions.Regex]::New("/providers/([\w+\.]+)/").Match($httpPath).Groups[1].Value + $resourcePath = "/" + $httpPath.Split("$provider/")[1] + $resourceType = [System.Text.RegularExpressions.Regex]::New("/([\w]+)/\{\w+\}").Matches($resourcePath) | ForEach-Object {$_.groups[1].Value} | Join-String -Separator "/" + $cmdletName = Get-MappedCmdletFromFunctionName $ParameterSetInfo.Name + $description = (Get-CmdletAttribute -CmdletInfo $ParameterSetInfo -AttributeName "DescriptionAttribute").Description + [object[]]$example = New-ExampleForParameterSet $ParameterSetInfo + [string[]]$signature = New-ParameterArrayInParameterSet $ParameterSetInfo + + return @{ + Path = $httpPath + Provider = $provider + ResourceType = $resourceType + ApiVersion = $apiVersion + CmdletName = $cmdletName + Description = $description + Example = $example + Signature = @{ + parameters = $signature + } + } +} + +function Merge-WithExistCmdletMetadata() +{ + [CmdletBinding()] + Param ( + [Parameter()] + [System.Collections.Specialized.OrderedDictionary] + $ExistedCmdletInfo, + [Parameter()] + [Hashtable] + $ParameterSetMetadata + ) + $ExistedCmdletInfo.help.parameterSets += $ParameterSetMetadata.Signature + $ExistedCmdletInfo.examples += [ordered]@{ + description = $ParameterSetMetadata.Description + parameters = $ParameterSetMetadata.Example + } + + return $ExistedCmdletInfo +} + +function New-MetadataForCmdlet() +{ + [CmdletBinding()] + Param ( + [Parameter()] + [Hashtable] + $ParameterSetMetadata + ) + $cmdletName = $ParameterSetMetadata.CmdletName + $description = Get-CmdletDescription $cmdletName + $result = [ordered]@{ + name = $cmdletName + description = $description + path = $ParameterSetMetadata.Path + help = [ordered]@{ + learnMore = [ordered]@{ + url = "https://learn.microsoft.com/powershell/module/$rootModuleName/$cmdletName".ToLower() + } + parameterSets = @() + } + examples = @() + } + $result = Merge-WithExistCmdletMetadata -ExistedCmdletInfo $result -ParameterSetMetadata $ParameterSetMetadata + return $result +} + +$parameterSets = $parameterSetsInfo.ExportedCmdlets.Keys | Where-Object { Test-functionSupported($_) } +$resourceTypes = @{} +foreach ($parameterSetName in $parameterSets) +{ + $cmdletInfo = $parameterSetsInfo.ExportedCommands[$parameterSetName] + $parameterSetMetadata = New-MetadataForParameterSet -ParameterSetInfo $cmdletInfo + $cmdletName = $parameterSetMetadata.CmdletName + if (-not ($moduleInfo.ExportedCommands.ContainsKey($cmdletName))) + { + continue + } + if ($resourceTypes.ContainsKey($parameterSetMetadata.ResourceType)) + { + $ExistedCmdletInfo = $resourceTypes[$parameterSetMetadata.ResourceType].commands | Where-Object { $_.name -eq $cmdletName } + if ($ExistedCmdletInfo) + { + $ExistedCmdletInfo = Merge-WithExistCmdletMetadata -ExistedCmdletInfo $ExistedCmdletInfo -ParameterSetMetadata $parameterSetMetadata + } + else + { + $cmdletInfo = New-MetadataForCmdlet -ParameterSetMetadata $parameterSetMetadata + $resourceTypes[$parameterSetMetadata.ResourceType].commands += $cmdletInfo + } + } + else + { + $cmdletInfo = New-MetadataForCmdlet -ParameterSetMetadata $parameterSetMetadata + $resourceTypes[$parameterSetMetadata.ResourceType] = [ordered]@{ + resourceType = $parameterSetMetadata.ResourceType + apiVersion = $parameterSetMetadata.ApiVersion + learnMore = @{ + url = "https://learn.microsoft.com/powershell/module/$rootModuleName".ToLower() + } + commands = @($cmdletInfo) + provider = $parameterSetMetadata.Provider + } + } +} + +$UXFolder = 'UX' +if (Test-Path $UXFolder) +{ + Remove-Item -Path $UXFolder -Recurse +} +$null = New-Item -ItemType Directory -Path $UXFolder + +foreach ($resourceType in $resourceTypes.Keys) +{ + $resourceTypeFileName = $resourceType -replace "/", "-" + if ($resourceTypeFileName -eq "") + { + continue + } + $resourceTypeInfo = $resourceTypes[$resourceType] + $provider = $resourceTypeInfo.provider + $providerFolder = "$UXFolder/$provider" + if (-not (Test-Path $providerFolder)) + { + $null = New-Item -ItemType Directory -Path $providerFolder + } + $resourceTypeInfo.Remove("provider") + $resourceTypeInfo | ConvertTo-Json -Depth 10 | Out-File "$providerFolder/$resourceTypeFileName.json" +} \ No newline at end of file diff --git a/src/StorageMover/generated/api/Models/Api20/ProxyResource.cs b/src/StorageMover/generated/api/Models/Api20/ProxyResource.cs deleted file mode 100644 index d3e833713bff..000000000000 --- a/src/StorageMover/generated/api/Models/Api20/ProxyResource.cs +++ /dev/null @@ -1,80 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for license information. -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20 -{ - using static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Extensions; - - /// - /// The resource model definition for a Azure Resource Manager proxy resource. It will not have tags and a location - /// - public partial class ProxyResource : - Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.IProxyResource, - Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.IProxyResourceInternal, - Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.IValidates - { - /// - /// Backing field for Inherited model - /// - private Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.IResource __resource = new Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.Resource(); - - /// - /// Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} - /// - [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Origin(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.PropertyOrigin.Inherited)] - public string Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.IResourceInternal)__resource).Id; } - - /// Internal Acessors for Id - string Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.IResourceInternal)__resource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.IResourceInternal)__resource).Id = value; } - - /// Internal Acessors for Name - string Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.IResourceInternal)__resource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.IResourceInternal)__resource).Name = value; } - - /// Internal Acessors for Type - string Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.IResourceInternal)__resource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.IResourceInternal)__resource).Type = value; } - - /// The name of the resource - [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Origin(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.PropertyOrigin.Inherited)] - public string Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.IResourceInternal)__resource).Name; } - - /// - /// The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" - /// - [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Origin(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.PropertyOrigin.Inherited)] - public string Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.IResourceInternal)__resource).Type; } - - /// Creates an new instance. - public ProxyResource() - { - - } - - /// Validates that this object meets the validation criteria. - /// an instance that will receive validation - /// events. - /// - /// A that will be complete when validation is completed. - /// - public async global::System.Threading.Tasks.Task Validate(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.IEventListener eventListener) - { - await eventListener.AssertNotNull(nameof(__resource), __resource); - await eventListener.AssertObjectIsValid(nameof(__resource), __resource); - } - } - /// The resource model definition for a Azure Resource Manager proxy resource. It will not have tags and a location - public partial interface IProxyResource : - Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.IJsonSerializable, - Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.IResource - { - - } - /// The resource model definition for a Azure Resource Manager proxy resource. It will not have tags and a location - internal partial interface IProxyResourceInternal : - Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.IResourceInternal - { - - } -} \ No newline at end of file diff --git a/src/StorageMover/generated/api/Models/Api20/Resource.cs b/src/StorageMover/generated/api/Models/Api20/Resource.cs deleted file mode 100644 index b49117d9e38d..000000000000 --- a/src/StorageMover/generated/api/Models/Api20/Resource.cs +++ /dev/null @@ -1,108 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for license information. -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20 -{ - using static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Extensions; - - /// - /// Common fields that are returned in the response for all Azure Resource Manager resources - /// - public partial class Resource : - Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.IResource, - Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.IResourceInternal - { - - /// Backing field for property. - private string _id; - - /// - /// Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} - /// - [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Origin(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.PropertyOrigin.Owned)] - public string Id { get => this._id; } - - /// Internal Acessors for Id - string Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.IResourceInternal.Id { get => this._id; set { {_id = value;} } } - - /// Internal Acessors for Name - string Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.IResourceInternal.Name { get => this._name; set { {_name = value;} } } - - /// Internal Acessors for Type - string Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.IResourceInternal.Type { get => this._type; set { {_type = value;} } } - - /// Backing field for property. - private string _name; - - /// The name of the resource - [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Origin(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.PropertyOrigin.Owned)] - public string Name { get => this._name; } - - /// Backing field for property. - private string _type; - - /// - /// The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" - /// - [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Origin(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.PropertyOrigin.Owned)] - public string Type { get => this._type; } - - /// Creates an new instance. - public Resource() - { - - } - } - /// Common fields that are returned in the response for all Azure Resource Manager resources - public partial interface IResource : - Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.IJsonSerializable - { - /// - /// Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} - /// - [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Info( - Required = false, - ReadOnly = true, - Description = @"Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}", - SerializedName = @"id", - PossibleTypes = new [] { typeof(string) })] - string Id { get; } - /// The name of the resource - [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Info( - Required = false, - ReadOnly = true, - Description = @"The name of the resource", - SerializedName = @"name", - PossibleTypes = new [] { typeof(string) })] - string Name { get; } - /// - /// The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" - /// - [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Info( - Required = false, - ReadOnly = true, - Description = @"The type of the resource. E.g. ""Microsoft.Compute/virtualMachines"" or ""Microsoft.Storage/storageAccounts""", - SerializedName = @"type", - PossibleTypes = new [] { typeof(string) })] - string Type { get; } - - } - /// Common fields that are returned in the response for all Azure Resource Manager resources - internal partial interface IResourceInternal - - { - /// - /// Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} - /// - string Id { get; set; } - /// The name of the resource - string Name { get; set; } - /// - /// The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" - /// - string Type { get; set; } - - } -} \ No newline at end of file diff --git a/src/StorageMover/generated/api/Models/Api20230301/Agent.PowerShell.cs b/src/StorageMover/generated/api/Models/Api20231001/Agent.PowerShell.cs similarity index 65% rename from src/StorageMover/generated/api/Models/Api20230301/Agent.PowerShell.cs rename to src/StorageMover/generated/api/Models/Api20231001/Agent.PowerShell.cs index b38cc22be045..f77bc74201a7 100644 --- a/src/StorageMover/generated/api/Models/Api20230301/Agent.PowerShell.cs +++ b/src/StorageMover/generated/api/Models/Api20231001/Agent.PowerShell.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301 +namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001 { using Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.PowerShell; @@ -63,7 +63,7 @@ public partial class Agent partial void OverrideToString(ref string stringResult, ref bool returnNow); /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. @@ -78,109 +78,109 @@ internal Agent(global::System.Collections.IDictionary content) // actually deserialize if (content.Contains("Property")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IAgentInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IAgentProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IAgentInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.AgentPropertiesTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IAgentInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IAgentProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IAgentInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.AgentPropertiesTypeConverter.ConvertFrom); + } + if (content.Contains("SystemDataCreatedBy")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IResourceInternal)this).SystemDataCreatedBy = (string) content.GetValueForProperty("SystemDataCreatedBy",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IResourceInternal)this).SystemDataCreatedBy, global::System.Convert.ToString); + } + if (content.Contains("SystemDataCreatedAt")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IResourceInternal)this).SystemDataCreatedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataCreatedAt",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IResourceInternal)this).SystemDataCreatedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + } + if (content.Contains("SystemDataCreatedByType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IResourceInternal)this).SystemDataCreatedByType = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.CreatedByType?) content.GetValueForProperty("SystemDataCreatedByType",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IResourceInternal)this).SystemDataCreatedByType, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.CreatedByType.CreateFrom); + } + if (content.Contains("SystemDataLastModifiedBy")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IResourceInternal)this).SystemDataLastModifiedBy = (string) content.GetValueForProperty("SystemDataLastModifiedBy",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IResourceInternal)this).SystemDataLastModifiedBy, global::System.Convert.ToString); + } + if (content.Contains("SystemDataLastModifiedByType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IResourceInternal)this).SystemDataLastModifiedByType = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.CreatedByType?) content.GetValueForProperty("SystemDataLastModifiedByType",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IResourceInternal)this).SystemDataLastModifiedByType, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.CreatedByType.CreateFrom); + } + if (content.Contains("SystemDataLastModifiedAt")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IResourceInternal)this).SystemDataLastModifiedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataLastModifiedAt",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IResourceInternal)this).SystemDataLastModifiedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); } if (content.Contains("SystemData")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IAgentInternal)this).SystemData = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.ISystemData) content.GetValueForProperty("SystemData",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IAgentInternal)this).SystemData, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.SystemDataTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IResourceInternal)this).SystemData = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.ISystemData) content.GetValueForProperty("SystemData",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IResourceInternal)this).SystemData, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.SystemDataTypeConverter.ConvertFrom); } if (content.Contains("Id")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.IResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.IResourceInternal)this).Id, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IResourceInternal)this).Id, global::System.Convert.ToString); } if (content.Contains("Name")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.IResourceInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.IResourceInternal)this).Name, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IResourceInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IResourceInternal)this).Name, global::System.Convert.ToString); } if (content.Contains("Type")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.IResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.IResourceInternal)this).Type, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IResourceInternal)this).Type, global::System.Convert.ToString); } if (content.Contains("AgentStatus")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IAgentInternal)this).AgentStatus = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.AgentStatus?) content.GetValueForProperty("AgentStatus",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IAgentInternal)this).AgentStatus, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.AgentStatus.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IAgentInternal)this).AgentStatus = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.AgentStatus?) content.GetValueForProperty("AgentStatus",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IAgentInternal)this).AgentStatus, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.AgentStatus.CreateFrom); } if (content.Contains("ProvisioningState")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IAgentInternal)this).ProvisioningState = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.ProvisioningState?) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IAgentInternal)this).ProvisioningState, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.ProvisioningState.CreateFrom); - } - if (content.Contains("SystemDataCreatedBy")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IAgentInternal)this).SystemDataCreatedBy = (string) content.GetValueForProperty("SystemDataCreatedBy",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IAgentInternal)this).SystemDataCreatedBy, global::System.Convert.ToString); - } - if (content.Contains("SystemDataCreatedAt")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IAgentInternal)this).SystemDataCreatedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataCreatedAt",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IAgentInternal)this).SystemDataCreatedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IAgentInternal)this).ProvisioningState = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.ProvisioningState?) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IAgentInternal)this).ProvisioningState, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.ProvisioningState.CreateFrom); } if (content.Contains("ErrorDetail")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IAgentInternal)this).ErrorDetail = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IAgentPropertiesErrorDetails) content.GetValueForProperty("ErrorDetail",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IAgentInternal)this).ErrorDetail, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.AgentPropertiesErrorDetailsTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IAgentInternal)this).ErrorDetail = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IAgentPropertiesErrorDetails) content.GetValueForProperty("ErrorDetail",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IAgentInternal)this).ErrorDetail, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.AgentPropertiesErrorDetailsTypeConverter.ConvertFrom); } if (content.Contains("Description")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IAgentInternal)this).Description = (string) content.GetValueForProperty("Description",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IAgentInternal)this).Description, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IAgentInternal)this).Description = (string) content.GetValueForProperty("Description",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IAgentInternal)this).Description, global::System.Convert.ToString); } if (content.Contains("Version")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IAgentInternal)this).Version = (string) content.GetValueForProperty("Version",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IAgentInternal)this).Version, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IAgentInternal)this).Version = (string) content.GetValueForProperty("Version",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IAgentInternal)this).Version, global::System.Convert.ToString); } if (content.Contains("ArcResourceId")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IAgentInternal)this).ArcResourceId = (string) content.GetValueForProperty("ArcResourceId",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IAgentInternal)this).ArcResourceId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IAgentInternal)this).ArcResourceId = (string) content.GetValueForProperty("ArcResourceId",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IAgentInternal)this).ArcResourceId, global::System.Convert.ToString); } if (content.Contains("ArcVMUuid")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IAgentInternal)this).ArcVMUuid = (string) content.GetValueForProperty("ArcVMUuid",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IAgentInternal)this).ArcVMUuid, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IAgentInternal)this).ArcVMUuid = (string) content.GetValueForProperty("ArcVMUuid",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IAgentInternal)this).ArcVMUuid, global::System.Convert.ToString); } if (content.Contains("LastStatusUpdate")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IAgentInternal)this).LastStatusUpdate = (global::System.DateTime?) content.GetValueForProperty("LastStatusUpdate",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IAgentInternal)this).LastStatusUpdate, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IAgentInternal)this).LastStatusUpdate = (global::System.DateTime?) content.GetValueForProperty("LastStatusUpdate",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IAgentInternal)this).LastStatusUpdate, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); } if (content.Contains("LocalIPAddress")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IAgentInternal)this).LocalIPAddress = (string) content.GetValueForProperty("LocalIPAddress",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IAgentInternal)this).LocalIPAddress, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IAgentInternal)this).LocalIPAddress = (string) content.GetValueForProperty("LocalIPAddress",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IAgentInternal)this).LocalIPAddress, global::System.Convert.ToString); } if (content.Contains("MemoryInMb")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IAgentInternal)this).MemoryInMb = (long?) content.GetValueForProperty("MemoryInMb",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IAgentInternal)this).MemoryInMb, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IAgentInternal)this).MemoryInMb = (long?) content.GetValueForProperty("MemoryInMb",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IAgentInternal)this).MemoryInMb, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); } if (content.Contains("NumberOfCores")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IAgentInternal)this).NumberOfCores = (long?) content.GetValueForProperty("NumberOfCores",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IAgentInternal)this).NumberOfCores, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IAgentInternal)this).NumberOfCores = (long?) content.GetValueForProperty("NumberOfCores",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IAgentInternal)this).NumberOfCores, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); } if (content.Contains("UptimeInSeconds")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IAgentInternal)this).UptimeInSeconds = (long?) content.GetValueForProperty("UptimeInSeconds",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IAgentInternal)this).UptimeInSeconds, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); - } - if (content.Contains("SystemDataCreatedByType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IAgentInternal)this).SystemDataCreatedByType = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.CreatedByType?) content.GetValueForProperty("SystemDataCreatedByType",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IAgentInternal)this).SystemDataCreatedByType, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.CreatedByType.CreateFrom); - } - if (content.Contains("SystemDataLastModifiedBy")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IAgentInternal)this).SystemDataLastModifiedBy = (string) content.GetValueForProperty("SystemDataLastModifiedBy",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IAgentInternal)this).SystemDataLastModifiedBy, global::System.Convert.ToString); - } - if (content.Contains("SystemDataLastModifiedByType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IAgentInternal)this).SystemDataLastModifiedByType = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.CreatedByType?) content.GetValueForProperty("SystemDataLastModifiedByType",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IAgentInternal)this).SystemDataLastModifiedByType, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.CreatedByType.CreateFrom); - } - if (content.Contains("SystemDataLastModifiedAt")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IAgentInternal)this).SystemDataLastModifiedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataLastModifiedAt",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IAgentInternal)this).SystemDataLastModifiedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IAgentInternal)this).UptimeInSeconds = (long?) content.GetValueForProperty("UptimeInSeconds",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IAgentInternal)this).UptimeInSeconds, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); } if (content.Contains("ErrorDetailCode")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IAgentInternal)this).ErrorDetailCode = (string) content.GetValueForProperty("ErrorDetailCode",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IAgentInternal)this).ErrorDetailCode, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IAgentInternal)this).ErrorDetailCode = (string) content.GetValueForProperty("ErrorDetailCode",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IAgentInternal)this).ErrorDetailCode, global::System.Convert.ToString); } if (content.Contains("ErrorDetailMessage")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IAgentInternal)this).ErrorDetailMessage = (string) content.GetValueForProperty("ErrorDetailMessage",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IAgentInternal)this).ErrorDetailMessage, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IAgentInternal)this).ErrorDetailMessage = (string) content.GetValueForProperty("ErrorDetailMessage",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IAgentInternal)this).ErrorDetailMessage, global::System.Convert.ToString); } AfterDeserializeDictionary(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -195,129 +195,129 @@ internal Agent(global::System.Management.Automation.PSObject content) // actually deserialize if (content.Contains("Property")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IAgentInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IAgentProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IAgentInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.AgentPropertiesTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IAgentInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IAgentProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IAgentInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.AgentPropertiesTypeConverter.ConvertFrom); + } + if (content.Contains("SystemDataCreatedBy")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IResourceInternal)this).SystemDataCreatedBy = (string) content.GetValueForProperty("SystemDataCreatedBy",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IResourceInternal)this).SystemDataCreatedBy, global::System.Convert.ToString); + } + if (content.Contains("SystemDataCreatedAt")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IResourceInternal)this).SystemDataCreatedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataCreatedAt",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IResourceInternal)this).SystemDataCreatedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + } + if (content.Contains("SystemDataCreatedByType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IResourceInternal)this).SystemDataCreatedByType = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.CreatedByType?) content.GetValueForProperty("SystemDataCreatedByType",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IResourceInternal)this).SystemDataCreatedByType, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.CreatedByType.CreateFrom); + } + if (content.Contains("SystemDataLastModifiedBy")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IResourceInternal)this).SystemDataLastModifiedBy = (string) content.GetValueForProperty("SystemDataLastModifiedBy",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IResourceInternal)this).SystemDataLastModifiedBy, global::System.Convert.ToString); + } + if (content.Contains("SystemDataLastModifiedByType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IResourceInternal)this).SystemDataLastModifiedByType = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.CreatedByType?) content.GetValueForProperty("SystemDataLastModifiedByType",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IResourceInternal)this).SystemDataLastModifiedByType, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.CreatedByType.CreateFrom); + } + if (content.Contains("SystemDataLastModifiedAt")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IResourceInternal)this).SystemDataLastModifiedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataLastModifiedAt",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IResourceInternal)this).SystemDataLastModifiedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); } if (content.Contains("SystemData")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IAgentInternal)this).SystemData = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.ISystemData) content.GetValueForProperty("SystemData",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IAgentInternal)this).SystemData, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.SystemDataTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IResourceInternal)this).SystemData = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.ISystemData) content.GetValueForProperty("SystemData",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IResourceInternal)this).SystemData, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.SystemDataTypeConverter.ConvertFrom); } if (content.Contains("Id")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.IResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.IResourceInternal)this).Id, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IResourceInternal)this).Id, global::System.Convert.ToString); } if (content.Contains("Name")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.IResourceInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.IResourceInternal)this).Name, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IResourceInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IResourceInternal)this).Name, global::System.Convert.ToString); } if (content.Contains("Type")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.IResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.IResourceInternal)this).Type, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IResourceInternal)this).Type, global::System.Convert.ToString); } if (content.Contains("AgentStatus")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IAgentInternal)this).AgentStatus = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.AgentStatus?) content.GetValueForProperty("AgentStatus",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IAgentInternal)this).AgentStatus, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.AgentStatus.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IAgentInternal)this).AgentStatus = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.AgentStatus?) content.GetValueForProperty("AgentStatus",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IAgentInternal)this).AgentStatus, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.AgentStatus.CreateFrom); } if (content.Contains("ProvisioningState")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IAgentInternal)this).ProvisioningState = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.ProvisioningState?) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IAgentInternal)this).ProvisioningState, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.ProvisioningState.CreateFrom); - } - if (content.Contains("SystemDataCreatedBy")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IAgentInternal)this).SystemDataCreatedBy = (string) content.GetValueForProperty("SystemDataCreatedBy",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IAgentInternal)this).SystemDataCreatedBy, global::System.Convert.ToString); - } - if (content.Contains("SystemDataCreatedAt")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IAgentInternal)this).SystemDataCreatedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataCreatedAt",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IAgentInternal)this).SystemDataCreatedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IAgentInternal)this).ProvisioningState = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.ProvisioningState?) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IAgentInternal)this).ProvisioningState, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.ProvisioningState.CreateFrom); } if (content.Contains("ErrorDetail")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IAgentInternal)this).ErrorDetail = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IAgentPropertiesErrorDetails) content.GetValueForProperty("ErrorDetail",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IAgentInternal)this).ErrorDetail, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.AgentPropertiesErrorDetailsTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IAgentInternal)this).ErrorDetail = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IAgentPropertiesErrorDetails) content.GetValueForProperty("ErrorDetail",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IAgentInternal)this).ErrorDetail, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.AgentPropertiesErrorDetailsTypeConverter.ConvertFrom); } if (content.Contains("Description")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IAgentInternal)this).Description = (string) content.GetValueForProperty("Description",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IAgentInternal)this).Description, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IAgentInternal)this).Description = (string) content.GetValueForProperty("Description",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IAgentInternal)this).Description, global::System.Convert.ToString); } if (content.Contains("Version")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IAgentInternal)this).Version = (string) content.GetValueForProperty("Version",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IAgentInternal)this).Version, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IAgentInternal)this).Version = (string) content.GetValueForProperty("Version",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IAgentInternal)this).Version, global::System.Convert.ToString); } if (content.Contains("ArcResourceId")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IAgentInternal)this).ArcResourceId = (string) content.GetValueForProperty("ArcResourceId",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IAgentInternal)this).ArcResourceId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IAgentInternal)this).ArcResourceId = (string) content.GetValueForProperty("ArcResourceId",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IAgentInternal)this).ArcResourceId, global::System.Convert.ToString); } if (content.Contains("ArcVMUuid")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IAgentInternal)this).ArcVMUuid = (string) content.GetValueForProperty("ArcVMUuid",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IAgentInternal)this).ArcVMUuid, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IAgentInternal)this).ArcVMUuid = (string) content.GetValueForProperty("ArcVMUuid",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IAgentInternal)this).ArcVMUuid, global::System.Convert.ToString); } if (content.Contains("LastStatusUpdate")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IAgentInternal)this).LastStatusUpdate = (global::System.DateTime?) content.GetValueForProperty("LastStatusUpdate",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IAgentInternal)this).LastStatusUpdate, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IAgentInternal)this).LastStatusUpdate = (global::System.DateTime?) content.GetValueForProperty("LastStatusUpdate",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IAgentInternal)this).LastStatusUpdate, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); } if (content.Contains("LocalIPAddress")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IAgentInternal)this).LocalIPAddress = (string) content.GetValueForProperty("LocalIPAddress",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IAgentInternal)this).LocalIPAddress, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IAgentInternal)this).LocalIPAddress = (string) content.GetValueForProperty("LocalIPAddress",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IAgentInternal)this).LocalIPAddress, global::System.Convert.ToString); } if (content.Contains("MemoryInMb")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IAgentInternal)this).MemoryInMb = (long?) content.GetValueForProperty("MemoryInMb",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IAgentInternal)this).MemoryInMb, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IAgentInternal)this).MemoryInMb = (long?) content.GetValueForProperty("MemoryInMb",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IAgentInternal)this).MemoryInMb, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); } if (content.Contains("NumberOfCores")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IAgentInternal)this).NumberOfCores = (long?) content.GetValueForProperty("NumberOfCores",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IAgentInternal)this).NumberOfCores, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IAgentInternal)this).NumberOfCores = (long?) content.GetValueForProperty("NumberOfCores",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IAgentInternal)this).NumberOfCores, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); } if (content.Contains("UptimeInSeconds")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IAgentInternal)this).UptimeInSeconds = (long?) content.GetValueForProperty("UptimeInSeconds",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IAgentInternal)this).UptimeInSeconds, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); - } - if (content.Contains("SystemDataCreatedByType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IAgentInternal)this).SystemDataCreatedByType = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.CreatedByType?) content.GetValueForProperty("SystemDataCreatedByType",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IAgentInternal)this).SystemDataCreatedByType, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.CreatedByType.CreateFrom); - } - if (content.Contains("SystemDataLastModifiedBy")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IAgentInternal)this).SystemDataLastModifiedBy = (string) content.GetValueForProperty("SystemDataLastModifiedBy",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IAgentInternal)this).SystemDataLastModifiedBy, global::System.Convert.ToString); - } - if (content.Contains("SystemDataLastModifiedByType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IAgentInternal)this).SystemDataLastModifiedByType = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.CreatedByType?) content.GetValueForProperty("SystemDataLastModifiedByType",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IAgentInternal)this).SystemDataLastModifiedByType, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.CreatedByType.CreateFrom); - } - if (content.Contains("SystemDataLastModifiedAt")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IAgentInternal)this).SystemDataLastModifiedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataLastModifiedAt",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IAgentInternal)this).SystemDataLastModifiedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IAgentInternal)this).UptimeInSeconds = (long?) content.GetValueForProperty("UptimeInSeconds",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IAgentInternal)this).UptimeInSeconds, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); } if (content.Contains("ErrorDetailCode")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IAgentInternal)this).ErrorDetailCode = (string) content.GetValueForProperty("ErrorDetailCode",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IAgentInternal)this).ErrorDetailCode, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IAgentInternal)this).ErrorDetailCode = (string) content.GetValueForProperty("ErrorDetailCode",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IAgentInternal)this).ErrorDetailCode, global::System.Convert.ToString); } if (content.Contains("ErrorDetailMessage")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IAgentInternal)this).ErrorDetailMessage = (string) content.GetValueForProperty("ErrorDetailMessage",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IAgentInternal)this).ErrorDetailMessage, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IAgentInternal)this).ErrorDetailMessage = (string) content.GetValueForProperty("ErrorDetailMessage",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IAgentInternal)this).ErrorDetailMessage, global::System.Convert.ToString); } AfterDeserializePSObject(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Collections.IDictionary content that should be used. /// - /// an instance of . + /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IAgent DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IAgent DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new Agent(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. /// - /// an instance of . + /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IAgent DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IAgent DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new Agent(content); } @@ -327,7 +327,7 @@ public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301 /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IAgent FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IAgent FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonNode.Parse(jsonText)); /// Serializes this instance to a json string. diff --git a/src/StorageMover/generated/api/Models/Api20230301/Agent.TypeConverter.cs b/src/StorageMover/generated/api/Models/Api20231001/Agent.TypeConverter.cs similarity index 98% rename from src/StorageMover/generated/api/Models/Api20230301/Agent.TypeConverter.cs rename to src/StorageMover/generated/api/Models/Api20231001/Agent.TypeConverter.cs index f1e4ac175a00..30183caacd87 100644 --- a/src/StorageMover/generated/api/Models/Api20230301/Agent.TypeConverter.cs +++ b/src/StorageMover/generated/api/Models/Api20231001/Agent.TypeConverter.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301 +namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001 { using Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.PowerShell; @@ -105,14 +105,14 @@ public static bool CanConvertFrom(dynamic sourceValue) /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IAgent ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IAgent ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IAgent).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IAgent).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/StorageMover/generated/api/Models/Api20230301/Agent.cs b/src/StorageMover/generated/api/Models/Api20231001/Agent.cs similarity index 66% rename from src/StorageMover/generated/api/Models/Api20230301/Agent.cs rename to src/StorageMover/generated/api/Models/Api20231001/Agent.cs index 5c97dcc07c5b..c8ccece157d2 100644 --- a/src/StorageMover/generated/api/Models/Api20230301/Agent.cs +++ b/src/StorageMover/generated/api/Models/Api20231001/Agent.cs @@ -3,169 +3,168 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301 +namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001 { using static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Extensions; /// The Agent resource. [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.DoNotFormat] public partial class Agent : - Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IAgent, - Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IAgentInternal, + Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IAgent, + Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IAgentInternal, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.IValidates { /// - /// Backing field for Inherited model /// - private Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.IResource __resource = new Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.Resource(); + private Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IResource __resource = new Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.Resource(); /// The Agent status. [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Origin(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.PropertyOrigin.Inlined)] - public Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.AgentStatus? AgentStatus { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IAgentPropertiesInternal)Property).AgentStatus; } + public Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.AgentStatus? AgentStatus { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IAgentPropertiesInternal)Property).AgentStatus; } /// The fully qualified resource ID of the Hybrid Compute resource for the Agent. [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Origin(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.PropertyOrigin.Inlined)] - public string ArcResourceId { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IAgentPropertiesInternal)Property).ArcResourceId; set => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IAgentPropertiesInternal)Property).ArcResourceId = value ; } + public string ArcResourceId { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IAgentPropertiesInternal)Property).ArcResourceId; set => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IAgentPropertiesInternal)Property).ArcResourceId = value ; } /// The VM UUID of the Hybrid Compute resource for the Agent. [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Origin(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.PropertyOrigin.Inlined)] - public string ArcVMUuid { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IAgentPropertiesInternal)Property).ArcVMUuid; set => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IAgentPropertiesInternal)Property).ArcVMUuid = value ; } + public string ArcVMUuid { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IAgentPropertiesInternal)Property).ArcVMUuid; set => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IAgentPropertiesInternal)Property).ArcVMUuid = value ; } /// A description for the Agent. [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Origin(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.PropertyOrigin.Inlined)] - public string Description { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IAgentPropertiesInternal)Property).Description; set => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IAgentPropertiesInternal)Property).Description = value ?? null; } + public string Description { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IAgentPropertiesInternal)Property).Description; set => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IAgentPropertiesInternal)Property).Description = value ?? null; } /// Error code reported by Agent [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Origin(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.PropertyOrigin.Inlined)] - public string ErrorDetailCode { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IAgentPropertiesInternal)Property).ErrorDetailCode; set => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IAgentPropertiesInternal)Property).ErrorDetailCode = value ?? null; } + public string ErrorDetailCode { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IAgentPropertiesInternal)Property).ErrorDetailCode; set => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IAgentPropertiesInternal)Property).ErrorDetailCode = value ?? null; } /// Expanded description of reported error code [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Origin(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.PropertyOrigin.Inlined)] - public string ErrorDetailMessage { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IAgentPropertiesInternal)Property).ErrorDetailMessage; set => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IAgentPropertiesInternal)Property).ErrorDetailMessage = value ?? null; } + public string ErrorDetailMessage { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IAgentPropertiesInternal)Property).ErrorDetailMessage; set => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IAgentPropertiesInternal)Property).ErrorDetailMessage = value ?? null; } /// /// Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} /// [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Origin(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.PropertyOrigin.Inherited)] - public string Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.IResourceInternal)__resource).Id; } + public string Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IResourceInternal)__resource).Id; } /// The last updated time of the Agent status. [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Origin(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.PropertyOrigin.Inlined)] - public global::System.DateTime? LastStatusUpdate { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IAgentPropertiesInternal)Property).LastStatusUpdate; } + public global::System.DateTime? LastStatusUpdate { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IAgentPropertiesInternal)Property).LastStatusUpdate; } /// Local IP address reported by the Agent. [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Origin(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.PropertyOrigin.Inlined)] - public string LocalIPAddress { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IAgentPropertiesInternal)Property).LocalIPAddress; } + public string LocalIPAddress { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IAgentPropertiesInternal)Property).LocalIPAddress; } /// Available memory reported by the Agent, in MB. [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Origin(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.PropertyOrigin.Inlined)] - public long? MemoryInMb { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IAgentPropertiesInternal)Property).MemoryInMb; } - - /// Internal Acessors for Id - string Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.IResourceInternal)__resource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.IResourceInternal)__resource).Id = value; } - - /// Internal Acessors for Name - string Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.IResourceInternal)__resource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.IResourceInternal)__resource).Name = value; } - - /// Internal Acessors for Type - string Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.IResourceInternal)__resource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.IResourceInternal)__resource).Type = value; } + public long? MemoryInMb { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IAgentPropertiesInternal)Property).MemoryInMb; } /// Internal Acessors for AgentStatus - Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.AgentStatus? Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IAgentInternal.AgentStatus { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IAgentPropertiesInternal)Property).AgentStatus; set => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IAgentPropertiesInternal)Property).AgentStatus = value; } + Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.AgentStatus? Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IAgentInternal.AgentStatus { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IAgentPropertiesInternal)Property).AgentStatus; set => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IAgentPropertiesInternal)Property).AgentStatus = value; } /// Internal Acessors for ErrorDetail - Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IAgentPropertiesErrorDetails Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IAgentInternal.ErrorDetail { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IAgentPropertiesInternal)Property).ErrorDetail; set => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IAgentPropertiesInternal)Property).ErrorDetail = value; } + Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IAgentPropertiesErrorDetails Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IAgentInternal.ErrorDetail { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IAgentPropertiesInternal)Property).ErrorDetail; set => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IAgentPropertiesInternal)Property).ErrorDetail = value; } /// Internal Acessors for LastStatusUpdate - global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IAgentInternal.LastStatusUpdate { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IAgentPropertiesInternal)Property).LastStatusUpdate; set => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IAgentPropertiesInternal)Property).LastStatusUpdate = value; } + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IAgentInternal.LastStatusUpdate { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IAgentPropertiesInternal)Property).LastStatusUpdate; set => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IAgentPropertiesInternal)Property).LastStatusUpdate = value; } /// Internal Acessors for LocalIPAddress - string Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IAgentInternal.LocalIPAddress { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IAgentPropertiesInternal)Property).LocalIPAddress; set => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IAgentPropertiesInternal)Property).LocalIPAddress = value; } + string Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IAgentInternal.LocalIPAddress { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IAgentPropertiesInternal)Property).LocalIPAddress; set => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IAgentPropertiesInternal)Property).LocalIPAddress = value; } /// Internal Acessors for MemoryInMb - long? Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IAgentInternal.MemoryInMb { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IAgentPropertiesInternal)Property).MemoryInMb; set => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IAgentPropertiesInternal)Property).MemoryInMb = value; } + long? Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IAgentInternal.MemoryInMb { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IAgentPropertiesInternal)Property).MemoryInMb; set => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IAgentPropertiesInternal)Property).MemoryInMb = value; } /// Internal Acessors for NumberOfCores - long? Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IAgentInternal.NumberOfCores { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IAgentPropertiesInternal)Property).NumberOfCore; set => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IAgentPropertiesInternal)Property).NumberOfCore = value; } + long? Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IAgentInternal.NumberOfCores { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IAgentPropertiesInternal)Property).NumberOfCore; set => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IAgentPropertiesInternal)Property).NumberOfCore = value; } /// Internal Acessors for Property - Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IAgentProperties Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IAgentInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.AgentProperties()); set { {_property = value;} } } + Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IAgentProperties Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IAgentInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.AgentProperties()); set { {_property = value;} } } /// Internal Acessors for ProvisioningState - Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.ProvisioningState? Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IAgentInternal.ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IAgentPropertiesInternal)Property).ProvisioningState; set => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IAgentPropertiesInternal)Property).ProvisioningState = value; } - - /// Internal Acessors for SystemData - Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.ISystemData Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IAgentInternal.SystemData { get => (this._systemData = this._systemData ?? new Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.SystemData()); set { {_systemData = value;} } } + Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.ProvisioningState? Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IAgentInternal.ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IAgentPropertiesInternal)Property).ProvisioningState; set => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IAgentPropertiesInternal)Property).ProvisioningState = value; } /// Internal Acessors for UptimeInSeconds - long? Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IAgentInternal.UptimeInSeconds { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IAgentPropertiesInternal)Property).UptimeInSecond; set => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IAgentPropertiesInternal)Property).UptimeInSecond = value; } + long? Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IAgentInternal.UptimeInSeconds { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IAgentPropertiesInternal)Property).UptimeInSecond; set => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IAgentPropertiesInternal)Property).UptimeInSecond = value; } /// Internal Acessors for Version - string Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IAgentInternal.Version { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IAgentPropertiesInternal)Property).AgentVersion; set => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IAgentPropertiesInternal)Property).AgentVersion = value; } + string Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IAgentInternal.Version { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IAgentPropertiesInternal)Property).AgentVersion; set => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IAgentPropertiesInternal)Property).AgentVersion = value; } + + /// Internal Acessors for Id + string Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IResourceInternal)__resource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IResourceInternal)__resource).Id = value; } + + /// Internal Acessors for Name + string Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IResourceInternal)__resource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IResourceInternal)__resource).Name = value; } + + /// Internal Acessors for SystemData + Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.ISystemData Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IResourceInternal.SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IResourceInternal)__resource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IResourceInternal)__resource).SystemData = value; } + + /// Internal Acessors for Type + string Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IResourceInternal)__resource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IResourceInternal)__resource).Type = value; } /// The name of the resource [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Origin(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.PropertyOrigin.Inherited)] - public string Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.IResourceInternal)__resource).Name; } + public string Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IResourceInternal)__resource).Name; } /// Available compute cores reported by the Agent. [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Origin(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.PropertyOrigin.Inlined)] - public long? NumberOfCores { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IAgentPropertiesInternal)Property).NumberOfCore; } + public long? NumberOfCores { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IAgentPropertiesInternal)Property).NumberOfCore; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IAgentProperties _property; + private Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IAgentProperties _property; [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Origin(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.PropertyOrigin.Owned)] - internal Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IAgentProperties Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.AgentProperties()); set => this._property = value; } + internal Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IAgentProperties Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.AgentProperties()); set => this._property = value; } /// The provisioning state of this resource. [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Origin(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.PropertyOrigin.Inlined)] - public Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.ProvisioningState? ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IAgentPropertiesInternal)Property).ProvisioningState; } - - /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.ISystemData _systemData; + public Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.ProvisioningState? ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IAgentPropertiesInternal)Property).ProvisioningState; } - /// Resource system metadata. - [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Origin(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.PropertyOrigin.Owned)] - internal Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.ISystemData SystemData { get => (this._systemData = this._systemData ?? new Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.SystemData()); } + /// + /// Azure Resource Manager metadata containing createdBy and modifiedBy information. + /// + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Origin(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.PropertyOrigin.Inherited)] + private Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.ISystemData SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IResourceInternal)__resource).SystemData; } /// The timestamp of resource creation (UTC). - [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Origin(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.PropertyOrigin.Inlined)] - public global::System.DateTime? SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.ISystemDataInternal)SystemData).CreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.ISystemDataInternal)SystemData).CreatedAt = value ?? default(global::System.DateTime); } + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Origin(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.PropertyOrigin.Inherited)] + public global::System.DateTime? SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IResourceInternal)__resource).SystemDataCreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IResourceInternal)__resource).SystemDataCreatedAt = value ?? default(global::System.DateTime); } /// The identity that created the resource. - [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Origin(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.PropertyOrigin.Inlined)] - public string SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.ISystemDataInternal)SystemData).CreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.ISystemDataInternal)SystemData).CreatedBy = value ?? null; } + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Origin(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.PropertyOrigin.Inherited)] + public string SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IResourceInternal)__resource).SystemDataCreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IResourceInternal)__resource).SystemDataCreatedBy = value ?? null; } /// The type of identity that created the resource. - [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Origin(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.PropertyOrigin.Inlined)] - public Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.CreatedByType? SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.ISystemDataInternal)SystemData).CreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.ISystemDataInternal)SystemData).CreatedByType = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.CreatedByType)""); } + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Origin(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.PropertyOrigin.Inherited)] + public Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.CreatedByType? SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IResourceInternal)__resource).SystemDataCreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IResourceInternal)__resource).SystemDataCreatedByType = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.CreatedByType)""); } /// The timestamp of resource last modification (UTC) - [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Origin(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.PropertyOrigin.Inlined)] - public global::System.DateTime? SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.ISystemDataInternal)SystemData).LastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.ISystemDataInternal)SystemData).LastModifiedAt = value ?? default(global::System.DateTime); } + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Origin(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.PropertyOrigin.Inherited)] + public global::System.DateTime? SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IResourceInternal)__resource).SystemDataLastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IResourceInternal)__resource).SystemDataLastModifiedAt = value ?? default(global::System.DateTime); } /// The identity that last modified the resource. - [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Origin(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.PropertyOrigin.Inlined)] - public string SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.ISystemDataInternal)SystemData).LastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.ISystemDataInternal)SystemData).LastModifiedBy = value ?? null; } + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Origin(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.PropertyOrigin.Inherited)] + public string SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IResourceInternal)__resource).SystemDataLastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IResourceInternal)__resource).SystemDataLastModifiedBy = value ?? null; } /// The type of identity that last modified the resource. - [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Origin(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.PropertyOrigin.Inlined)] - public Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.CreatedByType? SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.ISystemDataInternal)SystemData).LastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.ISystemDataInternal)SystemData).LastModifiedByType = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.CreatedByType)""); } + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Origin(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.PropertyOrigin.Inherited)] + public Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.CreatedByType? SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IResourceInternal)__resource).SystemDataLastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IResourceInternal)__resource).SystemDataLastModifiedByType = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.CreatedByType)""); } /// /// The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" /// [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Origin(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.PropertyOrigin.Inherited)] - public string Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.IResourceInternal)__resource).Type; } + public string Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IResourceInternal)__resource).Type; } /// Uptime of the Agent in seconds. [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Origin(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.PropertyOrigin.Inlined)] - public long? UptimeInSeconds { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IAgentPropertiesInternal)Property).UptimeInSecond; } + public long? UptimeInSeconds { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IAgentPropertiesInternal)Property).UptimeInSecond; } /// The Agent version. [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Origin(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.PropertyOrigin.Inlined)] - public string Version { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IAgentPropertiesInternal)Property).AgentVersion; } + public string Version { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IAgentPropertiesInternal)Property).AgentVersion; } /// Creates an new instance. public Agent() @@ -188,7 +187,7 @@ public Agent() /// The Agent resource. public partial interface IAgent : Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.IJsonSerializable, - Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.IResource + Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IResource { /// The Agent status. [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Info( @@ -278,54 +277,6 @@ public partial interface IAgent : SerializedName = @"provisioningState", PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.ProvisioningState) })] Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.ProvisioningState? ProvisioningState { get; } - /// The timestamp of resource creation (UTC). - [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"The timestamp of resource creation (UTC).", - SerializedName = @"createdAt", - PossibleTypes = new [] { typeof(global::System.DateTime) })] - global::System.DateTime? SystemDataCreatedAt { get; set; } - /// The identity that created the resource. - [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"The identity that created the resource.", - SerializedName = @"createdBy", - PossibleTypes = new [] { typeof(string) })] - string SystemDataCreatedBy { get; set; } - /// The type of identity that created the resource. - [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"The type of identity that created the resource.", - SerializedName = @"createdByType", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.CreatedByType) })] - Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.CreatedByType? SystemDataCreatedByType { get; set; } - /// The timestamp of resource last modification (UTC) - [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"The timestamp of resource last modification (UTC)", - SerializedName = @"lastModifiedAt", - PossibleTypes = new [] { typeof(global::System.DateTime) })] - global::System.DateTime? SystemDataLastModifiedAt { get; set; } - /// The identity that last modified the resource. - [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"The identity that last modified the resource.", - SerializedName = @"lastModifiedBy", - PossibleTypes = new [] { typeof(string) })] - string SystemDataLastModifiedBy { get; set; } - /// The type of identity that last modified the resource. - [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"The type of identity that last modified the resource.", - SerializedName = @"lastModifiedByType", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.CreatedByType) })] - Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.CreatedByType? SystemDataLastModifiedByType { get; set; } /// Uptime of the Agent in seconds. [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Info( Required = false, @@ -346,7 +297,7 @@ public partial interface IAgent : } /// The Agent resource. internal partial interface IAgentInternal : - Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.IResourceInternal + Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IResourceInternal { /// The Agent status. Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.AgentStatus? AgentStatus { get; set; } @@ -357,7 +308,7 @@ internal partial interface IAgentInternal : /// A description for the Agent. string Description { get; set; } - Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IAgentPropertiesErrorDetails ErrorDetail { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IAgentPropertiesErrorDetails ErrorDetail { get; set; } /// Error code reported by Agent string ErrorDetailCode { get; set; } /// Expanded description of reported error code @@ -371,23 +322,9 @@ internal partial interface IAgentInternal : /// Available compute cores reported by the Agent. long? NumberOfCores { get; set; } - Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IAgentProperties Property { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IAgentProperties Property { get; set; } /// The provisioning state of this resource. Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.ProvisioningState? ProvisioningState { get; set; } - /// Resource system metadata. - Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.ISystemData SystemData { get; set; } - /// The timestamp of resource creation (UTC). - global::System.DateTime? SystemDataCreatedAt { get; set; } - /// The identity that created the resource. - string SystemDataCreatedBy { get; set; } - /// The type of identity that created the resource. - Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.CreatedByType? SystemDataCreatedByType { get; set; } - /// The timestamp of resource last modification (UTC) - global::System.DateTime? SystemDataLastModifiedAt { get; set; } - /// The identity that last modified the resource. - string SystemDataLastModifiedBy { get; set; } - /// The type of identity that last modified the resource. - Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.CreatedByType? SystemDataLastModifiedByType { get; set; } /// Uptime of the Agent in seconds. long? UptimeInSeconds { get; set; } /// The Agent version. diff --git a/src/StorageMover/generated/api/Models/Api20230301/Agent.json.cs b/src/StorageMover/generated/api/Models/Api20231001/Agent.json.cs similarity index 88% rename from src/StorageMover/generated/api/Models/Api20230301/Agent.json.cs rename to src/StorageMover/generated/api/Models/Api20231001/Agent.json.cs index 7440214a57c7..ba7eeceb54f4 100644 --- a/src/StorageMover/generated/api/Models/Api20230301/Agent.json.cs +++ b/src/StorageMover/generated/api/Models/Api20231001/Agent.json.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301 +namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001 { using static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Extensions; @@ -65,20 +65,19 @@ internal Agent(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.Json { return; } - __resource = new Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.Resource(json); - {_property = If( json?.PropertyT("properties"), out var __jsonProperties) ? Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.AgentProperties.FromJson(__jsonProperties) : Property;} - {_systemData = If( json?.PropertyT("systemData"), out var __jsonSystemData) ? Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.SystemData.FromJson(__jsonSystemData) : SystemData;} + __resource = new Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.Resource(json); + {_property = If( json?.PropertyT("properties"), out var __jsonProperties) ? Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.AgentProperties.FromJson(__jsonProperties) : Property;} AfterFromJson(json); } /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IAgent. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IAgent. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IAgent. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IAgent. /// - public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IAgent FromJson(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IAgent FromJson(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonObject json ? new Agent(json) : null; } @@ -104,10 +103,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonNode ToJ } __resource?.ToJson(container, serializationMode); AddIf( null != this._property ? (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonNode) this._property.ToJson(null,serializationMode) : null, "properties" ,container.Add ); - if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.SerializationMode.IncludeReadOnly)) - { - AddIf( null != this._systemData ? (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonNode) this._systemData.ToJson(null,serializationMode) : null, "systemData" ,container.Add ); - } AfterToJson(ref container); return container; } diff --git a/src/StorageMover/generated/api/Models/Api20230301/AgentList.PowerShell.cs b/src/StorageMover/generated/api/Models/Api20231001/AgentList.PowerShell.cs similarity index 86% rename from src/StorageMover/generated/api/Models/Api20230301/AgentList.PowerShell.cs rename to src/StorageMover/generated/api/Models/Api20231001/AgentList.PowerShell.cs index c8c34f4c5bad..837073e24edc 100644 --- a/src/StorageMover/generated/api/Models/Api20230301/AgentList.PowerShell.cs +++ b/src/StorageMover/generated/api/Models/Api20231001/AgentList.PowerShell.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301 +namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001 { using Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.PowerShell; @@ -63,7 +63,7 @@ public partial class AgentList partial void OverrideToString(ref string stringResult, ref bool returnNow); /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. @@ -78,17 +78,17 @@ internal AgentList(global::System.Collections.IDictionary content) // actually deserialize if (content.Contains("Value")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IAgentListInternal)this).Value = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IAgent[]) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IAgentListInternal)this).Value, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.AgentTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IAgentListInternal)this).Value = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IAgent[]) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IAgentListInternal)this).Value, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.AgentTypeConverter.ConvertFrom)); } if (content.Contains("NextLink")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IAgentListInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IAgentListInternal)this).NextLink, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IAgentListInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IAgentListInternal)this).NextLink, global::System.Convert.ToString); } AfterDeserializeDictionary(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -103,37 +103,37 @@ internal AgentList(global::System.Management.Automation.PSObject content) // actually deserialize if (content.Contains("Value")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IAgentListInternal)this).Value = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IAgent[]) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IAgentListInternal)this).Value, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.AgentTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IAgentListInternal)this).Value = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IAgent[]) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IAgentListInternal)this).Value, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.AgentTypeConverter.ConvertFrom)); } if (content.Contains("NextLink")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IAgentListInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IAgentListInternal)this).NextLink, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IAgentListInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IAgentListInternal)this).NextLink, global::System.Convert.ToString); } AfterDeserializePSObject(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Collections.IDictionary content that should be used. /// - /// an instance of . + /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IAgentList DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IAgentList DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new AgentList(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. /// - /// an instance of . + /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IAgentList DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IAgentList DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new AgentList(content); } @@ -143,7 +143,7 @@ public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301 /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IAgentList FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IAgentList FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonNode.Parse(jsonText)); /// Serializes this instance to a json string. diff --git a/src/StorageMover/generated/api/Models/Api20230301/AgentList.TypeConverter.cs b/src/StorageMover/generated/api/Models/Api20231001/AgentList.TypeConverter.cs similarity index 98% rename from src/StorageMover/generated/api/Models/Api20230301/AgentList.TypeConverter.cs rename to src/StorageMover/generated/api/Models/Api20231001/AgentList.TypeConverter.cs index d3de6be94e7d..159edfef9ed5 100644 --- a/src/StorageMover/generated/api/Models/Api20230301/AgentList.TypeConverter.cs +++ b/src/StorageMover/generated/api/Models/Api20231001/AgentList.TypeConverter.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301 +namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001 { using Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.PowerShell; @@ -105,14 +105,14 @@ public static bool CanConvertFrom(dynamic sourceValue) /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IAgentList ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IAgentList ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IAgentList).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IAgentList).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/StorageMover/generated/api/Models/Api20230301/AgentList.cs b/src/StorageMover/generated/api/Models/Api20231001/AgentList.cs similarity index 88% rename from src/StorageMover/generated/api/Models/Api20230301/AgentList.cs rename to src/StorageMover/generated/api/Models/Api20231001/AgentList.cs index 466d92a09c48..1081d6545c73 100644 --- a/src/StorageMover/generated/api/Models/Api20230301/AgentList.cs +++ b/src/StorageMover/generated/api/Models/Api20231001/AgentList.cs @@ -3,22 +3,22 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301 +namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001 { using static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Extensions; /// List of Agents. [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.DoNotFormat] public partial class AgentList : - Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IAgentList, - Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IAgentListInternal + Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IAgentList, + Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IAgentListInternal { /// Internal Acessors for NextLink - string Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IAgentListInternal.NextLink { get => this._nextLink; set { {_nextLink = value;} } } + string Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IAgentListInternal.NextLink { get => this._nextLink; set { {_nextLink = value;} } } /// Internal Acessors for Value - Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IAgent[] Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IAgentListInternal.Value { get => this._value; set { {_value = value;} } } + Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IAgent[] Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IAgentListInternal.Value { get => this._value; set { {_value = value;} } } /// Backing field for property. private string _nextLink; @@ -31,10 +31,10 @@ public partial class AgentList : public string NextLink { get => this._nextLink; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IAgent[] _value; + private Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IAgent[] _value; [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Origin(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.PropertyOrigin.Owned)] - public Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IAgent[] Value { get => this._value; } + public Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IAgent[] Value { get => this._value; } /// Creates an new instance. public AgentList() @@ -63,8 +63,8 @@ public partial interface IAgentList : ReadOnly = true, Description = @"", SerializedName = @"value", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IAgent) })] - Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IAgent[] Value { get; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IAgent) })] + Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IAgent[] Value { get; } } /// List of Agents. @@ -77,7 +77,7 @@ internal partial interface IAgentListInternal /// string NextLink { get; set; } - Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IAgent[] Value { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IAgent[] Value { get; set; } } } \ No newline at end of file diff --git a/src/StorageMover/generated/api/Models/Api20230301/AgentList.json.cs b/src/StorageMover/generated/api/Models/Api20231001/AgentList.json.cs similarity index 95% rename from src/StorageMover/generated/api/Models/Api20230301/AgentList.json.cs rename to src/StorageMover/generated/api/Models/Api20231001/AgentList.json.cs index 9e0f44323b2a..0eb3323f1460 100644 --- a/src/StorageMover/generated/api/Models/Api20230301/AgentList.json.cs +++ b/src/StorageMover/generated/api/Models/Api20231001/AgentList.json.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301 +namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001 { using static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Extensions; @@ -65,19 +65,19 @@ internal AgentList(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json. { return; } - {_value = If( json?.PropertyT("value"), out var __jsonValue) ? If( __jsonValue as Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonArray, out var __v) ? new global::System.Func(()=> global::System.Linq.Enumerable.ToArray(global::System.Linq.Enumerable.Select(__v, (__u)=>(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IAgent) (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.Agent.FromJson(__u) )) ))() : null : Value;} + {_value = If( json?.PropertyT("value"), out var __jsonValue) ? If( __jsonValue as Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonArray, out var __v) ? new global::System.Func(()=> global::System.Linq.Enumerable.ToArray(global::System.Linq.Enumerable.Select(__v, (__u)=>(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IAgent) (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.Agent.FromJson(__u) )) ))() : null : Value;} {_nextLink = If( json?.PropertyT("nextLink"), out var __jsonNextLink) ? (string)__jsonNextLink : (string)NextLink;} AfterFromJson(json); } /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IAgentList. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IAgentList. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IAgentList. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IAgentList. /// - public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IAgentList FromJson(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IAgentList FromJson(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonObject json ? new AgentList(json) : null; } diff --git a/src/StorageMover/generated/api/Models/Api20230301/AgentProperties.PowerShell.cs b/src/StorageMover/generated/api/Models/Api20231001/AgentProperties.PowerShell.cs similarity index 79% rename from src/StorageMover/generated/api/Models/Api20230301/AgentProperties.PowerShell.cs rename to src/StorageMover/generated/api/Models/Api20231001/AgentProperties.PowerShell.cs index 3f1fbadfc1f4..f151b544879f 100644 --- a/src/StorageMover/generated/api/Models/Api20230301/AgentProperties.PowerShell.cs +++ b/src/StorageMover/generated/api/Models/Api20231001/AgentProperties.PowerShell.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301 +namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001 { using Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.PowerShell; @@ -62,7 +62,7 @@ public partial class AgentProperties partial void OverrideToString(ref string stringResult, ref bool returnNow); /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. @@ -77,65 +77,65 @@ internal AgentProperties(global::System.Collections.IDictionary content) // actually deserialize if (content.Contains("ErrorDetail")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IAgentPropertiesInternal)this).ErrorDetail = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IAgentPropertiesErrorDetails) content.GetValueForProperty("ErrorDetail",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IAgentPropertiesInternal)this).ErrorDetail, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.AgentPropertiesErrorDetailsTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IAgentPropertiesInternal)this).ErrorDetail = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IAgentPropertiesErrorDetails) content.GetValueForProperty("ErrorDetail",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IAgentPropertiesInternal)this).ErrorDetail, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.AgentPropertiesErrorDetailsTypeConverter.ConvertFrom); } if (content.Contains("Description")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IAgentPropertiesInternal)this).Description = (string) content.GetValueForProperty("Description",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IAgentPropertiesInternal)this).Description, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IAgentPropertiesInternal)this).Description = (string) content.GetValueForProperty("Description",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IAgentPropertiesInternal)this).Description, global::System.Convert.ToString); } if (content.Contains("AgentVersion")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IAgentPropertiesInternal)this).AgentVersion = (string) content.GetValueForProperty("AgentVersion",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IAgentPropertiesInternal)this).AgentVersion, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IAgentPropertiesInternal)this).AgentVersion = (string) content.GetValueForProperty("AgentVersion",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IAgentPropertiesInternal)this).AgentVersion, global::System.Convert.ToString); } if (content.Contains("ArcResourceId")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IAgentPropertiesInternal)this).ArcResourceId = (string) content.GetValueForProperty("ArcResourceId",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IAgentPropertiesInternal)this).ArcResourceId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IAgentPropertiesInternal)this).ArcResourceId = (string) content.GetValueForProperty("ArcResourceId",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IAgentPropertiesInternal)this).ArcResourceId, global::System.Convert.ToString); } if (content.Contains("ArcVMUuid")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IAgentPropertiesInternal)this).ArcVMUuid = (string) content.GetValueForProperty("ArcVMUuid",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IAgentPropertiesInternal)this).ArcVMUuid, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IAgentPropertiesInternal)this).ArcVMUuid = (string) content.GetValueForProperty("ArcVMUuid",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IAgentPropertiesInternal)this).ArcVMUuid, global::System.Convert.ToString); } if (content.Contains("AgentStatus")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IAgentPropertiesInternal)this).AgentStatus = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.AgentStatus?) content.GetValueForProperty("AgentStatus",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IAgentPropertiesInternal)this).AgentStatus, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.AgentStatus.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IAgentPropertiesInternal)this).AgentStatus = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.AgentStatus?) content.GetValueForProperty("AgentStatus",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IAgentPropertiesInternal)this).AgentStatus, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.AgentStatus.CreateFrom); } if (content.Contains("LastStatusUpdate")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IAgentPropertiesInternal)this).LastStatusUpdate = (global::System.DateTime?) content.GetValueForProperty("LastStatusUpdate",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IAgentPropertiesInternal)this).LastStatusUpdate, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IAgentPropertiesInternal)this).LastStatusUpdate = (global::System.DateTime?) content.GetValueForProperty("LastStatusUpdate",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IAgentPropertiesInternal)this).LastStatusUpdate, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); } if (content.Contains("LocalIPAddress")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IAgentPropertiesInternal)this).LocalIPAddress = (string) content.GetValueForProperty("LocalIPAddress",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IAgentPropertiesInternal)this).LocalIPAddress, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IAgentPropertiesInternal)this).LocalIPAddress = (string) content.GetValueForProperty("LocalIPAddress",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IAgentPropertiesInternal)this).LocalIPAddress, global::System.Convert.ToString); } if (content.Contains("MemoryInMb")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IAgentPropertiesInternal)this).MemoryInMb = (long?) content.GetValueForProperty("MemoryInMb",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IAgentPropertiesInternal)this).MemoryInMb, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IAgentPropertiesInternal)this).MemoryInMb = (long?) content.GetValueForProperty("MemoryInMb",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IAgentPropertiesInternal)this).MemoryInMb, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); } if (content.Contains("NumberOfCore")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IAgentPropertiesInternal)this).NumberOfCore = (long?) content.GetValueForProperty("NumberOfCore",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IAgentPropertiesInternal)this).NumberOfCore, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IAgentPropertiesInternal)this).NumberOfCore = (long?) content.GetValueForProperty("NumberOfCore",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IAgentPropertiesInternal)this).NumberOfCore, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); } if (content.Contains("UptimeInSecond")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IAgentPropertiesInternal)this).UptimeInSecond = (long?) content.GetValueForProperty("UptimeInSecond",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IAgentPropertiesInternal)this).UptimeInSecond, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IAgentPropertiesInternal)this).UptimeInSecond = (long?) content.GetValueForProperty("UptimeInSecond",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IAgentPropertiesInternal)this).UptimeInSecond, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); } if (content.Contains("ProvisioningState")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IAgentPropertiesInternal)this).ProvisioningState = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.ProvisioningState?) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IAgentPropertiesInternal)this).ProvisioningState, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.ProvisioningState.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IAgentPropertiesInternal)this).ProvisioningState = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.ProvisioningState?) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IAgentPropertiesInternal)this).ProvisioningState, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.ProvisioningState.CreateFrom); } if (content.Contains("ErrorDetailCode")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IAgentPropertiesInternal)this).ErrorDetailCode = (string) content.GetValueForProperty("ErrorDetailCode",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IAgentPropertiesInternal)this).ErrorDetailCode, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IAgentPropertiesInternal)this).ErrorDetailCode = (string) content.GetValueForProperty("ErrorDetailCode",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IAgentPropertiesInternal)this).ErrorDetailCode, global::System.Convert.ToString); } if (content.Contains("ErrorDetailMessage")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IAgentPropertiesInternal)this).ErrorDetailMessage = (string) content.GetValueForProperty("ErrorDetailMessage",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IAgentPropertiesInternal)this).ErrorDetailMessage, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IAgentPropertiesInternal)this).ErrorDetailMessage = (string) content.GetValueForProperty("ErrorDetailMessage",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IAgentPropertiesInternal)this).ErrorDetailMessage, global::System.Convert.ToString); } AfterDeserializeDictionary(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -150,85 +150,85 @@ internal AgentProperties(global::System.Management.Automation.PSObject content) // actually deserialize if (content.Contains("ErrorDetail")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IAgentPropertiesInternal)this).ErrorDetail = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IAgentPropertiesErrorDetails) content.GetValueForProperty("ErrorDetail",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IAgentPropertiesInternal)this).ErrorDetail, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.AgentPropertiesErrorDetailsTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IAgentPropertiesInternal)this).ErrorDetail = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IAgentPropertiesErrorDetails) content.GetValueForProperty("ErrorDetail",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IAgentPropertiesInternal)this).ErrorDetail, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.AgentPropertiesErrorDetailsTypeConverter.ConvertFrom); } if (content.Contains("Description")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IAgentPropertiesInternal)this).Description = (string) content.GetValueForProperty("Description",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IAgentPropertiesInternal)this).Description, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IAgentPropertiesInternal)this).Description = (string) content.GetValueForProperty("Description",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IAgentPropertiesInternal)this).Description, global::System.Convert.ToString); } if (content.Contains("AgentVersion")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IAgentPropertiesInternal)this).AgentVersion = (string) content.GetValueForProperty("AgentVersion",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IAgentPropertiesInternal)this).AgentVersion, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IAgentPropertiesInternal)this).AgentVersion = (string) content.GetValueForProperty("AgentVersion",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IAgentPropertiesInternal)this).AgentVersion, global::System.Convert.ToString); } if (content.Contains("ArcResourceId")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IAgentPropertiesInternal)this).ArcResourceId = (string) content.GetValueForProperty("ArcResourceId",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IAgentPropertiesInternal)this).ArcResourceId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IAgentPropertiesInternal)this).ArcResourceId = (string) content.GetValueForProperty("ArcResourceId",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IAgentPropertiesInternal)this).ArcResourceId, global::System.Convert.ToString); } if (content.Contains("ArcVMUuid")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IAgentPropertiesInternal)this).ArcVMUuid = (string) content.GetValueForProperty("ArcVMUuid",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IAgentPropertiesInternal)this).ArcVMUuid, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IAgentPropertiesInternal)this).ArcVMUuid = (string) content.GetValueForProperty("ArcVMUuid",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IAgentPropertiesInternal)this).ArcVMUuid, global::System.Convert.ToString); } if (content.Contains("AgentStatus")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IAgentPropertiesInternal)this).AgentStatus = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.AgentStatus?) content.GetValueForProperty("AgentStatus",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IAgentPropertiesInternal)this).AgentStatus, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.AgentStatus.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IAgentPropertiesInternal)this).AgentStatus = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.AgentStatus?) content.GetValueForProperty("AgentStatus",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IAgentPropertiesInternal)this).AgentStatus, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.AgentStatus.CreateFrom); } if (content.Contains("LastStatusUpdate")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IAgentPropertiesInternal)this).LastStatusUpdate = (global::System.DateTime?) content.GetValueForProperty("LastStatusUpdate",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IAgentPropertiesInternal)this).LastStatusUpdate, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IAgentPropertiesInternal)this).LastStatusUpdate = (global::System.DateTime?) content.GetValueForProperty("LastStatusUpdate",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IAgentPropertiesInternal)this).LastStatusUpdate, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); } if (content.Contains("LocalIPAddress")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IAgentPropertiesInternal)this).LocalIPAddress = (string) content.GetValueForProperty("LocalIPAddress",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IAgentPropertiesInternal)this).LocalIPAddress, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IAgentPropertiesInternal)this).LocalIPAddress = (string) content.GetValueForProperty("LocalIPAddress",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IAgentPropertiesInternal)this).LocalIPAddress, global::System.Convert.ToString); } if (content.Contains("MemoryInMb")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IAgentPropertiesInternal)this).MemoryInMb = (long?) content.GetValueForProperty("MemoryInMb",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IAgentPropertiesInternal)this).MemoryInMb, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IAgentPropertiesInternal)this).MemoryInMb = (long?) content.GetValueForProperty("MemoryInMb",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IAgentPropertiesInternal)this).MemoryInMb, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); } if (content.Contains("NumberOfCore")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IAgentPropertiesInternal)this).NumberOfCore = (long?) content.GetValueForProperty("NumberOfCore",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IAgentPropertiesInternal)this).NumberOfCore, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IAgentPropertiesInternal)this).NumberOfCore = (long?) content.GetValueForProperty("NumberOfCore",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IAgentPropertiesInternal)this).NumberOfCore, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); } if (content.Contains("UptimeInSecond")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IAgentPropertiesInternal)this).UptimeInSecond = (long?) content.GetValueForProperty("UptimeInSecond",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IAgentPropertiesInternal)this).UptimeInSecond, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IAgentPropertiesInternal)this).UptimeInSecond = (long?) content.GetValueForProperty("UptimeInSecond",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IAgentPropertiesInternal)this).UptimeInSecond, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); } if (content.Contains("ProvisioningState")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IAgentPropertiesInternal)this).ProvisioningState = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.ProvisioningState?) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IAgentPropertiesInternal)this).ProvisioningState, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.ProvisioningState.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IAgentPropertiesInternal)this).ProvisioningState = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.ProvisioningState?) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IAgentPropertiesInternal)this).ProvisioningState, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.ProvisioningState.CreateFrom); } if (content.Contains("ErrorDetailCode")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IAgentPropertiesInternal)this).ErrorDetailCode = (string) content.GetValueForProperty("ErrorDetailCode",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IAgentPropertiesInternal)this).ErrorDetailCode, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IAgentPropertiesInternal)this).ErrorDetailCode = (string) content.GetValueForProperty("ErrorDetailCode",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IAgentPropertiesInternal)this).ErrorDetailCode, global::System.Convert.ToString); } if (content.Contains("ErrorDetailMessage")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IAgentPropertiesInternal)this).ErrorDetailMessage = (string) content.GetValueForProperty("ErrorDetailMessage",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IAgentPropertiesInternal)this).ErrorDetailMessage, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IAgentPropertiesInternal)this).ErrorDetailMessage = (string) content.GetValueForProperty("ErrorDetailMessage",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IAgentPropertiesInternal)this).ErrorDetailMessage, global::System.Convert.ToString); } AfterDeserializePSObject(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Collections.IDictionary content that should be used. /// - /// an instance of . + /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IAgentProperties DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IAgentProperties DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new AgentProperties(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. /// - /// an instance of . + /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IAgentProperties DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IAgentProperties DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new AgentProperties(content); } @@ -238,7 +238,7 @@ public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301 /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IAgentProperties FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IAgentProperties FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonNode.Parse(jsonText)); /// Serializes this instance to a json string. diff --git a/src/StorageMover/generated/api/Models/Api20230301/AgentProperties.TypeConverter.cs b/src/StorageMover/generated/api/Models/Api20231001/AgentProperties.TypeConverter.cs similarity index 98% rename from src/StorageMover/generated/api/Models/Api20230301/AgentProperties.TypeConverter.cs rename to src/StorageMover/generated/api/Models/Api20231001/AgentProperties.TypeConverter.cs index da3b5268669c..9c508fff1d3f 100644 --- a/src/StorageMover/generated/api/Models/Api20230301/AgentProperties.TypeConverter.cs +++ b/src/StorageMover/generated/api/Models/Api20231001/AgentProperties.TypeConverter.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301 +namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001 { using Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.PowerShell; @@ -106,14 +106,14 @@ public static bool CanConvertFrom(dynamic sourceValue) /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IAgentProperties ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IAgentProperties ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IAgentProperties).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IAgentProperties).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/StorageMover/generated/api/Models/Api20230301/AgentProperties.cs b/src/StorageMover/generated/api/Models/Api20231001/AgentProperties.cs similarity index 92% rename from src/StorageMover/generated/api/Models/Api20230301/AgentProperties.cs rename to src/StorageMover/generated/api/Models/Api20231001/AgentProperties.cs index cf1beb253b6b..3c87181d495c 100644 --- a/src/StorageMover/generated/api/Models/Api20230301/AgentProperties.cs +++ b/src/StorageMover/generated/api/Models/Api20231001/AgentProperties.cs @@ -3,14 +3,14 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301 +namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001 { using static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Extensions; [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.DoNotFormat] public partial class AgentProperties : - Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IAgentProperties, - Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IAgentPropertiesInternal + Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IAgentProperties, + Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IAgentPropertiesInternal { /// Backing field for property. @@ -49,18 +49,18 @@ public partial class AgentProperties : public string Description { get => this._description; set => this._description = value; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IAgentPropertiesErrorDetails _errorDetail; + private Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IAgentPropertiesErrorDetails _errorDetail; [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Origin(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.PropertyOrigin.Owned)] - internal Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IAgentPropertiesErrorDetails ErrorDetail { get => (this._errorDetail = this._errorDetail ?? new Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.AgentPropertiesErrorDetails()); } + internal Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IAgentPropertiesErrorDetails ErrorDetail { get => (this._errorDetail = this._errorDetail ?? new Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.AgentPropertiesErrorDetails()); } /// Error code reported by Agent [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Origin(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.PropertyOrigin.Inlined)] - public string ErrorDetailCode { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IAgentPropertiesErrorDetailsInternal)ErrorDetail).Code; set => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IAgentPropertiesErrorDetailsInternal)ErrorDetail).Code = value ?? null; } + public string ErrorDetailCode { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IAgentPropertiesErrorDetailsInternal)ErrorDetail).Code; set => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IAgentPropertiesErrorDetailsInternal)ErrorDetail).Code = value ?? null; } /// Expanded description of reported error code [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Origin(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.PropertyOrigin.Inlined)] - public string ErrorDetailMessage { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IAgentPropertiesErrorDetailsInternal)ErrorDetail).Message; set => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IAgentPropertiesErrorDetailsInternal)ErrorDetail).Message = value ?? null; } + public string ErrorDetailMessage { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IAgentPropertiesErrorDetailsInternal)ErrorDetail).Message; set => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IAgentPropertiesErrorDetailsInternal)ErrorDetail).Message = value ?? null; } /// Backing field for property. private global::System.DateTime? _lastStatusUpdate; @@ -84,31 +84,31 @@ public partial class AgentProperties : public long? MemoryInMb { get => this._memoryInMb; } /// Internal Acessors for AgentStatus - Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.AgentStatus? Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IAgentPropertiesInternal.AgentStatus { get => this._agentStatus; set { {_agentStatus = value;} } } + Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.AgentStatus? Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IAgentPropertiesInternal.AgentStatus { get => this._agentStatus; set { {_agentStatus = value;} } } /// Internal Acessors for AgentVersion - string Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IAgentPropertiesInternal.AgentVersion { get => this._agentVersion; set { {_agentVersion = value;} } } + string Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IAgentPropertiesInternal.AgentVersion { get => this._agentVersion; set { {_agentVersion = value;} } } /// Internal Acessors for ErrorDetail - Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IAgentPropertiesErrorDetails Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IAgentPropertiesInternal.ErrorDetail { get => (this._errorDetail = this._errorDetail ?? new Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.AgentPropertiesErrorDetails()); set { {_errorDetail = value;} } } + Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IAgentPropertiesErrorDetails Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IAgentPropertiesInternal.ErrorDetail { get => (this._errorDetail = this._errorDetail ?? new Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.AgentPropertiesErrorDetails()); set { {_errorDetail = value;} } } /// Internal Acessors for LastStatusUpdate - global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IAgentPropertiesInternal.LastStatusUpdate { get => this._lastStatusUpdate; set { {_lastStatusUpdate = value;} } } + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IAgentPropertiesInternal.LastStatusUpdate { get => this._lastStatusUpdate; set { {_lastStatusUpdate = value;} } } /// Internal Acessors for LocalIPAddress - string Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IAgentPropertiesInternal.LocalIPAddress { get => this._localIPAddress; set { {_localIPAddress = value;} } } + string Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IAgentPropertiesInternal.LocalIPAddress { get => this._localIPAddress; set { {_localIPAddress = value;} } } /// Internal Acessors for MemoryInMb - long? Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IAgentPropertiesInternal.MemoryInMb { get => this._memoryInMb; set { {_memoryInMb = value;} } } + long? Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IAgentPropertiesInternal.MemoryInMb { get => this._memoryInMb; set { {_memoryInMb = value;} } } /// Internal Acessors for NumberOfCore - long? Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IAgentPropertiesInternal.NumberOfCore { get => this._numberOfCore; set { {_numberOfCore = value;} } } + long? Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IAgentPropertiesInternal.NumberOfCore { get => this._numberOfCore; set { {_numberOfCore = value;} } } /// Internal Acessors for ProvisioningState - Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.ProvisioningState? Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IAgentPropertiesInternal.ProvisioningState { get => this._provisioningState; set { {_provisioningState = value;} } } + Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.ProvisioningState? Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IAgentPropertiesInternal.ProvisioningState { get => this._provisioningState; set { {_provisioningState = value;} } } /// Internal Acessors for UptimeInSecond - long? Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IAgentPropertiesInternal.UptimeInSecond { get => this._uptimeInSecond; set { {_uptimeInSecond = value;} } } + long? Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IAgentPropertiesInternal.UptimeInSecond { get => this._uptimeInSecond; set { {_uptimeInSecond = value;} } } /// Backing field for property. private long? _numberOfCore; @@ -260,7 +260,7 @@ internal partial interface IAgentPropertiesInternal /// A description for the Agent. string Description { get; set; } - Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IAgentPropertiesErrorDetails ErrorDetail { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IAgentPropertiesErrorDetails ErrorDetail { get; set; } /// Error code reported by Agent string ErrorDetailCode { get; set; } /// Expanded description of reported error code diff --git a/src/StorageMover/generated/api/Models/Api20230301/AgentProperties.json.cs b/src/StorageMover/generated/api/Models/Api20231001/AgentProperties.json.cs similarity index 98% rename from src/StorageMover/generated/api/Models/Api20230301/AgentProperties.json.cs rename to src/StorageMover/generated/api/Models/Api20231001/AgentProperties.json.cs index 728e46290245..477fe91bc997 100644 --- a/src/StorageMover/generated/api/Models/Api20230301/AgentProperties.json.cs +++ b/src/StorageMover/generated/api/Models/Api20231001/AgentProperties.json.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301 +namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001 { using static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Extensions; @@ -64,7 +64,7 @@ internal AgentProperties(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime { return; } - {_errorDetail = If( json?.PropertyT("errorDetails"), out var __jsonErrorDetails) ? Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.AgentPropertiesErrorDetails.FromJson(__jsonErrorDetails) : ErrorDetail;} + {_errorDetail = If( json?.PropertyT("errorDetails"), out var __jsonErrorDetails) ? Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.AgentPropertiesErrorDetails.FromJson(__jsonErrorDetails) : ErrorDetail;} {_description = If( json?.PropertyT("description"), out var __jsonDescription) ? (string)__jsonDescription : (string)Description;} {_agentVersion = If( json?.PropertyT("agentVersion"), out var __jsonAgentVersion) ? (string)__jsonAgentVersion : (string)AgentVersion;} {_arcResourceId = If( json?.PropertyT("arcResourceId"), out var __jsonArcResourceId) ? (string)__jsonArcResourceId : (string)ArcResourceId;} @@ -80,13 +80,13 @@ internal AgentProperties(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime } /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IAgentProperties. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IAgentProperties. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IAgentProperties. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IAgentProperties. /// - public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IAgentProperties FromJson(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IAgentProperties FromJson(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonObject json ? new AgentProperties(json) : null; } diff --git a/src/StorageMover/generated/api/Models/Api20230301/AgentPropertiesErrorDetails.PowerShell.cs b/src/StorageMover/generated/api/Models/Api20231001/AgentPropertiesErrorDetails.PowerShell.cs similarity index 89% rename from src/StorageMover/generated/api/Models/Api20230301/AgentPropertiesErrorDetails.PowerShell.cs rename to src/StorageMover/generated/api/Models/Api20231001/AgentPropertiesErrorDetails.PowerShell.cs index 1685dffe6541..5d33753db404 100644 --- a/src/StorageMover/generated/api/Models/Api20230301/AgentPropertiesErrorDetails.PowerShell.cs +++ b/src/StorageMover/generated/api/Models/Api20231001/AgentPropertiesErrorDetails.PowerShell.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301 +namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001 { using Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.PowerShell; @@ -62,7 +62,7 @@ public partial class AgentPropertiesErrorDetails partial void OverrideToString(ref string stringResult, ref bool returnNow); /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. @@ -77,17 +77,17 @@ internal AgentPropertiesErrorDetails(global::System.Collections.IDictionary cont // actually deserialize if (content.Contains("Code")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IAgentPropertiesErrorDetailsInternal)this).Code = (string) content.GetValueForProperty("Code",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IAgentPropertiesErrorDetailsInternal)this).Code, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IAgentPropertiesErrorDetailsInternal)this).Code = (string) content.GetValueForProperty("Code",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IAgentPropertiesErrorDetailsInternal)this).Code, global::System.Convert.ToString); } if (content.Contains("Message")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IAgentPropertiesErrorDetailsInternal)this).Message = (string) content.GetValueForProperty("Message",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IAgentPropertiesErrorDetailsInternal)this).Message, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IAgentPropertiesErrorDetailsInternal)this).Message = (string) content.GetValueForProperty("Message",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IAgentPropertiesErrorDetailsInternal)this).Message, global::System.Convert.ToString); } AfterDeserializeDictionary(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -102,39 +102,39 @@ internal AgentPropertiesErrorDetails(global::System.Management.Automation.PSObje // actually deserialize if (content.Contains("Code")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IAgentPropertiesErrorDetailsInternal)this).Code = (string) content.GetValueForProperty("Code",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IAgentPropertiesErrorDetailsInternal)this).Code, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IAgentPropertiesErrorDetailsInternal)this).Code = (string) content.GetValueForProperty("Code",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IAgentPropertiesErrorDetailsInternal)this).Code, global::System.Convert.ToString); } if (content.Contains("Message")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IAgentPropertiesErrorDetailsInternal)this).Message = (string) content.GetValueForProperty("Message",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IAgentPropertiesErrorDetailsInternal)this).Message, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IAgentPropertiesErrorDetailsInternal)this).Message = (string) content.GetValueForProperty("Message",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IAgentPropertiesErrorDetailsInternal)this).Message, global::System.Convert.ToString); } AfterDeserializePSObject(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Collections.IDictionary content that should be used. /// - /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IAgentPropertiesErrorDetails DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IAgentPropertiesErrorDetails DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new AgentPropertiesErrorDetails(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. /// - /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IAgentPropertiesErrorDetails DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IAgentPropertiesErrorDetails DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new AgentPropertiesErrorDetails(content); } @@ -144,7 +144,7 @@ public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301 /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IAgentPropertiesErrorDetails FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IAgentPropertiesErrorDetails FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonNode.Parse(jsonText)); /// Serializes this instance to a json string. diff --git a/src/StorageMover/generated/api/Models/Api20230301/AgentPropertiesErrorDetails.TypeConverter.cs b/src/StorageMover/generated/api/Models/Api20231001/AgentPropertiesErrorDetails.TypeConverter.cs similarity index 98% rename from src/StorageMover/generated/api/Models/Api20230301/AgentPropertiesErrorDetails.TypeConverter.cs rename to src/StorageMover/generated/api/Models/Api20231001/AgentPropertiesErrorDetails.TypeConverter.cs index b3e9ee726df7..bf191693f4fc 100644 --- a/src/StorageMover/generated/api/Models/Api20230301/AgentPropertiesErrorDetails.TypeConverter.cs +++ b/src/StorageMover/generated/api/Models/Api20231001/AgentPropertiesErrorDetails.TypeConverter.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301 +namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001 { using Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.PowerShell; @@ -106,14 +106,14 @@ public static bool CanConvertFrom(dynamic sourceValue) /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IAgentPropertiesErrorDetails ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IAgentPropertiesErrorDetails ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IAgentPropertiesErrorDetails).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IAgentPropertiesErrorDetails).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/StorageMover/generated/api/Models/Api20230301/AgentPropertiesErrorDetails.cs b/src/StorageMover/generated/api/Models/Api20231001/AgentPropertiesErrorDetails.cs similarity index 96% rename from src/StorageMover/generated/api/Models/Api20230301/AgentPropertiesErrorDetails.cs rename to src/StorageMover/generated/api/Models/Api20231001/AgentPropertiesErrorDetails.cs index bb8a53a94bb3..a79d02ed267f 100644 --- a/src/StorageMover/generated/api/Models/Api20230301/AgentPropertiesErrorDetails.cs +++ b/src/StorageMover/generated/api/Models/Api20231001/AgentPropertiesErrorDetails.cs @@ -3,14 +3,14 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301 +namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001 { using static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Extensions; [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.DoNotFormat] public partial class AgentPropertiesErrorDetails : - Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IAgentPropertiesErrorDetails, - Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IAgentPropertiesErrorDetailsInternal + Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IAgentPropertiesErrorDetails, + Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IAgentPropertiesErrorDetailsInternal { /// Backing field for property. diff --git a/src/StorageMover/generated/api/Models/Api20230301/AgentPropertiesErrorDetails.json.cs b/src/StorageMover/generated/api/Models/Api20231001/AgentPropertiesErrorDetails.json.cs similarity index 97% rename from src/StorageMover/generated/api/Models/Api20230301/AgentPropertiesErrorDetails.json.cs rename to src/StorageMover/generated/api/Models/Api20231001/AgentPropertiesErrorDetails.json.cs index f4b6c4b59dcd..e7290b7f1f17 100644 --- a/src/StorageMover/generated/api/Models/Api20230301/AgentPropertiesErrorDetails.json.cs +++ b/src/StorageMover/generated/api/Models/Api20231001/AgentPropertiesErrorDetails.json.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301 +namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001 { using static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Extensions; @@ -70,13 +70,13 @@ internal AgentPropertiesErrorDetails(Microsoft.Azure.PowerShell.Cmdlets.StorageM } /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IAgentPropertiesErrorDetails. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IAgentPropertiesErrorDetails. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IAgentPropertiesErrorDetails. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IAgentPropertiesErrorDetails. /// - public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IAgentPropertiesErrorDetails FromJson(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IAgentPropertiesErrorDetails FromJson(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonObject json ? new AgentPropertiesErrorDetails(json) : null; } diff --git a/src/StorageMover/generated/api/Models/Api20230301/AgentUpdateParameters.PowerShell.cs b/src/StorageMover/generated/api/Models/Api20231001/AgentUpdateParameters.PowerShell.cs similarity index 87% rename from src/StorageMover/generated/api/Models/Api20230301/AgentUpdateParameters.PowerShell.cs rename to src/StorageMover/generated/api/Models/Api20231001/AgentUpdateParameters.PowerShell.cs index 12bf6862e169..9a5d1566bbec 100644 --- a/src/StorageMover/generated/api/Models/Api20230301/AgentUpdateParameters.PowerShell.cs +++ b/src/StorageMover/generated/api/Models/Api20231001/AgentUpdateParameters.PowerShell.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301 +namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001 { using Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.PowerShell; @@ -63,7 +63,7 @@ public partial class AgentUpdateParameters partial void OverrideToString(ref string stringResult, ref bool returnNow); /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. @@ -78,17 +78,17 @@ internal AgentUpdateParameters(global::System.Collections.IDictionary content) // actually deserialize if (content.Contains("Property")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IAgentUpdateParametersInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IAgentUpdateProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IAgentUpdateParametersInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.AgentUpdatePropertiesTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IAgentUpdateParametersInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IAgentUpdateProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IAgentUpdateParametersInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.AgentUpdatePropertiesTypeConverter.ConvertFrom); } if (content.Contains("Description")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IAgentUpdateParametersInternal)this).Description = (string) content.GetValueForProperty("Description",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IAgentUpdateParametersInternal)this).Description, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IAgentUpdateParametersInternal)this).Description = (string) content.GetValueForProperty("Description",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IAgentUpdateParametersInternal)this).Description, global::System.Convert.ToString); } AfterDeserializeDictionary(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -103,37 +103,37 @@ internal AgentUpdateParameters(global::System.Management.Automation.PSObject con // actually deserialize if (content.Contains("Property")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IAgentUpdateParametersInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IAgentUpdateProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IAgentUpdateParametersInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.AgentUpdatePropertiesTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IAgentUpdateParametersInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IAgentUpdateProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IAgentUpdateParametersInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.AgentUpdatePropertiesTypeConverter.ConvertFrom); } if (content.Contains("Description")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IAgentUpdateParametersInternal)this).Description = (string) content.GetValueForProperty("Description",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IAgentUpdateParametersInternal)this).Description, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IAgentUpdateParametersInternal)this).Description = (string) content.GetValueForProperty("Description",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IAgentUpdateParametersInternal)this).Description, global::System.Convert.ToString); } AfterDeserializePSObject(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Collections.IDictionary content that should be used. /// - /// an instance of . + /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IAgentUpdateParameters DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IAgentUpdateParameters DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new AgentUpdateParameters(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. /// - /// an instance of . + /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IAgentUpdateParameters DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IAgentUpdateParameters DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new AgentUpdateParameters(content); } @@ -143,7 +143,7 @@ public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301 /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IAgentUpdateParameters FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IAgentUpdateParameters FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonNode.Parse(jsonText)); /// Serializes this instance to a json string. diff --git a/src/StorageMover/generated/api/Models/Api20230301/AgentUpdateParameters.TypeConverter.cs b/src/StorageMover/generated/api/Models/Api20231001/AgentUpdateParameters.TypeConverter.cs similarity index 98% rename from src/StorageMover/generated/api/Models/Api20230301/AgentUpdateParameters.TypeConverter.cs rename to src/StorageMover/generated/api/Models/Api20231001/AgentUpdateParameters.TypeConverter.cs index 74f288e84a37..c11f91ee4968 100644 --- a/src/StorageMover/generated/api/Models/Api20230301/AgentUpdateParameters.TypeConverter.cs +++ b/src/StorageMover/generated/api/Models/Api20231001/AgentUpdateParameters.TypeConverter.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301 +namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001 { using Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.PowerShell; @@ -106,14 +106,14 @@ public static bool CanConvertFrom(dynamic sourceValue) /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IAgentUpdateParameters ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IAgentUpdateParameters ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IAgentUpdateParameters).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IAgentUpdateParameters).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/StorageMover/generated/api/Models/Api20230301/AgentUpdateParameters.cs b/src/StorageMover/generated/api/Models/Api20231001/AgentUpdateParameters.cs similarity index 81% rename from src/StorageMover/generated/api/Models/Api20230301/AgentUpdateParameters.cs rename to src/StorageMover/generated/api/Models/Api20231001/AgentUpdateParameters.cs index 4259edf8f3bb..093c3f6e5981 100644 --- a/src/StorageMover/generated/api/Models/Api20230301/AgentUpdateParameters.cs +++ b/src/StorageMover/generated/api/Models/Api20231001/AgentUpdateParameters.cs @@ -3,29 +3,29 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301 +namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001 { using static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Extensions; /// The Agent resource. [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.DoNotFormat] public partial class AgentUpdateParameters : - Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IAgentUpdateParameters, - Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IAgentUpdateParametersInternal + Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IAgentUpdateParameters, + Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IAgentUpdateParametersInternal { /// A description for the Agent. [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Origin(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.PropertyOrigin.Inlined)] - public string Description { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IAgentUpdatePropertiesInternal)Property).Description; set => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IAgentUpdatePropertiesInternal)Property).Description = value ?? null; } + public string Description { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IAgentUpdatePropertiesInternal)Property).Description; set => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IAgentUpdatePropertiesInternal)Property).Description = value ?? null; } /// Internal Acessors for Property - Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IAgentUpdateProperties Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IAgentUpdateParametersInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.AgentUpdateProperties()); set { {_property = value;} } } + Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IAgentUpdateProperties Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IAgentUpdateParametersInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.AgentUpdateProperties()); set { {_property = value;} } } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IAgentUpdateProperties _property; + private Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IAgentUpdateProperties _property; [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Origin(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.PropertyOrigin.Owned)] - internal Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IAgentUpdateProperties Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.AgentUpdateProperties()); set => this._property = value; } + internal Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IAgentUpdateProperties Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.AgentUpdateProperties()); set => this._property = value; } /// Creates an new instance. public AgentUpdateParameters() @@ -54,7 +54,7 @@ internal partial interface IAgentUpdateParametersInternal /// A description for the Agent. string Description { get; set; } - Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IAgentUpdateProperties Property { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IAgentUpdateProperties Property { get; set; } } } \ No newline at end of file diff --git a/src/StorageMover/generated/api/Models/Api20230301/AgentUpdateParameters.json.cs b/src/StorageMover/generated/api/Models/Api20231001/AgentUpdateParameters.json.cs similarity index 96% rename from src/StorageMover/generated/api/Models/Api20230301/AgentUpdateParameters.json.cs rename to src/StorageMover/generated/api/Models/Api20231001/AgentUpdateParameters.json.cs index bb486e8c7da4..a56c3e10c539 100644 --- a/src/StorageMover/generated/api/Models/Api20230301/AgentUpdateParameters.json.cs +++ b/src/StorageMover/generated/api/Models/Api20231001/AgentUpdateParameters.json.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301 +namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001 { using static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Extensions; @@ -65,18 +65,18 @@ internal AgentUpdateParameters(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.R { return; } - {_property = If( json?.PropertyT("properties"), out var __jsonProperties) ? Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.AgentUpdateProperties.FromJson(__jsonProperties) : Property;} + {_property = If( json?.PropertyT("properties"), out var __jsonProperties) ? Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.AgentUpdateProperties.FromJson(__jsonProperties) : Property;} AfterFromJson(json); } /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IAgentUpdateParameters. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IAgentUpdateParameters. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IAgentUpdateParameters. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IAgentUpdateParameters. /// - public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IAgentUpdateParameters FromJson(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IAgentUpdateParameters FromJson(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonObject json ? new AgentUpdateParameters(json) : null; } diff --git a/src/StorageMover/generated/api/Models/Api20230301/AgentUpdateProperties.PowerShell.cs b/src/StorageMover/generated/api/Models/Api20231001/AgentUpdateProperties.PowerShell.cs similarity index 90% rename from src/StorageMover/generated/api/Models/Api20230301/AgentUpdateProperties.PowerShell.cs rename to src/StorageMover/generated/api/Models/Api20231001/AgentUpdateProperties.PowerShell.cs index 5804cf06955c..c0a0d538fdae 100644 --- a/src/StorageMover/generated/api/Models/Api20230301/AgentUpdateProperties.PowerShell.cs +++ b/src/StorageMover/generated/api/Models/Api20231001/AgentUpdateProperties.PowerShell.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301 +namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001 { using Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.PowerShell; @@ -62,7 +62,7 @@ public partial class AgentUpdateProperties partial void OverrideToString(ref string stringResult, ref bool returnNow); /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. @@ -77,13 +77,13 @@ internal AgentUpdateProperties(global::System.Collections.IDictionary content) // actually deserialize if (content.Contains("Description")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IAgentUpdatePropertiesInternal)this).Description = (string) content.GetValueForProperty("Description",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IAgentUpdatePropertiesInternal)this).Description, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IAgentUpdatePropertiesInternal)this).Description = (string) content.GetValueForProperty("Description",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IAgentUpdatePropertiesInternal)this).Description, global::System.Convert.ToString); } AfterDeserializeDictionary(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -98,33 +98,33 @@ internal AgentUpdateProperties(global::System.Management.Automation.PSObject con // actually deserialize if (content.Contains("Description")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IAgentUpdatePropertiesInternal)this).Description = (string) content.GetValueForProperty("Description",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IAgentUpdatePropertiesInternal)this).Description, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IAgentUpdatePropertiesInternal)this).Description = (string) content.GetValueForProperty("Description",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IAgentUpdatePropertiesInternal)this).Description, global::System.Convert.ToString); } AfterDeserializePSObject(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Collections.IDictionary content that should be used. /// - /// an instance of . + /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IAgentUpdateProperties DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IAgentUpdateProperties DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new AgentUpdateProperties(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. /// - /// an instance of . + /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IAgentUpdateProperties DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IAgentUpdateProperties DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new AgentUpdateProperties(content); } @@ -134,7 +134,7 @@ public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301 /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IAgentUpdateProperties FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IAgentUpdateProperties FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonNode.Parse(jsonText)); /// Serializes this instance to a json string. diff --git a/src/StorageMover/generated/api/Models/Api20230301/AgentUpdateProperties.TypeConverter.cs b/src/StorageMover/generated/api/Models/Api20231001/AgentUpdateProperties.TypeConverter.cs similarity index 98% rename from src/StorageMover/generated/api/Models/Api20230301/AgentUpdateProperties.TypeConverter.cs rename to src/StorageMover/generated/api/Models/Api20231001/AgentUpdateProperties.TypeConverter.cs index e8c04c86cfad..2fb27005cb77 100644 --- a/src/StorageMover/generated/api/Models/Api20230301/AgentUpdateProperties.TypeConverter.cs +++ b/src/StorageMover/generated/api/Models/Api20231001/AgentUpdateProperties.TypeConverter.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301 +namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001 { using Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.PowerShell; @@ -106,14 +106,14 @@ public static bool CanConvertFrom(dynamic sourceValue) /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IAgentUpdateProperties ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IAgentUpdateProperties ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IAgentUpdateProperties).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IAgentUpdateProperties).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/StorageMover/generated/api/Models/Api20230301/AgentUpdateProperties.cs b/src/StorageMover/generated/api/Models/Api20231001/AgentUpdateProperties.cs similarity index 95% rename from src/StorageMover/generated/api/Models/Api20230301/AgentUpdateProperties.cs rename to src/StorageMover/generated/api/Models/Api20231001/AgentUpdateProperties.cs index b0a8f11d3772..eb83cfebb703 100644 --- a/src/StorageMover/generated/api/Models/Api20230301/AgentUpdateProperties.cs +++ b/src/StorageMover/generated/api/Models/Api20231001/AgentUpdateProperties.cs @@ -3,14 +3,14 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301 +namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001 { using static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Extensions; [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.DoNotFormat] public partial class AgentUpdateProperties : - Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IAgentUpdateProperties, - Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IAgentUpdatePropertiesInternal + Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IAgentUpdateProperties, + Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IAgentUpdatePropertiesInternal { /// Backing field for property. diff --git a/src/StorageMover/generated/api/Models/Api20230301/AgentUpdateProperties.json.cs b/src/StorageMover/generated/api/Models/Api20231001/AgentUpdateProperties.json.cs similarity index 97% rename from src/StorageMover/generated/api/Models/Api20230301/AgentUpdateProperties.json.cs rename to src/StorageMover/generated/api/Models/Api20231001/AgentUpdateProperties.json.cs index 10f55700b73d..88e090463ca1 100644 --- a/src/StorageMover/generated/api/Models/Api20230301/AgentUpdateProperties.json.cs +++ b/src/StorageMover/generated/api/Models/Api20231001/AgentUpdateProperties.json.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301 +namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001 { using static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Extensions; @@ -69,13 +69,13 @@ internal AgentUpdateProperties(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.R } /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IAgentUpdateProperties. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IAgentUpdateProperties. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IAgentUpdateProperties. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IAgentUpdateProperties. /// - public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IAgentUpdateProperties FromJson(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IAgentUpdateProperties FromJson(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonObject json ? new AgentUpdateProperties(json) : null; } diff --git a/src/StorageMover/generated/api/Models/Api20/ProxyResource.PowerShell.cs b/src/StorageMover/generated/api/Models/Api20231001/AzureKeyVaultSmbCredentials.PowerShell.cs similarity index 66% rename from src/StorageMover/generated/api/Models/Api20/ProxyResource.PowerShell.cs rename to src/StorageMover/generated/api/Models/Api20231001/AzureKeyVaultSmbCredentials.PowerShell.cs index 24b234300f3f..3141d8adf72c 100644 --- a/src/StorageMover/generated/api/Models/Api20/ProxyResource.PowerShell.cs +++ b/src/StorageMover/generated/api/Models/Api20231001/AzureKeyVaultSmbCredentials.PowerShell.cs @@ -3,15 +3,13 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20 +namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001 { using Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.PowerShell; - /// - /// The resource model definition for a Azure Resource Manager proxy resource. It will not have tags and a location - /// - [System.ComponentModel.TypeConverter(typeof(ProxyResourceTypeConverter))] - public partial class ProxyResource + /// The Azure Key Vault secret URIs which store the credentials. + [System.ComponentModel.TypeConverter(typeof(AzureKeyVaultSmbCredentialsTypeConverter))] + public partial class AzureKeyVaultSmbCredentials { /// @@ -65,44 +63,11 @@ public partial class ProxyResource partial void OverrideToString(ref string stringResult, ref bool returnNow); /// - /// Deserializes a into an instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. - /// - /// an instance of . - /// - public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.IProxyResource DeserializeFromDictionary(global::System.Collections.IDictionary content) - { - return new ProxyResource(content); - } - - /// - /// Deserializes a into an instance of . - /// - /// The global::System.Management.Automation.PSObject content that should be used. - /// - /// an instance of . - /// - public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.IProxyResource DeserializeFromPSObject(global::System.Management.Automation.PSObject content) - { - return new ProxyResource(content); - } - - /// - /// Creates a new instance of , deserializing the content from a json string. - /// - /// a string containing a JSON serialized instance of this model. - /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.IProxyResource FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonNode.Parse(jsonText)); - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - internal ProxyResource(global::System.Collections.IDictionary content) + internal AzureKeyVaultSmbCredentials(global::System.Collections.IDictionary content) { bool returnNow = false; BeforeDeserializeDictionary(content, ref returnNow); @@ -111,27 +76,27 @@ internal ProxyResource(global::System.Collections.IDictionary content) return; } // actually deserialize - if (content.Contains("Id")) + if (content.Contains("UsernameUri")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.IResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.IResourceInternal)this).Id, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IAzureKeyVaultSmbCredentialsInternal)this).UsernameUri = (string) content.GetValueForProperty("UsernameUri",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IAzureKeyVaultSmbCredentialsInternal)this).UsernameUri, global::System.Convert.ToString); } - if (content.Contains("Name")) + if (content.Contains("PasswordUri")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.IResourceInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.IResourceInternal)this).Name, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IAzureKeyVaultSmbCredentialsInternal)this).PasswordUri = (string) content.GetValueForProperty("PasswordUri",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IAzureKeyVaultSmbCredentialsInternal)this).PasswordUri, global::System.Convert.ToString); } if (content.Contains("Type")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.IResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.IResourceInternal)this).Type, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.ICredentialsInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.ICredentialsInternal)this).Type, global::System.Convert.ToString); } AfterDeserializeDictionary(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. - internal ProxyResource(global::System.Management.Automation.PSObject content) + internal AzureKeyVaultSmbCredentials(global::System.Management.Automation.PSObject content) { bool returnNow = false; BeforeDeserializePSObject(content, ref returnNow); @@ -140,21 +105,56 @@ internal ProxyResource(global::System.Management.Automation.PSObject content) return; } // actually deserialize - if (content.Contains("Id")) + if (content.Contains("UsernameUri")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.IResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.IResourceInternal)this).Id, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IAzureKeyVaultSmbCredentialsInternal)this).UsernameUri = (string) content.GetValueForProperty("UsernameUri",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IAzureKeyVaultSmbCredentialsInternal)this).UsernameUri, global::System.Convert.ToString); } - if (content.Contains("Name")) + if (content.Contains("PasswordUri")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.IResourceInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.IResourceInternal)this).Name, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IAzureKeyVaultSmbCredentialsInternal)this).PasswordUri = (string) content.GetValueForProperty("PasswordUri",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IAzureKeyVaultSmbCredentialsInternal)this).PasswordUri, global::System.Convert.ToString); } if (content.Contains("Type")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.IResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.IResourceInternal)this).Type, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.ICredentialsInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.ICredentialsInternal)this).Type, global::System.Convert.ToString); } AfterDeserializePSObject(content); } + /// + /// Deserializes a into an instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + /// + /// an instance of . + /// + public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IAzureKeyVaultSmbCredentials DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new AzureKeyVaultSmbCredentials(content); + } + + /// + /// Deserializes a into an instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + /// + /// an instance of . + /// + public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IAzureKeyVaultSmbCredentials DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new AzureKeyVaultSmbCredentials(content); + } + + /// + /// Creates a new instance of , deserializing the content from a json string. + /// + /// a string containing a JSON serialized instance of this model. + /// an instance of the model class. + public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IAzureKeyVaultSmbCredentials FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonNode.Parse(jsonText)); + /// Serializes this instance to a json string. /// a containing this model serialized to JSON text. @@ -172,9 +172,9 @@ public override string ToString() return ToJsonString(); } } - /// The resource model definition for a Azure Resource Manager proxy resource. It will not have tags and a location - [System.ComponentModel.TypeConverter(typeof(ProxyResourceTypeConverter))] - public partial interface IProxyResource + /// The Azure Key Vault secret URIs which store the credentials. + [System.ComponentModel.TypeConverter(typeof(AzureKeyVaultSmbCredentialsTypeConverter))] + public partial interface IAzureKeyVaultSmbCredentials { diff --git a/src/StorageMover/generated/api/Models/Api20231001/AzureKeyVaultSmbCredentials.TypeConverter.cs b/src/StorageMover/generated/api/Models/Api20231001/AzureKeyVaultSmbCredentials.TypeConverter.cs new file mode 100644 index 000000000000..cf953d0773de --- /dev/null +++ b/src/StorageMover/generated/api/Models/Api20231001/AzureKeyVaultSmbCredentials.TypeConverter.cs @@ -0,0 +1,147 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001 +{ + using Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.PowerShell; + + /// + /// A PowerShell PSTypeConverter to support converting to an instance of + /// + public partial class AzureKeyVaultSmbCredentialsTypeConverter : global::System.Management.Automation.PSTypeConverter + { + + /// + /// Determines if the converter can convert the parameter to the parameter. + /// + /// the to convert from + /// the to convert to + /// + /// true if the converter can convert the parameter to the parameter, otherwise false. + /// + public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); + + /// + /// Determines if the converter can convert the parameter to the + /// type. + /// + /// the instance to check if it can be converted to the type. + /// + /// true if the instance could be converted to a type, otherwise false + /// + public static bool CanConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return true; + } + global::System.Type type = sourceValue.GetType(); + if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + // we say yest to PSObjects + return true; + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + // we say yest to Hashtables/dictionaries + return true; + } + try + { + if (null != sourceValue.ToJsonString()) + { + return true; + } + } + catch + { + // Not one of our objects + } + try + { + string text = sourceValue.ToString()?.Trim(); + return true == text?.StartsWith("{") && true == text?.EndsWith("}") && Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonNode.Parse(text).Type == Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonType.Object; + } + catch + { + // Doesn't look like it can be treated as JSON + } + return false; + } + + /// + /// Determines if the parameter can be converted to the + /// parameter + /// + /// the to convert from + /// the to convert to + /// + /// true if the converter can convert the parameter to the parameter, otherwise false + /// + public override bool CanConvertTo(object sourceValue, global::System.Type destinationType) => false; + + /// + /// Converts the parameter to the parameter using and + /// + /// the to convert from + /// the to convert to + /// not used by this TypeConverter. + /// when set to true, will ignore the case when converting. + /// + /// an instance of , or null if there is no suitable conversion. + /// + public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue); + + /// + /// Converts the parameter into an instance of + /// + /// the value to convert into an instance of . + /// + /// an instance of , or null if there is no suitable conversion. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IAzureKeyVaultSmbCredentials ConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return null; + } + global::System.Type type = sourceValue.GetType(); + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IAzureKeyVaultSmbCredentials).IsAssignableFrom(type)) + { + return sourceValue; + } + try + { + return AzureKeyVaultSmbCredentials.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());; + } + catch + { + // Unable to use JSON pattern + } + if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + return AzureKeyVaultSmbCredentials.DeserializeFromPSObject(sourceValue); + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + return AzureKeyVaultSmbCredentials.DeserializeFromDictionary(sourceValue); + } + return null; + } + + /// NotImplemented -- this will return null + /// the to convert from + /// the to convert to + /// not used by this TypeConverter. + /// when set to true, will ignore the case when converting. + /// will always return null. + public override object ConvertTo(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => null; + } +} \ No newline at end of file diff --git a/src/StorageMover/generated/api/Models/Api20231001/AzureKeyVaultSmbCredentials.cs b/src/StorageMover/generated/api/Models/Api20231001/AzureKeyVaultSmbCredentials.cs new file mode 100644 index 000000000000..768055401150 --- /dev/null +++ b/src/StorageMover/generated/api/Models/Api20231001/AzureKeyVaultSmbCredentials.cs @@ -0,0 +1,106 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001 +{ + using static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Extensions; + + /// The Azure Key Vault secret URIs which store the credentials. + public partial class AzureKeyVaultSmbCredentials : + Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IAzureKeyVaultSmbCredentials, + Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IAzureKeyVaultSmbCredentialsInternal, + Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.IValidates + { + /// + /// Backing field for Inherited model + /// + private Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.ICredentials __credentials = new Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.Credentials(); + + /// Internal Acessors for Type + string Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.ICredentialsInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.ICredentialsInternal)__credentials).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.ICredentialsInternal)__credentials).Type = value; } + + /// Backing field for property. + private string _passwordUri; + + /// + /// The Azure Key Vault secret URI which stores the password. Use empty string to clean-up existing value. + /// + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Origin(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.PropertyOrigin.Owned)] + public string PasswordUri { get => this._passwordUri; set => this._passwordUri = value; } + + /// The Credentials type. + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Origin(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.PropertyOrigin.Inherited)] + public string Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.ICredentialsInternal)__credentials).Type; } + + /// Backing field for property. + private string _usernameUri; + + /// + /// The Azure Key Vault secret URI which stores the username. Use empty string to clean-up existing value. + /// + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Origin(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.PropertyOrigin.Owned)] + public string UsernameUri { get => this._usernameUri; set => this._usernameUri = value; } + + /// Creates an new instance. + public AzureKeyVaultSmbCredentials() + { + + } + + /// Validates that this object meets the validation criteria. + /// an instance that will receive validation + /// events. + /// + /// A that will be complete when validation is completed. + /// + public async global::System.Threading.Tasks.Task Validate(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.IEventListener eventListener) + { + await eventListener.AssertNotNull(nameof(__credentials), __credentials); + await eventListener.AssertObjectIsValid(nameof(__credentials), __credentials); + } + } + /// The Azure Key Vault secret URIs which store the credentials. + public partial interface IAzureKeyVaultSmbCredentials : + Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.IJsonSerializable, + Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.ICredentials + { + /// + /// The Azure Key Vault secret URI which stores the password. Use empty string to clean-up existing value. + /// + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The Azure Key Vault secret URI which stores the password. Use empty string to clean-up existing value.", + SerializedName = @"passwordUri", + PossibleTypes = new [] { typeof(string) })] + string PasswordUri { get; set; } + /// + /// The Azure Key Vault secret URI which stores the username. Use empty string to clean-up existing value. + /// + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The Azure Key Vault secret URI which stores the username. Use empty string to clean-up existing value.", + SerializedName = @"usernameUri", + PossibleTypes = new [] { typeof(string) })] + string UsernameUri { get; set; } + + } + /// The Azure Key Vault secret URIs which store the credentials. + internal partial interface IAzureKeyVaultSmbCredentialsInternal : + Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.ICredentialsInternal + { + /// + /// The Azure Key Vault secret URI which stores the password. Use empty string to clean-up existing value. + /// + string PasswordUri { get; set; } + /// + /// The Azure Key Vault secret URI which stores the username. Use empty string to clean-up existing value. + /// + string UsernameUri { get; set; } + + } +} \ No newline at end of file diff --git a/src/StorageMover/generated/api/Models/Api20231001/AzureKeyVaultSmbCredentials.json.cs b/src/StorageMover/generated/api/Models/Api20231001/AzureKeyVaultSmbCredentials.json.cs new file mode 100644 index 000000000000..c62b810a5c00 --- /dev/null +++ b/src/StorageMover/generated/api/Models/Api20231001/AzureKeyVaultSmbCredentials.json.cs @@ -0,0 +1,112 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001 +{ + using static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Extensions; + + /// The Azure Key Vault secret URIs which store the credentials. + public partial class AzureKeyVaultSmbCredentials + { + + /// + /// AfterFromJson will be called after the json deserialization has finished, allowing customization of the object + /// before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The JsonNode that should be deserialized into this object. + + partial void AfterFromJson(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonObject json); + + /// + /// AfterToJson will be called after the json serialization has finished, allowing customization of the before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The JSON container that the serialization result will be placed in. + + partial void AfterToJson(ref Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonObject container); + + /// + /// BeforeFromJson will be called before the json deserialization has commenced, allowing complete customization of + /// the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the + /// output parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The JsonNode that should be deserialized into this object. + /// Determines if the rest of the deserialization should be processed, or if the method should return + /// instantly. + + partial void BeforeFromJson(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonObject json, ref bool returnNow); + + /// + /// BeforeToJson will be called before the json serialization has commenced, allowing complete customization of the + /// object before it is serialized. + /// If you wish to disable the default serialization entirely, return true in the output + /// parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The JSON container that the serialization result will be placed in. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonObject container, ref bool returnNow); + + /// + /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonObject into a new instance of . + /// + /// A Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonObject instance to deserialize from. + internal AzureKeyVaultSmbCredentials(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonObject json) + { + bool returnNow = false; + BeforeFromJson(json, ref returnNow); + if (returnNow) + { + return; + } + __credentials = new Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.Credentials(json); + {_usernameUri = If( json?.PropertyT("usernameUri"), out var __jsonUsernameUri) ? (string)__jsonUsernameUri : (string)UsernameUri;} + {_passwordUri = If( json?.PropertyT("passwordUri"), out var __jsonPasswordUri) ? (string)__jsonPasswordUri : (string)PasswordUri;} + AfterFromJson(json); + } + + /// + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IAzureKeyVaultSmbCredentials. + /// + /// a to deserialize from. + /// + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IAzureKeyVaultSmbCredentials. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IAzureKeyVaultSmbCredentials FromJson(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonNode node) + { + return node is Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonObject json ? new AzureKeyVaultSmbCredentials(json) : null; + } + + /// + /// Serializes this instance of into a . + /// + /// The container to serialize this object into. If the caller + /// passes in null, a new instance will be created and returned to the caller. + /// Allows the caller to choose the depth of the serialization. See . + /// + /// a serialized instance of as a . + /// + public Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonNode ToJson(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonObject container, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.SerializationMode serializationMode) + { + container = container ?? new Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonObject(); + + bool returnNow = false; + BeforeToJson(ref container, ref returnNow); + if (returnNow) + { + return container; + } + __credentials?.ToJson(container, serializationMode); + AddIf( null != (((object)this._usernameUri)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonString(this._usernameUri.ToString()) : null, "usernameUri" ,container.Add ); + AddIf( null != (((object)this._passwordUri)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonString(this._passwordUri.ToString()) : null, "passwordUri" ,container.Add ); + AfterToJson(ref container); + return container; + } + } +} \ No newline at end of file diff --git a/src/StorageMover/generated/api/Models/Api20230301/AzureStorageBlobContainerEndpointProperties.PowerShell.cs b/src/StorageMover/generated/api/Models/Api20231001/AzureStorageBlobContainerEndpointProperties.PowerShell.cs similarity index 85% rename from src/StorageMover/generated/api/Models/Api20230301/AzureStorageBlobContainerEndpointProperties.PowerShell.cs rename to src/StorageMover/generated/api/Models/Api20231001/AzureStorageBlobContainerEndpointProperties.PowerShell.cs index 59acef434e5a..f3816763dd86 100644 --- a/src/StorageMover/generated/api/Models/Api20230301/AzureStorageBlobContainerEndpointProperties.PowerShell.cs +++ b/src/StorageMover/generated/api/Models/Api20231001/AzureStorageBlobContainerEndpointProperties.PowerShell.cs @@ -3,10 +3,11 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301 +namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001 { using Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.PowerShell; + /// The properties of Azure Storage blob container endpoint. [System.ComponentModel.TypeConverter(typeof(AzureStorageBlobContainerEndpointPropertiesTypeConverter))] public partial class AzureStorageBlobContainerEndpointProperties { @@ -62,7 +63,7 @@ public partial class AzureStorageBlobContainerEndpointProperties partial void OverrideToString(ref string stringResult, ref bool returnNow); /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. @@ -77,29 +78,29 @@ internal AzureStorageBlobContainerEndpointProperties(global::System.Collections. // actually deserialize if (content.Contains("StorageAccountResourceId")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IAzureStorageBlobContainerEndpointPropertiesInternal)this).StorageAccountResourceId = (string) content.GetValueForProperty("StorageAccountResourceId",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IAzureStorageBlobContainerEndpointPropertiesInternal)this).StorageAccountResourceId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IAzureStorageBlobContainerEndpointPropertiesInternal)this).StorageAccountResourceId = (string) content.GetValueForProperty("StorageAccountResourceId",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IAzureStorageBlobContainerEndpointPropertiesInternal)this).StorageAccountResourceId, global::System.Convert.ToString); } if (content.Contains("BlobContainerName")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IAzureStorageBlobContainerEndpointPropertiesInternal)this).BlobContainerName = (string) content.GetValueForProperty("BlobContainerName",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IAzureStorageBlobContainerEndpointPropertiesInternal)this).BlobContainerName, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IAzureStorageBlobContainerEndpointPropertiesInternal)this).BlobContainerName = (string) content.GetValueForProperty("BlobContainerName",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IAzureStorageBlobContainerEndpointPropertiesInternal)this).BlobContainerName, global::System.Convert.ToString); } if (content.Contains("EndpointType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IEndpointBasePropertiesInternal)this).EndpointType = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.EndpointType) content.GetValueForProperty("EndpointType",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IEndpointBasePropertiesInternal)this).EndpointType, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.EndpointType.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IEndpointBasePropertiesInternal)this).EndpointType = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.EndpointType) content.GetValueForProperty("EndpointType",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IEndpointBasePropertiesInternal)this).EndpointType, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.EndpointType.CreateFrom); } if (content.Contains("Description")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IEndpointBasePropertiesInternal)this).Description = (string) content.GetValueForProperty("Description",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IEndpointBasePropertiesInternal)this).Description, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IEndpointBasePropertiesInternal)this).Description = (string) content.GetValueForProperty("Description",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IEndpointBasePropertiesInternal)this).Description, global::System.Convert.ToString); } if (content.Contains("ProvisioningState")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IEndpointBasePropertiesInternal)this).ProvisioningState = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.ProvisioningState?) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IEndpointBasePropertiesInternal)this).ProvisioningState, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.ProvisioningState.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IEndpointBasePropertiesInternal)this).ProvisioningState = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.ProvisioningState?) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IEndpointBasePropertiesInternal)this).ProvisioningState, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.ProvisioningState.CreateFrom); } AfterDeserializeDictionary(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -114,51 +115,51 @@ internal AzureStorageBlobContainerEndpointProperties(global::System.Management.A // actually deserialize if (content.Contains("StorageAccountResourceId")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IAzureStorageBlobContainerEndpointPropertiesInternal)this).StorageAccountResourceId = (string) content.GetValueForProperty("StorageAccountResourceId",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IAzureStorageBlobContainerEndpointPropertiesInternal)this).StorageAccountResourceId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IAzureStorageBlobContainerEndpointPropertiesInternal)this).StorageAccountResourceId = (string) content.GetValueForProperty("StorageAccountResourceId",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IAzureStorageBlobContainerEndpointPropertiesInternal)this).StorageAccountResourceId, global::System.Convert.ToString); } if (content.Contains("BlobContainerName")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IAzureStorageBlobContainerEndpointPropertiesInternal)this).BlobContainerName = (string) content.GetValueForProperty("BlobContainerName",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IAzureStorageBlobContainerEndpointPropertiesInternal)this).BlobContainerName, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IAzureStorageBlobContainerEndpointPropertiesInternal)this).BlobContainerName = (string) content.GetValueForProperty("BlobContainerName",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IAzureStorageBlobContainerEndpointPropertiesInternal)this).BlobContainerName, global::System.Convert.ToString); } if (content.Contains("EndpointType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IEndpointBasePropertiesInternal)this).EndpointType = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.EndpointType) content.GetValueForProperty("EndpointType",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IEndpointBasePropertiesInternal)this).EndpointType, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.EndpointType.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IEndpointBasePropertiesInternal)this).EndpointType = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.EndpointType) content.GetValueForProperty("EndpointType",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IEndpointBasePropertiesInternal)this).EndpointType, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.EndpointType.CreateFrom); } if (content.Contains("Description")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IEndpointBasePropertiesInternal)this).Description = (string) content.GetValueForProperty("Description",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IEndpointBasePropertiesInternal)this).Description, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IEndpointBasePropertiesInternal)this).Description = (string) content.GetValueForProperty("Description",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IEndpointBasePropertiesInternal)this).Description, global::System.Convert.ToString); } if (content.Contains("ProvisioningState")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IEndpointBasePropertiesInternal)this).ProvisioningState = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.ProvisioningState?) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IEndpointBasePropertiesInternal)this).ProvisioningState, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.ProvisioningState.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IEndpointBasePropertiesInternal)this).ProvisioningState = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.ProvisioningState?) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IEndpointBasePropertiesInternal)this).ProvisioningState, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.ProvisioningState.CreateFrom); } AfterDeserializePSObject(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Collections.IDictionary content that should be used. /// - /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IAzureStorageBlobContainerEndpointProperties DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IAzureStorageBlobContainerEndpointProperties DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new AzureStorageBlobContainerEndpointProperties(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. /// - /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IAzureStorageBlobContainerEndpointProperties DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IAzureStorageBlobContainerEndpointProperties DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new AzureStorageBlobContainerEndpointProperties(content); } @@ -171,7 +172,7 @@ public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301 /// /// an instance of the model class. /// - public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IAzureStorageBlobContainerEndpointProperties FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IAzureStorageBlobContainerEndpointProperties FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonNode.Parse(jsonText)); /// Serializes this instance to a json string. @@ -190,6 +191,7 @@ public override string ToString() return ToJsonString(); } } + /// The properties of Azure Storage blob container endpoint. [System.ComponentModel.TypeConverter(typeof(AzureStorageBlobContainerEndpointPropertiesTypeConverter))] public partial interface IAzureStorageBlobContainerEndpointProperties diff --git a/src/StorageMover/generated/api/Models/Api20230301/AzureStorageBlobContainerEndpointProperties.TypeConverter.cs b/src/StorageMover/generated/api/Models/Api20231001/AzureStorageBlobContainerEndpointProperties.TypeConverter.cs similarity index 98% rename from src/StorageMover/generated/api/Models/Api20230301/AzureStorageBlobContainerEndpointProperties.TypeConverter.cs rename to src/StorageMover/generated/api/Models/Api20231001/AzureStorageBlobContainerEndpointProperties.TypeConverter.cs index d859147d05fa..b797db2f343c 100644 --- a/src/StorageMover/generated/api/Models/Api20230301/AzureStorageBlobContainerEndpointProperties.TypeConverter.cs +++ b/src/StorageMover/generated/api/Models/Api20231001/AzureStorageBlobContainerEndpointProperties.TypeConverter.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301 +namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001 { using Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.PowerShell; @@ -110,14 +110,14 @@ public static bool CanConvertFrom(dynamic sourceValue) /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IAzureStorageBlobContainerEndpointProperties ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IAzureStorageBlobContainerEndpointProperties ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IAzureStorageBlobContainerEndpointProperties).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IAzureStorageBlobContainerEndpointProperties).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/StorageMover/generated/api/Models/Api20230301/AzureStorageBlobContainerEndpointProperties.cs b/src/StorageMover/generated/api/Models/Api20231001/AzureStorageBlobContainerEndpointProperties.cs similarity index 85% rename from src/StorageMover/generated/api/Models/Api20230301/AzureStorageBlobContainerEndpointProperties.cs rename to src/StorageMover/generated/api/Models/Api20231001/AzureStorageBlobContainerEndpointProperties.cs index 09078594ffe2..a28ed635d1df 100644 --- a/src/StorageMover/generated/api/Models/Api20230301/AzureStorageBlobContainerEndpointProperties.cs +++ b/src/StorageMover/generated/api/Models/Api20231001/AzureStorageBlobContainerEndpointProperties.cs @@ -3,21 +3,22 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301 +namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001 { using static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Extensions; + /// The properties of Azure Storage blob container endpoint. [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.DoNotFormat] public partial class AzureStorageBlobContainerEndpointProperties : - Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IAzureStorageBlobContainerEndpointProperties, - Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IAzureStorageBlobContainerEndpointPropertiesInternal, + Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IAzureStorageBlobContainerEndpointProperties, + Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IAzureStorageBlobContainerEndpointPropertiesInternal, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.IValidates { /// - /// Backing field for Inherited model /// - private Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IEndpointBaseProperties __endpointBaseProperties = new Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.EndpointBaseProperties(); + private Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IEndpointBaseProperties __endpointBaseProperties = new Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.EndpointBaseProperties(); /// Backing field for property. private string _blobContainerName; @@ -28,18 +29,18 @@ public partial class AzureStorageBlobContainerEndpointProperties : /// A description for the Endpoint. [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Origin(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.PropertyOrigin.Inherited)] - public string Description { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IEndpointBasePropertiesInternal)__endpointBaseProperties).Description; set => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IEndpointBasePropertiesInternal)__endpointBaseProperties).Description = value ?? null; } + public string Description { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IEndpointBasePropertiesInternal)__endpointBaseProperties).Description; set => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IEndpointBasePropertiesInternal)__endpointBaseProperties).Description = value ?? null; } /// The Endpoint resource type. [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Origin(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.PropertyOrigin.Inherited)] - public Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.EndpointType EndpointType { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IEndpointBasePropertiesInternal)__endpointBaseProperties).EndpointType; set => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IEndpointBasePropertiesInternal)__endpointBaseProperties).EndpointType = value ; } + public Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.EndpointType EndpointType { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IEndpointBasePropertiesInternal)__endpointBaseProperties).EndpointType; set => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IEndpointBasePropertiesInternal)__endpointBaseProperties).EndpointType = value ; } /// Internal Acessors for ProvisioningState - Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.ProvisioningState? Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IEndpointBasePropertiesInternal.ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IEndpointBasePropertiesInternal)__endpointBaseProperties).ProvisioningState; set => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IEndpointBasePropertiesInternal)__endpointBaseProperties).ProvisioningState = value; } + Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.ProvisioningState? Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IEndpointBasePropertiesInternal.ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IEndpointBasePropertiesInternal)__endpointBaseProperties).ProvisioningState; set => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IEndpointBasePropertiesInternal)__endpointBaseProperties).ProvisioningState = value; } /// The provisioning state of this resource. [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Origin(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.PropertyOrigin.Inherited)] - public Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.ProvisioningState? ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IEndpointBasePropertiesInternal)__endpointBaseProperties).ProvisioningState; } + public Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.ProvisioningState? ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IEndpointBasePropertiesInternal)__endpointBaseProperties).ProvisioningState; } /// Backing field for property. private string _storageAccountResourceId; @@ -68,9 +69,10 @@ public AzureStorageBlobContainerEndpointProperties() await eventListener.AssertObjectIsValid(nameof(__endpointBaseProperties), __endpointBaseProperties); } } + /// The properties of Azure Storage blob container endpoint. public partial interface IAzureStorageBlobContainerEndpointProperties : Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.IJsonSerializable, - Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IEndpointBaseProperties + Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IEndpointBaseProperties { /// The name of the Storage blob container that is the target destination. [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Info( @@ -90,8 +92,9 @@ public partial interface IAzureStorageBlobContainerEndpointProperties : string StorageAccountResourceId { get; set; } } + /// The properties of Azure Storage blob container endpoint. internal partial interface IAzureStorageBlobContainerEndpointPropertiesInternal : - Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IEndpointBasePropertiesInternal + Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IEndpointBasePropertiesInternal { /// The name of the Storage blob container that is the target destination. string BlobContainerName { get; set; } diff --git a/src/StorageMover/generated/api/Models/Api20230301/AzureStorageBlobContainerEndpointProperties.json.cs b/src/StorageMover/generated/api/Models/Api20231001/AzureStorageBlobContainerEndpointProperties.json.cs similarity index 95% rename from src/StorageMover/generated/api/Models/Api20230301/AzureStorageBlobContainerEndpointProperties.json.cs rename to src/StorageMover/generated/api/Models/Api20231001/AzureStorageBlobContainerEndpointProperties.json.cs index 296619404c16..e1800ac791fa 100644 --- a/src/StorageMover/generated/api/Models/Api20230301/AzureStorageBlobContainerEndpointProperties.json.cs +++ b/src/StorageMover/generated/api/Models/Api20231001/AzureStorageBlobContainerEndpointProperties.json.cs @@ -3,10 +3,11 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301 +namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001 { using static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Extensions; + /// The properties of Azure Storage blob container endpoint. public partial class AzureStorageBlobContainerEndpointProperties { @@ -64,20 +65,20 @@ internal AzureStorageBlobContainerEndpointProperties(Microsoft.Azure.PowerShell. { return; } - __endpointBaseProperties = new Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.EndpointBaseProperties(json); + __endpointBaseProperties = new Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.EndpointBaseProperties(json); {_storageAccountResourceId = If( json?.PropertyT("storageAccountResourceId"), out var __jsonStorageAccountResourceId) ? (string)__jsonStorageAccountResourceId : (string)StorageAccountResourceId;} {_blobContainerName = If( json?.PropertyT("blobContainerName"), out var __jsonBlobContainerName) ? (string)__jsonBlobContainerName : (string)BlobContainerName;} AfterFromJson(json); } /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IAzureStorageBlobContainerEndpointProperties. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IAzureStorageBlobContainerEndpointProperties. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IAzureStorageBlobContainerEndpointProperties. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IAzureStorageBlobContainerEndpointProperties. /// - public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IAzureStorageBlobContainerEndpointProperties FromJson(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IAzureStorageBlobContainerEndpointProperties FromJson(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonObject json ? new AzureStorageBlobContainerEndpointProperties(json) : null; } diff --git a/src/StorageMover/generated/api/Models/Api20230301/AzureStorageBlobContainerEndpointUpdateProperties.PowerShell.cs b/src/StorageMover/generated/api/Models/Api20231001/AzureStorageBlobContainerEndpointUpdateProperties.PowerShell.cs similarity index 82% rename from src/StorageMover/generated/api/Models/Api20230301/AzureStorageBlobContainerEndpointUpdateProperties.PowerShell.cs rename to src/StorageMover/generated/api/Models/Api20231001/AzureStorageBlobContainerEndpointUpdateProperties.PowerShell.cs index 1262deb8bc1c..d9c4c43aa03a 100644 --- a/src/StorageMover/generated/api/Models/Api20230301/AzureStorageBlobContainerEndpointUpdateProperties.PowerShell.cs +++ b/src/StorageMover/generated/api/Models/Api20231001/AzureStorageBlobContainerEndpointUpdateProperties.PowerShell.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301 +namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001 { using Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.PowerShell; @@ -62,7 +62,7 @@ public partial class AzureStorageBlobContainerEndpointUpdateProperties partial void OverrideToString(ref string stringResult, ref bool returnNow); /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. @@ -75,15 +75,19 @@ internal AzureStorageBlobContainerEndpointUpdateProperties(global::System.Collec return; } // actually deserialize + if (content.Contains("EndpointType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IEndpointBaseUpdatePropertiesInternal)this).EndpointType = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.EndpointType) content.GetValueForProperty("EndpointType",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IEndpointBaseUpdatePropertiesInternal)this).EndpointType, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.EndpointType.CreateFrom); + } if (content.Contains("Description")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IEndpointBaseUpdatePropertiesInternal)this).Description = (string) content.GetValueForProperty("Description",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IEndpointBaseUpdatePropertiesInternal)this).Description, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IEndpointBaseUpdatePropertiesInternal)this).Description = (string) content.GetValueForProperty("Description",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IEndpointBaseUpdatePropertiesInternal)this).Description, global::System.Convert.ToString); } AfterDeserializeDictionary(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -96,37 +100,41 @@ internal AzureStorageBlobContainerEndpointUpdateProperties(global::System.Manage return; } // actually deserialize + if (content.Contains("EndpointType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IEndpointBaseUpdatePropertiesInternal)this).EndpointType = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.EndpointType) content.GetValueForProperty("EndpointType",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IEndpointBaseUpdatePropertiesInternal)this).EndpointType, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.EndpointType.CreateFrom); + } if (content.Contains("Description")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IEndpointBaseUpdatePropertiesInternal)this).Description = (string) content.GetValueForProperty("Description",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IEndpointBaseUpdatePropertiesInternal)this).Description, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IEndpointBaseUpdatePropertiesInternal)this).Description = (string) content.GetValueForProperty("Description",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IEndpointBaseUpdatePropertiesInternal)this).Description, global::System.Convert.ToString); } AfterDeserializePSObject(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Collections.IDictionary content that should be used. /// - /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IAzureStorageBlobContainerEndpointUpdateProperties DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IAzureStorageBlobContainerEndpointUpdateProperties DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new AzureStorageBlobContainerEndpointUpdateProperties(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. /// - /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IAzureStorageBlobContainerEndpointUpdateProperties DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IAzureStorageBlobContainerEndpointUpdateProperties DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new AzureStorageBlobContainerEndpointUpdateProperties(content); } @@ -139,7 +147,7 @@ public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301 /// /// an instance of the model class. /// - public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IAzureStorageBlobContainerEndpointUpdateProperties FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IAzureStorageBlobContainerEndpointUpdateProperties FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonNode.Parse(jsonText)); /// Serializes this instance to a json string. diff --git a/src/StorageMover/generated/api/Models/Api20230301/AzureStorageBlobContainerEndpointUpdateProperties.TypeConverter.cs b/src/StorageMover/generated/api/Models/Api20231001/AzureStorageBlobContainerEndpointUpdateProperties.TypeConverter.cs similarity index 98% rename from src/StorageMover/generated/api/Models/Api20230301/AzureStorageBlobContainerEndpointUpdateProperties.TypeConverter.cs rename to src/StorageMover/generated/api/Models/Api20231001/AzureStorageBlobContainerEndpointUpdateProperties.TypeConverter.cs index 1917b1e962e0..ea718fdda6e8 100644 --- a/src/StorageMover/generated/api/Models/Api20230301/AzureStorageBlobContainerEndpointUpdateProperties.TypeConverter.cs +++ b/src/StorageMover/generated/api/Models/Api20231001/AzureStorageBlobContainerEndpointUpdateProperties.TypeConverter.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301 +namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001 { using Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.PowerShell; @@ -112,14 +112,14 @@ public static bool CanConvertFrom(dynamic sourceValue) /// an instance of , or null if there is no suitable /// conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IAzureStorageBlobContainerEndpointUpdateProperties ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IAzureStorageBlobContainerEndpointUpdateProperties ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IAzureStorageBlobContainerEndpointUpdateProperties).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IAzureStorageBlobContainerEndpointUpdateProperties).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/StorageMover/generated/api/Models/Api20230301/AzureStorageBlobContainerEndpointUpdateProperties.cs b/src/StorageMover/generated/api/Models/Api20231001/AzureStorageBlobContainerEndpointUpdateProperties.cs similarity index 72% rename from src/StorageMover/generated/api/Models/Api20230301/AzureStorageBlobContainerEndpointUpdateProperties.cs rename to src/StorageMover/generated/api/Models/Api20231001/AzureStorageBlobContainerEndpointUpdateProperties.cs index 18f15b620a5e..fb232d842ec2 100644 --- a/src/StorageMover/generated/api/Models/Api20230301/AzureStorageBlobContainerEndpointUpdateProperties.cs +++ b/src/StorageMover/generated/api/Models/Api20231001/AzureStorageBlobContainerEndpointUpdateProperties.cs @@ -3,25 +3,29 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301 +namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001 { using static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Extensions; [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.DoNotFormat] public partial class AzureStorageBlobContainerEndpointUpdateProperties : - Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IAzureStorageBlobContainerEndpointUpdateProperties, - Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IAzureStorageBlobContainerEndpointUpdatePropertiesInternal, + Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IAzureStorageBlobContainerEndpointUpdateProperties, + Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IAzureStorageBlobContainerEndpointUpdatePropertiesInternal, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.IValidates { /// - /// Backing field for Inherited model /// - private Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IEndpointBaseUpdateProperties __endpointBaseUpdateProperties = new Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.EndpointBaseUpdateProperties(); + private Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IEndpointBaseUpdateProperties __endpointBaseUpdateProperties = new Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.EndpointBaseUpdateProperties(); /// A description for the Endpoint. [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Origin(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.PropertyOrigin.Inherited)] - public string Description { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IEndpointBaseUpdatePropertiesInternal)__endpointBaseUpdateProperties).Description; set => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IEndpointBaseUpdatePropertiesInternal)__endpointBaseUpdateProperties).Description = value ?? null; } + public string Description { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IEndpointBaseUpdatePropertiesInternal)__endpointBaseUpdateProperties).Description; set => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IEndpointBaseUpdatePropertiesInternal)__endpointBaseUpdateProperties).Description = value ?? null; } + + /// The Endpoint resource type. + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Origin(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.PropertyOrigin.Inherited)] + public Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.EndpointType EndpointType { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IEndpointBaseUpdatePropertiesInternal)__endpointBaseUpdateProperties).EndpointType; set => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IEndpointBaseUpdatePropertiesInternal)__endpointBaseUpdateProperties).EndpointType = value ; } /// /// Creates an new instance. @@ -45,12 +49,12 @@ public AzureStorageBlobContainerEndpointUpdateProperties() } public partial interface IAzureStorageBlobContainerEndpointUpdateProperties : Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.IJsonSerializable, - Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IEndpointBaseUpdateProperties + Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IEndpointBaseUpdateProperties { } internal partial interface IAzureStorageBlobContainerEndpointUpdatePropertiesInternal : - Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IEndpointBaseUpdatePropertiesInternal + Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IEndpointBaseUpdatePropertiesInternal { } diff --git a/src/StorageMover/generated/api/Models/Api20230301/AzureStorageBlobContainerEndpointUpdateProperties.json.cs b/src/StorageMover/generated/api/Models/Api20231001/AzureStorageBlobContainerEndpointUpdateProperties.json.cs similarity index 96% rename from src/StorageMover/generated/api/Models/Api20230301/AzureStorageBlobContainerEndpointUpdateProperties.json.cs rename to src/StorageMover/generated/api/Models/Api20231001/AzureStorageBlobContainerEndpointUpdateProperties.json.cs index 14a1072f2375..e418476f691e 100644 --- a/src/StorageMover/generated/api/Models/Api20230301/AzureStorageBlobContainerEndpointUpdateProperties.json.cs +++ b/src/StorageMover/generated/api/Models/Api20231001/AzureStorageBlobContainerEndpointUpdateProperties.json.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301 +namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001 { using static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Extensions; @@ -65,18 +65,18 @@ internal AzureStorageBlobContainerEndpointUpdateProperties(Microsoft.Azure.Power { return; } - __endpointBaseUpdateProperties = new Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.EndpointBaseUpdateProperties(json); + __endpointBaseUpdateProperties = new Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.EndpointBaseUpdateProperties(json); AfterFromJson(json); } /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IAzureStorageBlobContainerEndpointUpdateProperties. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IAzureStorageBlobContainerEndpointUpdateProperties. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IAzureStorageBlobContainerEndpointUpdateProperties. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IAzureStorageBlobContainerEndpointUpdateProperties. /// - public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IAzureStorageBlobContainerEndpointUpdateProperties FromJson(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IAzureStorageBlobContainerEndpointUpdateProperties FromJson(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonObject json ? new AzureStorageBlobContainerEndpointUpdateProperties(json) : null; } diff --git a/src/StorageMover/generated/api/Models/Api20231001/AzureStorageSmbFileShareEndpointProperties.PowerShell.cs b/src/StorageMover/generated/api/Models/Api20231001/AzureStorageSmbFileShareEndpointProperties.PowerShell.cs new file mode 100644 index 000000000000..89eb8b86f2e3 --- /dev/null +++ b/src/StorageMover/generated/api/Models/Api20231001/AzureStorageSmbFileShareEndpointProperties.PowerShell.cs @@ -0,0 +1,201 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001 +{ + using Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.PowerShell; + + /// The properties of Azure Storage SMB file share endpoint. + [System.ComponentModel.TypeConverter(typeof(AzureStorageSmbFileShareEndpointPropertiesTypeConverter))] + public partial class AzureStorageSmbFileShareEndpointProperties + { + + /// + /// AfterDeserializeDictionary will be called after the deserialization has finished, allowing customization of the + /// object before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The global::System.Collections.IDictionary content that should be used. + + partial void AfterDeserializeDictionary(global::System.Collections.IDictionary content); + + /// + /// AfterDeserializePSObject will be called after the deserialization has finished, allowing customization of the object + /// before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The global::System.Management.Automation.PSObject content that should be used. + + partial void AfterDeserializePSObject(global::System.Management.Automation.PSObject content); + + /// + /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization + /// of the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The global::System.Collections.IDictionary content that should be used. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeDeserializeDictionary(global::System.Collections.IDictionary content, ref bool returnNow); + + /// + /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization + /// of the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The global::System.Management.Automation.PSObject content that should be used. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); + + /// + /// OverrideToString will be called if it is implemented. Implement this method in a partial class to enable this behavior + /// + /// /// instance serialized to a string, normally it is a Json + /// /// set returnNow to true if you provide a customized OverrideToString function + + partial void OverrideToString(ref string stringResult, ref bool returnNow); + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal AzureStorageSmbFileShareEndpointProperties(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("StorageAccountResourceId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IAzureStorageSmbFileShareEndpointPropertiesInternal)this).StorageAccountResourceId = (string) content.GetValueForProperty("StorageAccountResourceId",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IAzureStorageSmbFileShareEndpointPropertiesInternal)this).StorageAccountResourceId, global::System.Convert.ToString); + } + if (content.Contains("FileShareName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IAzureStorageSmbFileShareEndpointPropertiesInternal)this).FileShareName = (string) content.GetValueForProperty("FileShareName",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IAzureStorageSmbFileShareEndpointPropertiesInternal)this).FileShareName, global::System.Convert.ToString); + } + if (content.Contains("EndpointType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IEndpointBasePropertiesInternal)this).EndpointType = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.EndpointType) content.GetValueForProperty("EndpointType",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IEndpointBasePropertiesInternal)this).EndpointType, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.EndpointType.CreateFrom); + } + if (content.Contains("Description")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IEndpointBasePropertiesInternal)this).Description = (string) content.GetValueForProperty("Description",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IEndpointBasePropertiesInternal)this).Description, global::System.Convert.ToString); + } + if (content.Contains("ProvisioningState")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IEndpointBasePropertiesInternal)this).ProvisioningState = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.ProvisioningState?) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IEndpointBasePropertiesInternal)this).ProvisioningState, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.ProvisioningState.CreateFrom); + } + AfterDeserializeDictionary(content); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + internal AzureStorageSmbFileShareEndpointProperties(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("StorageAccountResourceId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IAzureStorageSmbFileShareEndpointPropertiesInternal)this).StorageAccountResourceId = (string) content.GetValueForProperty("StorageAccountResourceId",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IAzureStorageSmbFileShareEndpointPropertiesInternal)this).StorageAccountResourceId, global::System.Convert.ToString); + } + if (content.Contains("FileShareName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IAzureStorageSmbFileShareEndpointPropertiesInternal)this).FileShareName = (string) content.GetValueForProperty("FileShareName",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IAzureStorageSmbFileShareEndpointPropertiesInternal)this).FileShareName, global::System.Convert.ToString); + } + if (content.Contains("EndpointType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IEndpointBasePropertiesInternal)this).EndpointType = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.EndpointType) content.GetValueForProperty("EndpointType",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IEndpointBasePropertiesInternal)this).EndpointType, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.EndpointType.CreateFrom); + } + if (content.Contains("Description")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IEndpointBasePropertiesInternal)this).Description = (string) content.GetValueForProperty("Description",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IEndpointBasePropertiesInternal)this).Description, global::System.Convert.ToString); + } + if (content.Contains("ProvisioningState")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IEndpointBasePropertiesInternal)this).ProvisioningState = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.ProvisioningState?) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IEndpointBasePropertiesInternal)this).ProvisioningState, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.ProvisioningState.CreateFrom); + } + AfterDeserializePSObject(content); + } + + /// + /// Deserializes a into an instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + /// + /// an instance of . + /// + public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IAzureStorageSmbFileShareEndpointProperties DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new AzureStorageSmbFileShareEndpointProperties(content); + } + + /// + /// Deserializes a into an instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + /// + /// an instance of . + /// + public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IAzureStorageSmbFileShareEndpointProperties DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new AzureStorageSmbFileShareEndpointProperties(content); + } + + /// + /// Creates a new instance of , deserializing the content from a + /// json string. + /// + /// a string containing a JSON serialized instance of this model. + /// + /// an instance of the model class. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IAzureStorageSmbFileShareEndpointProperties FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonNode.Parse(jsonText)); + + /// Serializes this instance to a json string. + + /// a containing this model serialized to JSON text. + public string ToJsonString() => ToJson(null, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.SerializationMode.IncludeAll)?.ToString(); + + public override string ToString() + { + var returnNow = false; + var result = global::System.String.Empty; + OverrideToString(ref result, ref returnNow); + if (returnNow) + { + return result; + } + return ToJsonString(); + } + } + /// The properties of Azure Storage SMB file share endpoint. + [System.ComponentModel.TypeConverter(typeof(AzureStorageSmbFileShareEndpointPropertiesTypeConverter))] + public partial interface IAzureStorageSmbFileShareEndpointProperties + + { + + } +} \ No newline at end of file diff --git a/src/StorageMover/generated/api/Models/Api20231001/AzureStorageSmbFileShareEndpointProperties.TypeConverter.cs b/src/StorageMover/generated/api/Models/Api20231001/AzureStorageSmbFileShareEndpointProperties.TypeConverter.cs new file mode 100644 index 000000000000..44ece9291b11 --- /dev/null +++ b/src/StorageMover/generated/api/Models/Api20231001/AzureStorageSmbFileShareEndpointProperties.TypeConverter.cs @@ -0,0 +1,151 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001 +{ + using Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.PowerShell; + + /// + /// A PowerShell PSTypeConverter to support converting to an instance of + /// + public partial class AzureStorageSmbFileShareEndpointPropertiesTypeConverter : global::System.Management.Automation.PSTypeConverter + { + + /// + /// Determines if the converter can convert the parameter to the parameter. + /// + /// the to convert from + /// the to convert to + /// + /// true if the converter can convert the parameter to the parameter, otherwise false. + /// + public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); + + /// + /// Determines if the converter can convert the parameter to the + /// type. + /// + /// the instance to check if it can be converted to the type. + /// + /// true if the instance could be converted to a type, otherwise + /// false + /// + public static bool CanConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return true; + } + global::System.Type type = sourceValue.GetType(); + if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + // we say yest to PSObjects + return true; + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + // we say yest to Hashtables/dictionaries + return true; + } + try + { + if (null != sourceValue.ToJsonString()) + { + return true; + } + } + catch + { + // Not one of our objects + } + try + { + string text = sourceValue.ToString()?.Trim(); + return true == text?.StartsWith("{") && true == text?.EndsWith("}") && Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonNode.Parse(text).Type == Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonType.Object; + } + catch + { + // Doesn't look like it can be treated as JSON + } + return false; + } + + /// + /// Determines if the parameter can be converted to the + /// parameter + /// + /// the to convert from + /// the to convert to + /// + /// true if the converter can convert the parameter to the parameter, otherwise false + /// + public override bool CanConvertTo(object sourceValue, global::System.Type destinationType) => false; + + /// + /// Converts the parameter to the parameter using and + /// + /// the to convert from + /// the to convert to + /// not used by this TypeConverter. + /// when set to true, will ignore the case when converting. + /// + /// an instance of , or null if there is no suitable conversion. + /// + public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue); + + /// + /// Converts the parameter into an instance of + /// + /// the value to convert into an instance of . + /// + /// an instance of , or null if there is no suitable conversion. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IAzureStorageSmbFileShareEndpointProperties ConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return null; + } + global::System.Type type = sourceValue.GetType(); + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IAzureStorageSmbFileShareEndpointProperties).IsAssignableFrom(type)) + { + return sourceValue; + } + try + { + return AzureStorageSmbFileShareEndpointProperties.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());; + } + catch + { + // Unable to use JSON pattern + } + if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + return AzureStorageSmbFileShareEndpointProperties.DeserializeFromPSObject(sourceValue); + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + return AzureStorageSmbFileShareEndpointProperties.DeserializeFromDictionary(sourceValue); + } + return null; + } + + /// NotImplemented -- this will return null + /// the to convert from + /// the to convert to + /// not used by this TypeConverter. + /// when set to true, will ignore the case when converting. + /// will always return null. + public override object ConvertTo(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => null; + } +} \ No newline at end of file diff --git a/src/StorageMover/generated/api/Models/Api20231001/AzureStorageSmbFileShareEndpointProperties.cs b/src/StorageMover/generated/api/Models/Api20231001/AzureStorageSmbFileShareEndpointProperties.cs new file mode 100644 index 000000000000..4acc73806416 --- /dev/null +++ b/src/StorageMover/generated/api/Models/Api20231001/AzureStorageSmbFileShareEndpointProperties.cs @@ -0,0 +1,105 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001 +{ + using static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Extensions; + + /// The properties of Azure Storage SMB file share endpoint. + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.DoNotFormat] + public partial class AzureStorageSmbFileShareEndpointProperties : + Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IAzureStorageSmbFileShareEndpointProperties, + Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IAzureStorageSmbFileShareEndpointPropertiesInternal, + Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.IValidates + { + /// + /// Backing field for Inherited model + /// + private Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IEndpointBaseProperties __endpointBaseProperties = new Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.EndpointBaseProperties(); + + /// A description for the Endpoint. + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Origin(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.PropertyOrigin.Inherited)] + public string Description { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IEndpointBasePropertiesInternal)__endpointBaseProperties).Description; set => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IEndpointBasePropertiesInternal)__endpointBaseProperties).Description = value ?? null; } + + /// The Endpoint resource type. + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Origin(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.PropertyOrigin.Inherited)] + public Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.EndpointType EndpointType { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IEndpointBasePropertiesInternal)__endpointBaseProperties).EndpointType; set => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IEndpointBasePropertiesInternal)__endpointBaseProperties).EndpointType = value ; } + + /// Backing field for property. + private string _fileShareName; + + /// The name of the Azure Storage file share. + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Origin(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.PropertyOrigin.Owned)] + public string FileShareName { get => this._fileShareName; set => this._fileShareName = value; } + + /// Internal Acessors for ProvisioningState + Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.ProvisioningState? Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IEndpointBasePropertiesInternal.ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IEndpointBasePropertiesInternal)__endpointBaseProperties).ProvisioningState; set => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IEndpointBasePropertiesInternal)__endpointBaseProperties).ProvisioningState = value; } + + /// The provisioning state of this resource. + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Origin(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.PropertyOrigin.Inherited)] + public Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.ProvisioningState? ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IEndpointBasePropertiesInternal)__endpointBaseProperties).ProvisioningState; } + + /// Backing field for property. + private string _storageAccountResourceId; + + /// The Azure Resource ID of the storage account. + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Origin(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.PropertyOrigin.Owned)] + public string StorageAccountResourceId { get => this._storageAccountResourceId; set => this._storageAccountResourceId = value; } + + /// + /// Creates an new instance. + /// + public AzureStorageSmbFileShareEndpointProperties() + { + + } + + /// Validates that this object meets the validation criteria. + /// an instance that will receive validation + /// events. + /// + /// A that will be complete when validation is completed. + /// + public async global::System.Threading.Tasks.Task Validate(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.IEventListener eventListener) + { + await eventListener.AssertNotNull(nameof(__endpointBaseProperties), __endpointBaseProperties); + await eventListener.AssertObjectIsValid(nameof(__endpointBaseProperties), __endpointBaseProperties); + } + } + /// The properties of Azure Storage SMB file share endpoint. + public partial interface IAzureStorageSmbFileShareEndpointProperties : + Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.IJsonSerializable, + Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IEndpointBaseProperties + { + /// The name of the Azure Storage file share. + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The name of the Azure Storage file share.", + SerializedName = @"fileShareName", + PossibleTypes = new [] { typeof(string) })] + string FileShareName { get; set; } + /// The Azure Resource ID of the storage account. + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The Azure Resource ID of the storage account.", + SerializedName = @"storageAccountResourceId", + PossibleTypes = new [] { typeof(string) })] + string StorageAccountResourceId { get; set; } + + } + /// The properties of Azure Storage SMB file share endpoint. + internal partial interface IAzureStorageSmbFileShareEndpointPropertiesInternal : + Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IEndpointBasePropertiesInternal + { + /// The name of the Azure Storage file share. + string FileShareName { get; set; } + /// The Azure Resource ID of the storage account. + string StorageAccountResourceId { get; set; } + + } +} \ No newline at end of file diff --git a/src/StorageMover/generated/api/Models/Api20231001/AzureStorageSmbFileShareEndpointProperties.json.cs b/src/StorageMover/generated/api/Models/Api20231001/AzureStorageSmbFileShareEndpointProperties.json.cs new file mode 100644 index 000000000000..afea0dbfeb29 --- /dev/null +++ b/src/StorageMover/generated/api/Models/Api20231001/AzureStorageSmbFileShareEndpointProperties.json.cs @@ -0,0 +1,114 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001 +{ + using static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Extensions; + + /// The properties of Azure Storage SMB file share endpoint. + public partial class AzureStorageSmbFileShareEndpointProperties + { + + /// + /// AfterFromJson will be called after the json deserialization has finished, allowing customization of the object + /// before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The JsonNode that should be deserialized into this object. + + partial void AfterFromJson(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonObject json); + + /// + /// AfterToJson will be called after the json serialization has finished, allowing customization of the before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The JSON container that the serialization result will be placed in. + + partial void AfterToJson(ref Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonObject container); + + /// + /// BeforeFromJson will be called before the json deserialization has commenced, allowing complete customization of + /// the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the + /// output parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The JsonNode that should be deserialized into this object. + /// Determines if the rest of the deserialization should be processed, or if the method should return + /// instantly. + + partial void BeforeFromJson(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonObject json, ref bool returnNow); + + /// + /// BeforeToJson will be called before the json serialization has commenced, allowing complete customization of the + /// object before it is serialized. + /// If you wish to disable the default serialization entirely, return true in the output + /// parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The JSON container that the serialization result will be placed in. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonObject container, ref bool returnNow); + + /// + /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonObject into a new instance of . + /// + /// A Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonObject instance to deserialize from. + internal AzureStorageSmbFileShareEndpointProperties(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonObject json) + { + bool returnNow = false; + BeforeFromJson(json, ref returnNow); + if (returnNow) + { + return; + } + __endpointBaseProperties = new Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.EndpointBaseProperties(json); + {_storageAccountResourceId = If( json?.PropertyT("storageAccountResourceId"), out var __jsonStorageAccountResourceId) ? (string)__jsonStorageAccountResourceId : (string)StorageAccountResourceId;} + {_fileShareName = If( json?.PropertyT("fileShareName"), out var __jsonFileShareName) ? (string)__jsonFileShareName : (string)FileShareName;} + AfterFromJson(json); + } + + /// + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IAzureStorageSmbFileShareEndpointProperties. + /// + /// a to deserialize from. + /// + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IAzureStorageSmbFileShareEndpointProperties. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IAzureStorageSmbFileShareEndpointProperties FromJson(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonNode node) + { + return node is Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonObject json ? new AzureStorageSmbFileShareEndpointProperties(json) : null; + } + + /// + /// Serializes this instance of into a . + /// + /// The container to serialize this object into. If the caller + /// passes in null, a new instance will be created and returned to the caller. + /// Allows the caller to choose the depth of the serialization. See . + /// + /// a serialized instance of as a . + /// + public Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonNode ToJson(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonObject container, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.SerializationMode serializationMode) + { + container = container ?? new Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonObject(); + + bool returnNow = false; + BeforeToJson(ref container, ref returnNow); + if (returnNow) + { + return container; + } + __endpointBaseProperties?.ToJson(container, serializationMode); + AddIf( null != (((object)this._storageAccountResourceId)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonString(this._storageAccountResourceId.ToString()) : null, "storageAccountResourceId" ,container.Add ); + AddIf( null != (((object)this._fileShareName)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonString(this._fileShareName.ToString()) : null, "fileShareName" ,container.Add ); + AfterToJson(ref container); + return container; + } + } +} \ No newline at end of file diff --git a/src/StorageMover/generated/api/Models/Api20/TrackedResource.PowerShell.cs b/src/StorageMover/generated/api/Models/Api20231001/AzureStorageSmbFileShareEndpointUpdateProperties.PowerShell.cs similarity index 57% rename from src/StorageMover/generated/api/Models/Api20/TrackedResource.PowerShell.cs rename to src/StorageMover/generated/api/Models/Api20231001/AzureStorageSmbFileShareEndpointUpdateProperties.PowerShell.cs index 43522b9bf2b3..f87ac0d5854b 100644 --- a/src/StorageMover/generated/api/Models/Api20/TrackedResource.PowerShell.cs +++ b/src/StorageMover/generated/api/Models/Api20231001/AzureStorageSmbFileShareEndpointUpdateProperties.PowerShell.cs @@ -3,15 +3,13 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20 +namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001 { using Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.PowerShell; - /// - /// The resource model definition for an Azure Resource Manager tracked top level resource which has 'tags' and a 'location' - /// - [System.ComponentModel.TypeConverter(typeof(TrackedResourceTypeConverter))] - public partial class TrackedResource + /// The properties of Azure Storage SMB file share endpoint to update. + [System.ComponentModel.TypeConverter(typeof(AzureStorageSmbFileShareEndpointUpdatePropertiesTypeConverter))] + public partial class AzureStorageSmbFileShareEndpointUpdateProperties { /// @@ -65,61 +63,11 @@ public partial class TrackedResource partial void OverrideToString(ref string stringResult, ref bool returnNow); /// - /// Deserializes a into an instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. - /// - /// an instance of . - /// - public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.ITrackedResource DeserializeFromDictionary(global::System.Collections.IDictionary content) - { - return new TrackedResource(content); - } - - /// - /// Deserializes a into an instance of . - /// - /// The global::System.Management.Automation.PSObject content that should be used. - /// - /// an instance of . - /// - public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.ITrackedResource DeserializeFromPSObject(global::System.Management.Automation.PSObject content) - { - return new TrackedResource(content); - } - - /// - /// Creates a new instance of , deserializing the content from a json string. - /// - /// a string containing a JSON serialized instance of this model. - /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.ITrackedResource FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonNode.Parse(jsonText)); - - /// Serializes this instance to a json string. - - /// a containing this model serialized to JSON text. - public string ToJsonString() => ToJson(null, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.SerializationMode.IncludeAll)?.ToString(); - - public override string ToString() - { - var returnNow = false; - var result = global::System.String.Empty; - OverrideToString(ref result, ref returnNow); - if (returnNow) - { - return result; - } - return ToJsonString(); - } - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - internal TrackedResource(global::System.Collections.IDictionary content) + internal AzureStorageSmbFileShareEndpointUpdateProperties(global::System.Collections.IDictionary content) { bool returnNow = false; BeforeDeserializeDictionary(content, ref returnNow); @@ -128,35 +76,23 @@ internal TrackedResource(global::System.Collections.IDictionary content) return; } // actually deserialize - if (content.Contains("Tag")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.ITrackedResourceInternal)this).Tag = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.ITrackedResourceTags) content.GetValueForProperty("Tag",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.ITrackedResourceInternal)this).Tag, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.TrackedResourceTagsTypeConverter.ConvertFrom); - } - if (content.Contains("Location")) + if (content.Contains("EndpointType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.ITrackedResourceInternal)this).Location = (string) content.GetValueForProperty("Location",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.ITrackedResourceInternal)this).Location, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IEndpointBaseUpdatePropertiesInternal)this).EndpointType = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.EndpointType) content.GetValueForProperty("EndpointType",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IEndpointBaseUpdatePropertiesInternal)this).EndpointType, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.EndpointType.CreateFrom); } - if (content.Contains("Id")) + if (content.Contains("Description")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.IResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.IResourceInternal)this).Id, global::System.Convert.ToString); - } - if (content.Contains("Name")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.IResourceInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.IResourceInternal)this).Name, global::System.Convert.ToString); - } - if (content.Contains("Type")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.IResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.IResourceInternal)this).Type, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IEndpointBaseUpdatePropertiesInternal)this).Description = (string) content.GetValueForProperty("Description",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IEndpointBaseUpdatePropertiesInternal)this).Description, global::System.Convert.ToString); } AfterDeserializeDictionary(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. - internal TrackedResource(global::System.Management.Automation.PSObject content) + internal AzureStorageSmbFileShareEndpointUpdateProperties(global::System.Management.Automation.PSObject content) { bool returnNow = false; BeforeDeserializePSObject(content, ref returnNow); @@ -165,32 +101,75 @@ internal TrackedResource(global::System.Management.Automation.PSObject content) return; } // actually deserialize - if (content.Contains("Tag")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.ITrackedResourceInternal)this).Tag = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.ITrackedResourceTags) content.GetValueForProperty("Tag",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.ITrackedResourceInternal)this).Tag, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.TrackedResourceTagsTypeConverter.ConvertFrom); - } - if (content.Contains("Location")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.ITrackedResourceInternal)this).Location = (string) content.GetValueForProperty("Location",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.ITrackedResourceInternal)this).Location, global::System.Convert.ToString); - } - if (content.Contains("Id")) + if (content.Contains("EndpointType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.IResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.IResourceInternal)this).Id, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IEndpointBaseUpdatePropertiesInternal)this).EndpointType = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.EndpointType) content.GetValueForProperty("EndpointType",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IEndpointBaseUpdatePropertiesInternal)this).EndpointType, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.EndpointType.CreateFrom); } - if (content.Contains("Name")) + if (content.Contains("Description")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.IResourceInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.IResourceInternal)this).Name, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IEndpointBaseUpdatePropertiesInternal)this).Description = (string) content.GetValueForProperty("Description",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IEndpointBaseUpdatePropertiesInternal)this).Description, global::System.Convert.ToString); } - if (content.Contains("Type")) + AfterDeserializePSObject(content); + } + + /// + /// Deserializes a into an instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + /// + /// an instance of . + /// + public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IAzureStorageSmbFileShareEndpointUpdateProperties DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new AzureStorageSmbFileShareEndpointUpdateProperties(content); + } + + /// + /// Deserializes a into an instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + /// + /// an instance of . + /// + public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IAzureStorageSmbFileShareEndpointUpdateProperties DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new AzureStorageSmbFileShareEndpointUpdateProperties(content); + } + + /// + /// Creates a new instance of , deserializing the content from + /// a json string. + /// + /// a string containing a JSON serialized instance of this model. + /// + /// an instance of the model class. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IAzureStorageSmbFileShareEndpointUpdateProperties FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonNode.Parse(jsonText)); + + /// Serializes this instance to a json string. + + /// a containing this model serialized to JSON text. + public string ToJsonString() => ToJson(null, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.SerializationMode.IncludeAll)?.ToString(); + + public override string ToString() + { + var returnNow = false; + var result = global::System.String.Empty; + OverrideToString(ref result, ref returnNow); + if (returnNow) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.IResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.IResourceInternal)this).Type, global::System.Convert.ToString); + return result; } - AfterDeserializePSObject(content); + return ToJsonString(); } } - /// The resource model definition for an Azure Resource Manager tracked top level resource which has 'tags' and a 'location' - [System.ComponentModel.TypeConverter(typeof(TrackedResourceTypeConverter))] - public partial interface ITrackedResource + /// The properties of Azure Storage SMB file share endpoint to update. + [System.ComponentModel.TypeConverter(typeof(AzureStorageSmbFileShareEndpointUpdatePropertiesTypeConverter))] + public partial interface IAzureStorageSmbFileShareEndpointUpdateProperties { diff --git a/src/StorageMover/generated/api/Models/Api20231001/AzureStorageSmbFileShareEndpointUpdateProperties.TypeConverter.cs b/src/StorageMover/generated/api/Models/Api20231001/AzureStorageSmbFileShareEndpointUpdateProperties.TypeConverter.cs new file mode 100644 index 000000000000..8f9d61674ec6 --- /dev/null +++ b/src/StorageMover/generated/api/Models/Api20231001/AzureStorageSmbFileShareEndpointUpdateProperties.TypeConverter.cs @@ -0,0 +1,153 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001 +{ + using Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.PowerShell; + + /// + /// A PowerShell PSTypeConverter to support converting to an instance of + /// + public partial class AzureStorageSmbFileShareEndpointUpdatePropertiesTypeConverter : global::System.Management.Automation.PSTypeConverter + { + + /// + /// Determines if the converter can convert the parameter to the parameter. + /// + /// the to convert from + /// the to convert to + /// + /// true if the converter can convert the parameter to the parameter, otherwise false. + /// + public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); + + /// + /// Determines if the converter can convert the parameter to the + /// type. + /// + /// the instance to check if it can be converted to the type. + /// + /// true if the instance could be converted to a type, + /// otherwise false + /// + public static bool CanConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return true; + } + global::System.Type type = sourceValue.GetType(); + if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + // we say yest to PSObjects + return true; + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + // we say yest to Hashtables/dictionaries + return true; + } + try + { + if (null != sourceValue.ToJsonString()) + { + return true; + } + } + catch + { + // Not one of our objects + } + try + { + string text = sourceValue.ToString()?.Trim(); + return true == text?.StartsWith("{") && true == text?.EndsWith("}") && Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonNode.Parse(text).Type == Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonType.Object; + } + catch + { + // Doesn't look like it can be treated as JSON + } + return false; + } + + /// + /// Determines if the parameter can be converted to the + /// parameter + /// + /// the to convert from + /// the to convert to + /// + /// true if the converter can convert the parameter to the parameter, otherwise false + /// + public override bool CanConvertTo(object sourceValue, global::System.Type destinationType) => false; + + /// + /// Converts the parameter to the parameter using and + /// + /// the to convert from + /// the to convert to + /// not used by this TypeConverter. + /// when set to true, will ignore the case when converting. + /// + /// an instance of , or null if there is no suitable + /// conversion. + /// + public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue); + + /// + /// Converts the parameter into an instance of + /// + /// the value to convert into an instance of . + /// + /// an instance of , or null if there is no suitable + /// conversion. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IAzureStorageSmbFileShareEndpointUpdateProperties ConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return null; + } + global::System.Type type = sourceValue.GetType(); + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IAzureStorageSmbFileShareEndpointUpdateProperties).IsAssignableFrom(type)) + { + return sourceValue; + } + try + { + return AzureStorageSmbFileShareEndpointUpdateProperties.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());; + } + catch + { + // Unable to use JSON pattern + } + if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + return AzureStorageSmbFileShareEndpointUpdateProperties.DeserializeFromPSObject(sourceValue); + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + return AzureStorageSmbFileShareEndpointUpdateProperties.DeserializeFromDictionary(sourceValue); + } + return null; + } + + /// NotImplemented -- this will return null + /// the to convert from + /// the to convert to + /// not used by this TypeConverter. + /// when set to true, will ignore the case when converting. + /// will always return null. + public override object ConvertTo(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => null; + } +} \ No newline at end of file diff --git a/src/StorageMover/generated/api/Models/Api20231001/AzureStorageSmbFileShareEndpointUpdateProperties.cs b/src/StorageMover/generated/api/Models/Api20231001/AzureStorageSmbFileShareEndpointUpdateProperties.cs new file mode 100644 index 000000000000..59ae768322b6 --- /dev/null +++ b/src/StorageMover/generated/api/Models/Api20231001/AzureStorageSmbFileShareEndpointUpdateProperties.cs @@ -0,0 +1,64 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001 +{ + using static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Extensions; + + /// The properties of Azure Storage SMB file share endpoint to update. + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.DoNotFormat] + public partial class AzureStorageSmbFileShareEndpointUpdateProperties : + Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IAzureStorageSmbFileShareEndpointUpdateProperties, + Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IAzureStorageSmbFileShareEndpointUpdatePropertiesInternal, + Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.IValidates + { + /// + /// Backing field for Inherited model + /// + private Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IEndpointBaseUpdateProperties __endpointBaseUpdateProperties = new Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.EndpointBaseUpdateProperties(); + + /// A description for the Endpoint. + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Origin(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.PropertyOrigin.Inherited)] + public string Description { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IEndpointBaseUpdatePropertiesInternal)__endpointBaseUpdateProperties).Description; set => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IEndpointBaseUpdatePropertiesInternal)__endpointBaseUpdateProperties).Description = value ?? null; } + + /// The Endpoint resource type. + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Origin(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.PropertyOrigin.Inherited)] + public Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.EndpointType EndpointType { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IEndpointBaseUpdatePropertiesInternal)__endpointBaseUpdateProperties).EndpointType; set => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IEndpointBaseUpdatePropertiesInternal)__endpointBaseUpdateProperties).EndpointType = value ; } + + /// + /// Creates an new instance. + /// + public AzureStorageSmbFileShareEndpointUpdateProperties() + { + + } + + /// Validates that this object meets the validation criteria. + /// an instance that will receive validation + /// events. + /// + /// A that will be complete when validation is completed. + /// + public async global::System.Threading.Tasks.Task Validate(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.IEventListener eventListener) + { + await eventListener.AssertNotNull(nameof(__endpointBaseUpdateProperties), __endpointBaseUpdateProperties); + await eventListener.AssertObjectIsValid(nameof(__endpointBaseUpdateProperties), __endpointBaseUpdateProperties); + } + } + /// The properties of Azure Storage SMB file share endpoint to update. + public partial interface IAzureStorageSmbFileShareEndpointUpdateProperties : + Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.IJsonSerializable, + Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IEndpointBaseUpdateProperties + { + + } + /// The properties of Azure Storage SMB file share endpoint to update. + internal partial interface IAzureStorageSmbFileShareEndpointUpdatePropertiesInternal : + Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IEndpointBaseUpdatePropertiesInternal + { + + } +} \ No newline at end of file diff --git a/src/StorageMover/generated/api/Models/Api20231001/AzureStorageSmbFileShareEndpointUpdateProperties.json.cs b/src/StorageMover/generated/api/Models/Api20231001/AzureStorageSmbFileShareEndpointUpdateProperties.json.cs new file mode 100644 index 000000000000..e52047ebc51f --- /dev/null +++ b/src/StorageMover/generated/api/Models/Api20231001/AzureStorageSmbFileShareEndpointUpdateProperties.json.cs @@ -0,0 +1,111 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001 +{ + using static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Extensions; + + /// The properties of Azure Storage SMB file share endpoint to update. + public partial class AzureStorageSmbFileShareEndpointUpdateProperties + { + + /// + /// AfterFromJson will be called after the json deserialization has finished, allowing customization of the object + /// before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The JsonNode that should be deserialized into this object. + + partial void AfterFromJson(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonObject json); + + /// + /// AfterToJson will be called after the json serialization has finished, allowing customization of the before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The JSON container that the serialization result will be placed in. + + partial void AfterToJson(ref Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonObject container); + + /// + /// BeforeFromJson will be called before the json deserialization has commenced, allowing complete customization of + /// the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the + /// output parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The JsonNode that should be deserialized into this object. + /// Determines if the rest of the deserialization should be processed, or if the method should return + /// instantly. + + partial void BeforeFromJson(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonObject json, ref bool returnNow); + + /// + /// BeforeToJson will be called before the json serialization has commenced, allowing complete customization of the + /// object before it is serialized. + /// If you wish to disable the default serialization entirely, return true in the output + /// parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The JSON container that the serialization result will be placed in. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonObject container, ref bool returnNow); + + /// + /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonObject into a new instance of . + /// + /// A Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonObject instance to deserialize from. + internal AzureStorageSmbFileShareEndpointUpdateProperties(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonObject json) + { + bool returnNow = false; + BeforeFromJson(json, ref returnNow); + if (returnNow) + { + return; + } + __endpointBaseUpdateProperties = new Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.EndpointBaseUpdateProperties(json); + AfterFromJson(json); + } + + /// + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IAzureStorageSmbFileShareEndpointUpdateProperties. + /// + /// a to deserialize from. + /// + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IAzureStorageSmbFileShareEndpointUpdateProperties. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IAzureStorageSmbFileShareEndpointUpdateProperties FromJson(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonNode node) + { + return node is Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonObject json ? new AzureStorageSmbFileShareEndpointUpdateProperties(json) : null; + } + + /// + /// Serializes this instance of into a . + /// + /// The container to serialize this object into. If the caller + /// passes in null, a new instance will be created and returned to the caller. + /// Allows the caller to choose the depth of the serialization. See . + /// + /// a serialized instance of as a . + /// + public Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonNode ToJson(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonObject container, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.SerializationMode serializationMode) + { + container = container ?? new Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonObject(); + + bool returnNow = false; + BeforeToJson(ref container, ref returnNow); + if (returnNow) + { + return container; + } + __endpointBaseUpdateProperties?.ToJson(container, serializationMode); + AfterToJson(ref container); + return container; + } + } +} \ No newline at end of file diff --git a/src/StorageMover/generated/api/Models/Api20/Resource.PowerShell.cs b/src/StorageMover/generated/api/Models/Api20231001/Credentials.PowerShell.cs similarity index 67% rename from src/StorageMover/generated/api/Models/Api20/Resource.PowerShell.cs rename to src/StorageMover/generated/api/Models/Api20231001/Credentials.PowerShell.cs index 0d34ee834749..83688c98e2b2 100644 --- a/src/StorageMover/generated/api/Models/Api20/Resource.PowerShell.cs +++ b/src/StorageMover/generated/api/Models/Api20231001/Credentials.PowerShell.cs @@ -3,15 +3,13 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20 +namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001 { using Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.PowerShell; - /// - /// Common fields that are returned in the response for all Azure Resource Manager resources - /// - [System.ComponentModel.TypeConverter(typeof(ResourceTypeConverter))] - public partial class Resource + /// The Credentials. + [System.ComponentModel.TypeConverter(typeof(CredentialsTypeConverter))] + public partial class Credentials { /// @@ -65,44 +63,11 @@ public partial class Resource partial void OverrideToString(ref string stringResult, ref bool returnNow); /// - /// Deserializes a into an instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. - /// - /// an instance of . - /// - public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.IResource DeserializeFromDictionary(global::System.Collections.IDictionary content) - { - return new Resource(content); - } - - /// - /// Deserializes a into an instance of . - /// - /// The global::System.Management.Automation.PSObject content that should be used. - /// - /// an instance of . - /// - public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.IResource DeserializeFromPSObject(global::System.Management.Automation.PSObject content) - { - return new Resource(content); - } - - /// - /// Creates a new instance of , deserializing the content from a json string. - /// - /// a string containing a JSON serialized instance of this model. - /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.IResource FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonNode.Parse(jsonText)); - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - internal Resource(global::System.Collections.IDictionary content) + internal Credentials(global::System.Collections.IDictionary content) { bool returnNow = false; BeforeDeserializeDictionary(content, ref returnNow); @@ -111,27 +76,19 @@ internal Resource(global::System.Collections.IDictionary content) return; } // actually deserialize - if (content.Contains("Id")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.IResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.IResourceInternal)this).Id, global::System.Convert.ToString); - } - if (content.Contains("Name")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.IResourceInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.IResourceInternal)this).Name, global::System.Convert.ToString); - } if (content.Contains("Type")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.IResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.IResourceInternal)this).Type, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.ICredentialsInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.ICredentialsInternal)this).Type, global::System.Convert.ToString); } AfterDeserializeDictionary(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. - internal Resource(global::System.Management.Automation.PSObject content) + internal Credentials(global::System.Management.Automation.PSObject content) { bool returnNow = false; BeforeDeserializePSObject(content, ref returnNow); @@ -140,21 +97,46 @@ internal Resource(global::System.Management.Automation.PSObject content) return; } // actually deserialize - if (content.Contains("Id")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.IResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.IResourceInternal)this).Id, global::System.Convert.ToString); - } - if (content.Contains("Name")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.IResourceInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.IResourceInternal)this).Name, global::System.Convert.ToString); - } if (content.Contains("Type")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.IResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.IResourceInternal)this).Type, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.ICredentialsInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.ICredentialsInternal)this).Type, global::System.Convert.ToString); } AfterDeserializePSObject(content); } + /// + /// Deserializes a into an instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + /// + /// an instance of . + /// + public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.ICredentials DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new Credentials(content); + } + + /// + /// Deserializes a into an instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + /// + /// an instance of . + /// + public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.ICredentials DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new Credentials(content); + } + + /// + /// Creates a new instance of , deserializing the content from a json string. + /// + /// a string containing a JSON serialized instance of this model. + /// an instance of the model class. + public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.ICredentials FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonNode.Parse(jsonText)); + /// Serializes this instance to a json string. /// a containing this model serialized to JSON text. @@ -172,9 +154,9 @@ public override string ToString() return ToJsonString(); } } - /// Common fields that are returned in the response for all Azure Resource Manager resources - [System.ComponentModel.TypeConverter(typeof(ResourceTypeConverter))] - public partial interface IResource + /// The Credentials. + [System.ComponentModel.TypeConverter(typeof(CredentialsTypeConverter))] + public partial interface ICredentials { diff --git a/src/StorageMover/generated/api/Models/Api20231001/Credentials.TypeConverter.cs b/src/StorageMover/generated/api/Models/Api20231001/Credentials.TypeConverter.cs new file mode 100644 index 000000000000..ca9bed2b59dc --- /dev/null +++ b/src/StorageMover/generated/api/Models/Api20231001/Credentials.TypeConverter.cs @@ -0,0 +1,147 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001 +{ + using Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.PowerShell; + + /// + /// A PowerShell PSTypeConverter to support converting to an instance of + /// + public partial class CredentialsTypeConverter : global::System.Management.Automation.PSTypeConverter + { + + /// + /// Determines if the converter can convert the parameter to the parameter. + /// + /// the to convert from + /// the to convert to + /// + /// true if the converter can convert the parameter to the parameter, otherwise false. + /// + public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); + + /// + /// Determines if the converter can convert the parameter to the + /// type. + /// + /// the instance to check if it can be converted to the type. + /// + /// true if the instance could be converted to a type, otherwise false + /// + public static bool CanConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return true; + } + global::System.Type type = sourceValue.GetType(); + if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + // we say yest to PSObjects + return true; + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + // we say yest to Hashtables/dictionaries + return true; + } + try + { + if (null != sourceValue.ToJsonString()) + { + return true; + } + } + catch + { + // Not one of our objects + } + try + { + string text = sourceValue.ToString()?.Trim(); + return true == text?.StartsWith("{") && true == text?.EndsWith("}") && Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonNode.Parse(text).Type == Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonType.Object; + } + catch + { + // Doesn't look like it can be treated as JSON + } + return false; + } + + /// + /// Determines if the parameter can be converted to the + /// parameter + /// + /// the to convert from + /// the to convert to + /// + /// true if the converter can convert the parameter to the parameter, otherwise false + /// + public override bool CanConvertTo(object sourceValue, global::System.Type destinationType) => false; + + /// + /// Converts the parameter to the parameter using and + /// + /// the to convert from + /// the to convert to + /// not used by this TypeConverter. + /// when set to true, will ignore the case when converting. + /// + /// an instance of , or null if there is no suitable conversion. + /// + public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue); + + /// + /// Converts the parameter into an instance of + /// + /// the value to convert into an instance of . + /// + /// an instance of , or null if there is no suitable conversion. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.ICredentials ConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return null; + } + global::System.Type type = sourceValue.GetType(); + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.ICredentials).IsAssignableFrom(type)) + { + return sourceValue; + } + try + { + return Credentials.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());; + } + catch + { + // Unable to use JSON pattern + } + if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + return Credentials.DeserializeFromPSObject(sourceValue); + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + return Credentials.DeserializeFromDictionary(sourceValue); + } + return null; + } + + /// NotImplemented -- this will return null + /// the to convert from + /// the to convert to + /// not used by this TypeConverter. + /// when set to true, will ignore the case when converting. + /// will always return null. + public override object ConvertTo(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => null; + } +} \ No newline at end of file diff --git a/src/StorageMover/generated/api/Models/Api20231001/Credentials.cs b/src/StorageMover/generated/api/Models/Api20231001/Credentials.cs new file mode 100644 index 000000000000..b294e36e7448 --- /dev/null +++ b/src/StorageMover/generated/api/Models/Api20231001/Credentials.cs @@ -0,0 +1,54 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001 +{ + using static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Extensions; + + /// The Credentials. + public partial class Credentials : + Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.ICredentials, + Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.ICredentialsInternal + { + + /// Internal Acessors for Type + string Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.ICredentialsInternal.Type { get => this._type; set { {_type = value;} } } + + /// Backing field for property. + private string _type= @"AzureKeyVaultSmb"; + + /// The Credentials type. + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Origin(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.PropertyOrigin.Owned)] + public string Type { get => this._type; } + + /// Creates an new instance. + public Credentials() + { + + } + } + /// The Credentials. + public partial interface ICredentials : + Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.IJsonSerializable + { + /// The Credentials type. + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Info( + Required = true, + ReadOnly = true, + Description = @"The Credentials type.", + SerializedName = @"type", + PossibleTypes = new [] { typeof(string) })] + string Type { get; } + + } + /// The Credentials. + internal partial interface ICredentialsInternal + + { + /// The Credentials type. + string Type { get; set; } + + } +} \ No newline at end of file diff --git a/src/StorageMover/generated/api/Models/Api20231001/Credentials.json.cs b/src/StorageMover/generated/api/Models/Api20231001/Credentials.json.cs new file mode 100644 index 000000000000..2564d748930e --- /dev/null +++ b/src/StorageMover/generated/api/Models/Api20231001/Credentials.json.cs @@ -0,0 +1,123 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001 +{ + using static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Extensions; + + /// The Credentials. + public partial class Credentials + { + + /// + /// AfterFromJson will be called after the json deserialization has finished, allowing customization of the object + /// before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The JsonNode that should be deserialized into this object. + + partial void AfterFromJson(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonObject json); + + /// + /// AfterToJson will be called after the json serialization has finished, allowing customization of the before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The JSON container that the serialization result will be placed in. + + partial void AfterToJson(ref Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonObject container); + + /// + /// BeforeFromJson will be called before the json deserialization has commenced, allowing complete customization of + /// the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the + /// output parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The JsonNode that should be deserialized into this object. + /// Determines if the rest of the deserialization should be processed, or if the method should return + /// instantly. + + partial void BeforeFromJson(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonObject json, ref bool returnNow); + + /// + /// BeforeToJson will be called before the json serialization has commenced, allowing complete customization of the + /// object before it is serialized. + /// If you wish to disable the default serialization entirely, return true in the output + /// parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The JSON container that the serialization result will be placed in. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonObject container, ref bool returnNow); + + /// + /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonObject into a new instance of . + /// + /// A Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonObject instance to deserialize from. + internal Credentials(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonObject json) + { + bool returnNow = false; + BeforeFromJson(json, ref returnNow); + if (returnNow) + { + return; + } + {_type = If( json?.PropertyT("type"), out var __jsonType) ? (string)__jsonType : (string)Type;} + AfterFromJson(json); + } + + /// + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.ICredentials. + /// Note: the Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.ICredentials interface is polymorphic, and + /// the precise model class that will get deserialized is determined at runtime based on the payload. + /// + /// a to deserialize from. + /// + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.ICredentials. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.ICredentials FromJson(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonNode node) + { + if (!(node is Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonObject json)) + { + return null; + } + // Polymorphic type -- select the appropriate constructor using the discriminator + + switch ( json.StringProperty("type") ) + { + case "AzureKeyVaultSmb": + { + return new AzureKeyVaultSmbCredentials(json); + } + } + return new Credentials(json); + } + + /// + /// Serializes this instance of into a . + /// + /// The container to serialize this object into. If the caller + /// passes in null, a new instance will be created and returned to the caller. + /// Allows the caller to choose the depth of the serialization. See . + /// + /// a serialized instance of as a . + /// + public Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonNode ToJson(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonObject container, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.SerializationMode serializationMode) + { + container = container ?? new Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonObject(); + + bool returnNow = false; + BeforeToJson(ref container, ref returnNow); + if (returnNow) + { + return container; + } + AddIf( null != (((object)this._type)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonString(this._type.ToString()) : null, "type" ,container.Add ); + AfterToJson(ref container); + return container; + } + } +} \ No newline at end of file diff --git a/src/StorageMover/generated/api/Models/Api20230301/Endpoint.PowerShell.cs b/src/StorageMover/generated/api/Models/Api20231001/Endpoint.PowerShell.cs similarity index 62% rename from src/StorageMover/generated/api/Models/Api20230301/Endpoint.PowerShell.cs rename to src/StorageMover/generated/api/Models/Api20231001/Endpoint.PowerShell.cs index 6ff1db7eb91b..7915b986ff04 100644 --- a/src/StorageMover/generated/api/Models/Api20230301/Endpoint.PowerShell.cs +++ b/src/StorageMover/generated/api/Models/Api20231001/Endpoint.PowerShell.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301 +namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001 { using Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.PowerShell; @@ -65,33 +65,33 @@ public partial class Endpoint partial void OverrideToString(ref string stringResult, ref bool returnNow); /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Collections.IDictionary content that should be used. /// - /// an instance of . + /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IEndpoint DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IEndpoint DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new Endpoint(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. /// - /// an instance of . + /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IEndpoint DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IEndpoint DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new Endpoint(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. @@ -104,55 +104,55 @@ internal Endpoint(global::System.Collections.IDictionary content) return; } // actually deserialize - if (content.Contains("SystemData")) + if (content.Contains("Property")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IEndpointInternal)this).SystemData = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.ISystemData) content.GetValueForProperty("SystemData",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IEndpointInternal)this).SystemData, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.SystemDataTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IEndpointInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IEndpointBaseProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IEndpointInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.EndpointBasePropertiesTypeConverter.ConvertFrom); } - if (content.Contains("Property")) + if (content.Contains("SystemDataCreatedBy")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IEndpointInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IEndpointBaseProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IEndpointInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.EndpointBasePropertiesTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IResourceInternal)this).SystemDataCreatedBy = (string) content.GetValueForProperty("SystemDataCreatedBy",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IResourceInternal)this).SystemDataCreatedBy, global::System.Convert.ToString); } - if (content.Contains("Id")) + if (content.Contains("SystemDataCreatedAt")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.IResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.IResourceInternal)this).Id, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IResourceInternal)this).SystemDataCreatedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataCreatedAt",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IResourceInternal)this).SystemDataCreatedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); } - if (content.Contains("Name")) + if (content.Contains("SystemDataCreatedByType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.IResourceInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.IResourceInternal)this).Name, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IResourceInternal)this).SystemDataCreatedByType = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.CreatedByType?) content.GetValueForProperty("SystemDataCreatedByType",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IResourceInternal)this).SystemDataCreatedByType, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.CreatedByType.CreateFrom); } - if (content.Contains("Type")) + if (content.Contains("SystemDataLastModifiedBy")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.IResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.IResourceInternal)this).Type, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IResourceInternal)this).SystemDataLastModifiedBy = (string) content.GetValueForProperty("SystemDataLastModifiedBy",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IResourceInternal)this).SystemDataLastModifiedBy, global::System.Convert.ToString); } - if (content.Contains("SystemDataCreatedBy")) + if (content.Contains("SystemDataLastModifiedByType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IEndpointInternal)this).SystemDataCreatedBy = (string) content.GetValueForProperty("SystemDataCreatedBy",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IEndpointInternal)this).SystemDataCreatedBy, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IResourceInternal)this).SystemDataLastModifiedByType = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.CreatedByType?) content.GetValueForProperty("SystemDataLastModifiedByType",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IResourceInternal)this).SystemDataLastModifiedByType, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.CreatedByType.CreateFrom); } - if (content.Contains("SystemDataCreatedAt")) + if (content.Contains("SystemDataLastModifiedAt")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IEndpointInternal)this).SystemDataCreatedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataCreatedAt",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IEndpointInternal)this).SystemDataCreatedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IResourceInternal)this).SystemDataLastModifiedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataLastModifiedAt",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IResourceInternal)this).SystemDataLastModifiedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); } - if (content.Contains("SystemDataCreatedByType")) + if (content.Contains("SystemData")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IEndpointInternal)this).SystemDataCreatedByType = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.CreatedByType?) content.GetValueForProperty("SystemDataCreatedByType",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IEndpointInternal)this).SystemDataCreatedByType, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.CreatedByType.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IResourceInternal)this).SystemData = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.ISystemData) content.GetValueForProperty("SystemData",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IResourceInternal)this).SystemData, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.SystemDataTypeConverter.ConvertFrom); } - if (content.Contains("SystemDataLastModifiedBy")) + if (content.Contains("Id")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IEndpointInternal)this).SystemDataLastModifiedBy = (string) content.GetValueForProperty("SystemDataLastModifiedBy",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IEndpointInternal)this).SystemDataLastModifiedBy, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IResourceInternal)this).Id, global::System.Convert.ToString); } - if (content.Contains("SystemDataLastModifiedByType")) + if (content.Contains("Name")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IEndpointInternal)this).SystemDataLastModifiedByType = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.CreatedByType?) content.GetValueForProperty("SystemDataLastModifiedByType",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IEndpointInternal)this).SystemDataLastModifiedByType, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.CreatedByType.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IResourceInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IResourceInternal)this).Name, global::System.Convert.ToString); } - if (content.Contains("SystemDataLastModifiedAt")) + if (content.Contains("Type")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IEndpointInternal)this).SystemDataLastModifiedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataLastModifiedAt",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IEndpointInternal)this).SystemDataLastModifiedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IResourceInternal)this).Type, global::System.Convert.ToString); } AfterDeserializeDictionary(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -165,49 +165,49 @@ internal Endpoint(global::System.Management.Automation.PSObject content) return; } // actually deserialize - if (content.Contains("SystemData")) + if (content.Contains("Property")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IEndpointInternal)this).SystemData = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.ISystemData) content.GetValueForProperty("SystemData",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IEndpointInternal)this).SystemData, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.SystemDataTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IEndpointInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IEndpointBaseProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IEndpointInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.EndpointBasePropertiesTypeConverter.ConvertFrom); } - if (content.Contains("Property")) + if (content.Contains("SystemDataCreatedBy")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IEndpointInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IEndpointBaseProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IEndpointInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.EndpointBasePropertiesTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IResourceInternal)this).SystemDataCreatedBy = (string) content.GetValueForProperty("SystemDataCreatedBy",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IResourceInternal)this).SystemDataCreatedBy, global::System.Convert.ToString); } - if (content.Contains("Id")) + if (content.Contains("SystemDataCreatedAt")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.IResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.IResourceInternal)this).Id, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IResourceInternal)this).SystemDataCreatedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataCreatedAt",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IResourceInternal)this).SystemDataCreatedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); } - if (content.Contains("Name")) + if (content.Contains("SystemDataCreatedByType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.IResourceInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.IResourceInternal)this).Name, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IResourceInternal)this).SystemDataCreatedByType = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.CreatedByType?) content.GetValueForProperty("SystemDataCreatedByType",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IResourceInternal)this).SystemDataCreatedByType, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.CreatedByType.CreateFrom); } - if (content.Contains("Type")) + if (content.Contains("SystemDataLastModifiedBy")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.IResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.IResourceInternal)this).Type, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IResourceInternal)this).SystemDataLastModifiedBy = (string) content.GetValueForProperty("SystemDataLastModifiedBy",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IResourceInternal)this).SystemDataLastModifiedBy, global::System.Convert.ToString); } - if (content.Contains("SystemDataCreatedBy")) + if (content.Contains("SystemDataLastModifiedByType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IEndpointInternal)this).SystemDataCreatedBy = (string) content.GetValueForProperty("SystemDataCreatedBy",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IEndpointInternal)this).SystemDataCreatedBy, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IResourceInternal)this).SystemDataLastModifiedByType = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.CreatedByType?) content.GetValueForProperty("SystemDataLastModifiedByType",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IResourceInternal)this).SystemDataLastModifiedByType, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.CreatedByType.CreateFrom); } - if (content.Contains("SystemDataCreatedAt")) + if (content.Contains("SystemDataLastModifiedAt")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IEndpointInternal)this).SystemDataCreatedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataCreatedAt",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IEndpointInternal)this).SystemDataCreatedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IResourceInternal)this).SystemDataLastModifiedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataLastModifiedAt",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IResourceInternal)this).SystemDataLastModifiedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); } - if (content.Contains("SystemDataCreatedByType")) + if (content.Contains("SystemData")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IEndpointInternal)this).SystemDataCreatedByType = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.CreatedByType?) content.GetValueForProperty("SystemDataCreatedByType",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IEndpointInternal)this).SystemDataCreatedByType, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.CreatedByType.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IResourceInternal)this).SystemData = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.ISystemData) content.GetValueForProperty("SystemData",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IResourceInternal)this).SystemData, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.SystemDataTypeConverter.ConvertFrom); } - if (content.Contains("SystemDataLastModifiedBy")) + if (content.Contains("Id")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IEndpointInternal)this).SystemDataLastModifiedBy = (string) content.GetValueForProperty("SystemDataLastModifiedBy",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IEndpointInternal)this).SystemDataLastModifiedBy, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IResourceInternal)this).Id, global::System.Convert.ToString); } - if (content.Contains("SystemDataLastModifiedByType")) + if (content.Contains("Name")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IEndpointInternal)this).SystemDataLastModifiedByType = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.CreatedByType?) content.GetValueForProperty("SystemDataLastModifiedByType",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IEndpointInternal)this).SystemDataLastModifiedByType, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.CreatedByType.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IResourceInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IResourceInternal)this).Name, global::System.Convert.ToString); } - if (content.Contains("SystemDataLastModifiedAt")) + if (content.Contains("Type")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IEndpointInternal)this).SystemDataLastModifiedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataLastModifiedAt",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IEndpointInternal)this).SystemDataLastModifiedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IResourceInternal)this).Type, global::System.Convert.ToString); } AfterDeserializePSObject(content); } @@ -217,7 +217,7 @@ internal Endpoint(global::System.Management.Automation.PSObject content) /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IEndpoint FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IEndpoint FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonNode.Parse(jsonText)); /// Serializes this instance to a json string. diff --git a/src/StorageMover/generated/api/Models/Api20230301/Endpoint.TypeConverter.cs b/src/StorageMover/generated/api/Models/Api20231001/Endpoint.TypeConverter.cs similarity index 98% rename from src/StorageMover/generated/api/Models/Api20230301/Endpoint.TypeConverter.cs rename to src/StorageMover/generated/api/Models/Api20231001/Endpoint.TypeConverter.cs index 0d4db9e0de6b..0fdab9a649e3 100644 --- a/src/StorageMover/generated/api/Models/Api20230301/Endpoint.TypeConverter.cs +++ b/src/StorageMover/generated/api/Models/Api20231001/Endpoint.TypeConverter.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301 +namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001 { using Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.PowerShell; @@ -105,14 +105,14 @@ public static bool CanConvertFrom(dynamic sourceValue) /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IEndpoint ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IEndpoint ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IEndpoint).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IEndpoint).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/StorageMover/generated/api/Models/Api20231001/Endpoint.cs b/src/StorageMover/generated/api/Models/Api20231001/Endpoint.cs new file mode 100644 index 000000000000..1616556440b9 --- /dev/null +++ b/src/StorageMover/generated/api/Models/Api20231001/Endpoint.cs @@ -0,0 +1,131 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001 +{ + using static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Extensions; + + /// + /// The Endpoint resource, which contains information about file sources and targets. + /// + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.DoNotFormat] + public partial class Endpoint : + Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IEndpoint, + Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IEndpointInternal, + Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.IValidates + { + /// + /// Backing field for Inherited model + /// + private Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IResource __resource = new Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.Resource(); + + /// + /// Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} + /// + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Origin(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.PropertyOrigin.Inherited)] + public string Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IResourceInternal)__resource).Id; } + + /// Internal Acessors for Id + string Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IResourceInternal)__resource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IResourceInternal)__resource).Id = value; } + + /// Internal Acessors for Name + string Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IResourceInternal)__resource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IResourceInternal)__resource).Name = value; } + + /// Internal Acessors for SystemData + Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.ISystemData Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IResourceInternal.SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IResourceInternal)__resource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IResourceInternal)__resource).SystemData = value; } + + /// Internal Acessors for Type + string Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IResourceInternal)__resource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IResourceInternal)__resource).Type = value; } + + /// The name of the resource + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Origin(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.PropertyOrigin.Inherited)] + public string Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IResourceInternal)__resource).Name; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IEndpointBaseProperties _property; + + /// The resource specific properties for the Storage Mover resource. + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Origin(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.PropertyOrigin.Owned)] + public Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IEndpointBaseProperties Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.EndpointBaseProperties()); set => this._property = value; } + + /// + /// Azure Resource Manager metadata containing createdBy and modifiedBy information. + /// + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Origin(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.PropertyOrigin.Inherited)] + private Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.ISystemData SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IResourceInternal)__resource).SystemData; } + + /// The timestamp of resource creation (UTC). + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Origin(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.PropertyOrigin.Inherited)] + public global::System.DateTime? SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IResourceInternal)__resource).SystemDataCreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IResourceInternal)__resource).SystemDataCreatedAt = value ?? default(global::System.DateTime); } + + /// The identity that created the resource. + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Origin(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.PropertyOrigin.Inherited)] + public string SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IResourceInternal)__resource).SystemDataCreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IResourceInternal)__resource).SystemDataCreatedBy = value ?? null; } + + /// The type of identity that created the resource. + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Origin(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.PropertyOrigin.Inherited)] + public Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.CreatedByType? SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IResourceInternal)__resource).SystemDataCreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IResourceInternal)__resource).SystemDataCreatedByType = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.CreatedByType)""); } + + /// The timestamp of resource last modification (UTC) + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Origin(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.PropertyOrigin.Inherited)] + public global::System.DateTime? SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IResourceInternal)__resource).SystemDataLastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IResourceInternal)__resource).SystemDataLastModifiedAt = value ?? default(global::System.DateTime); } + + /// The identity that last modified the resource. + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Origin(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.PropertyOrigin.Inherited)] + public string SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IResourceInternal)__resource).SystemDataLastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IResourceInternal)__resource).SystemDataLastModifiedBy = value ?? null; } + + /// The type of identity that last modified the resource. + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Origin(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.PropertyOrigin.Inherited)] + public Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.CreatedByType? SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IResourceInternal)__resource).SystemDataLastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IResourceInternal)__resource).SystemDataLastModifiedByType = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.CreatedByType)""); } + + /// + /// The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" + /// + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Origin(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.PropertyOrigin.Inherited)] + public string Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IResourceInternal)__resource).Type; } + + /// Creates an new instance. + public Endpoint() + { + + } + + /// Validates that this object meets the validation criteria. + /// an instance that will receive validation + /// events. + /// + /// A that will be complete when validation is completed. + /// + public async global::System.Threading.Tasks.Task Validate(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.IEventListener eventListener) + { + await eventListener.AssertNotNull(nameof(__resource), __resource); + await eventListener.AssertObjectIsValid(nameof(__resource), __resource); + } + } + /// The Endpoint resource, which contains information about file sources and targets. + public partial interface IEndpoint : + Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.IJsonSerializable, + Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IResource + { + /// The resource specific properties for the Storage Mover resource. + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The resource specific properties for the Storage Mover resource.", + SerializedName = @"properties", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IEndpointBaseProperties) })] + Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IEndpointBaseProperties Property { get; set; } + + } + /// The Endpoint resource, which contains information about file sources and targets. + internal partial interface IEndpointInternal : + Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IResourceInternal + { + /// The resource specific properties for the Storage Mover resource. + Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IEndpointBaseProperties Property { get; set; } + + } +} \ No newline at end of file diff --git a/src/StorageMover/generated/api/Models/Api20230301/Endpoint.json.cs b/src/StorageMover/generated/api/Models/Api20231001/Endpoint.json.cs similarity index 88% rename from src/StorageMover/generated/api/Models/Api20230301/Endpoint.json.cs rename to src/StorageMover/generated/api/Models/Api20231001/Endpoint.json.cs index c5610d6881a9..98bac01a3518 100644 --- a/src/StorageMover/generated/api/Models/Api20230301/Endpoint.json.cs +++ b/src/StorageMover/generated/api/Models/Api20231001/Endpoint.json.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301 +namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001 { using static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Extensions; @@ -67,20 +67,19 @@ internal Endpoint(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.J { return; } - __resource = new Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.Resource(json); - {_systemData = If( json?.PropertyT("systemData"), out var __jsonSystemData) ? Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.SystemData.FromJson(__jsonSystemData) : SystemData;} - {_property = If( json?.PropertyT("properties"), out var __jsonProperties) ? Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.EndpointBaseProperties.FromJson(__jsonProperties) : Property;} + __resource = new Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.Resource(json); + {_property = If( json?.PropertyT("properties"), out var __jsonProperties) ? Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.EndpointBaseProperties.FromJson(__jsonProperties) : Property;} AfterFromJson(json); } /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IEndpoint. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IEndpoint. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IEndpoint. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IEndpoint. /// - public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IEndpoint FromJson(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IEndpoint FromJson(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonObject json ? new Endpoint(json) : null; } @@ -105,10 +104,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonNode ToJ return container; } __resource?.ToJson(container, serializationMode); - if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.SerializationMode.IncludeReadOnly)) - { - AddIf( null != this._systemData ? (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonNode) this._systemData.ToJson(null,serializationMode) : null, "systemData" ,container.Add ); - } AddIf( null != this._property ? (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonNode) this._property.ToJson(null,serializationMode) : null, "properties" ,container.Add ); AfterToJson(ref container); return container; diff --git a/src/StorageMover/generated/api/Models/Api20230301/EndpointBaseProperties.PowerShell.cs b/src/StorageMover/generated/api/Models/Api20231001/EndpointBaseProperties.PowerShell.cs similarity index 88% rename from src/StorageMover/generated/api/Models/Api20230301/EndpointBaseProperties.PowerShell.cs rename to src/StorageMover/generated/api/Models/Api20231001/EndpointBaseProperties.PowerShell.cs index 0dfb2154513a..77becf41eed9 100644 --- a/src/StorageMover/generated/api/Models/Api20230301/EndpointBaseProperties.PowerShell.cs +++ b/src/StorageMover/generated/api/Models/Api20231001/EndpointBaseProperties.PowerShell.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301 +namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001 { using Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.PowerShell; @@ -63,35 +63,35 @@ public partial class EndpointBaseProperties partial void OverrideToString(ref string stringResult, ref bool returnNow); /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Collections.IDictionary content that should be used. /// - /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IEndpointBaseProperties DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IEndpointBaseProperties DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new EndpointBaseProperties(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. /// - /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IEndpointBaseProperties DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IEndpointBaseProperties DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new EndpointBaseProperties(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. @@ -106,21 +106,21 @@ internal EndpointBaseProperties(global::System.Collections.IDictionary content) // actually deserialize if (content.Contains("EndpointType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IEndpointBasePropertiesInternal)this).EndpointType = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.EndpointType) content.GetValueForProperty("EndpointType",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IEndpointBasePropertiesInternal)this).EndpointType, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.EndpointType.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IEndpointBasePropertiesInternal)this).EndpointType = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.EndpointType) content.GetValueForProperty("EndpointType",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IEndpointBasePropertiesInternal)this).EndpointType, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.EndpointType.CreateFrom); } if (content.Contains("Description")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IEndpointBasePropertiesInternal)this).Description = (string) content.GetValueForProperty("Description",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IEndpointBasePropertiesInternal)this).Description, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IEndpointBasePropertiesInternal)this).Description = (string) content.GetValueForProperty("Description",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IEndpointBasePropertiesInternal)this).Description, global::System.Convert.ToString); } if (content.Contains("ProvisioningState")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IEndpointBasePropertiesInternal)this).ProvisioningState = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.ProvisioningState?) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IEndpointBasePropertiesInternal)this).ProvisioningState, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.ProvisioningState.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IEndpointBasePropertiesInternal)this).ProvisioningState = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.ProvisioningState?) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IEndpointBasePropertiesInternal)this).ProvisioningState, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.ProvisioningState.CreateFrom); } AfterDeserializeDictionary(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -135,15 +135,15 @@ internal EndpointBaseProperties(global::System.Management.Automation.PSObject co // actually deserialize if (content.Contains("EndpointType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IEndpointBasePropertiesInternal)this).EndpointType = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.EndpointType) content.GetValueForProperty("EndpointType",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IEndpointBasePropertiesInternal)this).EndpointType, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.EndpointType.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IEndpointBasePropertiesInternal)this).EndpointType = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.EndpointType) content.GetValueForProperty("EndpointType",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IEndpointBasePropertiesInternal)this).EndpointType, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.EndpointType.CreateFrom); } if (content.Contains("Description")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IEndpointBasePropertiesInternal)this).Description = (string) content.GetValueForProperty("Description",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IEndpointBasePropertiesInternal)this).Description, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IEndpointBasePropertiesInternal)this).Description = (string) content.GetValueForProperty("Description",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IEndpointBasePropertiesInternal)this).Description, global::System.Convert.ToString); } if (content.Contains("ProvisioningState")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IEndpointBasePropertiesInternal)this).ProvisioningState = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.ProvisioningState?) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IEndpointBasePropertiesInternal)this).ProvisioningState, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.ProvisioningState.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IEndpointBasePropertiesInternal)this).ProvisioningState = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.ProvisioningState?) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IEndpointBasePropertiesInternal)this).ProvisioningState, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.ProvisioningState.CreateFrom); } AfterDeserializePSObject(content); } @@ -153,7 +153,7 @@ internal EndpointBaseProperties(global::System.Management.Automation.PSObject co /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IEndpointBaseProperties FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IEndpointBaseProperties FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonNode.Parse(jsonText)); /// Serializes this instance to a json string. diff --git a/src/StorageMover/generated/api/Models/Api20230301/EndpointBaseProperties.TypeConverter.cs b/src/StorageMover/generated/api/Models/Api20231001/EndpointBaseProperties.TypeConverter.cs similarity index 98% rename from src/StorageMover/generated/api/Models/Api20230301/EndpointBaseProperties.TypeConverter.cs rename to src/StorageMover/generated/api/Models/Api20231001/EndpointBaseProperties.TypeConverter.cs index 198e17243b31..743b23c607a9 100644 --- a/src/StorageMover/generated/api/Models/Api20230301/EndpointBaseProperties.TypeConverter.cs +++ b/src/StorageMover/generated/api/Models/Api20231001/EndpointBaseProperties.TypeConverter.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301 +namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001 { using Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.PowerShell; @@ -106,14 +106,14 @@ public static bool CanConvertFrom(dynamic sourceValue) /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IEndpointBaseProperties ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IEndpointBaseProperties ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IEndpointBaseProperties).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IEndpointBaseProperties).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/StorageMover/generated/api/Models/Api20230301/EndpointBaseProperties.cs b/src/StorageMover/generated/api/Models/Api20231001/EndpointBaseProperties.cs similarity index 96% rename from src/StorageMover/generated/api/Models/Api20230301/EndpointBaseProperties.cs rename to src/StorageMover/generated/api/Models/Api20231001/EndpointBaseProperties.cs index 1e94b533e0b4..6fe25d2dcbc2 100644 --- a/src/StorageMover/generated/api/Models/Api20230301/EndpointBaseProperties.cs +++ b/src/StorageMover/generated/api/Models/Api20231001/EndpointBaseProperties.cs @@ -3,15 +3,15 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301 +namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001 { using static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Extensions; /// The resource specific properties for the Storage Mover resource. [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.DoNotFormat] public partial class EndpointBaseProperties : - Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IEndpointBaseProperties, - Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IEndpointBasePropertiesInternal + Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IEndpointBaseProperties, + Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IEndpointBasePropertiesInternal { /// Backing field for property. @@ -29,7 +29,7 @@ public partial class EndpointBaseProperties : public Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.EndpointType EndpointType { get => this._endpointType; set => this._endpointType = value; } /// Internal Acessors for ProvisioningState - Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.ProvisioningState? Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IEndpointBasePropertiesInternal.ProvisioningState { get => this._provisioningState; set { {_provisioningState = value;} } } + Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.ProvisioningState? Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IEndpointBasePropertiesInternal.ProvisioningState { get => this._provisioningState; set { {_provisioningState = value;} } } /// Backing field for property. private Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.ProvisioningState? _provisioningState; diff --git a/src/StorageMover/generated/api/Models/Api20230301/EndpointBaseProperties.json.cs b/src/StorageMover/generated/api/Models/Api20231001/EndpointBaseProperties.json.cs similarity index 94% rename from src/StorageMover/generated/api/Models/Api20230301/EndpointBaseProperties.json.cs rename to src/StorageMover/generated/api/Models/Api20231001/EndpointBaseProperties.json.cs index 1267e15d20cd..925302e14052 100644 --- a/src/StorageMover/generated/api/Models/Api20230301/EndpointBaseProperties.json.cs +++ b/src/StorageMover/generated/api/Models/Api20231001/EndpointBaseProperties.json.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301 +namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001 { using static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Extensions; @@ -72,15 +72,15 @@ internal EndpointBaseProperties(Microsoft.Azure.PowerShell.Cmdlets.StorageMover. } /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IEndpointBaseProperties. - /// Note: the Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IEndpointBaseProperties interface is polymorphic, + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IEndpointBaseProperties. + /// Note: the Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IEndpointBaseProperties interface is polymorphic, /// and the precise model class that will get deserialized is determined at runtime based on the payload. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IEndpointBaseProperties. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IEndpointBaseProperties. /// - public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IEndpointBaseProperties FromJson(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IEndpointBaseProperties FromJson(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonNode node) { if (!(node is Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonObject json)) { @@ -98,6 +98,14 @@ public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301 { return new NfsMountEndpointProperties(json); } + case "AzureStorageSmbFileShare": + { + return new AzureStorageSmbFileShareEndpointProperties(json); + } + case "SmbMount": + { + return new SmbMountEndpointProperties(json); + } } return new EndpointBaseProperties(json); } diff --git a/src/StorageMover/generated/api/Models/Api20230301/EndpointBaseUpdateParameters.PowerShell.cs b/src/StorageMover/generated/api/Models/Api20231001/EndpointBaseUpdateParameters.PowerShell.cs similarity index 88% rename from src/StorageMover/generated/api/Models/Api20230301/EndpointBaseUpdateParameters.PowerShell.cs rename to src/StorageMover/generated/api/Models/Api20231001/EndpointBaseUpdateParameters.PowerShell.cs index c19e90acc65b..bb11db7552e8 100644 --- a/src/StorageMover/generated/api/Models/Api20230301/EndpointBaseUpdateParameters.PowerShell.cs +++ b/src/StorageMover/generated/api/Models/Api20231001/EndpointBaseUpdateParameters.PowerShell.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301 +namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001 { using Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.PowerShell; @@ -63,35 +63,35 @@ public partial class EndpointBaseUpdateParameters partial void OverrideToString(ref string stringResult, ref bool returnNow); /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Collections.IDictionary content that should be used. /// - /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IEndpointBaseUpdateParameters DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IEndpointBaseUpdateParameters DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new EndpointBaseUpdateParameters(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. /// - /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IEndpointBaseUpdateParameters DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IEndpointBaseUpdateParameters DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new EndpointBaseUpdateParameters(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. @@ -106,13 +106,13 @@ internal EndpointBaseUpdateParameters(global::System.Collections.IDictionary con // actually deserialize if (content.Contains("Property")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IEndpointBaseUpdateParametersInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IEndpointBaseUpdateProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IEndpointBaseUpdateParametersInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.EndpointBaseUpdatePropertiesTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IEndpointBaseUpdateParametersInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IEndpointBaseUpdateProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IEndpointBaseUpdateParametersInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.EndpointBaseUpdatePropertiesTypeConverter.ConvertFrom); } AfterDeserializeDictionary(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -127,7 +127,7 @@ internal EndpointBaseUpdateParameters(global::System.Management.Automation.PSObj // actually deserialize if (content.Contains("Property")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IEndpointBaseUpdateParametersInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IEndpointBaseUpdateProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IEndpointBaseUpdateParametersInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.EndpointBaseUpdatePropertiesTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IEndpointBaseUpdateParametersInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IEndpointBaseUpdateProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IEndpointBaseUpdateParametersInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.EndpointBaseUpdatePropertiesTypeConverter.ConvertFrom); } AfterDeserializePSObject(content); } @@ -137,7 +137,7 @@ internal EndpointBaseUpdateParameters(global::System.Management.Automation.PSObj /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IEndpointBaseUpdateParameters FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IEndpointBaseUpdateParameters FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonNode.Parse(jsonText)); /// Serializes this instance to a json string. diff --git a/src/StorageMover/generated/api/Models/Api20230301/EndpointBaseUpdateParameters.TypeConverter.cs b/src/StorageMover/generated/api/Models/Api20231001/EndpointBaseUpdateParameters.TypeConverter.cs similarity index 98% rename from src/StorageMover/generated/api/Models/Api20230301/EndpointBaseUpdateParameters.TypeConverter.cs rename to src/StorageMover/generated/api/Models/Api20231001/EndpointBaseUpdateParameters.TypeConverter.cs index 7a22b29582ef..c0634de88837 100644 --- a/src/StorageMover/generated/api/Models/Api20230301/EndpointBaseUpdateParameters.TypeConverter.cs +++ b/src/StorageMover/generated/api/Models/Api20231001/EndpointBaseUpdateParameters.TypeConverter.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301 +namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001 { using Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.PowerShell; @@ -106,14 +106,14 @@ public static bool CanConvertFrom(dynamic sourceValue) /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IEndpointBaseUpdateParameters ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IEndpointBaseUpdateParameters ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IEndpointBaseUpdateParameters).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IEndpointBaseUpdateParameters).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/StorageMover/generated/api/Models/Api20230301/EndpointBaseUpdateParameters.cs b/src/StorageMover/generated/api/Models/Api20231001/EndpointBaseUpdateParameters.cs similarity index 84% rename from src/StorageMover/generated/api/Models/Api20230301/EndpointBaseUpdateParameters.cs rename to src/StorageMover/generated/api/Models/Api20231001/EndpointBaseUpdateParameters.cs index 4382299359d0..a262453e68ec 100644 --- a/src/StorageMover/generated/api/Models/Api20230301/EndpointBaseUpdateParameters.cs +++ b/src/StorageMover/generated/api/Models/Api20231001/EndpointBaseUpdateParameters.cs @@ -3,25 +3,25 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301 +namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001 { using static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Extensions; /// The Endpoint resource. [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.DoNotFormat] public partial class EndpointBaseUpdateParameters : - Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IEndpointBaseUpdateParameters, - Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IEndpointBaseUpdateParametersInternal + Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IEndpointBaseUpdateParameters, + Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IEndpointBaseUpdateParametersInternal { /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IEndpointBaseUpdateProperties _property; + private Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IEndpointBaseUpdateProperties _property; /// /// The Endpoint resource, which contains information about file sources and targets. /// [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Origin(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.PropertyOrigin.Owned)] - public Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IEndpointBaseUpdateProperties Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.EndpointBaseUpdateProperties()); set => this._property = value; } + public Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IEndpointBaseUpdateProperties Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.EndpointBaseUpdateProperties()); set => this._property = value; } /// Creates an new instance. public EndpointBaseUpdateParameters() @@ -41,8 +41,8 @@ public partial interface IEndpointBaseUpdateParameters : ReadOnly = false, Description = @"The Endpoint resource, which contains information about file sources and targets.", SerializedName = @"properties", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IEndpointBaseUpdateProperties) })] - Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IEndpointBaseUpdateProperties Property { get; set; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IEndpointBaseUpdateProperties) })] + Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IEndpointBaseUpdateProperties Property { get; set; } } /// The Endpoint resource. @@ -52,7 +52,7 @@ internal partial interface IEndpointBaseUpdateParametersInternal /// /// The Endpoint resource, which contains information about file sources and targets. /// - Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IEndpointBaseUpdateProperties Property { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IEndpointBaseUpdateProperties Property { get; set; } } } \ No newline at end of file diff --git a/src/StorageMover/generated/api/Models/Api20230301/EndpointBaseUpdateParameters.json.cs b/src/StorageMover/generated/api/Models/Api20231001/EndpointBaseUpdateParameters.json.cs similarity index 96% rename from src/StorageMover/generated/api/Models/Api20230301/EndpointBaseUpdateParameters.json.cs rename to src/StorageMover/generated/api/Models/Api20231001/EndpointBaseUpdateParameters.json.cs index f63bd668b9c2..4ea9999b0d68 100644 --- a/src/StorageMover/generated/api/Models/Api20230301/EndpointBaseUpdateParameters.json.cs +++ b/src/StorageMover/generated/api/Models/Api20231001/EndpointBaseUpdateParameters.json.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301 +namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001 { using static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Extensions; @@ -65,18 +65,18 @@ internal EndpointBaseUpdateParameters(Microsoft.Azure.PowerShell.Cmdlets.Storage { return; } - {_property = If( json?.PropertyT("properties"), out var __jsonProperties) ? Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.EndpointBaseUpdateProperties.FromJson(__jsonProperties) : Property;} + {_property = If( json?.PropertyT("properties"), out var __jsonProperties) ? Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.EndpointBaseUpdateProperties.FromJson(__jsonProperties) : Property;} AfterFromJson(json); } /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IEndpointBaseUpdateParameters. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IEndpointBaseUpdateParameters. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IEndpointBaseUpdateParameters. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IEndpointBaseUpdateParameters. /// - public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IEndpointBaseUpdateParameters FromJson(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IEndpointBaseUpdateParameters FromJson(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonObject json ? new EndpointBaseUpdateParameters(json) : null; } diff --git a/src/StorageMover/generated/api/Models/Api20230301/EndpointBaseUpdateProperties.PowerShell.cs b/src/StorageMover/generated/api/Models/Api20231001/EndpointBaseUpdateProperties.PowerShell.cs similarity index 82% rename from src/StorageMover/generated/api/Models/Api20230301/EndpointBaseUpdateProperties.PowerShell.cs rename to src/StorageMover/generated/api/Models/Api20231001/EndpointBaseUpdateProperties.PowerShell.cs index 434bbffc5734..7851175ba363 100644 --- a/src/StorageMover/generated/api/Models/Api20230301/EndpointBaseUpdateProperties.PowerShell.cs +++ b/src/StorageMover/generated/api/Models/Api20231001/EndpointBaseUpdateProperties.PowerShell.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301 +namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001 { using Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.PowerShell; @@ -65,35 +65,35 @@ public partial class EndpointBaseUpdateProperties partial void OverrideToString(ref string stringResult, ref bool returnNow); /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Collections.IDictionary content that should be used. /// - /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IEndpointBaseUpdateProperties DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IEndpointBaseUpdateProperties DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new EndpointBaseUpdateProperties(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. /// - /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IEndpointBaseUpdateProperties DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IEndpointBaseUpdateProperties DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new EndpointBaseUpdateProperties(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. @@ -106,15 +106,19 @@ internal EndpointBaseUpdateProperties(global::System.Collections.IDictionary con return; } // actually deserialize + if (content.Contains("EndpointType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IEndpointBaseUpdatePropertiesInternal)this).EndpointType = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.EndpointType) content.GetValueForProperty("EndpointType",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IEndpointBaseUpdatePropertiesInternal)this).EndpointType, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.EndpointType.CreateFrom); + } if (content.Contains("Description")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IEndpointBaseUpdatePropertiesInternal)this).Description = (string) content.GetValueForProperty("Description",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IEndpointBaseUpdatePropertiesInternal)this).Description, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IEndpointBaseUpdatePropertiesInternal)this).Description = (string) content.GetValueForProperty("Description",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IEndpointBaseUpdatePropertiesInternal)this).Description, global::System.Convert.ToString); } AfterDeserializeDictionary(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -127,9 +131,13 @@ internal EndpointBaseUpdateProperties(global::System.Management.Automation.PSObj return; } // actually deserialize + if (content.Contains("EndpointType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IEndpointBaseUpdatePropertiesInternal)this).EndpointType = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.EndpointType) content.GetValueForProperty("EndpointType",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IEndpointBaseUpdatePropertiesInternal)this).EndpointType, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.EndpointType.CreateFrom); + } if (content.Contains("Description")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IEndpointBaseUpdatePropertiesInternal)this).Description = (string) content.GetValueForProperty("Description",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IEndpointBaseUpdatePropertiesInternal)this).Description, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IEndpointBaseUpdatePropertiesInternal)this).Description = (string) content.GetValueForProperty("Description",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IEndpointBaseUpdatePropertiesInternal)this).Description, global::System.Convert.ToString); } AfterDeserializePSObject(content); } @@ -139,7 +147,7 @@ internal EndpointBaseUpdateProperties(global::System.Management.Automation.PSObj /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IEndpointBaseUpdateProperties FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IEndpointBaseUpdateProperties FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonNode.Parse(jsonText)); /// Serializes this instance to a json string. diff --git a/src/StorageMover/generated/api/Models/Api20230301/EndpointBaseUpdateProperties.TypeConverter.cs b/src/StorageMover/generated/api/Models/Api20231001/EndpointBaseUpdateProperties.TypeConverter.cs similarity index 98% rename from src/StorageMover/generated/api/Models/Api20230301/EndpointBaseUpdateProperties.TypeConverter.cs rename to src/StorageMover/generated/api/Models/Api20231001/EndpointBaseUpdateProperties.TypeConverter.cs index 611a5c746a22..c4766462495b 100644 --- a/src/StorageMover/generated/api/Models/Api20230301/EndpointBaseUpdateProperties.TypeConverter.cs +++ b/src/StorageMover/generated/api/Models/Api20231001/EndpointBaseUpdateProperties.TypeConverter.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301 +namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001 { using Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.PowerShell; @@ -106,14 +106,14 @@ public static bool CanConvertFrom(dynamic sourceValue) /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IEndpointBaseUpdateProperties ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IEndpointBaseUpdateProperties ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IEndpointBaseUpdateProperties).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IEndpointBaseUpdateProperties).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/StorageMover/generated/api/Models/Api20230301/EndpointBaseUpdateProperties.cs b/src/StorageMover/generated/api/Models/Api20231001/EndpointBaseUpdateProperties.cs similarity index 64% rename from src/StorageMover/generated/api/Models/Api20230301/EndpointBaseUpdateProperties.cs rename to src/StorageMover/generated/api/Models/Api20231001/EndpointBaseUpdateProperties.cs index 25bfa96f0c14..9794dd28e27b 100644 --- a/src/StorageMover/generated/api/Models/Api20230301/EndpointBaseUpdateProperties.cs +++ b/src/StorageMover/generated/api/Models/Api20231001/EndpointBaseUpdateProperties.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301 +namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001 { using static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Extensions; @@ -12,8 +12,8 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301 /// [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.DoNotFormat] public partial class EndpointBaseUpdateProperties : - Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IEndpointBaseUpdateProperties, - Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IEndpointBaseUpdatePropertiesInternal + Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IEndpointBaseUpdateProperties, + Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IEndpointBaseUpdatePropertiesInternal { /// Backing field for property. @@ -23,6 +23,13 @@ public partial class EndpointBaseUpdateProperties : [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Origin(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.PropertyOrigin.Owned)] public string Description { get => this._description; set => this._description = value; } + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.EndpointType _endpointType; + + /// The Endpoint resource type. + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Origin(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.PropertyOrigin.Owned)] + public Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.EndpointType EndpointType { get => this._endpointType; set => this._endpointType = value; } + /// Creates an new instance. public EndpointBaseUpdateProperties() { @@ -41,6 +48,14 @@ public partial interface IEndpointBaseUpdateProperties : SerializedName = @"description", PossibleTypes = new [] { typeof(string) })] string Description { get; set; } + /// The Endpoint resource type. + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The Endpoint resource type.", + SerializedName = @"endpointType", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.EndpointType) })] + Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.EndpointType EndpointType { get; set; } } /// The Endpoint resource, which contains information about file sources and targets. @@ -49,6 +64,8 @@ internal partial interface IEndpointBaseUpdatePropertiesInternal { /// A description for the Endpoint. string Description { get; set; } + /// The Endpoint resource type. + Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.EndpointType EndpointType { get; set; } } } \ No newline at end of file diff --git a/src/StorageMover/generated/api/Models/Api20230301/EndpointBaseUpdateProperties.json.cs b/src/StorageMover/generated/api/Models/Api20231001/EndpointBaseUpdateProperties.json.cs similarity index 77% rename from src/StorageMover/generated/api/Models/Api20230301/EndpointBaseUpdateProperties.json.cs rename to src/StorageMover/generated/api/Models/Api20231001/EndpointBaseUpdateProperties.json.cs index 9d7e957c0e9c..30a3c876d5dd 100644 --- a/src/StorageMover/generated/api/Models/Api20230301/EndpointBaseUpdateProperties.json.cs +++ b/src/StorageMover/generated/api/Models/Api20231001/EndpointBaseUpdateProperties.json.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301 +namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001 { using static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Extensions; @@ -67,20 +67,48 @@ internal EndpointBaseUpdateProperties(Microsoft.Azure.PowerShell.Cmdlets.Storage { return; } + {_endpointType = If( json?.PropertyT("endpointType"), out var __jsonEndpointType) ? (string)__jsonEndpointType : (string)EndpointType;} {_description = If( json?.PropertyT("description"), out var __jsonDescription) ? (string)__jsonDescription : (string)Description;} AfterFromJson(json); } /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IEndpointBaseUpdateProperties. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IEndpointBaseUpdateProperties. + /// Note: the Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IEndpointBaseUpdateProperties interface is + /// polymorphic, and the precise model class that will get deserialized is determined at runtime based on the payload. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IEndpointBaseUpdateProperties. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IEndpointBaseUpdateProperties. /// - public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IEndpointBaseUpdateProperties FromJson(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IEndpointBaseUpdateProperties FromJson(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonNode node) { - return node is Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonObject json ? new EndpointBaseUpdateProperties(json) : null; + if (!(node is Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonObject json)) + { + return null; + } + // Polymorphic type -- select the appropriate constructor using the discriminator + + switch ( json.StringProperty("endpointType") ) + { + case "AzureStorageBlobContainer": + { + return new AzureStorageBlobContainerEndpointUpdateProperties(json); + } + case "NfsMount": + { + return new NfsMountEndpointUpdateProperties(json); + } + case "AzureStorageSmbFileShare": + { + return new AzureStorageSmbFileShareEndpointUpdateProperties(json); + } + case "SmbMount": + { + return new SmbMountEndpointUpdateProperties(json); + } + } + return new EndpointBaseUpdateProperties(json); } /// @@ -102,6 +130,7 @@ public Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonNode ToJ { return container; } + AddIf( null != (((object)this._endpointType)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonString(this._endpointType.ToString()) : null, "endpointType" ,container.Add ); AddIf( null != (((object)this._description)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonString(this._description.ToString()) : null, "description" ,container.Add ); AfterToJson(ref container); return container; diff --git a/src/StorageMover/generated/api/Models/Api20230301/EndpointList.PowerShell.cs b/src/StorageMover/generated/api/Models/Api20231001/EndpointList.PowerShell.cs similarity index 85% rename from src/StorageMover/generated/api/Models/Api20230301/EndpointList.PowerShell.cs rename to src/StorageMover/generated/api/Models/Api20231001/EndpointList.PowerShell.cs index f22f43f8097f..eca029ca355f 100644 --- a/src/StorageMover/generated/api/Models/Api20230301/EndpointList.PowerShell.cs +++ b/src/StorageMover/generated/api/Models/Api20231001/EndpointList.PowerShell.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301 +namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001 { using Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.PowerShell; @@ -63,33 +63,33 @@ public partial class EndpointList partial void OverrideToString(ref string stringResult, ref bool returnNow); /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Collections.IDictionary content that should be used. /// - /// an instance of . + /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IEndpointList DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IEndpointList DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new EndpointList(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. /// - /// an instance of . + /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IEndpointList DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IEndpointList DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new EndpointList(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. @@ -104,17 +104,17 @@ internal EndpointList(global::System.Collections.IDictionary content) // actually deserialize if (content.Contains("Value")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IEndpointListInternal)this).Value = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IEndpoint[]) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IEndpointListInternal)this).Value, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.EndpointTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IEndpointListInternal)this).Value = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IEndpoint[]) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IEndpointListInternal)this).Value, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.EndpointTypeConverter.ConvertFrom)); } if (content.Contains("NextLink")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IEndpointListInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IEndpointListInternal)this).NextLink, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IEndpointListInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IEndpointListInternal)this).NextLink, global::System.Convert.ToString); } AfterDeserializeDictionary(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -129,11 +129,11 @@ internal EndpointList(global::System.Management.Automation.PSObject content) // actually deserialize if (content.Contains("Value")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IEndpointListInternal)this).Value = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IEndpoint[]) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IEndpointListInternal)this).Value, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.EndpointTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IEndpointListInternal)this).Value = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IEndpoint[]) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IEndpointListInternal)this).Value, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.EndpointTypeConverter.ConvertFrom)); } if (content.Contains("NextLink")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IEndpointListInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IEndpointListInternal)this).NextLink, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IEndpointListInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IEndpointListInternal)this).NextLink, global::System.Convert.ToString); } AfterDeserializePSObject(content); } @@ -143,7 +143,7 @@ internal EndpointList(global::System.Management.Automation.PSObject content) /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IEndpointList FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IEndpointList FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonNode.Parse(jsonText)); /// Serializes this instance to a json string. diff --git a/src/StorageMover/generated/api/Models/Api20230301/EndpointList.TypeConverter.cs b/src/StorageMover/generated/api/Models/Api20231001/EndpointList.TypeConverter.cs similarity index 98% rename from src/StorageMover/generated/api/Models/Api20230301/EndpointList.TypeConverter.cs rename to src/StorageMover/generated/api/Models/Api20231001/EndpointList.TypeConverter.cs index 505f09fb2b53..cab07f73ac20 100644 --- a/src/StorageMover/generated/api/Models/Api20230301/EndpointList.TypeConverter.cs +++ b/src/StorageMover/generated/api/Models/Api20231001/EndpointList.TypeConverter.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301 +namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001 { using Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.PowerShell; @@ -106,14 +106,14 @@ public static bool CanConvertFrom(dynamic sourceValue) /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IEndpointList ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IEndpointList ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IEndpointList).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IEndpointList).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/StorageMover/generated/api/Models/Api20230301/EndpointList.cs b/src/StorageMover/generated/api/Models/Api20231001/EndpointList.cs similarity index 87% rename from src/StorageMover/generated/api/Models/Api20230301/EndpointList.cs rename to src/StorageMover/generated/api/Models/Api20231001/EndpointList.cs index 2d777e69588a..57ad018f361d 100644 --- a/src/StorageMover/generated/api/Models/Api20230301/EndpointList.cs +++ b/src/StorageMover/generated/api/Models/Api20231001/EndpointList.cs @@ -3,22 +3,22 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301 +namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001 { using static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Extensions; /// List of Endpoints. [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.DoNotFormat] public partial class EndpointList : - Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IEndpointList, - Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IEndpointListInternal + Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IEndpointList, + Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IEndpointListInternal { /// Internal Acessors for NextLink - string Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IEndpointListInternal.NextLink { get => this._nextLink; set { {_nextLink = value;} } } + string Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IEndpointListInternal.NextLink { get => this._nextLink; set { {_nextLink = value;} } } /// Internal Acessors for Value - Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IEndpoint[] Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IEndpointListInternal.Value { get => this._value; set { {_value = value;} } } + Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IEndpoint[] Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IEndpointListInternal.Value { get => this._value; set { {_value = value;} } } /// Backing field for property. private string _nextLink; @@ -31,10 +31,10 @@ public partial class EndpointList : public string NextLink { get => this._nextLink; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IEndpoint[] _value; + private Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IEndpoint[] _value; [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Origin(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.PropertyOrigin.Owned)] - public Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IEndpoint[] Value { get => this._value; } + public Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IEndpoint[] Value { get => this._value; } /// Creates an new instance. public EndpointList() @@ -63,8 +63,8 @@ public partial interface IEndpointList : ReadOnly = true, Description = @"", SerializedName = @"value", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IEndpoint) })] - Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IEndpoint[] Value { get; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IEndpoint) })] + Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IEndpoint[] Value { get; } } /// List of Endpoints. @@ -77,7 +77,7 @@ internal partial interface IEndpointListInternal /// string NextLink { get; set; } - Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IEndpoint[] Value { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IEndpoint[] Value { get; set; } } } \ No newline at end of file diff --git a/src/StorageMover/generated/api/Models/Api20230301/EndpointList.json.cs b/src/StorageMover/generated/api/Models/Api20231001/EndpointList.json.cs similarity index 95% rename from src/StorageMover/generated/api/Models/Api20230301/EndpointList.json.cs rename to src/StorageMover/generated/api/Models/Api20231001/EndpointList.json.cs index 55757924661b..e939ca6106a3 100644 --- a/src/StorageMover/generated/api/Models/Api20230301/EndpointList.json.cs +++ b/src/StorageMover/generated/api/Models/Api20231001/EndpointList.json.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301 +namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001 { using static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Extensions; @@ -65,19 +65,19 @@ internal EndpointList(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Js { return; } - {_value = If( json?.PropertyT("value"), out var __jsonValue) ? If( __jsonValue as Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonArray, out var __v) ? new global::System.Func(()=> global::System.Linq.Enumerable.ToArray(global::System.Linq.Enumerable.Select(__v, (__u)=>(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IEndpoint) (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.Endpoint.FromJson(__u) )) ))() : null : Value;} + {_value = If( json?.PropertyT("value"), out var __jsonValue) ? If( __jsonValue as Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonArray, out var __v) ? new global::System.Func(()=> global::System.Linq.Enumerable.ToArray(global::System.Linq.Enumerable.Select(__v, (__u)=>(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IEndpoint) (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.Endpoint.FromJson(__u) )) ))() : null : Value;} {_nextLink = If( json?.PropertyT("nextLink"), out var __jsonNextLink) ? (string)__jsonNextLink : (string)NextLink;} AfterFromJson(json); } /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IEndpointList. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IEndpointList. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IEndpointList. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IEndpointList. /// - public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IEndpointList FromJson(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IEndpointList FromJson(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonObject json ? new EndpointList(json) : null; } diff --git a/src/StorageMover/generated/api/Models/Api20230301/JobDefinition.PowerShell.cs b/src/StorageMover/generated/api/Models/Api20231001/JobDefinition.PowerShell.cs similarity index 65% rename from src/StorageMover/generated/api/Models/Api20230301/JobDefinition.PowerShell.cs rename to src/StorageMover/generated/api/Models/Api20231001/JobDefinition.PowerShell.cs index 4337b78668d0..8462e0d20f43 100644 --- a/src/StorageMover/generated/api/Models/Api20230301/JobDefinition.PowerShell.cs +++ b/src/StorageMover/generated/api/Models/Api20231001/JobDefinition.PowerShell.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301 +namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001 { using Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.PowerShell; @@ -63,27 +63,27 @@ public partial class JobDefinition partial void OverrideToString(ref string stringResult, ref bool returnNow); /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Collections.IDictionary content that should be used. /// - /// an instance of . + /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobDefinition DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobDefinition DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new JobDefinition(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. /// - /// an instance of . + /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobDefinition DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobDefinition DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new JobDefinition(content); } @@ -93,10 +93,10 @@ public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301 /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobDefinition FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobDefinition FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonNode.Parse(jsonText)); /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. @@ -111,109 +111,109 @@ internal JobDefinition(global::System.Collections.IDictionary content) // actually deserialize if (content.Contains("Property")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobDefinitionInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobDefinitionProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobDefinitionInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.JobDefinitionPropertiesTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobDefinitionInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobDefinitionProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobDefinitionInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.JobDefinitionPropertiesTypeConverter.ConvertFrom); + } + if (content.Contains("SystemDataCreatedBy")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IResourceInternal)this).SystemDataCreatedBy = (string) content.GetValueForProperty("SystemDataCreatedBy",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IResourceInternal)this).SystemDataCreatedBy, global::System.Convert.ToString); + } + if (content.Contains("SystemDataCreatedAt")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IResourceInternal)this).SystemDataCreatedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataCreatedAt",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IResourceInternal)this).SystemDataCreatedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + } + if (content.Contains("SystemDataCreatedByType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IResourceInternal)this).SystemDataCreatedByType = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.CreatedByType?) content.GetValueForProperty("SystemDataCreatedByType",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IResourceInternal)this).SystemDataCreatedByType, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.CreatedByType.CreateFrom); + } + if (content.Contains("SystemDataLastModifiedBy")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IResourceInternal)this).SystemDataLastModifiedBy = (string) content.GetValueForProperty("SystemDataLastModifiedBy",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IResourceInternal)this).SystemDataLastModifiedBy, global::System.Convert.ToString); + } + if (content.Contains("SystemDataLastModifiedByType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IResourceInternal)this).SystemDataLastModifiedByType = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.CreatedByType?) content.GetValueForProperty("SystemDataLastModifiedByType",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IResourceInternal)this).SystemDataLastModifiedByType, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.CreatedByType.CreateFrom); + } + if (content.Contains("SystemDataLastModifiedAt")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IResourceInternal)this).SystemDataLastModifiedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataLastModifiedAt",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IResourceInternal)this).SystemDataLastModifiedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); } if (content.Contains("SystemData")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobDefinitionInternal)this).SystemData = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.ISystemData) content.GetValueForProperty("SystemData",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobDefinitionInternal)this).SystemData, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.SystemDataTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IResourceInternal)this).SystemData = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.ISystemData) content.GetValueForProperty("SystemData",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IResourceInternal)this).SystemData, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.SystemDataTypeConverter.ConvertFrom); } if (content.Contains("Id")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.IResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.IResourceInternal)this).Id, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IResourceInternal)this).Id, global::System.Convert.ToString); } if (content.Contains("Name")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.IResourceInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.IResourceInternal)this).Name, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IResourceInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IResourceInternal)this).Name, global::System.Convert.ToString); } if (content.Contains("Type")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.IResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.IResourceInternal)this).Type, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IResourceInternal)this).Type, global::System.Convert.ToString); } if (content.Contains("CopyMode")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobDefinitionInternal)this).CopyMode = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.CopyMode) content.GetValueForProperty("CopyMode",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobDefinitionInternal)this).CopyMode, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.CopyMode.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobDefinitionInternal)this).CopyMode = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.CopyMode) content.GetValueForProperty("CopyMode",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobDefinitionInternal)this).CopyMode, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.CopyMode.CreateFrom); } if (content.Contains("ProvisioningState")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobDefinitionInternal)this).ProvisioningState = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.ProvisioningState?) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobDefinitionInternal)this).ProvisioningState, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.ProvisioningState.CreateFrom); - } - if (content.Contains("SystemDataCreatedBy")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobDefinitionInternal)this).SystemDataCreatedBy = (string) content.GetValueForProperty("SystemDataCreatedBy",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobDefinitionInternal)this).SystemDataCreatedBy, global::System.Convert.ToString); - } - if (content.Contains("SystemDataCreatedAt")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobDefinitionInternal)this).SystemDataCreatedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataCreatedAt",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobDefinitionInternal)this).SystemDataCreatedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobDefinitionInternal)this).ProvisioningState = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.ProvisioningState?) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobDefinitionInternal)this).ProvisioningState, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.ProvisioningState.CreateFrom); } if (content.Contains("Description")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobDefinitionInternal)this).Description = (string) content.GetValueForProperty("Description",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobDefinitionInternal)this).Description, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobDefinitionInternal)this).Description = (string) content.GetValueForProperty("Description",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobDefinitionInternal)this).Description, global::System.Convert.ToString); } if (content.Contains("SourceName")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobDefinitionInternal)this).SourceName = (string) content.GetValueForProperty("SourceName",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobDefinitionInternal)this).SourceName, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobDefinitionInternal)this).SourceName = (string) content.GetValueForProperty("SourceName",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobDefinitionInternal)this).SourceName, global::System.Convert.ToString); } if (content.Contains("SourceResourceId")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobDefinitionInternal)this).SourceResourceId = (string) content.GetValueForProperty("SourceResourceId",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobDefinitionInternal)this).SourceResourceId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobDefinitionInternal)this).SourceResourceId = (string) content.GetValueForProperty("SourceResourceId",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobDefinitionInternal)this).SourceResourceId, global::System.Convert.ToString); } if (content.Contains("SourceSubpath")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobDefinitionInternal)this).SourceSubpath = (string) content.GetValueForProperty("SourceSubpath",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobDefinitionInternal)this).SourceSubpath, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobDefinitionInternal)this).SourceSubpath = (string) content.GetValueForProperty("SourceSubpath",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobDefinitionInternal)this).SourceSubpath, global::System.Convert.ToString); } if (content.Contains("TargetName")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobDefinitionInternal)this).TargetName = (string) content.GetValueForProperty("TargetName",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobDefinitionInternal)this).TargetName, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobDefinitionInternal)this).TargetName = (string) content.GetValueForProperty("TargetName",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobDefinitionInternal)this).TargetName, global::System.Convert.ToString); } if (content.Contains("TargetResourceId")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobDefinitionInternal)this).TargetResourceId = (string) content.GetValueForProperty("TargetResourceId",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobDefinitionInternal)this).TargetResourceId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobDefinitionInternal)this).TargetResourceId = (string) content.GetValueForProperty("TargetResourceId",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobDefinitionInternal)this).TargetResourceId, global::System.Convert.ToString); } if (content.Contains("TargetSubpath")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobDefinitionInternal)this).TargetSubpath = (string) content.GetValueForProperty("TargetSubpath",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobDefinitionInternal)this).TargetSubpath, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobDefinitionInternal)this).TargetSubpath = (string) content.GetValueForProperty("TargetSubpath",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobDefinitionInternal)this).TargetSubpath, global::System.Convert.ToString); } if (content.Contains("LatestJobRunName")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobDefinitionInternal)this).LatestJobRunName = (string) content.GetValueForProperty("LatestJobRunName",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobDefinitionInternal)this).LatestJobRunName, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobDefinitionInternal)this).LatestJobRunName = (string) content.GetValueForProperty("LatestJobRunName",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobDefinitionInternal)this).LatestJobRunName, global::System.Convert.ToString); } if (content.Contains("LatestJobRunResourceId")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobDefinitionInternal)this).LatestJobRunResourceId = (string) content.GetValueForProperty("LatestJobRunResourceId",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobDefinitionInternal)this).LatestJobRunResourceId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobDefinitionInternal)this).LatestJobRunResourceId = (string) content.GetValueForProperty("LatestJobRunResourceId",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobDefinitionInternal)this).LatestJobRunResourceId, global::System.Convert.ToString); } if (content.Contains("LatestJobRunStatus")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobDefinitionInternal)this).LatestJobRunStatus = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.JobRunStatus?) content.GetValueForProperty("LatestJobRunStatus",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobDefinitionInternal)this).LatestJobRunStatus, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.JobRunStatus.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobDefinitionInternal)this).LatestJobRunStatus = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.JobRunStatus?) content.GetValueForProperty("LatestJobRunStatus",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobDefinitionInternal)this).LatestJobRunStatus, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.JobRunStatus.CreateFrom); } if (content.Contains("AgentName")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobDefinitionInternal)this).AgentName = (string) content.GetValueForProperty("AgentName",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobDefinitionInternal)this).AgentName, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobDefinitionInternal)this).AgentName = (string) content.GetValueForProperty("AgentName",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobDefinitionInternal)this).AgentName, global::System.Convert.ToString); } if (content.Contains("AgentResourceId")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobDefinitionInternal)this).AgentResourceId = (string) content.GetValueForProperty("AgentResourceId",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobDefinitionInternal)this).AgentResourceId, global::System.Convert.ToString); - } - if (content.Contains("SystemDataCreatedByType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobDefinitionInternal)this).SystemDataCreatedByType = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.CreatedByType?) content.GetValueForProperty("SystemDataCreatedByType",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobDefinitionInternal)this).SystemDataCreatedByType, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.CreatedByType.CreateFrom); - } - if (content.Contains("SystemDataLastModifiedBy")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobDefinitionInternal)this).SystemDataLastModifiedBy = (string) content.GetValueForProperty("SystemDataLastModifiedBy",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobDefinitionInternal)this).SystemDataLastModifiedBy, global::System.Convert.ToString); - } - if (content.Contains("SystemDataLastModifiedByType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobDefinitionInternal)this).SystemDataLastModifiedByType = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.CreatedByType?) content.GetValueForProperty("SystemDataLastModifiedByType",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobDefinitionInternal)this).SystemDataLastModifiedByType, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.CreatedByType.CreateFrom); - } - if (content.Contains("SystemDataLastModifiedAt")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobDefinitionInternal)this).SystemDataLastModifiedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataLastModifiedAt",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobDefinitionInternal)this).SystemDataLastModifiedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobDefinitionInternal)this).AgentResourceId = (string) content.GetValueForProperty("AgentResourceId",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobDefinitionInternal)this).AgentResourceId, global::System.Convert.ToString); } AfterDeserializeDictionary(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -228,103 +228,103 @@ internal JobDefinition(global::System.Management.Automation.PSObject content) // actually deserialize if (content.Contains("Property")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobDefinitionInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobDefinitionProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobDefinitionInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.JobDefinitionPropertiesTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobDefinitionInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobDefinitionProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobDefinitionInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.JobDefinitionPropertiesTypeConverter.ConvertFrom); + } + if (content.Contains("SystemDataCreatedBy")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IResourceInternal)this).SystemDataCreatedBy = (string) content.GetValueForProperty("SystemDataCreatedBy",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IResourceInternal)this).SystemDataCreatedBy, global::System.Convert.ToString); + } + if (content.Contains("SystemDataCreatedAt")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IResourceInternal)this).SystemDataCreatedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataCreatedAt",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IResourceInternal)this).SystemDataCreatedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + } + if (content.Contains("SystemDataCreatedByType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IResourceInternal)this).SystemDataCreatedByType = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.CreatedByType?) content.GetValueForProperty("SystemDataCreatedByType",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IResourceInternal)this).SystemDataCreatedByType, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.CreatedByType.CreateFrom); + } + if (content.Contains("SystemDataLastModifiedBy")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IResourceInternal)this).SystemDataLastModifiedBy = (string) content.GetValueForProperty("SystemDataLastModifiedBy",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IResourceInternal)this).SystemDataLastModifiedBy, global::System.Convert.ToString); + } + if (content.Contains("SystemDataLastModifiedByType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IResourceInternal)this).SystemDataLastModifiedByType = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.CreatedByType?) content.GetValueForProperty("SystemDataLastModifiedByType",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IResourceInternal)this).SystemDataLastModifiedByType, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.CreatedByType.CreateFrom); + } + if (content.Contains("SystemDataLastModifiedAt")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IResourceInternal)this).SystemDataLastModifiedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataLastModifiedAt",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IResourceInternal)this).SystemDataLastModifiedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); } if (content.Contains("SystemData")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobDefinitionInternal)this).SystemData = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.ISystemData) content.GetValueForProperty("SystemData",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobDefinitionInternal)this).SystemData, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.SystemDataTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IResourceInternal)this).SystemData = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.ISystemData) content.GetValueForProperty("SystemData",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IResourceInternal)this).SystemData, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.SystemDataTypeConverter.ConvertFrom); } if (content.Contains("Id")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.IResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.IResourceInternal)this).Id, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IResourceInternal)this).Id, global::System.Convert.ToString); } if (content.Contains("Name")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.IResourceInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.IResourceInternal)this).Name, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IResourceInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IResourceInternal)this).Name, global::System.Convert.ToString); } if (content.Contains("Type")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.IResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.IResourceInternal)this).Type, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IResourceInternal)this).Type, global::System.Convert.ToString); } if (content.Contains("CopyMode")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobDefinitionInternal)this).CopyMode = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.CopyMode) content.GetValueForProperty("CopyMode",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobDefinitionInternal)this).CopyMode, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.CopyMode.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobDefinitionInternal)this).CopyMode = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.CopyMode) content.GetValueForProperty("CopyMode",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobDefinitionInternal)this).CopyMode, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.CopyMode.CreateFrom); } if (content.Contains("ProvisioningState")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobDefinitionInternal)this).ProvisioningState = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.ProvisioningState?) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobDefinitionInternal)this).ProvisioningState, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.ProvisioningState.CreateFrom); - } - if (content.Contains("SystemDataCreatedBy")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobDefinitionInternal)this).SystemDataCreatedBy = (string) content.GetValueForProperty("SystemDataCreatedBy",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobDefinitionInternal)this).SystemDataCreatedBy, global::System.Convert.ToString); - } - if (content.Contains("SystemDataCreatedAt")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobDefinitionInternal)this).SystemDataCreatedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataCreatedAt",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobDefinitionInternal)this).SystemDataCreatedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobDefinitionInternal)this).ProvisioningState = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.ProvisioningState?) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobDefinitionInternal)this).ProvisioningState, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.ProvisioningState.CreateFrom); } if (content.Contains("Description")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobDefinitionInternal)this).Description = (string) content.GetValueForProperty("Description",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobDefinitionInternal)this).Description, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobDefinitionInternal)this).Description = (string) content.GetValueForProperty("Description",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobDefinitionInternal)this).Description, global::System.Convert.ToString); } if (content.Contains("SourceName")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobDefinitionInternal)this).SourceName = (string) content.GetValueForProperty("SourceName",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobDefinitionInternal)this).SourceName, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobDefinitionInternal)this).SourceName = (string) content.GetValueForProperty("SourceName",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobDefinitionInternal)this).SourceName, global::System.Convert.ToString); } if (content.Contains("SourceResourceId")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobDefinitionInternal)this).SourceResourceId = (string) content.GetValueForProperty("SourceResourceId",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobDefinitionInternal)this).SourceResourceId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobDefinitionInternal)this).SourceResourceId = (string) content.GetValueForProperty("SourceResourceId",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobDefinitionInternal)this).SourceResourceId, global::System.Convert.ToString); } if (content.Contains("SourceSubpath")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobDefinitionInternal)this).SourceSubpath = (string) content.GetValueForProperty("SourceSubpath",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobDefinitionInternal)this).SourceSubpath, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobDefinitionInternal)this).SourceSubpath = (string) content.GetValueForProperty("SourceSubpath",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobDefinitionInternal)this).SourceSubpath, global::System.Convert.ToString); } if (content.Contains("TargetName")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobDefinitionInternal)this).TargetName = (string) content.GetValueForProperty("TargetName",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobDefinitionInternal)this).TargetName, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobDefinitionInternal)this).TargetName = (string) content.GetValueForProperty("TargetName",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobDefinitionInternal)this).TargetName, global::System.Convert.ToString); } if (content.Contains("TargetResourceId")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobDefinitionInternal)this).TargetResourceId = (string) content.GetValueForProperty("TargetResourceId",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobDefinitionInternal)this).TargetResourceId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobDefinitionInternal)this).TargetResourceId = (string) content.GetValueForProperty("TargetResourceId",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobDefinitionInternal)this).TargetResourceId, global::System.Convert.ToString); } if (content.Contains("TargetSubpath")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobDefinitionInternal)this).TargetSubpath = (string) content.GetValueForProperty("TargetSubpath",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobDefinitionInternal)this).TargetSubpath, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobDefinitionInternal)this).TargetSubpath = (string) content.GetValueForProperty("TargetSubpath",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobDefinitionInternal)this).TargetSubpath, global::System.Convert.ToString); } if (content.Contains("LatestJobRunName")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobDefinitionInternal)this).LatestJobRunName = (string) content.GetValueForProperty("LatestJobRunName",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobDefinitionInternal)this).LatestJobRunName, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobDefinitionInternal)this).LatestJobRunName = (string) content.GetValueForProperty("LatestJobRunName",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobDefinitionInternal)this).LatestJobRunName, global::System.Convert.ToString); } if (content.Contains("LatestJobRunResourceId")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobDefinitionInternal)this).LatestJobRunResourceId = (string) content.GetValueForProperty("LatestJobRunResourceId",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobDefinitionInternal)this).LatestJobRunResourceId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobDefinitionInternal)this).LatestJobRunResourceId = (string) content.GetValueForProperty("LatestJobRunResourceId",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobDefinitionInternal)this).LatestJobRunResourceId, global::System.Convert.ToString); } if (content.Contains("LatestJobRunStatus")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobDefinitionInternal)this).LatestJobRunStatus = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.JobRunStatus?) content.GetValueForProperty("LatestJobRunStatus",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobDefinitionInternal)this).LatestJobRunStatus, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.JobRunStatus.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobDefinitionInternal)this).LatestJobRunStatus = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.JobRunStatus?) content.GetValueForProperty("LatestJobRunStatus",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobDefinitionInternal)this).LatestJobRunStatus, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.JobRunStatus.CreateFrom); } if (content.Contains("AgentName")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobDefinitionInternal)this).AgentName = (string) content.GetValueForProperty("AgentName",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobDefinitionInternal)this).AgentName, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobDefinitionInternal)this).AgentName = (string) content.GetValueForProperty("AgentName",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobDefinitionInternal)this).AgentName, global::System.Convert.ToString); } if (content.Contains("AgentResourceId")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobDefinitionInternal)this).AgentResourceId = (string) content.GetValueForProperty("AgentResourceId",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobDefinitionInternal)this).AgentResourceId, global::System.Convert.ToString); - } - if (content.Contains("SystemDataCreatedByType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobDefinitionInternal)this).SystemDataCreatedByType = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.CreatedByType?) content.GetValueForProperty("SystemDataCreatedByType",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobDefinitionInternal)this).SystemDataCreatedByType, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.CreatedByType.CreateFrom); - } - if (content.Contains("SystemDataLastModifiedBy")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobDefinitionInternal)this).SystemDataLastModifiedBy = (string) content.GetValueForProperty("SystemDataLastModifiedBy",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobDefinitionInternal)this).SystemDataLastModifiedBy, global::System.Convert.ToString); - } - if (content.Contains("SystemDataLastModifiedByType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobDefinitionInternal)this).SystemDataLastModifiedByType = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.CreatedByType?) content.GetValueForProperty("SystemDataLastModifiedByType",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobDefinitionInternal)this).SystemDataLastModifiedByType, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.CreatedByType.CreateFrom); - } - if (content.Contains("SystemDataLastModifiedAt")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobDefinitionInternal)this).SystemDataLastModifiedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataLastModifiedAt",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobDefinitionInternal)this).SystemDataLastModifiedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobDefinitionInternal)this).AgentResourceId = (string) content.GetValueForProperty("AgentResourceId",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobDefinitionInternal)this).AgentResourceId, global::System.Convert.ToString); } AfterDeserializePSObject(content); } diff --git a/src/StorageMover/generated/api/Models/Api20230301/JobDefinition.TypeConverter.cs b/src/StorageMover/generated/api/Models/Api20231001/JobDefinition.TypeConverter.cs similarity index 98% rename from src/StorageMover/generated/api/Models/Api20230301/JobDefinition.TypeConverter.cs rename to src/StorageMover/generated/api/Models/Api20231001/JobDefinition.TypeConverter.cs index ba04f8788b3e..47b9ac97735a 100644 --- a/src/StorageMover/generated/api/Models/Api20230301/JobDefinition.TypeConverter.cs +++ b/src/StorageMover/generated/api/Models/Api20231001/JobDefinition.TypeConverter.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301 +namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001 { using Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.PowerShell; @@ -106,14 +106,14 @@ public static bool CanConvertFrom(dynamic sourceValue) /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobDefinition ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobDefinition ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobDefinition).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobDefinition).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/StorageMover/generated/api/Models/Api20230301/JobDefinition.cs b/src/StorageMover/generated/api/Models/Api20231001/JobDefinition.cs similarity index 68% rename from src/StorageMover/generated/api/Models/Api20230301/JobDefinition.cs rename to src/StorageMover/generated/api/Models/Api20231001/JobDefinition.cs index 076062985ea2..29747a78c277 100644 --- a/src/StorageMover/generated/api/Models/Api20230301/JobDefinition.cs +++ b/src/StorageMover/generated/api/Models/Api20231001/JobDefinition.cs @@ -3,172 +3,171 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301 +namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001 { using static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Extensions; /// The Job Definition resource. [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.DoNotFormat] public partial class JobDefinition : - Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobDefinition, - Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobDefinitionInternal, + Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobDefinition, + Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobDefinitionInternal, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.IValidates { /// - /// Backing field for Inherited model /// - private Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.IResource __resource = new Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.Resource(); + private Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IResource __resource = new Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.Resource(); /// Name of the Agent to assign for new Job Runs of this Job Definition. [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Origin(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.PropertyOrigin.Inlined)] - public string AgentName { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobDefinitionPropertiesInternal)Property).AgentName; set => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobDefinitionPropertiesInternal)Property).AgentName = value ?? null; } + public string AgentName { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobDefinitionPropertiesInternal)Property).AgentName; set => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobDefinitionPropertiesInternal)Property).AgentName = value ?? null; } /// /// Fully qualified resource id of the Agent to assign for new Job Runs of this Job Definition. /// [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Origin(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.PropertyOrigin.Inlined)] - public string AgentResourceId { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobDefinitionPropertiesInternal)Property).AgentResourceId; } + public string AgentResourceId { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobDefinitionPropertiesInternal)Property).AgentResourceId; } /// Strategy to use for copy. [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Origin(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.PropertyOrigin.Inlined)] - public Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.CopyMode CopyMode { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobDefinitionPropertiesInternal)Property).CopyMode; set => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobDefinitionPropertiesInternal)Property).CopyMode = value ; } + public Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.CopyMode CopyMode { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobDefinitionPropertiesInternal)Property).CopyMode; set => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobDefinitionPropertiesInternal)Property).CopyMode = value ; } /// A description for the Job Definition. [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Origin(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.PropertyOrigin.Inlined)] - public string Description { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobDefinitionPropertiesInternal)Property).Description; set => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobDefinitionPropertiesInternal)Property).Description = value ?? null; } + public string Description { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobDefinitionPropertiesInternal)Property).Description; set => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobDefinitionPropertiesInternal)Property).Description = value ?? null; } /// /// Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} /// [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Origin(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.PropertyOrigin.Inherited)] - public string Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.IResourceInternal)__resource).Id; } + public string Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IResourceInternal)__resource).Id; } /// The name of the Job Run in a non-terminal state, if exists. [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Origin(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.PropertyOrigin.Inlined)] - public string LatestJobRunName { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobDefinitionPropertiesInternal)Property).LatestJobRunName; } + public string LatestJobRunName { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobDefinitionPropertiesInternal)Property).LatestJobRunName; } /// /// The fully qualified resource ID of the Job Run in a non-terminal state, if exists. /// [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Origin(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.PropertyOrigin.Inlined)] - public string LatestJobRunResourceId { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobDefinitionPropertiesInternal)Property).LatestJobRunResourceId; } + public string LatestJobRunResourceId { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobDefinitionPropertiesInternal)Property).LatestJobRunResourceId; } /// The current status of the Job Run in a non-terminal state, if exists. [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Origin(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.PropertyOrigin.Inlined)] - public Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.JobRunStatus? LatestJobRunStatus { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobDefinitionPropertiesInternal)Property).LatestJobRunStatus; } - - /// Internal Acessors for Id - string Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.IResourceInternal)__resource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.IResourceInternal)__resource).Id = value; } - - /// Internal Acessors for Name - string Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.IResourceInternal)__resource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.IResourceInternal)__resource).Name = value; } - - /// Internal Acessors for Type - string Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.IResourceInternal)__resource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.IResourceInternal)__resource).Type = value; } + public Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.JobRunStatus? LatestJobRunStatus { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobDefinitionPropertiesInternal)Property).LatestJobRunStatus; } /// Internal Acessors for AgentResourceId - string Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobDefinitionInternal.AgentResourceId { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobDefinitionPropertiesInternal)Property).AgentResourceId; set => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobDefinitionPropertiesInternal)Property).AgentResourceId = value; } + string Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobDefinitionInternal.AgentResourceId { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobDefinitionPropertiesInternal)Property).AgentResourceId; set => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobDefinitionPropertiesInternal)Property).AgentResourceId = value; } /// Internal Acessors for LatestJobRunName - string Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobDefinitionInternal.LatestJobRunName { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobDefinitionPropertiesInternal)Property).LatestJobRunName; set => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobDefinitionPropertiesInternal)Property).LatestJobRunName = value; } + string Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobDefinitionInternal.LatestJobRunName { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobDefinitionPropertiesInternal)Property).LatestJobRunName; set => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobDefinitionPropertiesInternal)Property).LatestJobRunName = value; } /// Internal Acessors for LatestJobRunResourceId - string Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobDefinitionInternal.LatestJobRunResourceId { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobDefinitionPropertiesInternal)Property).LatestJobRunResourceId; set => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobDefinitionPropertiesInternal)Property).LatestJobRunResourceId = value; } + string Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobDefinitionInternal.LatestJobRunResourceId { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobDefinitionPropertiesInternal)Property).LatestJobRunResourceId; set => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobDefinitionPropertiesInternal)Property).LatestJobRunResourceId = value; } /// Internal Acessors for LatestJobRunStatus - Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.JobRunStatus? Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobDefinitionInternal.LatestJobRunStatus { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobDefinitionPropertiesInternal)Property).LatestJobRunStatus; set => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobDefinitionPropertiesInternal)Property).LatestJobRunStatus = value; } + Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.JobRunStatus? Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobDefinitionInternal.LatestJobRunStatus { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobDefinitionPropertiesInternal)Property).LatestJobRunStatus; set => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobDefinitionPropertiesInternal)Property).LatestJobRunStatus = value; } /// Internal Acessors for Property - Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobDefinitionProperties Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobDefinitionInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.JobDefinitionProperties()); set { {_property = value;} } } + Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobDefinitionProperties Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobDefinitionInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.JobDefinitionProperties()); set { {_property = value;} } } /// Internal Acessors for ProvisioningState - Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.ProvisioningState? Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobDefinitionInternal.ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobDefinitionPropertiesInternal)Property).ProvisioningState; set => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobDefinitionPropertiesInternal)Property).ProvisioningState = value; } + Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.ProvisioningState? Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobDefinitionInternal.ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobDefinitionPropertiesInternal)Property).ProvisioningState; set => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobDefinitionPropertiesInternal)Property).ProvisioningState = value; } /// Internal Acessors for SourceResourceId - string Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobDefinitionInternal.SourceResourceId { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobDefinitionPropertiesInternal)Property).SourceResourceId; set => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobDefinitionPropertiesInternal)Property).SourceResourceId = value; } + string Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobDefinitionInternal.SourceResourceId { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobDefinitionPropertiesInternal)Property).SourceResourceId; set => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobDefinitionPropertiesInternal)Property).SourceResourceId = value; } + + /// Internal Acessors for TargetResourceId + string Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobDefinitionInternal.TargetResourceId { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobDefinitionPropertiesInternal)Property).TargetResourceId; set => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobDefinitionPropertiesInternal)Property).TargetResourceId = value; } + + /// Internal Acessors for Id + string Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IResourceInternal)__resource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IResourceInternal)__resource).Id = value; } + + /// Internal Acessors for Name + string Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IResourceInternal)__resource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IResourceInternal)__resource).Name = value; } /// Internal Acessors for SystemData - Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.ISystemData Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobDefinitionInternal.SystemData { get => (this._systemData = this._systemData ?? new Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.SystemData()); set { {_systemData = value;} } } + Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.ISystemData Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IResourceInternal.SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IResourceInternal)__resource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IResourceInternal)__resource).SystemData = value; } - /// Internal Acessors for TargetResourceId - string Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobDefinitionInternal.TargetResourceId { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobDefinitionPropertiesInternal)Property).TargetResourceId; set => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobDefinitionPropertiesInternal)Property).TargetResourceId = value; } + /// Internal Acessors for Type + string Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IResourceInternal)__resource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IResourceInternal)__resource).Type = value; } /// The name of the resource [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Origin(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.PropertyOrigin.Inherited)] - public string Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.IResourceInternal)__resource).Name; } + public string Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IResourceInternal)__resource).Name; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobDefinitionProperties _property; + private Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobDefinitionProperties _property; /// Job definition properties. [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Origin(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.PropertyOrigin.Owned)] - internal Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobDefinitionProperties Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.JobDefinitionProperties()); set => this._property = value; } + internal Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobDefinitionProperties Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.JobDefinitionProperties()); set => this._property = value; } /// The provisioning state of this resource. [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Origin(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.PropertyOrigin.Inlined)] - public Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.ProvisioningState? ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobDefinitionPropertiesInternal)Property).ProvisioningState; } + public Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.ProvisioningState? ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobDefinitionPropertiesInternal)Property).ProvisioningState; } /// The name of the source Endpoint. [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Origin(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.PropertyOrigin.Inlined)] - public string SourceName { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobDefinitionPropertiesInternal)Property).SourceName; set => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobDefinitionPropertiesInternal)Property).SourceName = value ; } + public string SourceName { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobDefinitionPropertiesInternal)Property).SourceName; set => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobDefinitionPropertiesInternal)Property).SourceName = value ; } /// Fully qualified resource ID of the source Endpoint. [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Origin(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.PropertyOrigin.Inlined)] - public string SourceResourceId { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobDefinitionPropertiesInternal)Property).SourceResourceId; } + public string SourceResourceId { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobDefinitionPropertiesInternal)Property).SourceResourceId; } /// The subpath to use when reading from the source Endpoint. [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Origin(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.PropertyOrigin.Inlined)] - public string SourceSubpath { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobDefinitionPropertiesInternal)Property).SourceSubpath; set => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobDefinitionPropertiesInternal)Property).SourceSubpath = value ?? null; } + public string SourceSubpath { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobDefinitionPropertiesInternal)Property).SourceSubpath; set => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobDefinitionPropertiesInternal)Property).SourceSubpath = value ?? null; } - /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.ISystemData _systemData; - - /// Resource system metadata. - [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Origin(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.PropertyOrigin.Owned)] - internal Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.ISystemData SystemData { get => (this._systemData = this._systemData ?? new Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.SystemData()); } + /// + /// Azure Resource Manager metadata containing createdBy and modifiedBy information. + /// + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Origin(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.PropertyOrigin.Inherited)] + private Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.ISystemData SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IResourceInternal)__resource).SystemData; } /// The timestamp of resource creation (UTC). - [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Origin(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.PropertyOrigin.Inlined)] - public global::System.DateTime? SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.ISystemDataInternal)SystemData).CreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.ISystemDataInternal)SystemData).CreatedAt = value ?? default(global::System.DateTime); } + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Origin(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.PropertyOrigin.Inherited)] + public global::System.DateTime? SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IResourceInternal)__resource).SystemDataCreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IResourceInternal)__resource).SystemDataCreatedAt = value ?? default(global::System.DateTime); } /// The identity that created the resource. - [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Origin(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.PropertyOrigin.Inlined)] - public string SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.ISystemDataInternal)SystemData).CreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.ISystemDataInternal)SystemData).CreatedBy = value ?? null; } + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Origin(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.PropertyOrigin.Inherited)] + public string SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IResourceInternal)__resource).SystemDataCreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IResourceInternal)__resource).SystemDataCreatedBy = value ?? null; } /// The type of identity that created the resource. - [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Origin(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.PropertyOrigin.Inlined)] - public Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.CreatedByType? SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.ISystemDataInternal)SystemData).CreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.ISystemDataInternal)SystemData).CreatedByType = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.CreatedByType)""); } + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Origin(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.PropertyOrigin.Inherited)] + public Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.CreatedByType? SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IResourceInternal)__resource).SystemDataCreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IResourceInternal)__resource).SystemDataCreatedByType = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.CreatedByType)""); } /// The timestamp of resource last modification (UTC) - [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Origin(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.PropertyOrigin.Inlined)] - public global::System.DateTime? SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.ISystemDataInternal)SystemData).LastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.ISystemDataInternal)SystemData).LastModifiedAt = value ?? default(global::System.DateTime); } + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Origin(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.PropertyOrigin.Inherited)] + public global::System.DateTime? SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IResourceInternal)__resource).SystemDataLastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IResourceInternal)__resource).SystemDataLastModifiedAt = value ?? default(global::System.DateTime); } /// The identity that last modified the resource. - [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Origin(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.PropertyOrigin.Inlined)] - public string SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.ISystemDataInternal)SystemData).LastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.ISystemDataInternal)SystemData).LastModifiedBy = value ?? null; } + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Origin(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.PropertyOrigin.Inherited)] + public string SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IResourceInternal)__resource).SystemDataLastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IResourceInternal)__resource).SystemDataLastModifiedBy = value ?? null; } /// The type of identity that last modified the resource. - [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Origin(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.PropertyOrigin.Inlined)] - public Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.CreatedByType? SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.ISystemDataInternal)SystemData).LastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.ISystemDataInternal)SystemData).LastModifiedByType = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.CreatedByType)""); } + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Origin(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.PropertyOrigin.Inherited)] + public Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.CreatedByType? SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IResourceInternal)__resource).SystemDataLastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IResourceInternal)__resource).SystemDataLastModifiedByType = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.CreatedByType)""); } /// The name of the target Endpoint. [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Origin(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.PropertyOrigin.Inlined)] - public string TargetName { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobDefinitionPropertiesInternal)Property).TargetName; set => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobDefinitionPropertiesInternal)Property).TargetName = value ; } + public string TargetName { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobDefinitionPropertiesInternal)Property).TargetName; set => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobDefinitionPropertiesInternal)Property).TargetName = value ; } /// Fully qualified resource ID of the target Endpoint. [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Origin(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.PropertyOrigin.Inlined)] - public string TargetResourceId { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobDefinitionPropertiesInternal)Property).TargetResourceId; } + public string TargetResourceId { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobDefinitionPropertiesInternal)Property).TargetResourceId; } /// The subpath to use when writing to the target Endpoint. [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Origin(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.PropertyOrigin.Inlined)] - public string TargetSubpath { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobDefinitionPropertiesInternal)Property).TargetSubpath; set => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobDefinitionPropertiesInternal)Property).TargetSubpath = value ?? null; } + public string TargetSubpath { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobDefinitionPropertiesInternal)Property).TargetSubpath; set => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobDefinitionPropertiesInternal)Property).TargetSubpath = value ?? null; } /// /// The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" /// [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Origin(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.PropertyOrigin.Inherited)] - public string Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.IResourceInternal)__resource).Type; } + public string Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IResourceInternal)__resource).Type; } /// Creates an new instance. public JobDefinition() @@ -191,7 +190,7 @@ public JobDefinition() /// The Job Definition resource. public partial interface IJobDefinition : Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.IJsonSerializable, - Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.IResource + Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IResource { /// Name of the Agent to assign for new Job Runs of this Job Definition. [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Info( @@ -285,54 +284,6 @@ public partial interface IJobDefinition : SerializedName = @"sourceSubpath", PossibleTypes = new [] { typeof(string) })] string SourceSubpath { get; set; } - /// The timestamp of resource creation (UTC). - [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"The timestamp of resource creation (UTC).", - SerializedName = @"createdAt", - PossibleTypes = new [] { typeof(global::System.DateTime) })] - global::System.DateTime? SystemDataCreatedAt { get; set; } - /// The identity that created the resource. - [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"The identity that created the resource.", - SerializedName = @"createdBy", - PossibleTypes = new [] { typeof(string) })] - string SystemDataCreatedBy { get; set; } - /// The type of identity that created the resource. - [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"The type of identity that created the resource.", - SerializedName = @"createdByType", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.CreatedByType) })] - Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.CreatedByType? SystemDataCreatedByType { get; set; } - /// The timestamp of resource last modification (UTC) - [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"The timestamp of resource last modification (UTC)", - SerializedName = @"lastModifiedAt", - PossibleTypes = new [] { typeof(global::System.DateTime) })] - global::System.DateTime? SystemDataLastModifiedAt { get; set; } - /// The identity that last modified the resource. - [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"The identity that last modified the resource.", - SerializedName = @"lastModifiedBy", - PossibleTypes = new [] { typeof(string) })] - string SystemDataLastModifiedBy { get; set; } - /// The type of identity that last modified the resource. - [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"The type of identity that last modified the resource.", - SerializedName = @"lastModifiedByType", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.CreatedByType) })] - Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.CreatedByType? SystemDataLastModifiedByType { get; set; } /// The name of the target Endpoint. [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Info( Required = true, @@ -361,7 +312,7 @@ public partial interface IJobDefinition : } /// The Job Definition resource. internal partial interface IJobDefinitionInternal : - Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.IResourceInternal + Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IResourceInternal { /// Name of the Agent to assign for new Job Runs of this Job Definition. string AgentName { get; set; } @@ -382,7 +333,7 @@ internal partial interface IJobDefinitionInternal : /// The current status of the Job Run in a non-terminal state, if exists. Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.JobRunStatus? LatestJobRunStatus { get; set; } /// Job definition properties. - Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobDefinitionProperties Property { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobDefinitionProperties Property { get; set; } /// The provisioning state of this resource. Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.ProvisioningState? ProvisioningState { get; set; } /// The name of the source Endpoint. @@ -391,20 +342,6 @@ internal partial interface IJobDefinitionInternal : string SourceResourceId { get; set; } /// The subpath to use when reading from the source Endpoint. string SourceSubpath { get; set; } - /// Resource system metadata. - Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.ISystemData SystemData { get; set; } - /// The timestamp of resource creation (UTC). - global::System.DateTime? SystemDataCreatedAt { get; set; } - /// The identity that created the resource. - string SystemDataCreatedBy { get; set; } - /// The type of identity that created the resource. - Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.CreatedByType? SystemDataCreatedByType { get; set; } - /// The timestamp of resource last modification (UTC) - global::System.DateTime? SystemDataLastModifiedAt { get; set; } - /// The identity that last modified the resource. - string SystemDataLastModifiedBy { get; set; } - /// The type of identity that last modified the resource. - Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.CreatedByType? SystemDataLastModifiedByType { get; set; } /// The name of the target Endpoint. string TargetName { get; set; } /// Fully qualified resource ID of the target Endpoint. diff --git a/src/StorageMover/generated/api/Models/Api20230301/JobDefinition.json.cs b/src/StorageMover/generated/api/Models/Api20231001/JobDefinition.json.cs similarity index 88% rename from src/StorageMover/generated/api/Models/Api20230301/JobDefinition.json.cs rename to src/StorageMover/generated/api/Models/Api20231001/JobDefinition.json.cs index 130a09f55dbf..96b42f5c6676 100644 --- a/src/StorageMover/generated/api/Models/Api20230301/JobDefinition.json.cs +++ b/src/StorageMover/generated/api/Models/Api20231001/JobDefinition.json.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301 +namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001 { using static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Extensions; @@ -54,13 +54,13 @@ public partial class JobDefinition partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobDefinition. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobDefinition. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobDefinition. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobDefinition. /// - public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobDefinition FromJson(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobDefinition FromJson(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonObject json ? new JobDefinition(json) : null; } @@ -77,9 +77,8 @@ internal JobDefinition(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.J { return; } - __resource = new Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.Resource(json); - {_property = If( json?.PropertyT("properties"), out var __jsonProperties) ? Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.JobDefinitionProperties.FromJson(__jsonProperties) : Property;} - {_systemData = If( json?.PropertyT("systemData"), out var __jsonSystemData) ? Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.SystemData.FromJson(__jsonSystemData) : SystemData;} + __resource = new Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.Resource(json); + {_property = If( json?.PropertyT("properties"), out var __jsonProperties) ? Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.JobDefinitionProperties.FromJson(__jsonProperties) : Property;} AfterFromJson(json); } @@ -104,10 +103,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonNode ToJ } __resource?.ToJson(container, serializationMode); AddIf( null != this._property ? (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonNode) this._property.ToJson(null,serializationMode) : null, "properties" ,container.Add ); - if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.SerializationMode.IncludeReadOnly)) - { - AddIf( null != this._systemData ? (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonNode) this._systemData.ToJson(null,serializationMode) : null, "systemData" ,container.Add ); - } AfterToJson(ref container); return container; } diff --git a/src/StorageMover/generated/api/Models/Api20230301/JobDefinitionList.PowerShell.cs b/src/StorageMover/generated/api/Models/Api20231001/JobDefinitionList.PowerShell.cs similarity index 86% rename from src/StorageMover/generated/api/Models/Api20230301/JobDefinitionList.PowerShell.cs rename to src/StorageMover/generated/api/Models/Api20231001/JobDefinitionList.PowerShell.cs index b661267c1a4b..91ef1f7ee965 100644 --- a/src/StorageMover/generated/api/Models/Api20230301/JobDefinitionList.PowerShell.cs +++ b/src/StorageMover/generated/api/Models/Api20231001/JobDefinitionList.PowerShell.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301 +namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001 { using Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.PowerShell; @@ -63,27 +63,27 @@ public partial class JobDefinitionList partial void OverrideToString(ref string stringResult, ref bool returnNow); /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Collections.IDictionary content that should be used. /// - /// an instance of . + /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobDefinitionList DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobDefinitionList DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new JobDefinitionList(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. /// - /// an instance of . + /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobDefinitionList DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobDefinitionList DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new JobDefinitionList(content); } @@ -93,10 +93,10 @@ public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301 /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobDefinitionList FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobDefinitionList FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonNode.Parse(jsonText)); /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. @@ -111,17 +111,17 @@ internal JobDefinitionList(global::System.Collections.IDictionary content) // actually deserialize if (content.Contains("Value")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobDefinitionListInternal)this).Value = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobDefinition[]) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobDefinitionListInternal)this).Value, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.JobDefinitionTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobDefinitionListInternal)this).Value = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobDefinition[]) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobDefinitionListInternal)this).Value, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.JobDefinitionTypeConverter.ConvertFrom)); } if (content.Contains("NextLink")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobDefinitionListInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobDefinitionListInternal)this).NextLink, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobDefinitionListInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobDefinitionListInternal)this).NextLink, global::System.Convert.ToString); } AfterDeserializeDictionary(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -136,11 +136,11 @@ internal JobDefinitionList(global::System.Management.Automation.PSObject content // actually deserialize if (content.Contains("Value")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobDefinitionListInternal)this).Value = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobDefinition[]) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobDefinitionListInternal)this).Value, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.JobDefinitionTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobDefinitionListInternal)this).Value = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobDefinition[]) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobDefinitionListInternal)this).Value, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.JobDefinitionTypeConverter.ConvertFrom)); } if (content.Contains("NextLink")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobDefinitionListInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobDefinitionListInternal)this).NextLink, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobDefinitionListInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobDefinitionListInternal)this).NextLink, global::System.Convert.ToString); } AfterDeserializePSObject(content); } diff --git a/src/StorageMover/generated/api/Models/Api20230301/JobDefinitionList.TypeConverter.cs b/src/StorageMover/generated/api/Models/Api20231001/JobDefinitionList.TypeConverter.cs similarity index 98% rename from src/StorageMover/generated/api/Models/Api20230301/JobDefinitionList.TypeConverter.cs rename to src/StorageMover/generated/api/Models/Api20231001/JobDefinitionList.TypeConverter.cs index 0579cdc1642c..2087d3e52ede 100644 --- a/src/StorageMover/generated/api/Models/Api20230301/JobDefinitionList.TypeConverter.cs +++ b/src/StorageMover/generated/api/Models/Api20231001/JobDefinitionList.TypeConverter.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301 +namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001 { using Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.PowerShell; @@ -106,14 +106,14 @@ public static bool CanConvertFrom(dynamic sourceValue) /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobDefinitionList ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobDefinitionList ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobDefinitionList).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobDefinitionList).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/StorageMover/generated/api/Models/Api20230301/JobDefinitionList.cs b/src/StorageMover/generated/api/Models/Api20231001/JobDefinitionList.cs similarity index 87% rename from src/StorageMover/generated/api/Models/Api20230301/JobDefinitionList.cs rename to src/StorageMover/generated/api/Models/Api20231001/JobDefinitionList.cs index 02dfc3017efa..bed45b8cae69 100644 --- a/src/StorageMover/generated/api/Models/Api20230301/JobDefinitionList.cs +++ b/src/StorageMover/generated/api/Models/Api20231001/JobDefinitionList.cs @@ -3,22 +3,22 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301 +namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001 { using static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Extensions; /// List of Job Definitions. [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.DoNotFormat] public partial class JobDefinitionList : - Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobDefinitionList, - Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobDefinitionListInternal + Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobDefinitionList, + Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobDefinitionListInternal { /// Internal Acessors for NextLink - string Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobDefinitionListInternal.NextLink { get => this._nextLink; set { {_nextLink = value;} } } + string Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobDefinitionListInternal.NextLink { get => this._nextLink; set { {_nextLink = value;} } } /// Internal Acessors for Value - Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobDefinition[] Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobDefinitionListInternal.Value { get => this._value; set { {_value = value;} } } + Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobDefinition[] Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobDefinitionListInternal.Value { get => this._value; set { {_value = value;} } } /// Backing field for property. private string _nextLink; @@ -31,10 +31,10 @@ public partial class JobDefinitionList : public string NextLink { get => this._nextLink; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobDefinition[] _value; + private Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobDefinition[] _value; [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Origin(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.PropertyOrigin.Owned)] - public Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobDefinition[] Value { get => this._value; } + public Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobDefinition[] Value { get => this._value; } /// Creates an new instance. public JobDefinitionList() @@ -63,8 +63,8 @@ public partial interface IJobDefinitionList : ReadOnly = true, Description = @"", SerializedName = @"value", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobDefinition) })] - Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobDefinition[] Value { get; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobDefinition) })] + Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobDefinition[] Value { get; } } /// List of Job Definitions. @@ -77,7 +77,7 @@ internal partial interface IJobDefinitionListInternal /// string NextLink { get; set; } - Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobDefinition[] Value { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobDefinition[] Value { get; set; } } } \ No newline at end of file diff --git a/src/StorageMover/generated/api/Models/Api20230301/JobDefinitionList.json.cs b/src/StorageMover/generated/api/Models/Api20231001/JobDefinitionList.json.cs similarity index 95% rename from src/StorageMover/generated/api/Models/Api20230301/JobDefinitionList.json.cs rename to src/StorageMover/generated/api/Models/Api20231001/JobDefinitionList.json.cs index 263cb6b3f3e5..177de92db26f 100644 --- a/src/StorageMover/generated/api/Models/Api20230301/JobDefinitionList.json.cs +++ b/src/StorageMover/generated/api/Models/Api20231001/JobDefinitionList.json.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301 +namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001 { using static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Extensions; @@ -54,13 +54,13 @@ public partial class JobDefinitionList partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobDefinitionList. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobDefinitionList. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobDefinitionList. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobDefinitionList. /// - public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobDefinitionList FromJson(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobDefinitionList FromJson(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonObject json ? new JobDefinitionList(json) : null; } @@ -77,7 +77,7 @@ internal JobDefinitionList(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runti { return; } - {_value = If( json?.PropertyT("value"), out var __jsonValue) ? If( __jsonValue as Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonArray, out var __v) ? new global::System.Func(()=> global::System.Linq.Enumerable.ToArray(global::System.Linq.Enumerable.Select(__v, (__u)=>(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobDefinition) (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.JobDefinition.FromJson(__u) )) ))() : null : Value;} + {_value = If( json?.PropertyT("value"), out var __jsonValue) ? If( __jsonValue as Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonArray, out var __v) ? new global::System.Func(()=> global::System.Linq.Enumerable.ToArray(global::System.Linq.Enumerable.Select(__v, (__u)=>(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobDefinition) (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.JobDefinition.FromJson(__u) )) ))() : null : Value;} {_nextLink = If( json?.PropertyT("nextLink"), out var __jsonNextLink) ? (string)__jsonNextLink : (string)NextLink;} AfterFromJson(json); } diff --git a/src/StorageMover/generated/api/Models/Api20230301/JobDefinitionProperties.PowerShell.cs b/src/StorageMover/generated/api/Models/Api20231001/JobDefinitionProperties.PowerShell.cs similarity index 80% rename from src/StorageMover/generated/api/Models/Api20230301/JobDefinitionProperties.PowerShell.cs rename to src/StorageMover/generated/api/Models/Api20231001/JobDefinitionProperties.PowerShell.cs index cede1a74fa95..2c7c53280527 100644 --- a/src/StorageMover/generated/api/Models/Api20230301/JobDefinitionProperties.PowerShell.cs +++ b/src/StorageMover/generated/api/Models/Api20231001/JobDefinitionProperties.PowerShell.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301 +namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001 { using Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.PowerShell; @@ -63,29 +63,29 @@ public partial class JobDefinitionProperties partial void OverrideToString(ref string stringResult, ref bool returnNow); /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Collections.IDictionary content that should be used. /// - /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobDefinitionProperties DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobDefinitionProperties DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new JobDefinitionProperties(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. /// - /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobDefinitionProperties DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobDefinitionProperties DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new JobDefinitionProperties(content); } @@ -95,10 +95,10 @@ public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301 /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobDefinitionProperties FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobDefinitionProperties FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonNode.Parse(jsonText)); /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. @@ -113,65 +113,65 @@ internal JobDefinitionProperties(global::System.Collections.IDictionary content) // actually deserialize if (content.Contains("Description")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobDefinitionPropertiesInternal)this).Description = (string) content.GetValueForProperty("Description",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobDefinitionPropertiesInternal)this).Description, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobDefinitionPropertiesInternal)this).Description = (string) content.GetValueForProperty("Description",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobDefinitionPropertiesInternal)this).Description, global::System.Convert.ToString); } if (content.Contains("CopyMode")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobDefinitionPropertiesInternal)this).CopyMode = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.CopyMode) content.GetValueForProperty("CopyMode",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobDefinitionPropertiesInternal)this).CopyMode, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.CopyMode.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobDefinitionPropertiesInternal)this).CopyMode = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.CopyMode) content.GetValueForProperty("CopyMode",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobDefinitionPropertiesInternal)this).CopyMode, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.CopyMode.CreateFrom); } if (content.Contains("SourceName")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobDefinitionPropertiesInternal)this).SourceName = (string) content.GetValueForProperty("SourceName",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobDefinitionPropertiesInternal)this).SourceName, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobDefinitionPropertiesInternal)this).SourceName = (string) content.GetValueForProperty("SourceName",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobDefinitionPropertiesInternal)this).SourceName, global::System.Convert.ToString); } if (content.Contains("SourceResourceId")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobDefinitionPropertiesInternal)this).SourceResourceId = (string) content.GetValueForProperty("SourceResourceId",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobDefinitionPropertiesInternal)this).SourceResourceId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobDefinitionPropertiesInternal)this).SourceResourceId = (string) content.GetValueForProperty("SourceResourceId",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobDefinitionPropertiesInternal)this).SourceResourceId, global::System.Convert.ToString); } if (content.Contains("SourceSubpath")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobDefinitionPropertiesInternal)this).SourceSubpath = (string) content.GetValueForProperty("SourceSubpath",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobDefinitionPropertiesInternal)this).SourceSubpath, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobDefinitionPropertiesInternal)this).SourceSubpath = (string) content.GetValueForProperty("SourceSubpath",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobDefinitionPropertiesInternal)this).SourceSubpath, global::System.Convert.ToString); } if (content.Contains("TargetName")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobDefinitionPropertiesInternal)this).TargetName = (string) content.GetValueForProperty("TargetName",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobDefinitionPropertiesInternal)this).TargetName, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobDefinitionPropertiesInternal)this).TargetName = (string) content.GetValueForProperty("TargetName",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobDefinitionPropertiesInternal)this).TargetName, global::System.Convert.ToString); } if (content.Contains("TargetResourceId")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobDefinitionPropertiesInternal)this).TargetResourceId = (string) content.GetValueForProperty("TargetResourceId",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobDefinitionPropertiesInternal)this).TargetResourceId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobDefinitionPropertiesInternal)this).TargetResourceId = (string) content.GetValueForProperty("TargetResourceId",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobDefinitionPropertiesInternal)this).TargetResourceId, global::System.Convert.ToString); } if (content.Contains("TargetSubpath")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobDefinitionPropertiesInternal)this).TargetSubpath = (string) content.GetValueForProperty("TargetSubpath",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobDefinitionPropertiesInternal)this).TargetSubpath, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobDefinitionPropertiesInternal)this).TargetSubpath = (string) content.GetValueForProperty("TargetSubpath",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobDefinitionPropertiesInternal)this).TargetSubpath, global::System.Convert.ToString); } if (content.Contains("LatestJobRunName")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobDefinitionPropertiesInternal)this).LatestJobRunName = (string) content.GetValueForProperty("LatestJobRunName",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobDefinitionPropertiesInternal)this).LatestJobRunName, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobDefinitionPropertiesInternal)this).LatestJobRunName = (string) content.GetValueForProperty("LatestJobRunName",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobDefinitionPropertiesInternal)this).LatestJobRunName, global::System.Convert.ToString); } if (content.Contains("LatestJobRunResourceId")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobDefinitionPropertiesInternal)this).LatestJobRunResourceId = (string) content.GetValueForProperty("LatestJobRunResourceId",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobDefinitionPropertiesInternal)this).LatestJobRunResourceId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobDefinitionPropertiesInternal)this).LatestJobRunResourceId = (string) content.GetValueForProperty("LatestJobRunResourceId",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobDefinitionPropertiesInternal)this).LatestJobRunResourceId, global::System.Convert.ToString); } if (content.Contains("LatestJobRunStatus")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobDefinitionPropertiesInternal)this).LatestJobRunStatus = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.JobRunStatus?) content.GetValueForProperty("LatestJobRunStatus",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobDefinitionPropertiesInternal)this).LatestJobRunStatus, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.JobRunStatus.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobDefinitionPropertiesInternal)this).LatestJobRunStatus = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.JobRunStatus?) content.GetValueForProperty("LatestJobRunStatus",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobDefinitionPropertiesInternal)this).LatestJobRunStatus, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.JobRunStatus.CreateFrom); } if (content.Contains("AgentName")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobDefinitionPropertiesInternal)this).AgentName = (string) content.GetValueForProperty("AgentName",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobDefinitionPropertiesInternal)this).AgentName, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobDefinitionPropertiesInternal)this).AgentName = (string) content.GetValueForProperty("AgentName",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobDefinitionPropertiesInternal)this).AgentName, global::System.Convert.ToString); } if (content.Contains("AgentResourceId")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobDefinitionPropertiesInternal)this).AgentResourceId = (string) content.GetValueForProperty("AgentResourceId",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobDefinitionPropertiesInternal)this).AgentResourceId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobDefinitionPropertiesInternal)this).AgentResourceId = (string) content.GetValueForProperty("AgentResourceId",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobDefinitionPropertiesInternal)this).AgentResourceId, global::System.Convert.ToString); } if (content.Contains("ProvisioningState")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobDefinitionPropertiesInternal)this).ProvisioningState = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.ProvisioningState?) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobDefinitionPropertiesInternal)this).ProvisioningState, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.ProvisioningState.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobDefinitionPropertiesInternal)this).ProvisioningState = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.ProvisioningState?) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobDefinitionPropertiesInternal)this).ProvisioningState, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.ProvisioningState.CreateFrom); } AfterDeserializeDictionary(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -186,59 +186,59 @@ internal JobDefinitionProperties(global::System.Management.Automation.PSObject c // actually deserialize if (content.Contains("Description")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobDefinitionPropertiesInternal)this).Description = (string) content.GetValueForProperty("Description",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobDefinitionPropertiesInternal)this).Description, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobDefinitionPropertiesInternal)this).Description = (string) content.GetValueForProperty("Description",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobDefinitionPropertiesInternal)this).Description, global::System.Convert.ToString); } if (content.Contains("CopyMode")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobDefinitionPropertiesInternal)this).CopyMode = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.CopyMode) content.GetValueForProperty("CopyMode",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobDefinitionPropertiesInternal)this).CopyMode, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.CopyMode.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobDefinitionPropertiesInternal)this).CopyMode = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.CopyMode) content.GetValueForProperty("CopyMode",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobDefinitionPropertiesInternal)this).CopyMode, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.CopyMode.CreateFrom); } if (content.Contains("SourceName")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobDefinitionPropertiesInternal)this).SourceName = (string) content.GetValueForProperty("SourceName",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobDefinitionPropertiesInternal)this).SourceName, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobDefinitionPropertiesInternal)this).SourceName = (string) content.GetValueForProperty("SourceName",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobDefinitionPropertiesInternal)this).SourceName, global::System.Convert.ToString); } if (content.Contains("SourceResourceId")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobDefinitionPropertiesInternal)this).SourceResourceId = (string) content.GetValueForProperty("SourceResourceId",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobDefinitionPropertiesInternal)this).SourceResourceId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobDefinitionPropertiesInternal)this).SourceResourceId = (string) content.GetValueForProperty("SourceResourceId",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobDefinitionPropertiesInternal)this).SourceResourceId, global::System.Convert.ToString); } if (content.Contains("SourceSubpath")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobDefinitionPropertiesInternal)this).SourceSubpath = (string) content.GetValueForProperty("SourceSubpath",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobDefinitionPropertiesInternal)this).SourceSubpath, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobDefinitionPropertiesInternal)this).SourceSubpath = (string) content.GetValueForProperty("SourceSubpath",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobDefinitionPropertiesInternal)this).SourceSubpath, global::System.Convert.ToString); } if (content.Contains("TargetName")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobDefinitionPropertiesInternal)this).TargetName = (string) content.GetValueForProperty("TargetName",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobDefinitionPropertiesInternal)this).TargetName, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobDefinitionPropertiesInternal)this).TargetName = (string) content.GetValueForProperty("TargetName",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobDefinitionPropertiesInternal)this).TargetName, global::System.Convert.ToString); } if (content.Contains("TargetResourceId")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobDefinitionPropertiesInternal)this).TargetResourceId = (string) content.GetValueForProperty("TargetResourceId",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobDefinitionPropertiesInternal)this).TargetResourceId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobDefinitionPropertiesInternal)this).TargetResourceId = (string) content.GetValueForProperty("TargetResourceId",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobDefinitionPropertiesInternal)this).TargetResourceId, global::System.Convert.ToString); } if (content.Contains("TargetSubpath")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobDefinitionPropertiesInternal)this).TargetSubpath = (string) content.GetValueForProperty("TargetSubpath",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobDefinitionPropertiesInternal)this).TargetSubpath, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobDefinitionPropertiesInternal)this).TargetSubpath = (string) content.GetValueForProperty("TargetSubpath",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobDefinitionPropertiesInternal)this).TargetSubpath, global::System.Convert.ToString); } if (content.Contains("LatestJobRunName")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobDefinitionPropertiesInternal)this).LatestJobRunName = (string) content.GetValueForProperty("LatestJobRunName",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobDefinitionPropertiesInternal)this).LatestJobRunName, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobDefinitionPropertiesInternal)this).LatestJobRunName = (string) content.GetValueForProperty("LatestJobRunName",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobDefinitionPropertiesInternal)this).LatestJobRunName, global::System.Convert.ToString); } if (content.Contains("LatestJobRunResourceId")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobDefinitionPropertiesInternal)this).LatestJobRunResourceId = (string) content.GetValueForProperty("LatestJobRunResourceId",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobDefinitionPropertiesInternal)this).LatestJobRunResourceId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobDefinitionPropertiesInternal)this).LatestJobRunResourceId = (string) content.GetValueForProperty("LatestJobRunResourceId",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobDefinitionPropertiesInternal)this).LatestJobRunResourceId, global::System.Convert.ToString); } if (content.Contains("LatestJobRunStatus")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobDefinitionPropertiesInternal)this).LatestJobRunStatus = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.JobRunStatus?) content.GetValueForProperty("LatestJobRunStatus",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobDefinitionPropertiesInternal)this).LatestJobRunStatus, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.JobRunStatus.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobDefinitionPropertiesInternal)this).LatestJobRunStatus = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.JobRunStatus?) content.GetValueForProperty("LatestJobRunStatus",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobDefinitionPropertiesInternal)this).LatestJobRunStatus, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.JobRunStatus.CreateFrom); } if (content.Contains("AgentName")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobDefinitionPropertiesInternal)this).AgentName = (string) content.GetValueForProperty("AgentName",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobDefinitionPropertiesInternal)this).AgentName, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobDefinitionPropertiesInternal)this).AgentName = (string) content.GetValueForProperty("AgentName",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobDefinitionPropertiesInternal)this).AgentName, global::System.Convert.ToString); } if (content.Contains("AgentResourceId")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobDefinitionPropertiesInternal)this).AgentResourceId = (string) content.GetValueForProperty("AgentResourceId",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobDefinitionPropertiesInternal)this).AgentResourceId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobDefinitionPropertiesInternal)this).AgentResourceId = (string) content.GetValueForProperty("AgentResourceId",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobDefinitionPropertiesInternal)this).AgentResourceId, global::System.Convert.ToString); } if (content.Contains("ProvisioningState")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobDefinitionPropertiesInternal)this).ProvisioningState = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.ProvisioningState?) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobDefinitionPropertiesInternal)this).ProvisioningState, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.ProvisioningState.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobDefinitionPropertiesInternal)this).ProvisioningState = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.ProvisioningState?) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobDefinitionPropertiesInternal)this).ProvisioningState, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.ProvisioningState.CreateFrom); } AfterDeserializePSObject(content); } diff --git a/src/StorageMover/generated/api/Models/Api20230301/JobDefinitionProperties.TypeConverter.cs b/src/StorageMover/generated/api/Models/Api20231001/JobDefinitionProperties.TypeConverter.cs similarity index 98% rename from src/StorageMover/generated/api/Models/Api20230301/JobDefinitionProperties.TypeConverter.cs rename to src/StorageMover/generated/api/Models/Api20231001/JobDefinitionProperties.TypeConverter.cs index 647a8fbf8dc4..d7cef09b1c02 100644 --- a/src/StorageMover/generated/api/Models/Api20230301/JobDefinitionProperties.TypeConverter.cs +++ b/src/StorageMover/generated/api/Models/Api20231001/JobDefinitionProperties.TypeConverter.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301 +namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001 { using Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.PowerShell; @@ -106,14 +106,14 @@ public static bool CanConvertFrom(dynamic sourceValue) /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobDefinitionProperties ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobDefinitionProperties ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobDefinitionProperties).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobDefinitionProperties).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/StorageMover/generated/api/Models/Api20230301/JobDefinitionProperties.cs b/src/StorageMover/generated/api/Models/Api20231001/JobDefinitionProperties.cs similarity index 97% rename from src/StorageMover/generated/api/Models/Api20230301/JobDefinitionProperties.cs rename to src/StorageMover/generated/api/Models/Api20231001/JobDefinitionProperties.cs index 013ff1b274a4..f063d533d3d9 100644 --- a/src/StorageMover/generated/api/Models/Api20230301/JobDefinitionProperties.cs +++ b/src/StorageMover/generated/api/Models/Api20231001/JobDefinitionProperties.cs @@ -3,15 +3,15 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301 +namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001 { using static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Extensions; /// Job definition properties. [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.DoNotFormat] public partial class JobDefinitionProperties : - Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobDefinitionProperties, - Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobDefinitionPropertiesInternal + Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobDefinitionProperties, + Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobDefinitionPropertiesInternal { /// Backing field for property. @@ -68,25 +68,25 @@ public partial class JobDefinitionProperties : public Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.JobRunStatus? LatestJobRunStatus { get => this._latestJobRunStatus; } /// Internal Acessors for AgentResourceId - string Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobDefinitionPropertiesInternal.AgentResourceId { get => this._agentResourceId; set { {_agentResourceId = value;} } } + string Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobDefinitionPropertiesInternal.AgentResourceId { get => this._agentResourceId; set { {_agentResourceId = value;} } } /// Internal Acessors for LatestJobRunName - string Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobDefinitionPropertiesInternal.LatestJobRunName { get => this._latestJobRunName; set { {_latestJobRunName = value;} } } + string Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobDefinitionPropertiesInternal.LatestJobRunName { get => this._latestJobRunName; set { {_latestJobRunName = value;} } } /// Internal Acessors for LatestJobRunResourceId - string Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobDefinitionPropertiesInternal.LatestJobRunResourceId { get => this._latestJobRunResourceId; set { {_latestJobRunResourceId = value;} } } + string Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobDefinitionPropertiesInternal.LatestJobRunResourceId { get => this._latestJobRunResourceId; set { {_latestJobRunResourceId = value;} } } /// Internal Acessors for LatestJobRunStatus - Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.JobRunStatus? Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobDefinitionPropertiesInternal.LatestJobRunStatus { get => this._latestJobRunStatus; set { {_latestJobRunStatus = value;} } } + Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.JobRunStatus? Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobDefinitionPropertiesInternal.LatestJobRunStatus { get => this._latestJobRunStatus; set { {_latestJobRunStatus = value;} } } /// Internal Acessors for ProvisioningState - Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.ProvisioningState? Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobDefinitionPropertiesInternal.ProvisioningState { get => this._provisioningState; set { {_provisioningState = value;} } } + Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.ProvisioningState? Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobDefinitionPropertiesInternal.ProvisioningState { get => this._provisioningState; set { {_provisioningState = value;} } } /// Internal Acessors for SourceResourceId - string Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobDefinitionPropertiesInternal.SourceResourceId { get => this._sourceResourceId; set { {_sourceResourceId = value;} } } + string Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobDefinitionPropertiesInternal.SourceResourceId { get => this._sourceResourceId; set { {_sourceResourceId = value;} } } /// Internal Acessors for TargetResourceId - string Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobDefinitionPropertiesInternal.TargetResourceId { get => this._targetResourceId; set { {_targetResourceId = value;} } } + string Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobDefinitionPropertiesInternal.TargetResourceId { get => this._targetResourceId; set { {_targetResourceId = value;} } } /// Backing field for property. private Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.ProvisioningState? _provisioningState; diff --git a/src/StorageMover/generated/api/Models/Api20230301/JobDefinitionProperties.json.cs b/src/StorageMover/generated/api/Models/Api20231001/JobDefinitionProperties.json.cs similarity index 98% rename from src/StorageMover/generated/api/Models/Api20230301/JobDefinitionProperties.json.cs rename to src/StorageMover/generated/api/Models/Api20231001/JobDefinitionProperties.json.cs index e7fb4de83af0..b4a7d55cbe6a 100644 --- a/src/StorageMover/generated/api/Models/Api20230301/JobDefinitionProperties.json.cs +++ b/src/StorageMover/generated/api/Models/Api20231001/JobDefinitionProperties.json.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301 +namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001 { using static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Extensions; @@ -54,13 +54,13 @@ public partial class JobDefinitionProperties partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobDefinitionProperties. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobDefinitionProperties. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobDefinitionProperties. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobDefinitionProperties. /// - public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobDefinitionProperties FromJson(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobDefinitionProperties FromJson(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonObject json ? new JobDefinitionProperties(json) : null; } diff --git a/src/StorageMover/generated/api/Models/Api20230301/JobDefinitionUpdateParameters.PowerShell.cs b/src/StorageMover/generated/api/Models/Api20231001/JobDefinitionUpdateParameters.PowerShell.cs similarity index 84% rename from src/StorageMover/generated/api/Models/Api20230301/JobDefinitionUpdateParameters.PowerShell.cs rename to src/StorageMover/generated/api/Models/Api20231001/JobDefinitionUpdateParameters.PowerShell.cs index 6d1f15a31c6c..3bd7c1cfde56 100644 --- a/src/StorageMover/generated/api/Models/Api20230301/JobDefinitionUpdateParameters.PowerShell.cs +++ b/src/StorageMover/generated/api/Models/Api20231001/JobDefinitionUpdateParameters.PowerShell.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301 +namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001 { using Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.PowerShell; @@ -63,29 +63,29 @@ public partial class JobDefinitionUpdateParameters partial void OverrideToString(ref string stringResult, ref bool returnNow); /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Collections.IDictionary content that should be used. /// - /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobDefinitionUpdateParameters DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobDefinitionUpdateParameters DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new JobDefinitionUpdateParameters(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. /// - /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobDefinitionUpdateParameters DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobDefinitionUpdateParameters DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new JobDefinitionUpdateParameters(content); } @@ -95,10 +95,10 @@ public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301 /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobDefinitionUpdateParameters FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobDefinitionUpdateParameters FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonNode.Parse(jsonText)); /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. @@ -113,25 +113,25 @@ internal JobDefinitionUpdateParameters(global::System.Collections.IDictionary co // actually deserialize if (content.Contains("Property")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobDefinitionUpdateParametersInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobDefinitionUpdateProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobDefinitionUpdateParametersInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.JobDefinitionUpdatePropertiesTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobDefinitionUpdateParametersInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobDefinitionUpdateProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobDefinitionUpdateParametersInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.JobDefinitionUpdatePropertiesTypeConverter.ConvertFrom); } if (content.Contains("CopyMode")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobDefinitionUpdateParametersInternal)this).CopyMode = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.CopyMode?) content.GetValueForProperty("CopyMode",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobDefinitionUpdateParametersInternal)this).CopyMode, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.CopyMode.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobDefinitionUpdateParametersInternal)this).CopyMode = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.CopyMode?) content.GetValueForProperty("CopyMode",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobDefinitionUpdateParametersInternal)this).CopyMode, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.CopyMode.CreateFrom); } if (content.Contains("Description")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobDefinitionUpdateParametersInternal)this).Description = (string) content.GetValueForProperty("Description",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobDefinitionUpdateParametersInternal)this).Description, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobDefinitionUpdateParametersInternal)this).Description = (string) content.GetValueForProperty("Description",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobDefinitionUpdateParametersInternal)this).Description, global::System.Convert.ToString); } if (content.Contains("AgentName")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobDefinitionUpdateParametersInternal)this).AgentName = (string) content.GetValueForProperty("AgentName",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobDefinitionUpdateParametersInternal)this).AgentName, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobDefinitionUpdateParametersInternal)this).AgentName = (string) content.GetValueForProperty("AgentName",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobDefinitionUpdateParametersInternal)this).AgentName, global::System.Convert.ToString); } AfterDeserializeDictionary(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -146,19 +146,19 @@ internal JobDefinitionUpdateParameters(global::System.Management.Automation.PSOb // actually deserialize if (content.Contains("Property")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobDefinitionUpdateParametersInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobDefinitionUpdateProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobDefinitionUpdateParametersInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.JobDefinitionUpdatePropertiesTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobDefinitionUpdateParametersInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobDefinitionUpdateProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobDefinitionUpdateParametersInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.JobDefinitionUpdatePropertiesTypeConverter.ConvertFrom); } if (content.Contains("CopyMode")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobDefinitionUpdateParametersInternal)this).CopyMode = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.CopyMode?) content.GetValueForProperty("CopyMode",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobDefinitionUpdateParametersInternal)this).CopyMode, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.CopyMode.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobDefinitionUpdateParametersInternal)this).CopyMode = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.CopyMode?) content.GetValueForProperty("CopyMode",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobDefinitionUpdateParametersInternal)this).CopyMode, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.CopyMode.CreateFrom); } if (content.Contains("Description")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobDefinitionUpdateParametersInternal)this).Description = (string) content.GetValueForProperty("Description",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobDefinitionUpdateParametersInternal)this).Description, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobDefinitionUpdateParametersInternal)this).Description = (string) content.GetValueForProperty("Description",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobDefinitionUpdateParametersInternal)this).Description, global::System.Convert.ToString); } if (content.Contains("AgentName")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobDefinitionUpdateParametersInternal)this).AgentName = (string) content.GetValueForProperty("AgentName",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobDefinitionUpdateParametersInternal)this).AgentName, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobDefinitionUpdateParametersInternal)this).AgentName = (string) content.GetValueForProperty("AgentName",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobDefinitionUpdateParametersInternal)this).AgentName, global::System.Convert.ToString); } AfterDeserializePSObject(content); } diff --git a/src/StorageMover/generated/api/Models/Api20230301/JobDefinitionUpdateParameters.TypeConverter.cs b/src/StorageMover/generated/api/Models/Api20231001/JobDefinitionUpdateParameters.TypeConverter.cs similarity index 98% rename from src/StorageMover/generated/api/Models/Api20230301/JobDefinitionUpdateParameters.TypeConverter.cs rename to src/StorageMover/generated/api/Models/Api20231001/JobDefinitionUpdateParameters.TypeConverter.cs index a42b27943038..87cbe1334ed7 100644 --- a/src/StorageMover/generated/api/Models/Api20230301/JobDefinitionUpdateParameters.TypeConverter.cs +++ b/src/StorageMover/generated/api/Models/Api20231001/JobDefinitionUpdateParameters.TypeConverter.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301 +namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001 { using Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.PowerShell; @@ -106,14 +106,14 @@ public static bool CanConvertFrom(dynamic sourceValue) /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobDefinitionUpdateParameters ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobDefinitionUpdateParameters ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobDefinitionUpdateParameters).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobDefinitionUpdateParameters).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/StorageMover/generated/api/Models/Api20230301/JobDefinitionUpdateParameters.cs b/src/StorageMover/generated/api/Models/Api20231001/JobDefinitionUpdateParameters.cs similarity index 84% rename from src/StorageMover/generated/api/Models/Api20230301/JobDefinitionUpdateParameters.cs rename to src/StorageMover/generated/api/Models/Api20231001/JobDefinitionUpdateParameters.cs index 8071b6dc7b8f..aac469e28c41 100644 --- a/src/StorageMover/generated/api/Models/Api20230301/JobDefinitionUpdateParameters.cs +++ b/src/StorageMover/generated/api/Models/Api20231001/JobDefinitionUpdateParameters.cs @@ -3,38 +3,38 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301 +namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001 { using static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Extensions; /// The Job Definition resource. [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.DoNotFormat] public partial class JobDefinitionUpdateParameters : - Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobDefinitionUpdateParameters, - Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobDefinitionUpdateParametersInternal + Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobDefinitionUpdateParameters, + Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobDefinitionUpdateParametersInternal { /// Name of the Agent to assign for new Job Runs of this Job Definition. [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Origin(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.PropertyOrigin.Inlined)] - public string AgentName { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobDefinitionUpdatePropertiesInternal)Property).AgentName; set => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobDefinitionUpdatePropertiesInternal)Property).AgentName = value ?? null; } + public string AgentName { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobDefinitionUpdatePropertiesInternal)Property).AgentName; set => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobDefinitionUpdatePropertiesInternal)Property).AgentName = value ?? null; } /// Strategy to use for copy. [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Origin(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.PropertyOrigin.Inlined)] - public Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.CopyMode? CopyMode { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobDefinitionUpdatePropertiesInternal)Property).CopyMode; set => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobDefinitionUpdatePropertiesInternal)Property).CopyMode = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.CopyMode)""); } + public Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.CopyMode? CopyMode { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobDefinitionUpdatePropertiesInternal)Property).CopyMode; set => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobDefinitionUpdatePropertiesInternal)Property).CopyMode = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.CopyMode)""); } /// A description for the Job Definition. [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Origin(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.PropertyOrigin.Inlined)] - public string Description { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobDefinitionUpdatePropertiesInternal)Property).Description; set => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobDefinitionUpdatePropertiesInternal)Property).Description = value ?? null; } + public string Description { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobDefinitionUpdatePropertiesInternal)Property).Description; set => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobDefinitionUpdatePropertiesInternal)Property).Description = value ?? null; } /// Internal Acessors for Property - Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobDefinitionUpdateProperties Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobDefinitionUpdateParametersInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.JobDefinitionUpdateProperties()); set { {_property = value;} } } + Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobDefinitionUpdateProperties Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobDefinitionUpdateParametersInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.JobDefinitionUpdateProperties()); set { {_property = value;} } } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobDefinitionUpdateProperties _property; + private Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobDefinitionUpdateProperties _property; /// Job definition properties. [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Origin(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.PropertyOrigin.Owned)] - internal Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobDefinitionUpdateProperties Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.JobDefinitionUpdateProperties()); set => this._property = value; } + internal Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobDefinitionUpdateProperties Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.JobDefinitionUpdateProperties()); set => this._property = value; } /// Creates an new instance. public JobDefinitionUpdateParameters() @@ -83,7 +83,7 @@ internal partial interface IJobDefinitionUpdateParametersInternal /// A description for the Job Definition. string Description { get; set; } /// Job definition properties. - Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobDefinitionUpdateProperties Property { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobDefinitionUpdateProperties Property { get; set; } } } \ No newline at end of file diff --git a/src/StorageMover/generated/api/Models/Api20230301/JobDefinitionUpdateParameters.json.cs b/src/StorageMover/generated/api/Models/Api20231001/JobDefinitionUpdateParameters.json.cs similarity index 96% rename from src/StorageMover/generated/api/Models/Api20230301/JobDefinitionUpdateParameters.json.cs rename to src/StorageMover/generated/api/Models/Api20231001/JobDefinitionUpdateParameters.json.cs index 9310e84332d5..85ca5cea1d66 100644 --- a/src/StorageMover/generated/api/Models/Api20230301/JobDefinitionUpdateParameters.json.cs +++ b/src/StorageMover/generated/api/Models/Api20231001/JobDefinitionUpdateParameters.json.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301 +namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001 { using static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Extensions; @@ -54,13 +54,13 @@ public partial class JobDefinitionUpdateParameters partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobDefinitionUpdateParameters. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobDefinitionUpdateParameters. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobDefinitionUpdateParameters. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobDefinitionUpdateParameters. /// - public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobDefinitionUpdateParameters FromJson(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobDefinitionUpdateParameters FromJson(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonObject json ? new JobDefinitionUpdateParameters(json) : null; } @@ -77,7 +77,7 @@ internal JobDefinitionUpdateParameters(Microsoft.Azure.PowerShell.Cmdlets.Storag { return; } - {_property = If( json?.PropertyT("properties"), out var __jsonProperties) ? Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.JobDefinitionUpdateProperties.FromJson(__jsonProperties) : Property;} + {_property = If( json?.PropertyT("properties"), out var __jsonProperties) ? Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.JobDefinitionUpdateProperties.FromJson(__jsonProperties) : Property;} AfterFromJson(json); } diff --git a/src/StorageMover/generated/api/Models/Api20230301/JobDefinitionUpdateProperties.PowerShell.cs b/src/StorageMover/generated/api/Models/Api20231001/JobDefinitionUpdateProperties.PowerShell.cs similarity index 87% rename from src/StorageMover/generated/api/Models/Api20230301/JobDefinitionUpdateProperties.PowerShell.cs rename to src/StorageMover/generated/api/Models/Api20231001/JobDefinitionUpdateProperties.PowerShell.cs index 2e54bafed1e3..ac0db8f8032e 100644 --- a/src/StorageMover/generated/api/Models/Api20230301/JobDefinitionUpdateProperties.PowerShell.cs +++ b/src/StorageMover/generated/api/Models/Api20231001/JobDefinitionUpdateProperties.PowerShell.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301 +namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001 { using Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.PowerShell; @@ -63,29 +63,29 @@ public partial class JobDefinitionUpdateProperties partial void OverrideToString(ref string stringResult, ref bool returnNow); /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Collections.IDictionary content that should be used. /// - /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobDefinitionUpdateProperties DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobDefinitionUpdateProperties DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new JobDefinitionUpdateProperties(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. /// - /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobDefinitionUpdateProperties DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobDefinitionUpdateProperties DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new JobDefinitionUpdateProperties(content); } @@ -95,10 +95,10 @@ public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301 /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobDefinitionUpdateProperties FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobDefinitionUpdateProperties FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonNode.Parse(jsonText)); /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. @@ -113,21 +113,21 @@ internal JobDefinitionUpdateProperties(global::System.Collections.IDictionary co // actually deserialize if (content.Contains("Description")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobDefinitionUpdatePropertiesInternal)this).Description = (string) content.GetValueForProperty("Description",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobDefinitionUpdatePropertiesInternal)this).Description, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobDefinitionUpdatePropertiesInternal)this).Description = (string) content.GetValueForProperty("Description",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobDefinitionUpdatePropertiesInternal)this).Description, global::System.Convert.ToString); } if (content.Contains("CopyMode")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobDefinitionUpdatePropertiesInternal)this).CopyMode = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.CopyMode?) content.GetValueForProperty("CopyMode",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobDefinitionUpdatePropertiesInternal)this).CopyMode, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.CopyMode.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobDefinitionUpdatePropertiesInternal)this).CopyMode = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.CopyMode?) content.GetValueForProperty("CopyMode",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobDefinitionUpdatePropertiesInternal)this).CopyMode, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.CopyMode.CreateFrom); } if (content.Contains("AgentName")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobDefinitionUpdatePropertiesInternal)this).AgentName = (string) content.GetValueForProperty("AgentName",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobDefinitionUpdatePropertiesInternal)this).AgentName, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobDefinitionUpdatePropertiesInternal)this).AgentName = (string) content.GetValueForProperty("AgentName",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobDefinitionUpdatePropertiesInternal)this).AgentName, global::System.Convert.ToString); } AfterDeserializeDictionary(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -142,15 +142,15 @@ internal JobDefinitionUpdateProperties(global::System.Management.Automation.PSOb // actually deserialize if (content.Contains("Description")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobDefinitionUpdatePropertiesInternal)this).Description = (string) content.GetValueForProperty("Description",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobDefinitionUpdatePropertiesInternal)this).Description, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobDefinitionUpdatePropertiesInternal)this).Description = (string) content.GetValueForProperty("Description",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobDefinitionUpdatePropertiesInternal)this).Description, global::System.Convert.ToString); } if (content.Contains("CopyMode")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobDefinitionUpdatePropertiesInternal)this).CopyMode = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.CopyMode?) content.GetValueForProperty("CopyMode",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobDefinitionUpdatePropertiesInternal)this).CopyMode, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.CopyMode.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobDefinitionUpdatePropertiesInternal)this).CopyMode = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.CopyMode?) content.GetValueForProperty("CopyMode",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobDefinitionUpdatePropertiesInternal)this).CopyMode, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.CopyMode.CreateFrom); } if (content.Contains("AgentName")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobDefinitionUpdatePropertiesInternal)this).AgentName = (string) content.GetValueForProperty("AgentName",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobDefinitionUpdatePropertiesInternal)this).AgentName, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobDefinitionUpdatePropertiesInternal)this).AgentName = (string) content.GetValueForProperty("AgentName",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobDefinitionUpdatePropertiesInternal)this).AgentName, global::System.Convert.ToString); } AfterDeserializePSObject(content); } diff --git a/src/StorageMover/generated/api/Models/Api20230301/JobDefinitionUpdateProperties.TypeConverter.cs b/src/StorageMover/generated/api/Models/Api20231001/JobDefinitionUpdateProperties.TypeConverter.cs similarity index 98% rename from src/StorageMover/generated/api/Models/Api20230301/JobDefinitionUpdateProperties.TypeConverter.cs rename to src/StorageMover/generated/api/Models/Api20231001/JobDefinitionUpdateProperties.TypeConverter.cs index eb9ff610e671..dc9a33ab1f62 100644 --- a/src/StorageMover/generated/api/Models/Api20230301/JobDefinitionUpdateProperties.TypeConverter.cs +++ b/src/StorageMover/generated/api/Models/Api20231001/JobDefinitionUpdateProperties.TypeConverter.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301 +namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001 { using Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.PowerShell; @@ -106,14 +106,14 @@ public static bool CanConvertFrom(dynamic sourceValue) /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobDefinitionUpdateProperties ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobDefinitionUpdateProperties ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobDefinitionUpdateProperties).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobDefinitionUpdateProperties).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/StorageMover/generated/api/Models/Api20230301/JobDefinitionUpdateProperties.cs b/src/StorageMover/generated/api/Models/Api20231001/JobDefinitionUpdateProperties.cs similarity index 97% rename from src/StorageMover/generated/api/Models/Api20230301/JobDefinitionUpdateProperties.cs rename to src/StorageMover/generated/api/Models/Api20231001/JobDefinitionUpdateProperties.cs index ca23ceef7744..65f12a16caa8 100644 --- a/src/StorageMover/generated/api/Models/Api20230301/JobDefinitionUpdateProperties.cs +++ b/src/StorageMover/generated/api/Models/Api20231001/JobDefinitionUpdateProperties.cs @@ -3,15 +3,15 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301 +namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001 { using static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Extensions; /// Job definition properties. [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.DoNotFormat] public partial class JobDefinitionUpdateProperties : - Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobDefinitionUpdateProperties, - Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobDefinitionUpdatePropertiesInternal + Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobDefinitionUpdateProperties, + Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobDefinitionUpdatePropertiesInternal { /// Backing field for property. diff --git a/src/StorageMover/generated/api/Models/Api20230301/JobDefinitionUpdateProperties.json.cs b/src/StorageMover/generated/api/Models/Api20231001/JobDefinitionUpdateProperties.json.cs similarity index 97% rename from src/StorageMover/generated/api/Models/Api20230301/JobDefinitionUpdateProperties.json.cs rename to src/StorageMover/generated/api/Models/Api20231001/JobDefinitionUpdateProperties.json.cs index bed43d08e14e..e156f556659e 100644 --- a/src/StorageMover/generated/api/Models/Api20230301/JobDefinitionUpdateProperties.json.cs +++ b/src/StorageMover/generated/api/Models/Api20231001/JobDefinitionUpdateProperties.json.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301 +namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001 { using static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Extensions; @@ -54,13 +54,13 @@ public partial class JobDefinitionUpdateProperties partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobDefinitionUpdateProperties. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobDefinitionUpdateProperties. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobDefinitionUpdateProperties. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobDefinitionUpdateProperties. /// - public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobDefinitionUpdateProperties FromJson(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobDefinitionUpdateProperties FromJson(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonObject json ? new JobDefinitionUpdateProperties(json) : null; } diff --git a/src/StorageMover/generated/api/Models/Api20230301/JobRun.PowerShell.cs b/src/StorageMover/generated/api/Models/Api20231001/JobRun.PowerShell.cs similarity index 66% rename from src/StorageMover/generated/api/Models/Api20230301/JobRun.PowerShell.cs rename to src/StorageMover/generated/api/Models/Api20231001/JobRun.PowerShell.cs index b1818176e208..5065b7de7929 100644 --- a/src/StorageMover/generated/api/Models/Api20230301/JobRun.PowerShell.cs +++ b/src/StorageMover/generated/api/Models/Api20231001/JobRun.PowerShell.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301 +namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001 { using Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.PowerShell; @@ -63,27 +63,27 @@ public partial class JobRun partial void OverrideToString(ref string stringResult, ref bool returnNow); /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Collections.IDictionary content that should be used. /// - /// an instance of . + /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobRun DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobRun DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new JobRun(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. /// - /// an instance of . + /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobRun DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobRun DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new JobRun(content); } @@ -93,10 +93,10 @@ public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301 /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobRun FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobRun FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonNode.Parse(jsonText)); /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. @@ -111,177 +111,177 @@ internal JobRun(global::System.Collections.IDictionary content) // actually deserialize if (content.Contains("Property")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobRunInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobRunProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobRunInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.JobRunPropertiesTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobRunInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobRunProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobRunInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.JobRunPropertiesTypeConverter.ConvertFrom); + } + if (content.Contains("SystemDataCreatedBy")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IResourceInternal)this).SystemDataCreatedBy = (string) content.GetValueForProperty("SystemDataCreatedBy",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IResourceInternal)this).SystemDataCreatedBy, global::System.Convert.ToString); + } + if (content.Contains("SystemDataCreatedAt")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IResourceInternal)this).SystemDataCreatedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataCreatedAt",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IResourceInternal)this).SystemDataCreatedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + } + if (content.Contains("SystemDataCreatedByType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IResourceInternal)this).SystemDataCreatedByType = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.CreatedByType?) content.GetValueForProperty("SystemDataCreatedByType",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IResourceInternal)this).SystemDataCreatedByType, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.CreatedByType.CreateFrom); + } + if (content.Contains("SystemDataLastModifiedBy")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IResourceInternal)this).SystemDataLastModifiedBy = (string) content.GetValueForProperty("SystemDataLastModifiedBy",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IResourceInternal)this).SystemDataLastModifiedBy, global::System.Convert.ToString); + } + if (content.Contains("SystemDataLastModifiedByType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IResourceInternal)this).SystemDataLastModifiedByType = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.CreatedByType?) content.GetValueForProperty("SystemDataLastModifiedByType",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IResourceInternal)this).SystemDataLastModifiedByType, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.CreatedByType.CreateFrom); + } + if (content.Contains("SystemDataLastModifiedAt")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IResourceInternal)this).SystemDataLastModifiedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataLastModifiedAt",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IResourceInternal)this).SystemDataLastModifiedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); } if (content.Contains("SystemData")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobRunInternal)this).SystemData = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.ISystemData) content.GetValueForProperty("SystemData",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobRunInternal)this).SystemData, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.SystemDataTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IResourceInternal)this).SystemData = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.ISystemData) content.GetValueForProperty("SystemData",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IResourceInternal)this).SystemData, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.SystemDataTypeConverter.ConvertFrom); } if (content.Contains("Id")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.IResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.IResourceInternal)this).Id, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IResourceInternal)this).Id, global::System.Convert.ToString); } if (content.Contains("Name")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.IResourceInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.IResourceInternal)this).Name, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IResourceInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IResourceInternal)this).Name, global::System.Convert.ToString); } if (content.Contains("Type")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.IResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.IResourceInternal)this).Type, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IResourceInternal)this).Type, global::System.Convert.ToString); } if (content.Contains("ProvisioningState")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobRunInternal)this).ProvisioningState = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.ProvisioningState?) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobRunInternal)this).ProvisioningState, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.ProvisioningState.CreateFrom); - } - if (content.Contains("SystemDataCreatedBy")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobRunInternal)this).SystemDataCreatedBy = (string) content.GetValueForProperty("SystemDataCreatedBy",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobRunInternal)this).SystemDataCreatedBy, global::System.Convert.ToString); - } - if (content.Contains("SystemDataCreatedAt")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobRunInternal)this).SystemDataCreatedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataCreatedAt",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobRunInternal)this).SystemDataCreatedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobRunInternal)this).ProvisioningState = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.ProvisioningState?) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobRunInternal)this).ProvisioningState, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.ProvisioningState.CreateFrom); } if (content.Contains("Error")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobRunInternal)this).Error = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobRunError) content.GetValueForProperty("Error",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobRunInternal)this).Error, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.JobRunErrorTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobRunInternal)this).Error = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobRunError) content.GetValueForProperty("Error",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobRunInternal)this).Error, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.JobRunErrorTypeConverter.ConvertFrom); } if (content.Contains("Status")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobRunInternal)this).Status = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.JobRunStatus?) content.GetValueForProperty("Status",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobRunInternal)this).Status, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.JobRunStatus.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobRunInternal)this).Status = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.JobRunStatus?) content.GetValueForProperty("Status",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobRunInternal)this).Status, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.JobRunStatus.CreateFrom); } if (content.Contains("ScanStatus")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobRunInternal)this).ScanStatus = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.JobRunScanStatus?) content.GetValueForProperty("ScanStatus",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobRunInternal)this).ScanStatus, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.JobRunScanStatus.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobRunInternal)this).ScanStatus = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.JobRunScanStatus?) content.GetValueForProperty("ScanStatus",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobRunInternal)this).ScanStatus, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.JobRunScanStatus.CreateFrom); } if (content.Contains("AgentName")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobRunInternal)this).AgentName = (string) content.GetValueForProperty("AgentName",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobRunInternal)this).AgentName, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobRunInternal)this).AgentName = (string) content.GetValueForProperty("AgentName",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobRunInternal)this).AgentName, global::System.Convert.ToString); } if (content.Contains("AgentResourceId")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobRunInternal)this).AgentResourceId = (string) content.GetValueForProperty("AgentResourceId",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobRunInternal)this).AgentResourceId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobRunInternal)this).AgentResourceId = (string) content.GetValueForProperty("AgentResourceId",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobRunInternal)this).AgentResourceId, global::System.Convert.ToString); } if (content.Contains("ExecutionStartTime")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobRunInternal)this).ExecutionStartTime = (global::System.DateTime?) content.GetValueForProperty("ExecutionStartTime",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobRunInternal)this).ExecutionStartTime, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobRunInternal)this).ExecutionStartTime = (global::System.DateTime?) content.GetValueForProperty("ExecutionStartTime",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobRunInternal)this).ExecutionStartTime, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); } if (content.Contains("ExecutionEndTime")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobRunInternal)this).ExecutionEndTime = (global::System.DateTime?) content.GetValueForProperty("ExecutionEndTime",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobRunInternal)this).ExecutionEndTime, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobRunInternal)this).ExecutionEndTime = (global::System.DateTime?) content.GetValueForProperty("ExecutionEndTime",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobRunInternal)this).ExecutionEndTime, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); } if (content.Contains("LastStatusUpdate")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobRunInternal)this).LastStatusUpdate = (global::System.DateTime?) content.GetValueForProperty("LastStatusUpdate",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobRunInternal)this).LastStatusUpdate, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobRunInternal)this).LastStatusUpdate = (global::System.DateTime?) content.GetValueForProperty("LastStatusUpdate",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobRunInternal)this).LastStatusUpdate, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); } if (content.Contains("ItemsScanned")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobRunInternal)this).ItemsScanned = (long?) content.GetValueForProperty("ItemsScanned",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobRunInternal)this).ItemsScanned, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobRunInternal)this).ItemsScanned = (long?) content.GetValueForProperty("ItemsScanned",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobRunInternal)this).ItemsScanned, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); } if (content.Contains("ItemsExcluded")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobRunInternal)this).ItemsExcluded = (long?) content.GetValueForProperty("ItemsExcluded",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobRunInternal)this).ItemsExcluded, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobRunInternal)this).ItemsExcluded = (long?) content.GetValueForProperty("ItemsExcluded",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobRunInternal)this).ItemsExcluded, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); } if (content.Contains("ItemsUnsupported")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobRunInternal)this).ItemsUnsupported = (long?) content.GetValueForProperty("ItemsUnsupported",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobRunInternal)this).ItemsUnsupported, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobRunInternal)this).ItemsUnsupported = (long?) content.GetValueForProperty("ItemsUnsupported",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobRunInternal)this).ItemsUnsupported, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); } if (content.Contains("ItemsNoTransferNeeded")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobRunInternal)this).ItemsNoTransferNeeded = (long?) content.GetValueForProperty("ItemsNoTransferNeeded",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobRunInternal)this).ItemsNoTransferNeeded, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobRunInternal)this).ItemsNoTransferNeeded = (long?) content.GetValueForProperty("ItemsNoTransferNeeded",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobRunInternal)this).ItemsNoTransferNeeded, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); } if (content.Contains("ItemsFailed")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobRunInternal)this).ItemsFailed = (long?) content.GetValueForProperty("ItemsFailed",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobRunInternal)this).ItemsFailed, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobRunInternal)this).ItemsFailed = (long?) content.GetValueForProperty("ItemsFailed",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobRunInternal)this).ItemsFailed, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); } if (content.Contains("ItemsTransferred")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobRunInternal)this).ItemsTransferred = (long?) content.GetValueForProperty("ItemsTransferred",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobRunInternal)this).ItemsTransferred, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobRunInternal)this).ItemsTransferred = (long?) content.GetValueForProperty("ItemsTransferred",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobRunInternal)this).ItemsTransferred, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); } if (content.Contains("BytesScanned")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobRunInternal)this).BytesScanned = (long?) content.GetValueForProperty("BytesScanned",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobRunInternal)this).BytesScanned, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobRunInternal)this).BytesScanned = (long?) content.GetValueForProperty("BytesScanned",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobRunInternal)this).BytesScanned, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); } if (content.Contains("BytesExcluded")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobRunInternal)this).BytesExcluded = (long?) content.GetValueForProperty("BytesExcluded",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobRunInternal)this).BytesExcluded, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobRunInternal)this).BytesExcluded = (long?) content.GetValueForProperty("BytesExcluded",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobRunInternal)this).BytesExcluded, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); } if (content.Contains("BytesUnsupported")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobRunInternal)this).BytesUnsupported = (long?) content.GetValueForProperty("BytesUnsupported",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobRunInternal)this).BytesUnsupported, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobRunInternal)this).BytesUnsupported = (long?) content.GetValueForProperty("BytesUnsupported",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobRunInternal)this).BytesUnsupported, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); } if (content.Contains("BytesNoTransferNeeded")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobRunInternal)this).BytesNoTransferNeeded = (long?) content.GetValueForProperty("BytesNoTransferNeeded",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobRunInternal)this).BytesNoTransferNeeded, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobRunInternal)this).BytesNoTransferNeeded = (long?) content.GetValueForProperty("BytesNoTransferNeeded",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobRunInternal)this).BytesNoTransferNeeded, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); } if (content.Contains("BytesFailed")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobRunInternal)this).BytesFailed = (long?) content.GetValueForProperty("BytesFailed",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobRunInternal)this).BytesFailed, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobRunInternal)this).BytesFailed = (long?) content.GetValueForProperty("BytesFailed",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobRunInternal)this).BytesFailed, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); } if (content.Contains("BytesTransferred")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobRunInternal)this).BytesTransferred = (long?) content.GetValueForProperty("BytesTransferred",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobRunInternal)this).BytesTransferred, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobRunInternal)this).BytesTransferred = (long?) content.GetValueForProperty("BytesTransferred",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobRunInternal)this).BytesTransferred, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); } if (content.Contains("SourceName")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobRunInternal)this).SourceName = (string) content.GetValueForProperty("SourceName",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobRunInternal)this).SourceName, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobRunInternal)this).SourceName = (string) content.GetValueForProperty("SourceName",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobRunInternal)this).SourceName, global::System.Convert.ToString); } if (content.Contains("SourceResourceId")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobRunInternal)this).SourceResourceId = (string) content.GetValueForProperty("SourceResourceId",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobRunInternal)this).SourceResourceId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobRunInternal)this).SourceResourceId = (string) content.GetValueForProperty("SourceResourceId",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobRunInternal)this).SourceResourceId, global::System.Convert.ToString); } if (content.Contains("SourceProperty")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobRunInternal)this).SourceProperty = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.IAny) content.GetValueForProperty("SourceProperty",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobRunInternal)this).SourceProperty, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.AnyTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobRunInternal)this).SourceProperty = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.IAny) content.GetValueForProperty("SourceProperty",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobRunInternal)this).SourceProperty, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.AnyTypeConverter.ConvertFrom); } if (content.Contains("TargetName")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobRunInternal)this).TargetName = (string) content.GetValueForProperty("TargetName",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobRunInternal)this).TargetName, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobRunInternal)this).TargetName = (string) content.GetValueForProperty("TargetName",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobRunInternal)this).TargetName, global::System.Convert.ToString); } if (content.Contains("TargetResourceId")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobRunInternal)this).TargetResourceId = (string) content.GetValueForProperty("TargetResourceId",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobRunInternal)this).TargetResourceId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobRunInternal)this).TargetResourceId = (string) content.GetValueForProperty("TargetResourceId",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobRunInternal)this).TargetResourceId, global::System.Convert.ToString); } if (content.Contains("TargetProperty")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobRunInternal)this).TargetProperty = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.IAny) content.GetValueForProperty("TargetProperty",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobRunInternal)this).TargetProperty, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.AnyTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobRunInternal)this).TargetProperty = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.IAny) content.GetValueForProperty("TargetProperty",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobRunInternal)this).TargetProperty, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.AnyTypeConverter.ConvertFrom); } if (content.Contains("JobDefinitionProperty")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobRunInternal)this).JobDefinitionProperty = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.IAny) content.GetValueForProperty("JobDefinitionProperty",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobRunInternal)this).JobDefinitionProperty, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.AnyTypeConverter.ConvertFrom); - } - if (content.Contains("SystemDataCreatedByType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobRunInternal)this).SystemDataCreatedByType = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.CreatedByType?) content.GetValueForProperty("SystemDataCreatedByType",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobRunInternal)this).SystemDataCreatedByType, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.CreatedByType.CreateFrom); - } - if (content.Contains("SystemDataLastModifiedBy")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobRunInternal)this).SystemDataLastModifiedBy = (string) content.GetValueForProperty("SystemDataLastModifiedBy",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobRunInternal)this).SystemDataLastModifiedBy, global::System.Convert.ToString); - } - if (content.Contains("SystemDataLastModifiedByType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobRunInternal)this).SystemDataLastModifiedByType = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.CreatedByType?) content.GetValueForProperty("SystemDataLastModifiedByType",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobRunInternal)this).SystemDataLastModifiedByType, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.CreatedByType.CreateFrom); - } - if (content.Contains("SystemDataLastModifiedAt")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobRunInternal)this).SystemDataLastModifiedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataLastModifiedAt",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobRunInternal)this).SystemDataLastModifiedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobRunInternal)this).JobDefinitionProperty = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.IAny) content.GetValueForProperty("JobDefinitionProperty",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobRunInternal)this).JobDefinitionProperty, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.AnyTypeConverter.ConvertFrom); } if (content.Contains("ErrorCode")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobRunInternal)this).ErrorCode = (string) content.GetValueForProperty("ErrorCode",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobRunInternal)this).ErrorCode, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobRunInternal)this).ErrorCode = (string) content.GetValueForProperty("ErrorCode",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobRunInternal)this).ErrorCode, global::System.Convert.ToString); } if (content.Contains("ErrorMessage")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobRunInternal)this).ErrorMessage = (string) content.GetValueForProperty("ErrorMessage",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobRunInternal)this).ErrorMessage, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobRunInternal)this).ErrorMessage = (string) content.GetValueForProperty("ErrorMessage",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobRunInternal)this).ErrorMessage, global::System.Convert.ToString); } if (content.Contains("Target")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobRunInternal)this).Target = (string) content.GetValueForProperty("Target",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobRunInternal)this).Target, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobRunInternal)this).Target = (string) content.GetValueForProperty("Target",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobRunInternal)this).Target, global::System.Convert.ToString); } AfterDeserializeDictionary(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -296,171 +296,171 @@ internal JobRun(global::System.Management.Automation.PSObject content) // actually deserialize if (content.Contains("Property")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobRunInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobRunProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobRunInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.JobRunPropertiesTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobRunInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobRunProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobRunInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.JobRunPropertiesTypeConverter.ConvertFrom); + } + if (content.Contains("SystemDataCreatedBy")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IResourceInternal)this).SystemDataCreatedBy = (string) content.GetValueForProperty("SystemDataCreatedBy",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IResourceInternal)this).SystemDataCreatedBy, global::System.Convert.ToString); + } + if (content.Contains("SystemDataCreatedAt")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IResourceInternal)this).SystemDataCreatedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataCreatedAt",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IResourceInternal)this).SystemDataCreatedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + } + if (content.Contains("SystemDataCreatedByType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IResourceInternal)this).SystemDataCreatedByType = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.CreatedByType?) content.GetValueForProperty("SystemDataCreatedByType",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IResourceInternal)this).SystemDataCreatedByType, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.CreatedByType.CreateFrom); + } + if (content.Contains("SystemDataLastModifiedBy")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IResourceInternal)this).SystemDataLastModifiedBy = (string) content.GetValueForProperty("SystemDataLastModifiedBy",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IResourceInternal)this).SystemDataLastModifiedBy, global::System.Convert.ToString); + } + if (content.Contains("SystemDataLastModifiedByType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IResourceInternal)this).SystemDataLastModifiedByType = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.CreatedByType?) content.GetValueForProperty("SystemDataLastModifiedByType",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IResourceInternal)this).SystemDataLastModifiedByType, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.CreatedByType.CreateFrom); + } + if (content.Contains("SystemDataLastModifiedAt")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IResourceInternal)this).SystemDataLastModifiedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataLastModifiedAt",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IResourceInternal)this).SystemDataLastModifiedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); } if (content.Contains("SystemData")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobRunInternal)this).SystemData = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.ISystemData) content.GetValueForProperty("SystemData",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobRunInternal)this).SystemData, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.SystemDataTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IResourceInternal)this).SystemData = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.ISystemData) content.GetValueForProperty("SystemData",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IResourceInternal)this).SystemData, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.SystemDataTypeConverter.ConvertFrom); } if (content.Contains("Id")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.IResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.IResourceInternal)this).Id, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IResourceInternal)this).Id, global::System.Convert.ToString); } if (content.Contains("Name")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.IResourceInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.IResourceInternal)this).Name, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IResourceInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IResourceInternal)this).Name, global::System.Convert.ToString); } if (content.Contains("Type")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.IResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.IResourceInternal)this).Type, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IResourceInternal)this).Type, global::System.Convert.ToString); } if (content.Contains("ProvisioningState")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobRunInternal)this).ProvisioningState = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.ProvisioningState?) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobRunInternal)this).ProvisioningState, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.ProvisioningState.CreateFrom); - } - if (content.Contains("SystemDataCreatedBy")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobRunInternal)this).SystemDataCreatedBy = (string) content.GetValueForProperty("SystemDataCreatedBy",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobRunInternal)this).SystemDataCreatedBy, global::System.Convert.ToString); - } - if (content.Contains("SystemDataCreatedAt")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobRunInternal)this).SystemDataCreatedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataCreatedAt",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobRunInternal)this).SystemDataCreatedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobRunInternal)this).ProvisioningState = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.ProvisioningState?) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobRunInternal)this).ProvisioningState, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.ProvisioningState.CreateFrom); } if (content.Contains("Error")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobRunInternal)this).Error = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobRunError) content.GetValueForProperty("Error",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobRunInternal)this).Error, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.JobRunErrorTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobRunInternal)this).Error = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobRunError) content.GetValueForProperty("Error",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobRunInternal)this).Error, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.JobRunErrorTypeConverter.ConvertFrom); } if (content.Contains("Status")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobRunInternal)this).Status = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.JobRunStatus?) content.GetValueForProperty("Status",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobRunInternal)this).Status, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.JobRunStatus.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobRunInternal)this).Status = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.JobRunStatus?) content.GetValueForProperty("Status",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobRunInternal)this).Status, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.JobRunStatus.CreateFrom); } if (content.Contains("ScanStatus")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobRunInternal)this).ScanStatus = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.JobRunScanStatus?) content.GetValueForProperty("ScanStatus",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobRunInternal)this).ScanStatus, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.JobRunScanStatus.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobRunInternal)this).ScanStatus = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.JobRunScanStatus?) content.GetValueForProperty("ScanStatus",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobRunInternal)this).ScanStatus, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.JobRunScanStatus.CreateFrom); } if (content.Contains("AgentName")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobRunInternal)this).AgentName = (string) content.GetValueForProperty("AgentName",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobRunInternal)this).AgentName, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobRunInternal)this).AgentName = (string) content.GetValueForProperty("AgentName",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobRunInternal)this).AgentName, global::System.Convert.ToString); } if (content.Contains("AgentResourceId")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobRunInternal)this).AgentResourceId = (string) content.GetValueForProperty("AgentResourceId",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobRunInternal)this).AgentResourceId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobRunInternal)this).AgentResourceId = (string) content.GetValueForProperty("AgentResourceId",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobRunInternal)this).AgentResourceId, global::System.Convert.ToString); } if (content.Contains("ExecutionStartTime")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobRunInternal)this).ExecutionStartTime = (global::System.DateTime?) content.GetValueForProperty("ExecutionStartTime",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobRunInternal)this).ExecutionStartTime, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobRunInternal)this).ExecutionStartTime = (global::System.DateTime?) content.GetValueForProperty("ExecutionStartTime",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobRunInternal)this).ExecutionStartTime, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); } if (content.Contains("ExecutionEndTime")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobRunInternal)this).ExecutionEndTime = (global::System.DateTime?) content.GetValueForProperty("ExecutionEndTime",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobRunInternal)this).ExecutionEndTime, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobRunInternal)this).ExecutionEndTime = (global::System.DateTime?) content.GetValueForProperty("ExecutionEndTime",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobRunInternal)this).ExecutionEndTime, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); } if (content.Contains("LastStatusUpdate")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobRunInternal)this).LastStatusUpdate = (global::System.DateTime?) content.GetValueForProperty("LastStatusUpdate",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobRunInternal)this).LastStatusUpdate, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobRunInternal)this).LastStatusUpdate = (global::System.DateTime?) content.GetValueForProperty("LastStatusUpdate",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobRunInternal)this).LastStatusUpdate, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); } if (content.Contains("ItemsScanned")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobRunInternal)this).ItemsScanned = (long?) content.GetValueForProperty("ItemsScanned",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobRunInternal)this).ItemsScanned, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobRunInternal)this).ItemsScanned = (long?) content.GetValueForProperty("ItemsScanned",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobRunInternal)this).ItemsScanned, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); } if (content.Contains("ItemsExcluded")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobRunInternal)this).ItemsExcluded = (long?) content.GetValueForProperty("ItemsExcluded",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobRunInternal)this).ItemsExcluded, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobRunInternal)this).ItemsExcluded = (long?) content.GetValueForProperty("ItemsExcluded",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobRunInternal)this).ItemsExcluded, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); } if (content.Contains("ItemsUnsupported")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobRunInternal)this).ItemsUnsupported = (long?) content.GetValueForProperty("ItemsUnsupported",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobRunInternal)this).ItemsUnsupported, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobRunInternal)this).ItemsUnsupported = (long?) content.GetValueForProperty("ItemsUnsupported",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobRunInternal)this).ItemsUnsupported, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); } if (content.Contains("ItemsNoTransferNeeded")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobRunInternal)this).ItemsNoTransferNeeded = (long?) content.GetValueForProperty("ItemsNoTransferNeeded",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobRunInternal)this).ItemsNoTransferNeeded, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobRunInternal)this).ItemsNoTransferNeeded = (long?) content.GetValueForProperty("ItemsNoTransferNeeded",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobRunInternal)this).ItemsNoTransferNeeded, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); } if (content.Contains("ItemsFailed")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobRunInternal)this).ItemsFailed = (long?) content.GetValueForProperty("ItemsFailed",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobRunInternal)this).ItemsFailed, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobRunInternal)this).ItemsFailed = (long?) content.GetValueForProperty("ItemsFailed",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobRunInternal)this).ItemsFailed, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); } if (content.Contains("ItemsTransferred")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobRunInternal)this).ItemsTransferred = (long?) content.GetValueForProperty("ItemsTransferred",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobRunInternal)this).ItemsTransferred, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobRunInternal)this).ItemsTransferred = (long?) content.GetValueForProperty("ItemsTransferred",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobRunInternal)this).ItemsTransferred, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); } if (content.Contains("BytesScanned")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobRunInternal)this).BytesScanned = (long?) content.GetValueForProperty("BytesScanned",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobRunInternal)this).BytesScanned, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobRunInternal)this).BytesScanned = (long?) content.GetValueForProperty("BytesScanned",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobRunInternal)this).BytesScanned, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); } if (content.Contains("BytesExcluded")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobRunInternal)this).BytesExcluded = (long?) content.GetValueForProperty("BytesExcluded",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobRunInternal)this).BytesExcluded, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobRunInternal)this).BytesExcluded = (long?) content.GetValueForProperty("BytesExcluded",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobRunInternal)this).BytesExcluded, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); } if (content.Contains("BytesUnsupported")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobRunInternal)this).BytesUnsupported = (long?) content.GetValueForProperty("BytesUnsupported",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobRunInternal)this).BytesUnsupported, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobRunInternal)this).BytesUnsupported = (long?) content.GetValueForProperty("BytesUnsupported",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobRunInternal)this).BytesUnsupported, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); } if (content.Contains("BytesNoTransferNeeded")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobRunInternal)this).BytesNoTransferNeeded = (long?) content.GetValueForProperty("BytesNoTransferNeeded",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobRunInternal)this).BytesNoTransferNeeded, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobRunInternal)this).BytesNoTransferNeeded = (long?) content.GetValueForProperty("BytesNoTransferNeeded",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobRunInternal)this).BytesNoTransferNeeded, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); } if (content.Contains("BytesFailed")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobRunInternal)this).BytesFailed = (long?) content.GetValueForProperty("BytesFailed",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobRunInternal)this).BytesFailed, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobRunInternal)this).BytesFailed = (long?) content.GetValueForProperty("BytesFailed",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobRunInternal)this).BytesFailed, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); } if (content.Contains("BytesTransferred")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobRunInternal)this).BytesTransferred = (long?) content.GetValueForProperty("BytesTransferred",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobRunInternal)this).BytesTransferred, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobRunInternal)this).BytesTransferred = (long?) content.GetValueForProperty("BytesTransferred",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobRunInternal)this).BytesTransferred, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); } if (content.Contains("SourceName")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobRunInternal)this).SourceName = (string) content.GetValueForProperty("SourceName",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobRunInternal)this).SourceName, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobRunInternal)this).SourceName = (string) content.GetValueForProperty("SourceName",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobRunInternal)this).SourceName, global::System.Convert.ToString); } if (content.Contains("SourceResourceId")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobRunInternal)this).SourceResourceId = (string) content.GetValueForProperty("SourceResourceId",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobRunInternal)this).SourceResourceId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobRunInternal)this).SourceResourceId = (string) content.GetValueForProperty("SourceResourceId",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobRunInternal)this).SourceResourceId, global::System.Convert.ToString); } if (content.Contains("SourceProperty")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobRunInternal)this).SourceProperty = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.IAny) content.GetValueForProperty("SourceProperty",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobRunInternal)this).SourceProperty, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.AnyTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobRunInternal)this).SourceProperty = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.IAny) content.GetValueForProperty("SourceProperty",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobRunInternal)this).SourceProperty, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.AnyTypeConverter.ConvertFrom); } if (content.Contains("TargetName")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobRunInternal)this).TargetName = (string) content.GetValueForProperty("TargetName",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobRunInternal)this).TargetName, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobRunInternal)this).TargetName = (string) content.GetValueForProperty("TargetName",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobRunInternal)this).TargetName, global::System.Convert.ToString); } if (content.Contains("TargetResourceId")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobRunInternal)this).TargetResourceId = (string) content.GetValueForProperty("TargetResourceId",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobRunInternal)this).TargetResourceId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobRunInternal)this).TargetResourceId = (string) content.GetValueForProperty("TargetResourceId",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobRunInternal)this).TargetResourceId, global::System.Convert.ToString); } if (content.Contains("TargetProperty")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobRunInternal)this).TargetProperty = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.IAny) content.GetValueForProperty("TargetProperty",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobRunInternal)this).TargetProperty, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.AnyTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobRunInternal)this).TargetProperty = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.IAny) content.GetValueForProperty("TargetProperty",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobRunInternal)this).TargetProperty, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.AnyTypeConverter.ConvertFrom); } if (content.Contains("JobDefinitionProperty")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobRunInternal)this).JobDefinitionProperty = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.IAny) content.GetValueForProperty("JobDefinitionProperty",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobRunInternal)this).JobDefinitionProperty, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.AnyTypeConverter.ConvertFrom); - } - if (content.Contains("SystemDataCreatedByType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobRunInternal)this).SystemDataCreatedByType = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.CreatedByType?) content.GetValueForProperty("SystemDataCreatedByType",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobRunInternal)this).SystemDataCreatedByType, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.CreatedByType.CreateFrom); - } - if (content.Contains("SystemDataLastModifiedBy")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobRunInternal)this).SystemDataLastModifiedBy = (string) content.GetValueForProperty("SystemDataLastModifiedBy",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobRunInternal)this).SystemDataLastModifiedBy, global::System.Convert.ToString); - } - if (content.Contains("SystemDataLastModifiedByType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobRunInternal)this).SystemDataLastModifiedByType = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.CreatedByType?) content.GetValueForProperty("SystemDataLastModifiedByType",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobRunInternal)this).SystemDataLastModifiedByType, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.CreatedByType.CreateFrom); - } - if (content.Contains("SystemDataLastModifiedAt")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobRunInternal)this).SystemDataLastModifiedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataLastModifiedAt",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobRunInternal)this).SystemDataLastModifiedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobRunInternal)this).JobDefinitionProperty = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.IAny) content.GetValueForProperty("JobDefinitionProperty",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobRunInternal)this).JobDefinitionProperty, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.AnyTypeConverter.ConvertFrom); } if (content.Contains("ErrorCode")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobRunInternal)this).ErrorCode = (string) content.GetValueForProperty("ErrorCode",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobRunInternal)this).ErrorCode, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobRunInternal)this).ErrorCode = (string) content.GetValueForProperty("ErrorCode",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobRunInternal)this).ErrorCode, global::System.Convert.ToString); } if (content.Contains("ErrorMessage")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobRunInternal)this).ErrorMessage = (string) content.GetValueForProperty("ErrorMessage",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobRunInternal)this).ErrorMessage, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobRunInternal)this).ErrorMessage = (string) content.GetValueForProperty("ErrorMessage",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobRunInternal)this).ErrorMessage, global::System.Convert.ToString); } if (content.Contains("Target")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobRunInternal)this).Target = (string) content.GetValueForProperty("Target",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobRunInternal)this).Target, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobRunInternal)this).Target = (string) content.GetValueForProperty("Target",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobRunInternal)this).Target, global::System.Convert.ToString); } AfterDeserializePSObject(content); } diff --git a/src/StorageMover/generated/api/Models/Api20230301/JobRun.TypeConverter.cs b/src/StorageMover/generated/api/Models/Api20231001/JobRun.TypeConverter.cs similarity index 98% rename from src/StorageMover/generated/api/Models/Api20230301/JobRun.TypeConverter.cs rename to src/StorageMover/generated/api/Models/Api20231001/JobRun.TypeConverter.cs index 3930c20f3882..eae91810e196 100644 --- a/src/StorageMover/generated/api/Models/Api20230301/JobRun.TypeConverter.cs +++ b/src/StorageMover/generated/api/Models/Api20231001/JobRun.TypeConverter.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301 +namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001 { using Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.PowerShell; @@ -105,14 +105,14 @@ public static bool CanConvertFrom(dynamic sourceValue) /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobRun ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobRun ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobRun).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobRun).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/StorageMover/generated/api/Models/Api20230301/JobRun.cs b/src/StorageMover/generated/api/Models/Api20231001/JobRun.cs similarity index 74% rename from src/StorageMover/generated/api/Models/Api20230301/JobRun.cs rename to src/StorageMover/generated/api/Models/Api20231001/JobRun.cs index 8c5c0899ae72..442cd8ed35a7 100644 --- a/src/StorageMover/generated/api/Models/Api20230301/JobRun.cs +++ b/src/StorageMover/generated/api/Models/Api20231001/JobRun.cs @@ -3,305 +3,304 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301 +namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001 { using static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Extensions; /// The Job Run resource. [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.DoNotFormat] public partial class JobRun : - Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobRun, - Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobRunInternal, + Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobRun, + Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobRunInternal, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.IValidates { /// - /// Backing field for Inherited model /// - private Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.IResource __resource = new Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.Resource(); + private Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IResource __resource = new Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.Resource(); /// Name of the Agent assigned to this run. [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Origin(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.PropertyOrigin.Inlined)] - public string AgentName { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobRunPropertiesInternal)Property).AgentName; } + public string AgentName { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobRunPropertiesInternal)Property).AgentName; } /// Fully qualified resource id of the Agent assigned to this run. [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Origin(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.PropertyOrigin.Inlined)] - public string AgentResourceId { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobRunPropertiesInternal)Property).AgentResourceId; } + public string AgentResourceId { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobRunPropertiesInternal)Property).AgentResourceId; } /// /// Bytes of data that will not be transferred, as they are excluded by user configuration. /// [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Origin(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.PropertyOrigin.Inlined)] - public long? BytesExcluded { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobRunPropertiesInternal)Property).BytesExcluded; } + public long? BytesExcluded { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobRunPropertiesInternal)Property).BytesExcluded; } /// Bytes of data that were attempted to transfer and failed. [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Origin(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.PropertyOrigin.Inlined)] - public long? BytesFailed { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobRunPropertiesInternal)Property).BytesFailed; } + public long? BytesFailed { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobRunPropertiesInternal)Property).BytesFailed; } /// /// Bytes of data that will not be transferred, as they are already found on target (e.g. mirror mode). /// [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Origin(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.PropertyOrigin.Inlined)] - public long? BytesNoTransferNeeded { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobRunPropertiesInternal)Property).BytesNoTransferNeeded; } + public long? BytesNoTransferNeeded { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobRunPropertiesInternal)Property).BytesNoTransferNeeded; } /// Bytes of data scanned so far in source. [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Origin(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.PropertyOrigin.Inlined)] - public long? BytesScanned { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobRunPropertiesInternal)Property).BytesScanned; } + public long? BytesScanned { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobRunPropertiesInternal)Property).BytesScanned; } /// Bytes of data successfully transferred to target. [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Origin(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.PropertyOrigin.Inlined)] - public long? BytesTransferred { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobRunPropertiesInternal)Property).BytesTransferred; } + public long? BytesTransferred { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobRunPropertiesInternal)Property).BytesTransferred; } /// Bytes of data that will not be transferred, as they are unsupported on target. [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Origin(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.PropertyOrigin.Inlined)] - public long? BytesUnsupported { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobRunPropertiesInternal)Property).BytesUnsupported; } + public long? BytesUnsupported { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobRunPropertiesInternal)Property).BytesUnsupported; } /// Error code of the given entry. [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Origin(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.PropertyOrigin.Inlined)] - public string ErrorCode { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobRunPropertiesInternal)Property).Code; set => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobRunPropertiesInternal)Property).Code = value ?? null; } + public string ErrorCode { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobRunPropertiesInternal)Property).Code; set => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobRunPropertiesInternal)Property).Code = value ?? null; } /// Error message of the given entry. [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Origin(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.PropertyOrigin.Inlined)] - public string ErrorMessage { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobRunPropertiesInternal)Property).Message; set => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobRunPropertiesInternal)Property).Message = value ?? null; } + public string ErrorMessage { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobRunPropertiesInternal)Property).Message; set => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobRunPropertiesInternal)Property).Message = value ?? null; } /// End time of the run. Null if Agent has not reported that the job has ended. [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Origin(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.PropertyOrigin.Inlined)] - public global::System.DateTime? ExecutionEndTime { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobRunPropertiesInternal)Property).ExecutionEndTime; } + public global::System.DateTime? ExecutionEndTime { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobRunPropertiesInternal)Property).ExecutionEndTime; } /// Start time of the run. Null if no Agent reported that the job has started. [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Origin(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.PropertyOrigin.Inlined)] - public global::System.DateTime? ExecutionStartTime { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobRunPropertiesInternal)Property).ExecutionStartTime; } + public global::System.DateTime? ExecutionStartTime { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobRunPropertiesInternal)Property).ExecutionStartTime; } /// /// Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} /// [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Origin(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.PropertyOrigin.Inherited)] - public string Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.IResourceInternal)__resource).Id; } + public string Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IResourceInternal)__resource).Id; } /// /// Number of items that will not be transferred, as they are excluded by user configuration. /// [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Origin(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.PropertyOrigin.Inlined)] - public long? ItemsExcluded { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobRunPropertiesInternal)Property).ItemsExcluded; } + public long? ItemsExcluded { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobRunPropertiesInternal)Property).ItemsExcluded; } /// Number of items that were attempted to transfer and failed. [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Origin(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.PropertyOrigin.Inlined)] - public long? ItemsFailed { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobRunPropertiesInternal)Property).ItemsFailed; } + public long? ItemsFailed { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobRunPropertiesInternal)Property).ItemsFailed; } /// /// Number of items that will not be transferred, as they are already found on target (e.g. mirror mode). /// [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Origin(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.PropertyOrigin.Inlined)] - public long? ItemsNoTransferNeeded { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobRunPropertiesInternal)Property).ItemsNoTransferNeeded; } + public long? ItemsNoTransferNeeded { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobRunPropertiesInternal)Property).ItemsNoTransferNeeded; } /// Number of items scanned so far in source. [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Origin(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.PropertyOrigin.Inlined)] - public long? ItemsScanned { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobRunPropertiesInternal)Property).ItemsScanned; } + public long? ItemsScanned { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobRunPropertiesInternal)Property).ItemsScanned; } /// Number of items successfully transferred to target. [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Origin(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.PropertyOrigin.Inlined)] - public long? ItemsTransferred { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobRunPropertiesInternal)Property).ItemsTransferred; } + public long? ItemsTransferred { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobRunPropertiesInternal)Property).ItemsTransferred; } /// /// Number of items that will not be transferred, as they are unsupported on target. /// [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Origin(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.PropertyOrigin.Inlined)] - public long? ItemsUnsupported { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobRunPropertiesInternal)Property).ItemsUnsupported; } + public long? ItemsUnsupported { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobRunPropertiesInternal)Property).ItemsUnsupported; } /// Copy of parent Job Definition's properties at time of Job Run creation. [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Origin(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.PropertyOrigin.Inlined)] - public Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.IAny JobDefinitionProperty { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobRunPropertiesInternal)Property).JobDefinitionProperty; } + public Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.IAny JobDefinitionProperty { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobRunPropertiesInternal)Property).JobDefinitionProperty; } /// The last updated time of the Job Run. [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Origin(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.PropertyOrigin.Inlined)] - public global::System.DateTime? LastStatusUpdate { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobRunPropertiesInternal)Property).LastStatusUpdate; } - - /// Internal Acessors for Id - string Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.IResourceInternal)__resource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.IResourceInternal)__resource).Id = value; } - - /// Internal Acessors for Name - string Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.IResourceInternal)__resource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.IResourceInternal)__resource).Name = value; } - - /// Internal Acessors for Type - string Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.IResourceInternal)__resource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.IResourceInternal)__resource).Type = value; } + public global::System.DateTime? LastStatusUpdate { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobRunPropertiesInternal)Property).LastStatusUpdate; } /// Internal Acessors for AgentName - string Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobRunInternal.AgentName { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobRunPropertiesInternal)Property).AgentName; set => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobRunPropertiesInternal)Property).AgentName = value; } + string Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobRunInternal.AgentName { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobRunPropertiesInternal)Property).AgentName; set => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobRunPropertiesInternal)Property).AgentName = value; } /// Internal Acessors for AgentResourceId - string Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobRunInternal.AgentResourceId { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobRunPropertiesInternal)Property).AgentResourceId; set => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobRunPropertiesInternal)Property).AgentResourceId = value; } + string Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobRunInternal.AgentResourceId { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobRunPropertiesInternal)Property).AgentResourceId; set => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobRunPropertiesInternal)Property).AgentResourceId = value; } /// Internal Acessors for BytesExcluded - long? Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobRunInternal.BytesExcluded { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobRunPropertiesInternal)Property).BytesExcluded; set => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobRunPropertiesInternal)Property).BytesExcluded = value; } + long? Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobRunInternal.BytesExcluded { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobRunPropertiesInternal)Property).BytesExcluded; set => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobRunPropertiesInternal)Property).BytesExcluded = value; } /// Internal Acessors for BytesFailed - long? Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobRunInternal.BytesFailed { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobRunPropertiesInternal)Property).BytesFailed; set => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobRunPropertiesInternal)Property).BytesFailed = value; } + long? Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobRunInternal.BytesFailed { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobRunPropertiesInternal)Property).BytesFailed; set => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobRunPropertiesInternal)Property).BytesFailed = value; } /// Internal Acessors for BytesNoTransferNeeded - long? Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobRunInternal.BytesNoTransferNeeded { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobRunPropertiesInternal)Property).BytesNoTransferNeeded; set => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobRunPropertiesInternal)Property).BytesNoTransferNeeded = value; } + long? Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobRunInternal.BytesNoTransferNeeded { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobRunPropertiesInternal)Property).BytesNoTransferNeeded; set => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobRunPropertiesInternal)Property).BytesNoTransferNeeded = value; } /// Internal Acessors for BytesScanned - long? Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobRunInternal.BytesScanned { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobRunPropertiesInternal)Property).BytesScanned; set => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobRunPropertiesInternal)Property).BytesScanned = value; } + long? Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobRunInternal.BytesScanned { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobRunPropertiesInternal)Property).BytesScanned; set => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobRunPropertiesInternal)Property).BytesScanned = value; } /// Internal Acessors for BytesTransferred - long? Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobRunInternal.BytesTransferred { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobRunPropertiesInternal)Property).BytesTransferred; set => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobRunPropertiesInternal)Property).BytesTransferred = value; } + long? Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobRunInternal.BytesTransferred { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobRunPropertiesInternal)Property).BytesTransferred; set => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobRunPropertiesInternal)Property).BytesTransferred = value; } /// Internal Acessors for BytesUnsupported - long? Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobRunInternal.BytesUnsupported { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobRunPropertiesInternal)Property).BytesUnsupported; set => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobRunPropertiesInternal)Property).BytesUnsupported = value; } + long? Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobRunInternal.BytesUnsupported { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobRunPropertiesInternal)Property).BytesUnsupported; set => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobRunPropertiesInternal)Property).BytesUnsupported = value; } /// Internal Acessors for Error - Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobRunError Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobRunInternal.Error { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobRunPropertiesInternal)Property).Error; set => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobRunPropertiesInternal)Property).Error = value; } + Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobRunError Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobRunInternal.Error { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobRunPropertiesInternal)Property).Error; set => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobRunPropertiesInternal)Property).Error = value; } /// Internal Acessors for ExecutionEndTime - global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobRunInternal.ExecutionEndTime { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobRunPropertiesInternal)Property).ExecutionEndTime; set => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobRunPropertiesInternal)Property).ExecutionEndTime = value; } + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobRunInternal.ExecutionEndTime { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobRunPropertiesInternal)Property).ExecutionEndTime; set => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobRunPropertiesInternal)Property).ExecutionEndTime = value; } /// Internal Acessors for ExecutionStartTime - global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobRunInternal.ExecutionStartTime { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobRunPropertiesInternal)Property).ExecutionStartTime; set => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobRunPropertiesInternal)Property).ExecutionStartTime = value; } + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobRunInternal.ExecutionStartTime { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobRunPropertiesInternal)Property).ExecutionStartTime; set => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobRunPropertiesInternal)Property).ExecutionStartTime = value; } /// Internal Acessors for ItemsExcluded - long? Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobRunInternal.ItemsExcluded { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobRunPropertiesInternal)Property).ItemsExcluded; set => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobRunPropertiesInternal)Property).ItemsExcluded = value; } + long? Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobRunInternal.ItemsExcluded { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobRunPropertiesInternal)Property).ItemsExcluded; set => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobRunPropertiesInternal)Property).ItemsExcluded = value; } /// Internal Acessors for ItemsFailed - long? Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobRunInternal.ItemsFailed { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobRunPropertiesInternal)Property).ItemsFailed; set => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobRunPropertiesInternal)Property).ItemsFailed = value; } + long? Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobRunInternal.ItemsFailed { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobRunPropertiesInternal)Property).ItemsFailed; set => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobRunPropertiesInternal)Property).ItemsFailed = value; } /// Internal Acessors for ItemsNoTransferNeeded - long? Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobRunInternal.ItemsNoTransferNeeded { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobRunPropertiesInternal)Property).ItemsNoTransferNeeded; set => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobRunPropertiesInternal)Property).ItemsNoTransferNeeded = value; } + long? Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobRunInternal.ItemsNoTransferNeeded { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobRunPropertiesInternal)Property).ItemsNoTransferNeeded; set => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobRunPropertiesInternal)Property).ItemsNoTransferNeeded = value; } /// Internal Acessors for ItemsScanned - long? Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobRunInternal.ItemsScanned { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobRunPropertiesInternal)Property).ItemsScanned; set => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobRunPropertiesInternal)Property).ItemsScanned = value; } + long? Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobRunInternal.ItemsScanned { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobRunPropertiesInternal)Property).ItemsScanned; set => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobRunPropertiesInternal)Property).ItemsScanned = value; } /// Internal Acessors for ItemsTransferred - long? Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobRunInternal.ItemsTransferred { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobRunPropertiesInternal)Property).ItemsTransferred; set => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobRunPropertiesInternal)Property).ItemsTransferred = value; } + long? Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobRunInternal.ItemsTransferred { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobRunPropertiesInternal)Property).ItemsTransferred; set => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobRunPropertiesInternal)Property).ItemsTransferred = value; } /// Internal Acessors for ItemsUnsupported - long? Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobRunInternal.ItemsUnsupported { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobRunPropertiesInternal)Property).ItemsUnsupported; set => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobRunPropertiesInternal)Property).ItemsUnsupported = value; } + long? Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobRunInternal.ItemsUnsupported { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobRunPropertiesInternal)Property).ItemsUnsupported; set => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobRunPropertiesInternal)Property).ItemsUnsupported = value; } /// Internal Acessors for JobDefinitionProperty - Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.IAny Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobRunInternal.JobDefinitionProperty { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobRunPropertiesInternal)Property).JobDefinitionProperty; set => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobRunPropertiesInternal)Property).JobDefinitionProperty = value; } + Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.IAny Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobRunInternal.JobDefinitionProperty { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobRunPropertiesInternal)Property).JobDefinitionProperty; set => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobRunPropertiesInternal)Property).JobDefinitionProperty = value; } /// Internal Acessors for LastStatusUpdate - global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobRunInternal.LastStatusUpdate { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobRunPropertiesInternal)Property).LastStatusUpdate; set => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobRunPropertiesInternal)Property).LastStatusUpdate = value; } + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobRunInternal.LastStatusUpdate { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobRunPropertiesInternal)Property).LastStatusUpdate; set => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobRunPropertiesInternal)Property).LastStatusUpdate = value; } /// Internal Acessors for Property - Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobRunProperties Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobRunInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.JobRunProperties()); set { {_property = value;} } } + Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobRunProperties Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobRunInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.JobRunProperties()); set { {_property = value;} } } /// Internal Acessors for ProvisioningState - Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.ProvisioningState? Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobRunInternal.ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobRunPropertiesInternal)Property).ProvisioningState; set => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobRunPropertiesInternal)Property).ProvisioningState = value; } + Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.ProvisioningState? Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobRunInternal.ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobRunPropertiesInternal)Property).ProvisioningState; set => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobRunPropertiesInternal)Property).ProvisioningState = value; } /// Internal Acessors for ScanStatus - Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.JobRunScanStatus? Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobRunInternal.ScanStatus { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobRunPropertiesInternal)Property).ScanStatus; set => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobRunPropertiesInternal)Property).ScanStatus = value; } + Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.JobRunScanStatus? Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobRunInternal.ScanStatus { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobRunPropertiesInternal)Property).ScanStatus; set => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobRunPropertiesInternal)Property).ScanStatus = value; } /// Internal Acessors for SourceName - string Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobRunInternal.SourceName { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobRunPropertiesInternal)Property).SourceName; set => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobRunPropertiesInternal)Property).SourceName = value; } + string Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobRunInternal.SourceName { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobRunPropertiesInternal)Property).SourceName; set => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobRunPropertiesInternal)Property).SourceName = value; } /// Internal Acessors for SourceProperty - Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.IAny Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobRunInternal.SourceProperty { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobRunPropertiesInternal)Property).SourceProperty; set => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobRunPropertiesInternal)Property).SourceProperty = value; } + Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.IAny Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobRunInternal.SourceProperty { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobRunPropertiesInternal)Property).SourceProperty; set => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobRunPropertiesInternal)Property).SourceProperty = value; } /// Internal Acessors for SourceResourceId - string Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobRunInternal.SourceResourceId { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobRunPropertiesInternal)Property).SourceResourceId; set => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobRunPropertiesInternal)Property).SourceResourceId = value; } + string Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobRunInternal.SourceResourceId { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobRunPropertiesInternal)Property).SourceResourceId; set => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobRunPropertiesInternal)Property).SourceResourceId = value; } /// Internal Acessors for Status - Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.JobRunStatus? Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobRunInternal.Status { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobRunPropertiesInternal)Property).Status; set => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobRunPropertiesInternal)Property).Status = value; } - - /// Internal Acessors for SystemData - Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.ISystemData Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobRunInternal.SystemData { get => (this._systemData = this._systemData ?? new Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.SystemData()); set { {_systemData = value;} } } + Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.JobRunStatus? Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobRunInternal.Status { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobRunPropertiesInternal)Property).Status; set => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobRunPropertiesInternal)Property).Status = value; } /// Internal Acessors for TargetName - string Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobRunInternal.TargetName { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobRunPropertiesInternal)Property).TargetName; set => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobRunPropertiesInternal)Property).TargetName = value; } + string Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobRunInternal.TargetName { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobRunPropertiesInternal)Property).TargetName; set => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobRunPropertiesInternal)Property).TargetName = value; } /// Internal Acessors for TargetProperty - Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.IAny Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobRunInternal.TargetProperty { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobRunPropertiesInternal)Property).TargetProperty; set => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobRunPropertiesInternal)Property).TargetProperty = value; } + Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.IAny Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobRunInternal.TargetProperty { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobRunPropertiesInternal)Property).TargetProperty; set => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobRunPropertiesInternal)Property).TargetProperty = value; } /// Internal Acessors for TargetResourceId - string Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobRunInternal.TargetResourceId { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobRunPropertiesInternal)Property).TargetResourceId; set => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobRunPropertiesInternal)Property).TargetResourceId = value; } + string Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobRunInternal.TargetResourceId { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobRunPropertiesInternal)Property).TargetResourceId; set => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobRunPropertiesInternal)Property).TargetResourceId = value; } + + /// Internal Acessors for Id + string Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IResourceInternal)__resource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IResourceInternal)__resource).Id = value; } + + /// Internal Acessors for Name + string Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IResourceInternal)__resource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IResourceInternal)__resource).Name = value; } + + /// Internal Acessors for SystemData + Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.ISystemData Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IResourceInternal.SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IResourceInternal)__resource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IResourceInternal)__resource).SystemData = value; } + + /// Internal Acessors for Type + string Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IResourceInternal)__resource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IResourceInternal)__resource).Type = value; } /// The name of the resource [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Origin(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.PropertyOrigin.Inherited)] - public string Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.IResourceInternal)__resource).Name; } + public string Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IResourceInternal)__resource).Name; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobRunProperties _property; + private Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobRunProperties _property; /// Job run properties. [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Origin(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.PropertyOrigin.Owned)] - internal Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobRunProperties Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.JobRunProperties()); set => this._property = value; } + internal Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobRunProperties Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.JobRunProperties()); set => this._property = value; } /// The provisioning state of this resource. [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Origin(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.PropertyOrigin.Inlined)] - public Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.ProvisioningState? ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobRunPropertiesInternal)Property).ProvisioningState; } + public Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.ProvisioningState? ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobRunPropertiesInternal)Property).ProvisioningState; } /// The status of Agent's scanning of source. [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Origin(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.PropertyOrigin.Inlined)] - public Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.JobRunScanStatus? ScanStatus { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobRunPropertiesInternal)Property).ScanStatus; } + public Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.JobRunScanStatus? ScanStatus { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobRunPropertiesInternal)Property).ScanStatus; } /// Name of source Endpoint resource. This resource may no longer exist. [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Origin(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.PropertyOrigin.Inlined)] - public string SourceName { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobRunPropertiesInternal)Property).SourceName; } + public string SourceName { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobRunPropertiesInternal)Property).SourceName; } /// Copy of source Endpoint resource's properties at time of Job Run creation. [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Origin(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.PropertyOrigin.Inlined)] - public Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.IAny SourceProperty { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobRunPropertiesInternal)Property).SourceProperty; } + public Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.IAny SourceProperty { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobRunPropertiesInternal)Property).SourceProperty; } /// Fully qualified resource id of source Endpoint. This id may no longer exist. [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Origin(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.PropertyOrigin.Inlined)] - public string SourceResourceId { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobRunPropertiesInternal)Property).SourceResourceId; } + public string SourceResourceId { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobRunPropertiesInternal)Property).SourceResourceId; } /// The state of the job execution. [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Origin(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.PropertyOrigin.Inlined)] - public Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.JobRunStatus? Status { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobRunPropertiesInternal)Property).Status; } - - /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.ISystemData _systemData; + public Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.JobRunStatus? Status { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobRunPropertiesInternal)Property).Status; } - /// Resource system metadata. - [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Origin(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.PropertyOrigin.Owned)] - internal Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.ISystemData SystemData { get => (this._systemData = this._systemData ?? new Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.SystemData()); } + /// + /// Azure Resource Manager metadata containing createdBy and modifiedBy information. + /// + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Origin(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.PropertyOrigin.Inherited)] + private Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.ISystemData SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IResourceInternal)__resource).SystemData; } /// The timestamp of resource creation (UTC). - [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Origin(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.PropertyOrigin.Inlined)] - public global::System.DateTime? SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.ISystemDataInternal)SystemData).CreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.ISystemDataInternal)SystemData).CreatedAt = value ?? default(global::System.DateTime); } + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Origin(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.PropertyOrigin.Inherited)] + public global::System.DateTime? SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IResourceInternal)__resource).SystemDataCreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IResourceInternal)__resource).SystemDataCreatedAt = value ?? default(global::System.DateTime); } /// The identity that created the resource. - [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Origin(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.PropertyOrigin.Inlined)] - public string SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.ISystemDataInternal)SystemData).CreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.ISystemDataInternal)SystemData).CreatedBy = value ?? null; } + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Origin(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.PropertyOrigin.Inherited)] + public string SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IResourceInternal)__resource).SystemDataCreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IResourceInternal)__resource).SystemDataCreatedBy = value ?? null; } /// The type of identity that created the resource. - [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Origin(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.PropertyOrigin.Inlined)] - public Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.CreatedByType? SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.ISystemDataInternal)SystemData).CreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.ISystemDataInternal)SystemData).CreatedByType = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.CreatedByType)""); } + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Origin(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.PropertyOrigin.Inherited)] + public Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.CreatedByType? SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IResourceInternal)__resource).SystemDataCreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IResourceInternal)__resource).SystemDataCreatedByType = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.CreatedByType)""); } /// The timestamp of resource last modification (UTC) - [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Origin(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.PropertyOrigin.Inlined)] - public global::System.DateTime? SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.ISystemDataInternal)SystemData).LastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.ISystemDataInternal)SystemData).LastModifiedAt = value ?? default(global::System.DateTime); } + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Origin(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.PropertyOrigin.Inherited)] + public global::System.DateTime? SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IResourceInternal)__resource).SystemDataLastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IResourceInternal)__resource).SystemDataLastModifiedAt = value ?? default(global::System.DateTime); } /// The identity that last modified the resource. - [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Origin(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.PropertyOrigin.Inlined)] - public string SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.ISystemDataInternal)SystemData).LastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.ISystemDataInternal)SystemData).LastModifiedBy = value ?? null; } + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Origin(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.PropertyOrigin.Inherited)] + public string SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IResourceInternal)__resource).SystemDataLastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IResourceInternal)__resource).SystemDataLastModifiedBy = value ?? null; } /// The type of identity that last modified the resource. - [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Origin(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.PropertyOrigin.Inlined)] - public Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.CreatedByType? SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.ISystemDataInternal)SystemData).LastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.ISystemDataInternal)SystemData).LastModifiedByType = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.CreatedByType)""); } + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Origin(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.PropertyOrigin.Inherited)] + public Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.CreatedByType? SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IResourceInternal)__resource).SystemDataLastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IResourceInternal)__resource).SystemDataLastModifiedByType = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.CreatedByType)""); } /// Target of the given error entry. [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Origin(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.PropertyOrigin.Inlined)] - public string Target { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobRunPropertiesInternal)Property).Target; set => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobRunPropertiesInternal)Property).Target = value ?? null; } + public string Target { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobRunPropertiesInternal)Property).Target; set => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobRunPropertiesInternal)Property).Target = value ?? null; } /// Name of target Endpoint resource. This resource may no longer exist. [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Origin(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.PropertyOrigin.Inlined)] - public string TargetName { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobRunPropertiesInternal)Property).TargetName; } + public string TargetName { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobRunPropertiesInternal)Property).TargetName; } /// Copy of Endpoint resource's properties at time of Job Run creation. [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Origin(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.PropertyOrigin.Inlined)] - public Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.IAny TargetProperty { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobRunPropertiesInternal)Property).TargetProperty; } + public Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.IAny TargetProperty { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobRunPropertiesInternal)Property).TargetProperty; } /// Fully qualified resource id of of Endpoint. This id may no longer exist. [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Origin(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.PropertyOrigin.Inlined)] - public string TargetResourceId { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobRunPropertiesInternal)Property).TargetResourceId; } + public string TargetResourceId { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobRunPropertiesInternal)Property).TargetResourceId; } /// /// The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" /// [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Origin(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.PropertyOrigin.Inherited)] - public string Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.IResourceInternal)__resource).Type; } + public string Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IResourceInternal)__resource).Type; } /// Creates an new instance. public JobRun() @@ -324,7 +323,7 @@ public JobRun() /// The Job Run resource. public partial interface IJobRun : Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.IJsonSerializable, - Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.IResource + Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IResource { /// Name of the Agent assigned to this run. [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Info( @@ -544,54 +543,6 @@ public partial interface IJobRun : SerializedName = @"status", PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.JobRunStatus) })] Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.JobRunStatus? Status { get; } - /// The timestamp of resource creation (UTC). - [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"The timestamp of resource creation (UTC).", - SerializedName = @"createdAt", - PossibleTypes = new [] { typeof(global::System.DateTime) })] - global::System.DateTime? SystemDataCreatedAt { get; set; } - /// The identity that created the resource. - [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"The identity that created the resource.", - SerializedName = @"createdBy", - PossibleTypes = new [] { typeof(string) })] - string SystemDataCreatedBy { get; set; } - /// The type of identity that created the resource. - [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"The type of identity that created the resource.", - SerializedName = @"createdByType", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.CreatedByType) })] - Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.CreatedByType? SystemDataCreatedByType { get; set; } - /// The timestamp of resource last modification (UTC) - [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"The timestamp of resource last modification (UTC)", - SerializedName = @"lastModifiedAt", - PossibleTypes = new [] { typeof(global::System.DateTime) })] - global::System.DateTime? SystemDataLastModifiedAt { get; set; } - /// The identity that last modified the resource. - [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"The identity that last modified the resource.", - SerializedName = @"lastModifiedBy", - PossibleTypes = new [] { typeof(string) })] - string SystemDataLastModifiedBy { get; set; } - /// The type of identity that last modified the resource. - [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"The type of identity that last modified the resource.", - SerializedName = @"lastModifiedByType", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.CreatedByType) })] - Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.CreatedByType? SystemDataLastModifiedByType { get; set; } /// Target of the given error entry. [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Info( Required = false, @@ -628,7 +579,7 @@ public partial interface IJobRun : } /// The Job Run resource. internal partial interface IJobRunInternal : - Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.IResourceInternal + Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IResourceInternal { /// Name of the Agent assigned to this run. string AgentName { get; set; } @@ -651,7 +602,7 @@ internal partial interface IJobRunInternal : /// Bytes of data that will not be transferred, as they are unsupported on target. long? BytesUnsupported { get; set; } /// Error details. - Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobRunError Error { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobRunError Error { get; set; } /// Error code of the given entry. string ErrorCode { get; set; } /// Error message of the given entry. @@ -683,7 +634,7 @@ internal partial interface IJobRunInternal : /// The last updated time of the Job Run. global::System.DateTime? LastStatusUpdate { get; set; } /// Job run properties. - Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobRunProperties Property { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobRunProperties Property { get; set; } /// The provisioning state of this resource. Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.ProvisioningState? ProvisioningState { get; set; } /// The status of Agent's scanning of source. @@ -696,20 +647,6 @@ internal partial interface IJobRunInternal : string SourceResourceId { get; set; } /// The state of the job execution. Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.JobRunStatus? Status { get; set; } - /// Resource system metadata. - Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.ISystemData SystemData { get; set; } - /// The timestamp of resource creation (UTC). - global::System.DateTime? SystemDataCreatedAt { get; set; } - /// The identity that created the resource. - string SystemDataCreatedBy { get; set; } - /// The type of identity that created the resource. - Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.CreatedByType? SystemDataCreatedByType { get; set; } - /// The timestamp of resource last modification (UTC) - global::System.DateTime? SystemDataLastModifiedAt { get; set; } - /// The identity that last modified the resource. - string SystemDataLastModifiedBy { get; set; } - /// The type of identity that last modified the resource. - Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.CreatedByType? SystemDataLastModifiedByType { get; set; } /// Target of the given error entry. string Target { get; set; } /// Name of target Endpoint resource. This resource may no longer exist. diff --git a/src/StorageMover/generated/api/Models/Api20230301/JobRun.json.cs b/src/StorageMover/generated/api/Models/Api20231001/JobRun.json.cs similarity index 88% rename from src/StorageMover/generated/api/Models/Api20230301/JobRun.json.cs rename to src/StorageMover/generated/api/Models/Api20231001/JobRun.json.cs index 7c023c98b972..31ee37355835 100644 --- a/src/StorageMover/generated/api/Models/Api20230301/JobRun.json.cs +++ b/src/StorageMover/generated/api/Models/Api20231001/JobRun.json.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301 +namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001 { using static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Extensions; @@ -54,13 +54,13 @@ public partial class JobRun partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobRun. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobRun. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobRun. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobRun. /// - public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobRun FromJson(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobRun FromJson(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonObject json ? new JobRun(json) : null; } @@ -77,9 +77,8 @@ internal JobRun(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.Jso { return; } - __resource = new Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.Resource(json); - {_property = If( json?.PropertyT("properties"), out var __jsonProperties) ? Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.JobRunProperties.FromJson(__jsonProperties) : Property;} - {_systemData = If( json?.PropertyT("systemData"), out var __jsonSystemData) ? Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.SystemData.FromJson(__jsonSystemData) : SystemData;} + __resource = new Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.Resource(json); + {_property = If( json?.PropertyT("properties"), out var __jsonProperties) ? Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.JobRunProperties.FromJson(__jsonProperties) : Property;} AfterFromJson(json); } @@ -104,10 +103,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonNode ToJ } __resource?.ToJson(container, serializationMode); AddIf( null != this._property ? (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonNode) this._property.ToJson(null,serializationMode) : null, "properties" ,container.Add ); - if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.SerializationMode.IncludeReadOnly)) - { - AddIf( null != this._systemData ? (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonNode) this._systemData.ToJson(null,serializationMode) : null, "systemData" ,container.Add ); - } AfterToJson(ref container); return container; } diff --git a/src/StorageMover/generated/api/Models/Api20230301/JobRunError.PowerShell.cs b/src/StorageMover/generated/api/Models/Api20231001/JobRunError.PowerShell.cs similarity index 87% rename from src/StorageMover/generated/api/Models/Api20230301/JobRunError.PowerShell.cs rename to src/StorageMover/generated/api/Models/Api20231001/JobRunError.PowerShell.cs index 811bd8d5e0b4..e1a509937091 100644 --- a/src/StorageMover/generated/api/Models/Api20230301/JobRunError.PowerShell.cs +++ b/src/StorageMover/generated/api/Models/Api20231001/JobRunError.PowerShell.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301 +namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001 { using Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.PowerShell; @@ -63,27 +63,27 @@ public partial class JobRunError partial void OverrideToString(ref string stringResult, ref bool returnNow); /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Collections.IDictionary content that should be used. /// - /// an instance of . + /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobRunError DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobRunError DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new JobRunError(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. /// - /// an instance of . + /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobRunError DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobRunError DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new JobRunError(content); } @@ -93,10 +93,10 @@ public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301 /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobRunError FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobRunError FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonNode.Parse(jsonText)); /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. @@ -111,21 +111,21 @@ internal JobRunError(global::System.Collections.IDictionary content) // actually deserialize if (content.Contains("Code")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobRunErrorInternal)this).Code = (string) content.GetValueForProperty("Code",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobRunErrorInternal)this).Code, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobRunErrorInternal)this).Code = (string) content.GetValueForProperty("Code",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobRunErrorInternal)this).Code, global::System.Convert.ToString); } if (content.Contains("Message")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobRunErrorInternal)this).Message = (string) content.GetValueForProperty("Message",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobRunErrorInternal)this).Message, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobRunErrorInternal)this).Message = (string) content.GetValueForProperty("Message",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobRunErrorInternal)this).Message, global::System.Convert.ToString); } if (content.Contains("Target")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobRunErrorInternal)this).Target = (string) content.GetValueForProperty("Target",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobRunErrorInternal)this).Target, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobRunErrorInternal)this).Target = (string) content.GetValueForProperty("Target",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobRunErrorInternal)this).Target, global::System.Convert.ToString); } AfterDeserializeDictionary(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -140,15 +140,15 @@ internal JobRunError(global::System.Management.Automation.PSObject content) // actually deserialize if (content.Contains("Code")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobRunErrorInternal)this).Code = (string) content.GetValueForProperty("Code",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobRunErrorInternal)this).Code, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobRunErrorInternal)this).Code = (string) content.GetValueForProperty("Code",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobRunErrorInternal)this).Code, global::System.Convert.ToString); } if (content.Contains("Message")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobRunErrorInternal)this).Message = (string) content.GetValueForProperty("Message",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobRunErrorInternal)this).Message, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobRunErrorInternal)this).Message = (string) content.GetValueForProperty("Message",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobRunErrorInternal)this).Message, global::System.Convert.ToString); } if (content.Contains("Target")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobRunErrorInternal)this).Target = (string) content.GetValueForProperty("Target",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobRunErrorInternal)this).Target, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobRunErrorInternal)this).Target = (string) content.GetValueForProperty("Target",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobRunErrorInternal)this).Target, global::System.Convert.ToString); } AfterDeserializePSObject(content); } diff --git a/src/StorageMover/generated/api/Models/Api20230301/JobRunError.TypeConverter.cs b/src/StorageMover/generated/api/Models/Api20231001/JobRunError.TypeConverter.cs similarity index 98% rename from src/StorageMover/generated/api/Models/Api20230301/JobRunError.TypeConverter.cs rename to src/StorageMover/generated/api/Models/Api20231001/JobRunError.TypeConverter.cs index 74bd944905b9..67dc10204641 100644 --- a/src/StorageMover/generated/api/Models/Api20230301/JobRunError.TypeConverter.cs +++ b/src/StorageMover/generated/api/Models/Api20231001/JobRunError.TypeConverter.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301 +namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001 { using Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.PowerShell; @@ -106,14 +106,14 @@ public static bool CanConvertFrom(dynamic sourceValue) /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobRunError ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobRunError ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobRunError).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobRunError).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/StorageMover/generated/api/Models/Api20230301/JobRunError.cs b/src/StorageMover/generated/api/Models/Api20231001/JobRunError.cs similarity index 98% rename from src/StorageMover/generated/api/Models/Api20230301/JobRunError.cs rename to src/StorageMover/generated/api/Models/Api20231001/JobRunError.cs index 194797076b19..d8e9d07e8edd 100644 --- a/src/StorageMover/generated/api/Models/Api20230301/JobRunError.cs +++ b/src/StorageMover/generated/api/Models/Api20231001/JobRunError.cs @@ -3,15 +3,15 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301 +namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001 { using static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Extensions; /// Error type [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.DoNotFormat] public partial class JobRunError : - Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobRunError, - Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobRunErrorInternal + Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobRunError, + Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobRunErrorInternal { /// Backing field for property. diff --git a/src/StorageMover/generated/api/Models/Api20230301/JobRunError.json.cs b/src/StorageMover/generated/api/Models/Api20231001/JobRunError.json.cs similarity index 98% rename from src/StorageMover/generated/api/Models/Api20230301/JobRunError.json.cs rename to src/StorageMover/generated/api/Models/Api20231001/JobRunError.json.cs index 10844ba7e032..7c93c2b40bd3 100644 --- a/src/StorageMover/generated/api/Models/Api20230301/JobRunError.json.cs +++ b/src/StorageMover/generated/api/Models/Api20231001/JobRunError.json.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301 +namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001 { using static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Extensions; @@ -54,13 +54,13 @@ public partial class JobRunError partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobRunError. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobRunError. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobRunError. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobRunError. /// - public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobRunError FromJson(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobRunError FromJson(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonObject json ? new JobRunError(json) : null; } diff --git a/src/StorageMover/generated/api/Models/Api20230301/JobRunList.PowerShell.cs b/src/StorageMover/generated/api/Models/Api20231001/JobRunList.PowerShell.cs similarity index 86% rename from src/StorageMover/generated/api/Models/Api20230301/JobRunList.PowerShell.cs rename to src/StorageMover/generated/api/Models/Api20231001/JobRunList.PowerShell.cs index 03c6f60178a3..b89506113bd8 100644 --- a/src/StorageMover/generated/api/Models/Api20230301/JobRunList.PowerShell.cs +++ b/src/StorageMover/generated/api/Models/Api20231001/JobRunList.PowerShell.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301 +namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001 { using Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.PowerShell; @@ -63,27 +63,27 @@ public partial class JobRunList partial void OverrideToString(ref string stringResult, ref bool returnNow); /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Collections.IDictionary content that should be used. /// - /// an instance of . + /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobRunList DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobRunList DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new JobRunList(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. /// - /// an instance of . + /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobRunList DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobRunList DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new JobRunList(content); } @@ -93,10 +93,10 @@ public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301 /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobRunList FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobRunList FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonNode.Parse(jsonText)); /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. @@ -111,17 +111,17 @@ internal JobRunList(global::System.Collections.IDictionary content) // actually deserialize if (content.Contains("Value")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobRunListInternal)this).Value = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobRun[]) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobRunListInternal)this).Value, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.JobRunTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobRunListInternal)this).Value = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobRun[]) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobRunListInternal)this).Value, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.JobRunTypeConverter.ConvertFrom)); } if (content.Contains("NextLink")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobRunListInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobRunListInternal)this).NextLink, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobRunListInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobRunListInternal)this).NextLink, global::System.Convert.ToString); } AfterDeserializeDictionary(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -136,11 +136,11 @@ internal JobRunList(global::System.Management.Automation.PSObject content) // actually deserialize if (content.Contains("Value")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobRunListInternal)this).Value = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobRun[]) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobRunListInternal)this).Value, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.JobRunTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobRunListInternal)this).Value = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobRun[]) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobRunListInternal)this).Value, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.JobRunTypeConverter.ConvertFrom)); } if (content.Contains("NextLink")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobRunListInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobRunListInternal)this).NextLink, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobRunListInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobRunListInternal)this).NextLink, global::System.Convert.ToString); } AfterDeserializePSObject(content); } diff --git a/src/StorageMover/generated/api/Models/Api20230301/JobRunList.TypeConverter.cs b/src/StorageMover/generated/api/Models/Api20231001/JobRunList.TypeConverter.cs similarity index 98% rename from src/StorageMover/generated/api/Models/Api20230301/JobRunList.TypeConverter.cs rename to src/StorageMover/generated/api/Models/Api20231001/JobRunList.TypeConverter.cs index 48351f99a419..927702d4d09a 100644 --- a/src/StorageMover/generated/api/Models/Api20230301/JobRunList.TypeConverter.cs +++ b/src/StorageMover/generated/api/Models/Api20231001/JobRunList.TypeConverter.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301 +namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001 { using Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.PowerShell; @@ -105,14 +105,14 @@ public static bool CanConvertFrom(dynamic sourceValue) /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobRunList ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobRunList ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobRunList).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobRunList).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/StorageMover/generated/api/Models/Api20230301/JobRunList.cs b/src/StorageMover/generated/api/Models/Api20231001/JobRunList.cs similarity index 87% rename from src/StorageMover/generated/api/Models/Api20230301/JobRunList.cs rename to src/StorageMover/generated/api/Models/Api20231001/JobRunList.cs index e8980d755995..f3fd37e05db6 100644 --- a/src/StorageMover/generated/api/Models/Api20230301/JobRunList.cs +++ b/src/StorageMover/generated/api/Models/Api20231001/JobRunList.cs @@ -3,22 +3,22 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301 +namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001 { using static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Extensions; /// List of Job Runs. [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.DoNotFormat] public partial class JobRunList : - Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobRunList, - Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobRunListInternal + Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobRunList, + Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobRunListInternal { /// Internal Acessors for NextLink - string Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobRunListInternal.NextLink { get => this._nextLink; set { {_nextLink = value;} } } + string Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobRunListInternal.NextLink { get => this._nextLink; set { {_nextLink = value;} } } /// Internal Acessors for Value - Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobRun[] Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobRunListInternal.Value { get => this._value; set { {_value = value;} } } + Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobRun[] Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobRunListInternal.Value { get => this._value; set { {_value = value;} } } /// Backing field for property. private string _nextLink; @@ -31,10 +31,10 @@ public partial class JobRunList : public string NextLink { get => this._nextLink; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobRun[] _value; + private Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobRun[] _value; [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Origin(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.PropertyOrigin.Owned)] - public Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobRun[] Value { get => this._value; } + public Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobRun[] Value { get => this._value; } /// Creates an new instance. public JobRunList() @@ -63,8 +63,8 @@ public partial interface IJobRunList : ReadOnly = true, Description = @"", SerializedName = @"value", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobRun) })] - Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobRun[] Value { get; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobRun) })] + Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobRun[] Value { get; } } /// List of Job Runs. @@ -77,7 +77,7 @@ internal partial interface IJobRunListInternal /// string NextLink { get; set; } - Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobRun[] Value { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobRun[] Value { get; set; } } } \ No newline at end of file diff --git a/src/StorageMover/generated/api/Models/Api20230301/JobRunList.json.cs b/src/StorageMover/generated/api/Models/Api20231001/JobRunList.json.cs similarity index 96% rename from src/StorageMover/generated/api/Models/Api20230301/JobRunList.json.cs rename to src/StorageMover/generated/api/Models/Api20231001/JobRunList.json.cs index dc7564116a6e..884222be4dde 100644 --- a/src/StorageMover/generated/api/Models/Api20230301/JobRunList.json.cs +++ b/src/StorageMover/generated/api/Models/Api20231001/JobRunList.json.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301 +namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001 { using static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Extensions; @@ -54,13 +54,13 @@ public partial class JobRunList partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobRunList. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobRunList. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobRunList. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobRunList. /// - public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobRunList FromJson(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobRunList FromJson(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonObject json ? new JobRunList(json) : null; } @@ -77,7 +77,7 @@ internal JobRunList(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json { return; } - {_value = If( json?.PropertyT("value"), out var __jsonValue) ? If( __jsonValue as Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonArray, out var __v) ? new global::System.Func(()=> global::System.Linq.Enumerable.ToArray(global::System.Linq.Enumerable.Select(__v, (__u)=>(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobRun) (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.JobRun.FromJson(__u) )) ))() : null : Value;} + {_value = If( json?.PropertyT("value"), out var __jsonValue) ? If( __jsonValue as Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonArray, out var __v) ? new global::System.Func(()=> global::System.Linq.Enumerable.ToArray(global::System.Linq.Enumerable.Select(__v, (__u)=>(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobRun) (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.JobRun.FromJson(__u) )) ))() : null : Value;} {_nextLink = If( json?.PropertyT("nextLink"), out var __jsonNextLink) ? (string)__jsonNextLink : (string)NextLink;} AfterFromJson(json); } diff --git a/src/StorageMover/generated/api/Models/Api20230301/JobRunProperties.PowerShell.cs b/src/StorageMover/generated/api/Models/Api20231001/JobRunProperties.PowerShell.cs similarity index 74% rename from src/StorageMover/generated/api/Models/Api20230301/JobRunProperties.PowerShell.cs rename to src/StorageMover/generated/api/Models/Api20231001/JobRunProperties.PowerShell.cs index 6b09d9883dd0..352e0032ea7f 100644 --- a/src/StorageMover/generated/api/Models/Api20230301/JobRunProperties.PowerShell.cs +++ b/src/StorageMover/generated/api/Models/Api20231001/JobRunProperties.PowerShell.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301 +namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001 { using Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.PowerShell; @@ -63,27 +63,27 @@ public partial class JobRunProperties partial void OverrideToString(ref string stringResult, ref bool returnNow); /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Collections.IDictionary content that should be used. /// - /// an instance of . + /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobRunProperties DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobRunProperties DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new JobRunProperties(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. /// - /// an instance of . + /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobRunProperties DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobRunProperties DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new JobRunProperties(content); } @@ -93,10 +93,10 @@ public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301 /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobRunProperties FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobRunProperties FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonNode.Parse(jsonText)); /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. @@ -111,133 +111,133 @@ internal JobRunProperties(global::System.Collections.IDictionary content) // actually deserialize if (content.Contains("Error")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobRunPropertiesInternal)this).Error = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobRunError) content.GetValueForProperty("Error",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobRunPropertiesInternal)this).Error, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.JobRunErrorTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobRunPropertiesInternal)this).Error = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobRunError) content.GetValueForProperty("Error",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobRunPropertiesInternal)this).Error, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.JobRunErrorTypeConverter.ConvertFrom); } if (content.Contains("Status")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobRunPropertiesInternal)this).Status = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.JobRunStatus?) content.GetValueForProperty("Status",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobRunPropertiesInternal)this).Status, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.JobRunStatus.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobRunPropertiesInternal)this).Status = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.JobRunStatus?) content.GetValueForProperty("Status",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobRunPropertiesInternal)this).Status, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.JobRunStatus.CreateFrom); } if (content.Contains("ScanStatus")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobRunPropertiesInternal)this).ScanStatus = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.JobRunScanStatus?) content.GetValueForProperty("ScanStatus",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobRunPropertiesInternal)this).ScanStatus, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.JobRunScanStatus.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobRunPropertiesInternal)this).ScanStatus = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.JobRunScanStatus?) content.GetValueForProperty("ScanStatus",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobRunPropertiesInternal)this).ScanStatus, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.JobRunScanStatus.CreateFrom); } if (content.Contains("AgentName")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobRunPropertiesInternal)this).AgentName = (string) content.GetValueForProperty("AgentName",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobRunPropertiesInternal)this).AgentName, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobRunPropertiesInternal)this).AgentName = (string) content.GetValueForProperty("AgentName",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobRunPropertiesInternal)this).AgentName, global::System.Convert.ToString); } if (content.Contains("AgentResourceId")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobRunPropertiesInternal)this).AgentResourceId = (string) content.GetValueForProperty("AgentResourceId",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobRunPropertiesInternal)this).AgentResourceId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobRunPropertiesInternal)this).AgentResourceId = (string) content.GetValueForProperty("AgentResourceId",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobRunPropertiesInternal)this).AgentResourceId, global::System.Convert.ToString); } if (content.Contains("ExecutionStartTime")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobRunPropertiesInternal)this).ExecutionStartTime = (global::System.DateTime?) content.GetValueForProperty("ExecutionStartTime",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobRunPropertiesInternal)this).ExecutionStartTime, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobRunPropertiesInternal)this).ExecutionStartTime = (global::System.DateTime?) content.GetValueForProperty("ExecutionStartTime",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobRunPropertiesInternal)this).ExecutionStartTime, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); } if (content.Contains("ExecutionEndTime")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobRunPropertiesInternal)this).ExecutionEndTime = (global::System.DateTime?) content.GetValueForProperty("ExecutionEndTime",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobRunPropertiesInternal)this).ExecutionEndTime, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobRunPropertiesInternal)this).ExecutionEndTime = (global::System.DateTime?) content.GetValueForProperty("ExecutionEndTime",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobRunPropertiesInternal)this).ExecutionEndTime, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); } if (content.Contains("LastStatusUpdate")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobRunPropertiesInternal)this).LastStatusUpdate = (global::System.DateTime?) content.GetValueForProperty("LastStatusUpdate",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobRunPropertiesInternal)this).LastStatusUpdate, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobRunPropertiesInternal)this).LastStatusUpdate = (global::System.DateTime?) content.GetValueForProperty("LastStatusUpdate",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobRunPropertiesInternal)this).LastStatusUpdate, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); } if (content.Contains("ItemsScanned")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobRunPropertiesInternal)this).ItemsScanned = (long?) content.GetValueForProperty("ItemsScanned",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobRunPropertiesInternal)this).ItemsScanned, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobRunPropertiesInternal)this).ItemsScanned = (long?) content.GetValueForProperty("ItemsScanned",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobRunPropertiesInternal)this).ItemsScanned, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); } if (content.Contains("ItemsExcluded")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobRunPropertiesInternal)this).ItemsExcluded = (long?) content.GetValueForProperty("ItemsExcluded",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobRunPropertiesInternal)this).ItemsExcluded, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobRunPropertiesInternal)this).ItemsExcluded = (long?) content.GetValueForProperty("ItemsExcluded",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobRunPropertiesInternal)this).ItemsExcluded, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); } if (content.Contains("ItemsUnsupported")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobRunPropertiesInternal)this).ItemsUnsupported = (long?) content.GetValueForProperty("ItemsUnsupported",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobRunPropertiesInternal)this).ItemsUnsupported, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobRunPropertiesInternal)this).ItemsUnsupported = (long?) content.GetValueForProperty("ItemsUnsupported",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobRunPropertiesInternal)this).ItemsUnsupported, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); } if (content.Contains("ItemsNoTransferNeeded")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobRunPropertiesInternal)this).ItemsNoTransferNeeded = (long?) content.GetValueForProperty("ItemsNoTransferNeeded",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobRunPropertiesInternal)this).ItemsNoTransferNeeded, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobRunPropertiesInternal)this).ItemsNoTransferNeeded = (long?) content.GetValueForProperty("ItemsNoTransferNeeded",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobRunPropertiesInternal)this).ItemsNoTransferNeeded, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); } if (content.Contains("ItemsFailed")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobRunPropertiesInternal)this).ItemsFailed = (long?) content.GetValueForProperty("ItemsFailed",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobRunPropertiesInternal)this).ItemsFailed, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobRunPropertiesInternal)this).ItemsFailed = (long?) content.GetValueForProperty("ItemsFailed",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobRunPropertiesInternal)this).ItemsFailed, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); } if (content.Contains("ItemsTransferred")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobRunPropertiesInternal)this).ItemsTransferred = (long?) content.GetValueForProperty("ItemsTransferred",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobRunPropertiesInternal)this).ItemsTransferred, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobRunPropertiesInternal)this).ItemsTransferred = (long?) content.GetValueForProperty("ItemsTransferred",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobRunPropertiesInternal)this).ItemsTransferred, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); } if (content.Contains("BytesScanned")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobRunPropertiesInternal)this).BytesScanned = (long?) content.GetValueForProperty("BytesScanned",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobRunPropertiesInternal)this).BytesScanned, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobRunPropertiesInternal)this).BytesScanned = (long?) content.GetValueForProperty("BytesScanned",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobRunPropertiesInternal)this).BytesScanned, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); } if (content.Contains("BytesExcluded")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobRunPropertiesInternal)this).BytesExcluded = (long?) content.GetValueForProperty("BytesExcluded",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobRunPropertiesInternal)this).BytesExcluded, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobRunPropertiesInternal)this).BytesExcluded = (long?) content.GetValueForProperty("BytesExcluded",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobRunPropertiesInternal)this).BytesExcluded, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); } if (content.Contains("BytesUnsupported")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobRunPropertiesInternal)this).BytesUnsupported = (long?) content.GetValueForProperty("BytesUnsupported",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobRunPropertiesInternal)this).BytesUnsupported, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobRunPropertiesInternal)this).BytesUnsupported = (long?) content.GetValueForProperty("BytesUnsupported",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobRunPropertiesInternal)this).BytesUnsupported, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); } if (content.Contains("BytesNoTransferNeeded")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobRunPropertiesInternal)this).BytesNoTransferNeeded = (long?) content.GetValueForProperty("BytesNoTransferNeeded",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobRunPropertiesInternal)this).BytesNoTransferNeeded, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobRunPropertiesInternal)this).BytesNoTransferNeeded = (long?) content.GetValueForProperty("BytesNoTransferNeeded",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobRunPropertiesInternal)this).BytesNoTransferNeeded, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); } if (content.Contains("BytesFailed")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobRunPropertiesInternal)this).BytesFailed = (long?) content.GetValueForProperty("BytesFailed",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobRunPropertiesInternal)this).BytesFailed, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobRunPropertiesInternal)this).BytesFailed = (long?) content.GetValueForProperty("BytesFailed",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobRunPropertiesInternal)this).BytesFailed, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); } if (content.Contains("BytesTransferred")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobRunPropertiesInternal)this).BytesTransferred = (long?) content.GetValueForProperty("BytesTransferred",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobRunPropertiesInternal)this).BytesTransferred, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobRunPropertiesInternal)this).BytesTransferred = (long?) content.GetValueForProperty("BytesTransferred",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobRunPropertiesInternal)this).BytesTransferred, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); } if (content.Contains("SourceName")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobRunPropertiesInternal)this).SourceName = (string) content.GetValueForProperty("SourceName",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobRunPropertiesInternal)this).SourceName, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobRunPropertiesInternal)this).SourceName = (string) content.GetValueForProperty("SourceName",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobRunPropertiesInternal)this).SourceName, global::System.Convert.ToString); } if (content.Contains("SourceResourceId")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobRunPropertiesInternal)this).SourceResourceId = (string) content.GetValueForProperty("SourceResourceId",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobRunPropertiesInternal)this).SourceResourceId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobRunPropertiesInternal)this).SourceResourceId = (string) content.GetValueForProperty("SourceResourceId",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobRunPropertiesInternal)this).SourceResourceId, global::System.Convert.ToString); } if (content.Contains("SourceProperty")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobRunPropertiesInternal)this).SourceProperty = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.IAny) content.GetValueForProperty("SourceProperty",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobRunPropertiesInternal)this).SourceProperty, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.AnyTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobRunPropertiesInternal)this).SourceProperty = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.IAny) content.GetValueForProperty("SourceProperty",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobRunPropertiesInternal)this).SourceProperty, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.AnyTypeConverter.ConvertFrom); } if (content.Contains("TargetName")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobRunPropertiesInternal)this).TargetName = (string) content.GetValueForProperty("TargetName",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobRunPropertiesInternal)this).TargetName, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobRunPropertiesInternal)this).TargetName = (string) content.GetValueForProperty("TargetName",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobRunPropertiesInternal)this).TargetName, global::System.Convert.ToString); } if (content.Contains("TargetResourceId")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobRunPropertiesInternal)this).TargetResourceId = (string) content.GetValueForProperty("TargetResourceId",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobRunPropertiesInternal)this).TargetResourceId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobRunPropertiesInternal)this).TargetResourceId = (string) content.GetValueForProperty("TargetResourceId",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobRunPropertiesInternal)this).TargetResourceId, global::System.Convert.ToString); } if (content.Contains("TargetProperty")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobRunPropertiesInternal)this).TargetProperty = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.IAny) content.GetValueForProperty("TargetProperty",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobRunPropertiesInternal)this).TargetProperty, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.AnyTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobRunPropertiesInternal)this).TargetProperty = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.IAny) content.GetValueForProperty("TargetProperty",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobRunPropertiesInternal)this).TargetProperty, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.AnyTypeConverter.ConvertFrom); } if (content.Contains("JobDefinitionProperty")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobRunPropertiesInternal)this).JobDefinitionProperty = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.IAny) content.GetValueForProperty("JobDefinitionProperty",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobRunPropertiesInternal)this).JobDefinitionProperty, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.AnyTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobRunPropertiesInternal)this).JobDefinitionProperty = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.IAny) content.GetValueForProperty("JobDefinitionProperty",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobRunPropertiesInternal)this).JobDefinitionProperty, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.AnyTypeConverter.ConvertFrom); } if (content.Contains("ProvisioningState")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobRunPropertiesInternal)this).ProvisioningState = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.ProvisioningState?) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobRunPropertiesInternal)this).ProvisioningState, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.ProvisioningState.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobRunPropertiesInternal)this).ProvisioningState = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.ProvisioningState?) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobRunPropertiesInternal)this).ProvisioningState, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.ProvisioningState.CreateFrom); } if (content.Contains("Code")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobRunPropertiesInternal)this).Code = (string) content.GetValueForProperty("Code",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobRunPropertiesInternal)this).Code, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobRunPropertiesInternal)this).Code = (string) content.GetValueForProperty("Code",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobRunPropertiesInternal)this).Code, global::System.Convert.ToString); } if (content.Contains("Message")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobRunPropertiesInternal)this).Message = (string) content.GetValueForProperty("Message",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobRunPropertiesInternal)this).Message, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobRunPropertiesInternal)this).Message = (string) content.GetValueForProperty("Message",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobRunPropertiesInternal)this).Message, global::System.Convert.ToString); } if (content.Contains("Target")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobRunPropertiesInternal)this).Target = (string) content.GetValueForProperty("Target",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobRunPropertiesInternal)this).Target, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobRunPropertiesInternal)this).Target = (string) content.GetValueForProperty("Target",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobRunPropertiesInternal)this).Target, global::System.Convert.ToString); } AfterDeserializeDictionary(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -252,127 +252,127 @@ internal JobRunProperties(global::System.Management.Automation.PSObject content) // actually deserialize if (content.Contains("Error")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobRunPropertiesInternal)this).Error = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobRunError) content.GetValueForProperty("Error",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobRunPropertiesInternal)this).Error, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.JobRunErrorTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobRunPropertiesInternal)this).Error = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobRunError) content.GetValueForProperty("Error",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobRunPropertiesInternal)this).Error, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.JobRunErrorTypeConverter.ConvertFrom); } if (content.Contains("Status")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobRunPropertiesInternal)this).Status = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.JobRunStatus?) content.GetValueForProperty("Status",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobRunPropertiesInternal)this).Status, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.JobRunStatus.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobRunPropertiesInternal)this).Status = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.JobRunStatus?) content.GetValueForProperty("Status",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobRunPropertiesInternal)this).Status, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.JobRunStatus.CreateFrom); } if (content.Contains("ScanStatus")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobRunPropertiesInternal)this).ScanStatus = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.JobRunScanStatus?) content.GetValueForProperty("ScanStatus",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobRunPropertiesInternal)this).ScanStatus, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.JobRunScanStatus.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobRunPropertiesInternal)this).ScanStatus = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.JobRunScanStatus?) content.GetValueForProperty("ScanStatus",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobRunPropertiesInternal)this).ScanStatus, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.JobRunScanStatus.CreateFrom); } if (content.Contains("AgentName")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobRunPropertiesInternal)this).AgentName = (string) content.GetValueForProperty("AgentName",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobRunPropertiesInternal)this).AgentName, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobRunPropertiesInternal)this).AgentName = (string) content.GetValueForProperty("AgentName",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobRunPropertiesInternal)this).AgentName, global::System.Convert.ToString); } if (content.Contains("AgentResourceId")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobRunPropertiesInternal)this).AgentResourceId = (string) content.GetValueForProperty("AgentResourceId",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobRunPropertiesInternal)this).AgentResourceId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobRunPropertiesInternal)this).AgentResourceId = (string) content.GetValueForProperty("AgentResourceId",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobRunPropertiesInternal)this).AgentResourceId, global::System.Convert.ToString); } if (content.Contains("ExecutionStartTime")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobRunPropertiesInternal)this).ExecutionStartTime = (global::System.DateTime?) content.GetValueForProperty("ExecutionStartTime",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobRunPropertiesInternal)this).ExecutionStartTime, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobRunPropertiesInternal)this).ExecutionStartTime = (global::System.DateTime?) content.GetValueForProperty("ExecutionStartTime",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobRunPropertiesInternal)this).ExecutionStartTime, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); } if (content.Contains("ExecutionEndTime")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobRunPropertiesInternal)this).ExecutionEndTime = (global::System.DateTime?) content.GetValueForProperty("ExecutionEndTime",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobRunPropertiesInternal)this).ExecutionEndTime, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobRunPropertiesInternal)this).ExecutionEndTime = (global::System.DateTime?) content.GetValueForProperty("ExecutionEndTime",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobRunPropertiesInternal)this).ExecutionEndTime, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); } if (content.Contains("LastStatusUpdate")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobRunPropertiesInternal)this).LastStatusUpdate = (global::System.DateTime?) content.GetValueForProperty("LastStatusUpdate",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobRunPropertiesInternal)this).LastStatusUpdate, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobRunPropertiesInternal)this).LastStatusUpdate = (global::System.DateTime?) content.GetValueForProperty("LastStatusUpdate",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobRunPropertiesInternal)this).LastStatusUpdate, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); } if (content.Contains("ItemsScanned")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobRunPropertiesInternal)this).ItemsScanned = (long?) content.GetValueForProperty("ItemsScanned",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobRunPropertiesInternal)this).ItemsScanned, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobRunPropertiesInternal)this).ItemsScanned = (long?) content.GetValueForProperty("ItemsScanned",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobRunPropertiesInternal)this).ItemsScanned, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); } if (content.Contains("ItemsExcluded")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobRunPropertiesInternal)this).ItemsExcluded = (long?) content.GetValueForProperty("ItemsExcluded",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobRunPropertiesInternal)this).ItemsExcluded, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobRunPropertiesInternal)this).ItemsExcluded = (long?) content.GetValueForProperty("ItemsExcluded",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobRunPropertiesInternal)this).ItemsExcluded, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); } if (content.Contains("ItemsUnsupported")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobRunPropertiesInternal)this).ItemsUnsupported = (long?) content.GetValueForProperty("ItemsUnsupported",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobRunPropertiesInternal)this).ItemsUnsupported, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobRunPropertiesInternal)this).ItemsUnsupported = (long?) content.GetValueForProperty("ItemsUnsupported",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobRunPropertiesInternal)this).ItemsUnsupported, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); } if (content.Contains("ItemsNoTransferNeeded")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobRunPropertiesInternal)this).ItemsNoTransferNeeded = (long?) content.GetValueForProperty("ItemsNoTransferNeeded",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobRunPropertiesInternal)this).ItemsNoTransferNeeded, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobRunPropertiesInternal)this).ItemsNoTransferNeeded = (long?) content.GetValueForProperty("ItemsNoTransferNeeded",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobRunPropertiesInternal)this).ItemsNoTransferNeeded, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); } if (content.Contains("ItemsFailed")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobRunPropertiesInternal)this).ItemsFailed = (long?) content.GetValueForProperty("ItemsFailed",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobRunPropertiesInternal)this).ItemsFailed, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobRunPropertiesInternal)this).ItemsFailed = (long?) content.GetValueForProperty("ItemsFailed",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobRunPropertiesInternal)this).ItemsFailed, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); } if (content.Contains("ItemsTransferred")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobRunPropertiesInternal)this).ItemsTransferred = (long?) content.GetValueForProperty("ItemsTransferred",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobRunPropertiesInternal)this).ItemsTransferred, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobRunPropertiesInternal)this).ItemsTransferred = (long?) content.GetValueForProperty("ItemsTransferred",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobRunPropertiesInternal)this).ItemsTransferred, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); } if (content.Contains("BytesScanned")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobRunPropertiesInternal)this).BytesScanned = (long?) content.GetValueForProperty("BytesScanned",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobRunPropertiesInternal)this).BytesScanned, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobRunPropertiesInternal)this).BytesScanned = (long?) content.GetValueForProperty("BytesScanned",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobRunPropertiesInternal)this).BytesScanned, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); } if (content.Contains("BytesExcluded")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobRunPropertiesInternal)this).BytesExcluded = (long?) content.GetValueForProperty("BytesExcluded",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobRunPropertiesInternal)this).BytesExcluded, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobRunPropertiesInternal)this).BytesExcluded = (long?) content.GetValueForProperty("BytesExcluded",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobRunPropertiesInternal)this).BytesExcluded, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); } if (content.Contains("BytesUnsupported")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobRunPropertiesInternal)this).BytesUnsupported = (long?) content.GetValueForProperty("BytesUnsupported",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobRunPropertiesInternal)this).BytesUnsupported, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobRunPropertiesInternal)this).BytesUnsupported = (long?) content.GetValueForProperty("BytesUnsupported",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobRunPropertiesInternal)this).BytesUnsupported, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); } if (content.Contains("BytesNoTransferNeeded")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobRunPropertiesInternal)this).BytesNoTransferNeeded = (long?) content.GetValueForProperty("BytesNoTransferNeeded",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobRunPropertiesInternal)this).BytesNoTransferNeeded, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobRunPropertiesInternal)this).BytesNoTransferNeeded = (long?) content.GetValueForProperty("BytesNoTransferNeeded",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobRunPropertiesInternal)this).BytesNoTransferNeeded, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); } if (content.Contains("BytesFailed")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobRunPropertiesInternal)this).BytesFailed = (long?) content.GetValueForProperty("BytesFailed",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobRunPropertiesInternal)this).BytesFailed, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobRunPropertiesInternal)this).BytesFailed = (long?) content.GetValueForProperty("BytesFailed",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobRunPropertiesInternal)this).BytesFailed, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); } if (content.Contains("BytesTransferred")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobRunPropertiesInternal)this).BytesTransferred = (long?) content.GetValueForProperty("BytesTransferred",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobRunPropertiesInternal)this).BytesTransferred, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobRunPropertiesInternal)this).BytesTransferred = (long?) content.GetValueForProperty("BytesTransferred",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobRunPropertiesInternal)this).BytesTransferred, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); } if (content.Contains("SourceName")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobRunPropertiesInternal)this).SourceName = (string) content.GetValueForProperty("SourceName",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobRunPropertiesInternal)this).SourceName, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobRunPropertiesInternal)this).SourceName = (string) content.GetValueForProperty("SourceName",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobRunPropertiesInternal)this).SourceName, global::System.Convert.ToString); } if (content.Contains("SourceResourceId")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobRunPropertiesInternal)this).SourceResourceId = (string) content.GetValueForProperty("SourceResourceId",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobRunPropertiesInternal)this).SourceResourceId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobRunPropertiesInternal)this).SourceResourceId = (string) content.GetValueForProperty("SourceResourceId",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobRunPropertiesInternal)this).SourceResourceId, global::System.Convert.ToString); } if (content.Contains("SourceProperty")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobRunPropertiesInternal)this).SourceProperty = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.IAny) content.GetValueForProperty("SourceProperty",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobRunPropertiesInternal)this).SourceProperty, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.AnyTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobRunPropertiesInternal)this).SourceProperty = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.IAny) content.GetValueForProperty("SourceProperty",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobRunPropertiesInternal)this).SourceProperty, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.AnyTypeConverter.ConvertFrom); } if (content.Contains("TargetName")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobRunPropertiesInternal)this).TargetName = (string) content.GetValueForProperty("TargetName",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobRunPropertiesInternal)this).TargetName, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobRunPropertiesInternal)this).TargetName = (string) content.GetValueForProperty("TargetName",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobRunPropertiesInternal)this).TargetName, global::System.Convert.ToString); } if (content.Contains("TargetResourceId")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobRunPropertiesInternal)this).TargetResourceId = (string) content.GetValueForProperty("TargetResourceId",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobRunPropertiesInternal)this).TargetResourceId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobRunPropertiesInternal)this).TargetResourceId = (string) content.GetValueForProperty("TargetResourceId",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobRunPropertiesInternal)this).TargetResourceId, global::System.Convert.ToString); } if (content.Contains("TargetProperty")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobRunPropertiesInternal)this).TargetProperty = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.IAny) content.GetValueForProperty("TargetProperty",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobRunPropertiesInternal)this).TargetProperty, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.AnyTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobRunPropertiesInternal)this).TargetProperty = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.IAny) content.GetValueForProperty("TargetProperty",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobRunPropertiesInternal)this).TargetProperty, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.AnyTypeConverter.ConvertFrom); } if (content.Contains("JobDefinitionProperty")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobRunPropertiesInternal)this).JobDefinitionProperty = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.IAny) content.GetValueForProperty("JobDefinitionProperty",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobRunPropertiesInternal)this).JobDefinitionProperty, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.AnyTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobRunPropertiesInternal)this).JobDefinitionProperty = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.IAny) content.GetValueForProperty("JobDefinitionProperty",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobRunPropertiesInternal)this).JobDefinitionProperty, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.AnyTypeConverter.ConvertFrom); } if (content.Contains("ProvisioningState")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobRunPropertiesInternal)this).ProvisioningState = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.ProvisioningState?) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobRunPropertiesInternal)this).ProvisioningState, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.ProvisioningState.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobRunPropertiesInternal)this).ProvisioningState = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.ProvisioningState?) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobRunPropertiesInternal)this).ProvisioningState, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.ProvisioningState.CreateFrom); } if (content.Contains("Code")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobRunPropertiesInternal)this).Code = (string) content.GetValueForProperty("Code",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobRunPropertiesInternal)this).Code, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobRunPropertiesInternal)this).Code = (string) content.GetValueForProperty("Code",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobRunPropertiesInternal)this).Code, global::System.Convert.ToString); } if (content.Contains("Message")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobRunPropertiesInternal)this).Message = (string) content.GetValueForProperty("Message",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobRunPropertiesInternal)this).Message, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobRunPropertiesInternal)this).Message = (string) content.GetValueForProperty("Message",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobRunPropertiesInternal)this).Message, global::System.Convert.ToString); } if (content.Contains("Target")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobRunPropertiesInternal)this).Target = (string) content.GetValueForProperty("Target",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobRunPropertiesInternal)this).Target, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobRunPropertiesInternal)this).Target = (string) content.GetValueForProperty("Target",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobRunPropertiesInternal)this).Target, global::System.Convert.ToString); } AfterDeserializePSObject(content); } diff --git a/src/StorageMover/generated/api/Models/Api20230301/JobRunProperties.TypeConverter.cs b/src/StorageMover/generated/api/Models/Api20231001/JobRunProperties.TypeConverter.cs similarity index 98% rename from src/StorageMover/generated/api/Models/Api20230301/JobRunProperties.TypeConverter.cs rename to src/StorageMover/generated/api/Models/Api20231001/JobRunProperties.TypeConverter.cs index 1a08d6b1df73..4f2558f226fe 100644 --- a/src/StorageMover/generated/api/Models/Api20230301/JobRunProperties.TypeConverter.cs +++ b/src/StorageMover/generated/api/Models/Api20231001/JobRunProperties.TypeConverter.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301 +namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001 { using Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.PowerShell; @@ -106,14 +106,14 @@ public static bool CanConvertFrom(dynamic sourceValue) /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobRunProperties ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobRunProperties ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobRunProperties).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobRunProperties).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/StorageMover/generated/api/Models/Api20230301/JobRunProperties.cs b/src/StorageMover/generated/api/Models/Api20231001/JobRunProperties.cs similarity index 94% rename from src/StorageMover/generated/api/Models/Api20230301/JobRunProperties.cs rename to src/StorageMover/generated/api/Models/Api20231001/JobRunProperties.cs index ac45f5e7794e..9471da33fde8 100644 --- a/src/StorageMover/generated/api/Models/Api20230301/JobRunProperties.cs +++ b/src/StorageMover/generated/api/Models/Api20231001/JobRunProperties.cs @@ -3,15 +3,15 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301 +namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001 { using static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Extensions; /// Job run properties. [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.DoNotFormat] public partial class JobRunProperties : - Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobRunProperties, - Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobRunPropertiesInternal + Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobRunProperties, + Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobRunPropertiesInternal { /// Backing field for property. @@ -76,14 +76,14 @@ public partial class JobRunProperties : /// Error code of the given entry. [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Origin(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.PropertyOrigin.Inlined)] - public string Code { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobRunErrorInternal)Error).Code; set => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobRunErrorInternal)Error).Code = value ?? null; } + public string Code { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobRunErrorInternal)Error).Code; set => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobRunErrorInternal)Error).Code = value ?? null; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobRunError _error; + private Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobRunError _error; /// Error details. [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Origin(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.PropertyOrigin.Owned)] - internal Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobRunError Error { get => (this._error = this._error ?? new Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.JobRunError()); } + internal Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobRunError Error { get => (this._error = this._error ?? new Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.JobRunError()); } /// Backing field for property. private global::System.DateTime? _executionEndTime; @@ -163,91 +163,91 @@ public partial class JobRunProperties : /// Error message of the given entry. [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Origin(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.PropertyOrigin.Inlined)] - public string Message { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobRunErrorInternal)Error).Message; set => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobRunErrorInternal)Error).Message = value ?? null; } + public string Message { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobRunErrorInternal)Error).Message; set => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobRunErrorInternal)Error).Message = value ?? null; } /// Internal Acessors for AgentName - string Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobRunPropertiesInternal.AgentName { get => this._agentName; set { {_agentName = value;} } } + string Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobRunPropertiesInternal.AgentName { get => this._agentName; set { {_agentName = value;} } } /// Internal Acessors for AgentResourceId - string Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobRunPropertiesInternal.AgentResourceId { get => this._agentResourceId; set { {_agentResourceId = value;} } } + string Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobRunPropertiesInternal.AgentResourceId { get => this._agentResourceId; set { {_agentResourceId = value;} } } /// Internal Acessors for BytesExcluded - long? Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobRunPropertiesInternal.BytesExcluded { get => this._bytesExcluded; set { {_bytesExcluded = value;} } } + long? Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobRunPropertiesInternal.BytesExcluded { get => this._bytesExcluded; set { {_bytesExcluded = value;} } } /// Internal Acessors for BytesFailed - long? Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobRunPropertiesInternal.BytesFailed { get => this._bytesFailed; set { {_bytesFailed = value;} } } + long? Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobRunPropertiesInternal.BytesFailed { get => this._bytesFailed; set { {_bytesFailed = value;} } } /// Internal Acessors for BytesNoTransferNeeded - long? Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobRunPropertiesInternal.BytesNoTransferNeeded { get => this._bytesNoTransferNeeded; set { {_bytesNoTransferNeeded = value;} } } + long? Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobRunPropertiesInternal.BytesNoTransferNeeded { get => this._bytesNoTransferNeeded; set { {_bytesNoTransferNeeded = value;} } } /// Internal Acessors for BytesScanned - long? Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobRunPropertiesInternal.BytesScanned { get => this._bytesScanned; set { {_bytesScanned = value;} } } + long? Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobRunPropertiesInternal.BytesScanned { get => this._bytesScanned; set { {_bytesScanned = value;} } } /// Internal Acessors for BytesTransferred - long? Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobRunPropertiesInternal.BytesTransferred { get => this._bytesTransferred; set { {_bytesTransferred = value;} } } + long? Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobRunPropertiesInternal.BytesTransferred { get => this._bytesTransferred; set { {_bytesTransferred = value;} } } /// Internal Acessors for BytesUnsupported - long? Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobRunPropertiesInternal.BytesUnsupported { get => this._bytesUnsupported; set { {_bytesUnsupported = value;} } } + long? Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobRunPropertiesInternal.BytesUnsupported { get => this._bytesUnsupported; set { {_bytesUnsupported = value;} } } /// Internal Acessors for Error - Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobRunError Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobRunPropertiesInternal.Error { get => (this._error = this._error ?? new Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.JobRunError()); set { {_error = value;} } } + Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobRunError Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobRunPropertiesInternal.Error { get => (this._error = this._error ?? new Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.JobRunError()); set { {_error = value;} } } /// Internal Acessors for ExecutionEndTime - global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobRunPropertiesInternal.ExecutionEndTime { get => this._executionEndTime; set { {_executionEndTime = value;} } } + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobRunPropertiesInternal.ExecutionEndTime { get => this._executionEndTime; set { {_executionEndTime = value;} } } /// Internal Acessors for ExecutionStartTime - global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobRunPropertiesInternal.ExecutionStartTime { get => this._executionStartTime; set { {_executionStartTime = value;} } } + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobRunPropertiesInternal.ExecutionStartTime { get => this._executionStartTime; set { {_executionStartTime = value;} } } /// Internal Acessors for ItemsExcluded - long? Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobRunPropertiesInternal.ItemsExcluded { get => this._itemsExcluded; set { {_itemsExcluded = value;} } } + long? Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobRunPropertiesInternal.ItemsExcluded { get => this._itemsExcluded; set { {_itemsExcluded = value;} } } /// Internal Acessors for ItemsFailed - long? Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobRunPropertiesInternal.ItemsFailed { get => this._itemsFailed; set { {_itemsFailed = value;} } } + long? Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobRunPropertiesInternal.ItemsFailed { get => this._itemsFailed; set { {_itemsFailed = value;} } } /// Internal Acessors for ItemsNoTransferNeeded - long? Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobRunPropertiesInternal.ItemsNoTransferNeeded { get => this._itemsNoTransferNeeded; set { {_itemsNoTransferNeeded = value;} } } + long? Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobRunPropertiesInternal.ItemsNoTransferNeeded { get => this._itemsNoTransferNeeded; set { {_itemsNoTransferNeeded = value;} } } /// Internal Acessors for ItemsScanned - long? Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobRunPropertiesInternal.ItemsScanned { get => this._itemsScanned; set { {_itemsScanned = value;} } } + long? Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobRunPropertiesInternal.ItemsScanned { get => this._itemsScanned; set { {_itemsScanned = value;} } } /// Internal Acessors for ItemsTransferred - long? Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobRunPropertiesInternal.ItemsTransferred { get => this._itemsTransferred; set { {_itemsTransferred = value;} } } + long? Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobRunPropertiesInternal.ItemsTransferred { get => this._itemsTransferred; set { {_itemsTransferred = value;} } } /// Internal Acessors for ItemsUnsupported - long? Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobRunPropertiesInternal.ItemsUnsupported { get => this._itemsUnsupported; set { {_itemsUnsupported = value;} } } + long? Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobRunPropertiesInternal.ItemsUnsupported { get => this._itemsUnsupported; set { {_itemsUnsupported = value;} } } /// Internal Acessors for JobDefinitionProperty - Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.IAny Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobRunPropertiesInternal.JobDefinitionProperty { get => (this._jobDefinitionProperty = this._jobDefinitionProperty ?? new Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Any()); set { {_jobDefinitionProperty = value;} } } + Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.IAny Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobRunPropertiesInternal.JobDefinitionProperty { get => (this._jobDefinitionProperty = this._jobDefinitionProperty ?? new Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Any()); set { {_jobDefinitionProperty = value;} } } /// Internal Acessors for LastStatusUpdate - global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobRunPropertiesInternal.LastStatusUpdate { get => this._lastStatusUpdate; set { {_lastStatusUpdate = value;} } } + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobRunPropertiesInternal.LastStatusUpdate { get => this._lastStatusUpdate; set { {_lastStatusUpdate = value;} } } /// Internal Acessors for ProvisioningState - Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.ProvisioningState? Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobRunPropertiesInternal.ProvisioningState { get => this._provisioningState; set { {_provisioningState = value;} } } + Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.ProvisioningState? Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobRunPropertiesInternal.ProvisioningState { get => this._provisioningState; set { {_provisioningState = value;} } } /// Internal Acessors for ScanStatus - Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.JobRunScanStatus? Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobRunPropertiesInternal.ScanStatus { get => this._scanStatus; set { {_scanStatus = value;} } } + Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.JobRunScanStatus? Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobRunPropertiesInternal.ScanStatus { get => this._scanStatus; set { {_scanStatus = value;} } } /// Internal Acessors for SourceName - string Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobRunPropertiesInternal.SourceName { get => this._sourceName; set { {_sourceName = value;} } } + string Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobRunPropertiesInternal.SourceName { get => this._sourceName; set { {_sourceName = value;} } } /// Internal Acessors for SourceProperty - Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.IAny Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobRunPropertiesInternal.SourceProperty { get => (this._sourceProperty = this._sourceProperty ?? new Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Any()); set { {_sourceProperty = value;} } } + Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.IAny Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobRunPropertiesInternal.SourceProperty { get => (this._sourceProperty = this._sourceProperty ?? new Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Any()); set { {_sourceProperty = value;} } } /// Internal Acessors for SourceResourceId - string Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobRunPropertiesInternal.SourceResourceId { get => this._sourceResourceId; set { {_sourceResourceId = value;} } } + string Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobRunPropertiesInternal.SourceResourceId { get => this._sourceResourceId; set { {_sourceResourceId = value;} } } /// Internal Acessors for Status - Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.JobRunStatus? Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobRunPropertiesInternal.Status { get => this._status; set { {_status = value;} } } + Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.JobRunStatus? Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobRunPropertiesInternal.Status { get => this._status; set { {_status = value;} } } /// Internal Acessors for TargetName - string Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobRunPropertiesInternal.TargetName { get => this._targetName; set { {_targetName = value;} } } + string Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobRunPropertiesInternal.TargetName { get => this._targetName; set { {_targetName = value;} } } /// Internal Acessors for TargetProperty - Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.IAny Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobRunPropertiesInternal.TargetProperty { get => (this._targetProperty = this._targetProperty ?? new Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Any()); set { {_targetProperty = value;} } } + Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.IAny Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobRunPropertiesInternal.TargetProperty { get => (this._targetProperty = this._targetProperty ?? new Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Any()); set { {_targetProperty = value;} } } /// Internal Acessors for TargetResourceId - string Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobRunPropertiesInternal.TargetResourceId { get => this._targetResourceId; set { {_targetResourceId = value;} } } + string Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobRunPropertiesInternal.TargetResourceId { get => this._targetResourceId; set { {_targetResourceId = value;} } } /// Backing field for property. private Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.ProvisioningState? _provisioningState; @@ -293,7 +293,7 @@ public partial class JobRunProperties : /// Target of the given error entry. [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Origin(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.PropertyOrigin.Inlined)] - public string Target { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobRunErrorInternal)Error).Target; set => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobRunErrorInternal)Error).Target = value ?? null; } + public string Target { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobRunErrorInternal)Error).Target; set => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobRunErrorInternal)Error).Target = value ?? null; } /// Backing field for property. private string _targetName; @@ -605,7 +605,7 @@ internal partial interface IJobRunPropertiesInternal /// Error code of the given entry. string Code { get; set; } /// Error details. - Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobRunError Error { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobRunError Error { get; set; } /// End time of the run. Null if Agent has not reported that the job has ended. global::System.DateTime? ExecutionEndTime { get; set; } /// Start time of the run. Null if no Agent reported that the job has started. diff --git a/src/StorageMover/generated/api/Models/Api20230301/JobRunProperties.json.cs b/src/StorageMover/generated/api/Models/Api20231001/JobRunProperties.json.cs similarity index 99% rename from src/StorageMover/generated/api/Models/Api20230301/JobRunProperties.json.cs rename to src/StorageMover/generated/api/Models/Api20231001/JobRunProperties.json.cs index 0c633c110fc5..8cfc16b5d8af 100644 --- a/src/StorageMover/generated/api/Models/Api20230301/JobRunProperties.json.cs +++ b/src/StorageMover/generated/api/Models/Api20231001/JobRunProperties.json.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301 +namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001 { using static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Extensions; @@ -54,13 +54,13 @@ public partial class JobRunProperties partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobRunProperties. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobRunProperties. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobRunProperties. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobRunProperties. /// - public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobRunProperties FromJson(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobRunProperties FromJson(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonObject json ? new JobRunProperties(json) : null; } @@ -77,7 +77,7 @@ internal JobRunProperties(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtim { return; } - {_error = If( json?.PropertyT("error"), out var __jsonError) ? Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.JobRunError.FromJson(__jsonError) : Error;} + {_error = If( json?.PropertyT("error"), out var __jsonError) ? Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.JobRunError.FromJson(__jsonError) : Error;} {_status = If( json?.PropertyT("status"), out var __jsonStatus) ? (string)__jsonStatus : (string)Status;} {_scanStatus = If( json?.PropertyT("scanStatus"), out var __jsonScanStatus) ? (string)__jsonScanStatus : (string)ScanStatus;} {_agentName = If( json?.PropertyT("agentName"), out var __jsonAgentName) ? (string)__jsonAgentName : (string)AgentName;} diff --git a/src/StorageMover/generated/api/Models/Api20230301/JobRunResourceId.PowerShell.cs b/src/StorageMover/generated/api/Models/Api20231001/JobRunResourceId.PowerShell.cs similarity index 90% rename from src/StorageMover/generated/api/Models/Api20230301/JobRunResourceId.PowerShell.cs rename to src/StorageMover/generated/api/Models/Api20231001/JobRunResourceId.PowerShell.cs index c04418dbbec4..e62dc6ed78f6 100644 --- a/src/StorageMover/generated/api/Models/Api20230301/JobRunResourceId.PowerShell.cs +++ b/src/StorageMover/generated/api/Models/Api20231001/JobRunResourceId.PowerShell.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301 +namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001 { using Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.PowerShell; @@ -63,27 +63,27 @@ public partial class JobRunResourceId partial void OverrideToString(ref string stringResult, ref bool returnNow); /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Collections.IDictionary content that should be used. /// - /// an instance of . + /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobRunResourceId DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobRunResourceId DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new JobRunResourceId(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. /// - /// an instance of . + /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobRunResourceId DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobRunResourceId DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new JobRunResourceId(content); } @@ -93,10 +93,10 @@ public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301 /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobRunResourceId FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobRunResourceId FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonNode.Parse(jsonText)); /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. @@ -111,13 +111,13 @@ internal JobRunResourceId(global::System.Collections.IDictionary content) // actually deserialize if (content.Contains("JobRunResourceId1")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobRunResourceIdInternal)this).JobRunResourceId1 = (string) content.GetValueForProperty("JobRunResourceId1",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobRunResourceIdInternal)this).JobRunResourceId1, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobRunResourceIdInternal)this).JobRunResourceId1 = (string) content.GetValueForProperty("JobRunResourceId1",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobRunResourceIdInternal)this).JobRunResourceId1, global::System.Convert.ToString); } AfterDeserializeDictionary(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -132,7 +132,7 @@ internal JobRunResourceId(global::System.Management.Automation.PSObject content) // actually deserialize if (content.Contains("JobRunResourceId1")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobRunResourceIdInternal)this).JobRunResourceId1 = (string) content.GetValueForProperty("JobRunResourceId1",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobRunResourceIdInternal)this).JobRunResourceId1, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobRunResourceIdInternal)this).JobRunResourceId1 = (string) content.GetValueForProperty("JobRunResourceId1",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobRunResourceIdInternal)this).JobRunResourceId1, global::System.Convert.ToString); } AfterDeserializePSObject(content); } diff --git a/src/StorageMover/generated/api/Models/Api20230301/JobRunResourceId.TypeConverter.cs b/src/StorageMover/generated/api/Models/Api20231001/JobRunResourceId.TypeConverter.cs similarity index 98% rename from src/StorageMover/generated/api/Models/Api20230301/JobRunResourceId.TypeConverter.cs rename to src/StorageMover/generated/api/Models/Api20231001/JobRunResourceId.TypeConverter.cs index 7356329c2867..35522ee88dfd 100644 --- a/src/StorageMover/generated/api/Models/Api20230301/JobRunResourceId.TypeConverter.cs +++ b/src/StorageMover/generated/api/Models/Api20231001/JobRunResourceId.TypeConverter.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301 +namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001 { using Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.PowerShell; @@ -106,14 +106,14 @@ public static bool CanConvertFrom(dynamic sourceValue) /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobRunResourceId ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobRunResourceId ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobRunResourceId).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobRunResourceId).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/StorageMover/generated/api/Models/Api20230301/JobRunResourceId.cs b/src/StorageMover/generated/api/Models/Api20231001/JobRunResourceId.cs similarity index 94% rename from src/StorageMover/generated/api/Models/Api20230301/JobRunResourceId.cs rename to src/StorageMover/generated/api/Models/Api20231001/JobRunResourceId.cs index b16edef6182e..5af94ec23ed9 100644 --- a/src/StorageMover/generated/api/Models/Api20230301/JobRunResourceId.cs +++ b/src/StorageMover/generated/api/Models/Api20231001/JobRunResourceId.cs @@ -3,15 +3,15 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301 +namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001 { using static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Extensions; /// Response that identifies a Job Run. [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.DoNotFormat] public partial class JobRunResourceId : - Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobRunResourceId, - Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobRunResourceIdInternal + Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobRunResourceId, + Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobRunResourceIdInternal { /// Backing field for property. @@ -22,7 +22,7 @@ public partial class JobRunResourceId : public string JobRunResourceId1 { get => this._jobRunResourceId1; } /// Internal Acessors for JobRunResourceId1 - string Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobRunResourceIdInternal.JobRunResourceId1 { get => this._jobRunResourceId1; set { {_jobRunResourceId1 = value;} } } + string Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobRunResourceIdInternal.JobRunResourceId1 { get => this._jobRunResourceId1; set { {_jobRunResourceId1 = value;} } } /// Creates an new instance. public JobRunResourceId() diff --git a/src/StorageMover/generated/api/Models/Api20230301/JobRunResourceId.json.cs b/src/StorageMover/generated/api/Models/Api20231001/JobRunResourceId.json.cs similarity index 97% rename from src/StorageMover/generated/api/Models/Api20230301/JobRunResourceId.json.cs rename to src/StorageMover/generated/api/Models/Api20231001/JobRunResourceId.json.cs index 798b6271c6d8..98cee71518f9 100644 --- a/src/StorageMover/generated/api/Models/Api20230301/JobRunResourceId.json.cs +++ b/src/StorageMover/generated/api/Models/Api20231001/JobRunResourceId.json.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301 +namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001 { using static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Extensions; @@ -54,13 +54,13 @@ public partial class JobRunResourceId partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobRunResourceId. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobRunResourceId. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobRunResourceId. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobRunResourceId. /// - public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobRunResourceId FromJson(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobRunResourceId FromJson(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonObject json ? new JobRunResourceId(json) : null; } diff --git a/src/StorageMover/generated/api/Models/Api20230301/NfsMountEndpointProperties.PowerShell.cs b/src/StorageMover/generated/api/Models/Api20231001/NfsMountEndpointProperties.PowerShell.cs similarity index 84% rename from src/StorageMover/generated/api/Models/Api20230301/NfsMountEndpointProperties.PowerShell.cs rename to src/StorageMover/generated/api/Models/Api20231001/NfsMountEndpointProperties.PowerShell.cs index 4a64fb0c43ff..f14073aacfe0 100644 --- a/src/StorageMover/generated/api/Models/Api20230301/NfsMountEndpointProperties.PowerShell.cs +++ b/src/StorageMover/generated/api/Models/Api20231001/NfsMountEndpointProperties.PowerShell.cs @@ -3,10 +3,11 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301 +namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001 { using Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.PowerShell; + /// The properties of NFS share endpoint. [System.ComponentModel.TypeConverter(typeof(NfsMountEndpointPropertiesTypeConverter))] public partial class NfsMountEndpointProperties { @@ -62,29 +63,29 @@ public partial class NfsMountEndpointProperties partial void OverrideToString(ref string stringResult, ref bool returnNow); /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Collections.IDictionary content that should be used. /// - /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.INfsMountEndpointProperties DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.INfsMountEndpointProperties DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new NfsMountEndpointProperties(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. /// - /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.INfsMountEndpointProperties DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.INfsMountEndpointProperties DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new NfsMountEndpointProperties(content); } @@ -94,10 +95,10 @@ public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301 /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.INfsMountEndpointProperties FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.INfsMountEndpointProperties FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonNode.Parse(jsonText)); /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. @@ -112,33 +113,33 @@ internal NfsMountEndpointProperties(global::System.Collections.IDictionary conte // actually deserialize if (content.Contains("Host")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.INfsMountEndpointPropertiesInternal)this).Host = (string) content.GetValueForProperty("Host",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.INfsMountEndpointPropertiesInternal)this).Host, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.INfsMountEndpointPropertiesInternal)this).Host = (string) content.GetValueForProperty("Host",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.INfsMountEndpointPropertiesInternal)this).Host, global::System.Convert.ToString); } if (content.Contains("NfsVersion")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.INfsMountEndpointPropertiesInternal)this).NfsVersion = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.NfsVersion?) content.GetValueForProperty("NfsVersion",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.INfsMountEndpointPropertiesInternal)this).NfsVersion, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.NfsVersion.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.INfsMountEndpointPropertiesInternal)this).NfsVersion = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.NfsVersion?) content.GetValueForProperty("NfsVersion",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.INfsMountEndpointPropertiesInternal)this).NfsVersion, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.NfsVersion.CreateFrom); } if (content.Contains("Export")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.INfsMountEndpointPropertiesInternal)this).Export = (string) content.GetValueForProperty("Export",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.INfsMountEndpointPropertiesInternal)this).Export, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.INfsMountEndpointPropertiesInternal)this).Export = (string) content.GetValueForProperty("Export",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.INfsMountEndpointPropertiesInternal)this).Export, global::System.Convert.ToString); } if (content.Contains("EndpointType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IEndpointBasePropertiesInternal)this).EndpointType = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.EndpointType) content.GetValueForProperty("EndpointType",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IEndpointBasePropertiesInternal)this).EndpointType, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.EndpointType.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IEndpointBasePropertiesInternal)this).EndpointType = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.EndpointType) content.GetValueForProperty("EndpointType",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IEndpointBasePropertiesInternal)this).EndpointType, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.EndpointType.CreateFrom); } if (content.Contains("Description")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IEndpointBasePropertiesInternal)this).Description = (string) content.GetValueForProperty("Description",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IEndpointBasePropertiesInternal)this).Description, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IEndpointBasePropertiesInternal)this).Description = (string) content.GetValueForProperty("Description",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IEndpointBasePropertiesInternal)this).Description, global::System.Convert.ToString); } if (content.Contains("ProvisioningState")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IEndpointBasePropertiesInternal)this).ProvisioningState = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.ProvisioningState?) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IEndpointBasePropertiesInternal)this).ProvisioningState, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.ProvisioningState.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IEndpointBasePropertiesInternal)this).ProvisioningState = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.ProvisioningState?) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IEndpointBasePropertiesInternal)this).ProvisioningState, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.ProvisioningState.CreateFrom); } AfterDeserializeDictionary(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -153,27 +154,27 @@ internal NfsMountEndpointProperties(global::System.Management.Automation.PSObjec // actually deserialize if (content.Contains("Host")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.INfsMountEndpointPropertiesInternal)this).Host = (string) content.GetValueForProperty("Host",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.INfsMountEndpointPropertiesInternal)this).Host, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.INfsMountEndpointPropertiesInternal)this).Host = (string) content.GetValueForProperty("Host",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.INfsMountEndpointPropertiesInternal)this).Host, global::System.Convert.ToString); } if (content.Contains("NfsVersion")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.INfsMountEndpointPropertiesInternal)this).NfsVersion = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.NfsVersion?) content.GetValueForProperty("NfsVersion",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.INfsMountEndpointPropertiesInternal)this).NfsVersion, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.NfsVersion.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.INfsMountEndpointPropertiesInternal)this).NfsVersion = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.NfsVersion?) content.GetValueForProperty("NfsVersion",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.INfsMountEndpointPropertiesInternal)this).NfsVersion, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.NfsVersion.CreateFrom); } if (content.Contains("Export")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.INfsMountEndpointPropertiesInternal)this).Export = (string) content.GetValueForProperty("Export",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.INfsMountEndpointPropertiesInternal)this).Export, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.INfsMountEndpointPropertiesInternal)this).Export = (string) content.GetValueForProperty("Export",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.INfsMountEndpointPropertiesInternal)this).Export, global::System.Convert.ToString); } if (content.Contains("EndpointType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IEndpointBasePropertiesInternal)this).EndpointType = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.EndpointType) content.GetValueForProperty("EndpointType",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IEndpointBasePropertiesInternal)this).EndpointType, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.EndpointType.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IEndpointBasePropertiesInternal)this).EndpointType = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.EndpointType) content.GetValueForProperty("EndpointType",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IEndpointBasePropertiesInternal)this).EndpointType, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.EndpointType.CreateFrom); } if (content.Contains("Description")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IEndpointBasePropertiesInternal)this).Description = (string) content.GetValueForProperty("Description",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IEndpointBasePropertiesInternal)this).Description, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IEndpointBasePropertiesInternal)this).Description = (string) content.GetValueForProperty("Description",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IEndpointBasePropertiesInternal)this).Description, global::System.Convert.ToString); } if (content.Contains("ProvisioningState")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IEndpointBasePropertiesInternal)this).ProvisioningState = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.ProvisioningState?) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IEndpointBasePropertiesInternal)this).ProvisioningState, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.ProvisioningState.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IEndpointBasePropertiesInternal)this).ProvisioningState = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.ProvisioningState?) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IEndpointBasePropertiesInternal)this).ProvisioningState, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.ProvisioningState.CreateFrom); } AfterDeserializePSObject(content); } @@ -195,6 +196,7 @@ public override string ToString() return ToJsonString(); } } + /// The properties of NFS share endpoint. [System.ComponentModel.TypeConverter(typeof(NfsMountEndpointPropertiesTypeConverter))] public partial interface INfsMountEndpointProperties diff --git a/src/StorageMover/generated/api/Models/Api20230301/NfsMountEndpointProperties.TypeConverter.cs b/src/StorageMover/generated/api/Models/Api20231001/NfsMountEndpointProperties.TypeConverter.cs similarity index 98% rename from src/StorageMover/generated/api/Models/Api20230301/NfsMountEndpointProperties.TypeConverter.cs rename to src/StorageMover/generated/api/Models/Api20231001/NfsMountEndpointProperties.TypeConverter.cs index 7a93b7cc828f..11ad12919513 100644 --- a/src/StorageMover/generated/api/Models/Api20230301/NfsMountEndpointProperties.TypeConverter.cs +++ b/src/StorageMover/generated/api/Models/Api20231001/NfsMountEndpointProperties.TypeConverter.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301 +namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001 { using Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.PowerShell; @@ -106,14 +106,14 @@ public static bool CanConvertFrom(dynamic sourceValue) /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.INfsMountEndpointProperties ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.INfsMountEndpointProperties ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.INfsMountEndpointProperties).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.INfsMountEndpointProperties).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/StorageMover/generated/api/Models/Api20230301/NfsMountEndpointProperties.cs b/src/StorageMover/generated/api/Models/Api20231001/NfsMountEndpointProperties.cs similarity index 87% rename from src/StorageMover/generated/api/Models/Api20230301/NfsMountEndpointProperties.cs rename to src/StorageMover/generated/api/Models/Api20231001/NfsMountEndpointProperties.cs index 20a11fc36c9d..5202f2c79e59 100644 --- a/src/StorageMover/generated/api/Models/Api20230301/NfsMountEndpointProperties.cs +++ b/src/StorageMover/generated/api/Models/Api20231001/NfsMountEndpointProperties.cs @@ -3,29 +3,30 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301 +namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001 { using static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Extensions; + /// The properties of NFS share endpoint. [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.DoNotFormat] public partial class NfsMountEndpointProperties : - Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.INfsMountEndpointProperties, - Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.INfsMountEndpointPropertiesInternal, + Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.INfsMountEndpointProperties, + Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.INfsMountEndpointPropertiesInternal, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.IValidates { /// - /// Backing field for Inherited model /// - private Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IEndpointBaseProperties __endpointBaseProperties = new Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.EndpointBaseProperties(); + private Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IEndpointBaseProperties __endpointBaseProperties = new Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.EndpointBaseProperties(); /// A description for the Endpoint. [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Origin(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.PropertyOrigin.Inherited)] - public string Description { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IEndpointBasePropertiesInternal)__endpointBaseProperties).Description; set => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IEndpointBasePropertiesInternal)__endpointBaseProperties).Description = value ?? null; } + public string Description { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IEndpointBasePropertiesInternal)__endpointBaseProperties).Description; set => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IEndpointBasePropertiesInternal)__endpointBaseProperties).Description = value ?? null; } /// The Endpoint resource type. [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Origin(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.PropertyOrigin.Inherited)] - public Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.EndpointType EndpointType { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IEndpointBasePropertiesInternal)__endpointBaseProperties).EndpointType; set => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IEndpointBasePropertiesInternal)__endpointBaseProperties).EndpointType = value ; } + public Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.EndpointType EndpointType { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IEndpointBasePropertiesInternal)__endpointBaseProperties).EndpointType; set => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IEndpointBasePropertiesInternal)__endpointBaseProperties).EndpointType = value ; } /// Backing field for property. private string _export; @@ -42,7 +43,7 @@ public partial class NfsMountEndpointProperties : public string Host { get => this._host; set => this._host = value; } /// Internal Acessors for ProvisioningState - Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.ProvisioningState? Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IEndpointBasePropertiesInternal.ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IEndpointBasePropertiesInternal)__endpointBaseProperties).ProvisioningState; set => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IEndpointBasePropertiesInternal)__endpointBaseProperties).ProvisioningState = value; } + Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.ProvisioningState? Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IEndpointBasePropertiesInternal.ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IEndpointBasePropertiesInternal)__endpointBaseProperties).ProvisioningState; set => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IEndpointBasePropertiesInternal)__endpointBaseProperties).ProvisioningState = value; } /// Backing field for property. private Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.NfsVersion? _nfsVersion; @@ -53,7 +54,7 @@ public partial class NfsMountEndpointProperties : /// The provisioning state of this resource. [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Origin(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.PropertyOrigin.Inherited)] - public Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.ProvisioningState? ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IEndpointBasePropertiesInternal)__endpointBaseProperties).ProvisioningState; } + public Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.ProvisioningState? ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IEndpointBasePropertiesInternal)__endpointBaseProperties).ProvisioningState; } /// Creates an new instance. public NfsMountEndpointProperties() @@ -73,9 +74,10 @@ public NfsMountEndpointProperties() await eventListener.AssertObjectIsValid(nameof(__endpointBaseProperties), __endpointBaseProperties); } } + /// The properties of NFS share endpoint. public partial interface INfsMountEndpointProperties : Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.IJsonSerializable, - Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IEndpointBaseProperties + Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IEndpointBaseProperties { /// The directory being exported from the server. [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Info( @@ -103,8 +105,9 @@ public partial interface INfsMountEndpointProperties : Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.NfsVersion? NfsVersion { get; set; } } + /// The properties of NFS share endpoint. internal partial interface INfsMountEndpointPropertiesInternal : - Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IEndpointBasePropertiesInternal + Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IEndpointBasePropertiesInternal { /// The directory being exported from the server. string Export { get; set; } diff --git a/src/StorageMover/generated/api/Models/Api20230301/NfsMountEndpointProperties.json.cs b/src/StorageMover/generated/api/Models/Api20231001/NfsMountEndpointProperties.json.cs similarity index 96% rename from src/StorageMover/generated/api/Models/Api20230301/NfsMountEndpointProperties.json.cs rename to src/StorageMover/generated/api/Models/Api20231001/NfsMountEndpointProperties.json.cs index 1f8a86913cc5..c06dd10a307d 100644 --- a/src/StorageMover/generated/api/Models/Api20230301/NfsMountEndpointProperties.json.cs +++ b/src/StorageMover/generated/api/Models/Api20231001/NfsMountEndpointProperties.json.cs @@ -3,10 +3,11 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301 +namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001 { using static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Extensions; + /// The properties of NFS share endpoint. public partial class NfsMountEndpointProperties { @@ -53,13 +54,13 @@ public partial class NfsMountEndpointProperties partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.INfsMountEndpointProperties. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.INfsMountEndpointProperties. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.INfsMountEndpointProperties. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.INfsMountEndpointProperties. /// - public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.INfsMountEndpointProperties FromJson(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.INfsMountEndpointProperties FromJson(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonObject json ? new NfsMountEndpointProperties(json) : null; } @@ -76,7 +77,7 @@ internal NfsMountEndpointProperties(Microsoft.Azure.PowerShell.Cmdlets.StorageMo { return; } - __endpointBaseProperties = new Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.EndpointBaseProperties(json); + __endpointBaseProperties = new Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.EndpointBaseProperties(json); {_host = If( json?.PropertyT("host"), out var __jsonHost) ? (string)__jsonHost : (string)Host;} {_nfsVersion = If( json?.PropertyT("nfsVersion"), out var __jsonNfsVersion) ? (string)__jsonNfsVersion : (string)NfsVersion;} {_export = If( json?.PropertyT("export"), out var __jsonExport) ? (string)__jsonExport : (string)Export;} diff --git a/src/StorageMover/generated/api/Models/Api20230301/NfsMountEndpointUpdateProperties.PowerShell.cs b/src/StorageMover/generated/api/Models/Api20231001/NfsMountEndpointUpdateProperties.PowerShell.cs similarity index 81% rename from src/StorageMover/generated/api/Models/Api20230301/NfsMountEndpointUpdateProperties.PowerShell.cs rename to src/StorageMover/generated/api/Models/Api20231001/NfsMountEndpointUpdateProperties.PowerShell.cs index cfd41a88e301..72265e8c1370 100644 --- a/src/StorageMover/generated/api/Models/Api20230301/NfsMountEndpointUpdateProperties.PowerShell.cs +++ b/src/StorageMover/generated/api/Models/Api20231001/NfsMountEndpointUpdateProperties.PowerShell.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301 +namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001 { using Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.PowerShell; @@ -62,29 +62,29 @@ public partial class NfsMountEndpointUpdateProperties partial void OverrideToString(ref string stringResult, ref bool returnNow); /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Collections.IDictionary content that should be used. /// - /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.INfsMountEndpointUpdateProperties DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.INfsMountEndpointUpdateProperties DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new NfsMountEndpointUpdateProperties(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. /// - /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.INfsMountEndpointUpdateProperties DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.INfsMountEndpointUpdateProperties DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new NfsMountEndpointUpdateProperties(content); } @@ -94,10 +94,10 @@ public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301 /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.INfsMountEndpointUpdateProperties FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.INfsMountEndpointUpdateProperties FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonNode.Parse(jsonText)); /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. @@ -110,15 +110,19 @@ internal NfsMountEndpointUpdateProperties(global::System.Collections.IDictionary return; } // actually deserialize + if (content.Contains("EndpointType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IEndpointBaseUpdatePropertiesInternal)this).EndpointType = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.EndpointType) content.GetValueForProperty("EndpointType",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IEndpointBaseUpdatePropertiesInternal)this).EndpointType, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.EndpointType.CreateFrom); + } if (content.Contains("Description")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IEndpointBaseUpdatePropertiesInternal)this).Description = (string) content.GetValueForProperty("Description",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IEndpointBaseUpdatePropertiesInternal)this).Description, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IEndpointBaseUpdatePropertiesInternal)this).Description = (string) content.GetValueForProperty("Description",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IEndpointBaseUpdatePropertiesInternal)this).Description, global::System.Convert.ToString); } AfterDeserializeDictionary(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -131,9 +135,13 @@ internal NfsMountEndpointUpdateProperties(global::System.Management.Automation.P return; } // actually deserialize + if (content.Contains("EndpointType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IEndpointBaseUpdatePropertiesInternal)this).EndpointType = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.EndpointType) content.GetValueForProperty("EndpointType",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IEndpointBaseUpdatePropertiesInternal)this).EndpointType, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.EndpointType.CreateFrom); + } if (content.Contains("Description")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IEndpointBaseUpdatePropertiesInternal)this).Description = (string) content.GetValueForProperty("Description",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IEndpointBaseUpdatePropertiesInternal)this).Description, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IEndpointBaseUpdatePropertiesInternal)this).Description = (string) content.GetValueForProperty("Description",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IEndpointBaseUpdatePropertiesInternal)this).Description, global::System.Convert.ToString); } AfterDeserializePSObject(content); } diff --git a/src/StorageMover/generated/api/Models/Api20230301/NfsMountEndpointUpdateProperties.TypeConverter.cs b/src/StorageMover/generated/api/Models/Api20231001/NfsMountEndpointUpdateProperties.TypeConverter.cs similarity index 98% rename from src/StorageMover/generated/api/Models/Api20230301/NfsMountEndpointUpdateProperties.TypeConverter.cs rename to src/StorageMover/generated/api/Models/Api20231001/NfsMountEndpointUpdateProperties.TypeConverter.cs index c238803e8488..cc7961eb5575 100644 --- a/src/StorageMover/generated/api/Models/Api20230301/NfsMountEndpointUpdateProperties.TypeConverter.cs +++ b/src/StorageMover/generated/api/Models/Api20231001/NfsMountEndpointUpdateProperties.TypeConverter.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301 +namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001 { using Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.PowerShell; @@ -107,14 +107,14 @@ public static bool CanConvertFrom(dynamic sourceValue) /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.INfsMountEndpointUpdateProperties ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.INfsMountEndpointUpdateProperties ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.INfsMountEndpointUpdateProperties).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.INfsMountEndpointUpdateProperties).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/StorageMover/generated/api/Models/Api20230301/NfsMountEndpointUpdateProperties.cs b/src/StorageMover/generated/api/Models/Api20231001/NfsMountEndpointUpdateProperties.cs similarity index 71% rename from src/StorageMover/generated/api/Models/Api20230301/NfsMountEndpointUpdateProperties.cs rename to src/StorageMover/generated/api/Models/Api20231001/NfsMountEndpointUpdateProperties.cs index 561e393d7dbe..fb574fa01858 100644 --- a/src/StorageMover/generated/api/Models/Api20230301/NfsMountEndpointUpdateProperties.cs +++ b/src/StorageMover/generated/api/Models/Api20231001/NfsMountEndpointUpdateProperties.cs @@ -3,25 +3,29 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301 +namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001 { using static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Extensions; [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.DoNotFormat] public partial class NfsMountEndpointUpdateProperties : - Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.INfsMountEndpointUpdateProperties, - Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.INfsMountEndpointUpdatePropertiesInternal, + Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.INfsMountEndpointUpdateProperties, + Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.INfsMountEndpointUpdatePropertiesInternal, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.IValidates { /// - /// Backing field for Inherited model /// - private Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IEndpointBaseUpdateProperties __endpointBaseUpdateProperties = new Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.EndpointBaseUpdateProperties(); + private Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IEndpointBaseUpdateProperties __endpointBaseUpdateProperties = new Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.EndpointBaseUpdateProperties(); /// A description for the Endpoint. [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Origin(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.PropertyOrigin.Inherited)] - public string Description { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IEndpointBaseUpdatePropertiesInternal)__endpointBaseUpdateProperties).Description; set => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IEndpointBaseUpdatePropertiesInternal)__endpointBaseUpdateProperties).Description = value ?? null; } + public string Description { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IEndpointBaseUpdatePropertiesInternal)__endpointBaseUpdateProperties).Description; set => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IEndpointBaseUpdatePropertiesInternal)__endpointBaseUpdateProperties).Description = value ?? null; } + + /// The Endpoint resource type. + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Origin(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.PropertyOrigin.Inherited)] + public Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.EndpointType EndpointType { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IEndpointBaseUpdatePropertiesInternal)__endpointBaseUpdateProperties).EndpointType; set => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IEndpointBaseUpdatePropertiesInternal)__endpointBaseUpdateProperties).EndpointType = value ; } /// Creates an new instance. public NfsMountEndpointUpdateProperties() @@ -43,12 +47,12 @@ public NfsMountEndpointUpdateProperties() } public partial interface INfsMountEndpointUpdateProperties : Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.IJsonSerializable, - Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IEndpointBaseUpdateProperties + Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IEndpointBaseUpdateProperties { } internal partial interface INfsMountEndpointUpdatePropertiesInternal : - Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IEndpointBaseUpdatePropertiesInternal + Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IEndpointBaseUpdatePropertiesInternal { } diff --git a/src/StorageMover/generated/api/Models/Api20230301/NfsMountEndpointUpdateProperties.json.cs b/src/StorageMover/generated/api/Models/Api20231001/NfsMountEndpointUpdateProperties.json.cs similarity index 96% rename from src/StorageMover/generated/api/Models/Api20230301/NfsMountEndpointUpdateProperties.json.cs rename to src/StorageMover/generated/api/Models/Api20231001/NfsMountEndpointUpdateProperties.json.cs index d0dbea85fe8c..ac733180363a 100644 --- a/src/StorageMover/generated/api/Models/Api20230301/NfsMountEndpointUpdateProperties.json.cs +++ b/src/StorageMover/generated/api/Models/Api20231001/NfsMountEndpointUpdateProperties.json.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301 +namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001 { using static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Extensions; @@ -53,13 +53,13 @@ public partial class NfsMountEndpointUpdateProperties partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.INfsMountEndpointUpdateProperties. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.INfsMountEndpointUpdateProperties. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.INfsMountEndpointUpdateProperties. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.INfsMountEndpointUpdateProperties. /// - public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.INfsMountEndpointUpdateProperties FromJson(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.INfsMountEndpointUpdateProperties FromJson(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonObject json ? new NfsMountEndpointUpdateProperties(json) : null; } @@ -76,7 +76,7 @@ internal NfsMountEndpointUpdateProperties(Microsoft.Azure.PowerShell.Cmdlets.Sto { return; } - __endpointBaseUpdateProperties = new Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.EndpointBaseUpdateProperties(json); + __endpointBaseUpdateProperties = new Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.EndpointBaseUpdateProperties(json); AfterFromJson(json); } diff --git a/src/StorageMover/generated/api/Models/Api20230301/Project.PowerShell.cs b/src/StorageMover/generated/api/Models/Api20231001/Project.PowerShell.cs similarity index 64% rename from src/StorageMover/generated/api/Models/Api20230301/Project.PowerShell.cs rename to src/StorageMover/generated/api/Models/Api20231001/Project.PowerShell.cs index 6a7308ac3676..abd43a6fd5bb 100644 --- a/src/StorageMover/generated/api/Models/Api20230301/Project.PowerShell.cs +++ b/src/StorageMover/generated/api/Models/Api20231001/Project.PowerShell.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301 +namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001 { using Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.PowerShell; @@ -63,27 +63,27 @@ public partial class Project partial void OverrideToString(ref string stringResult, ref bool returnNow); /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Collections.IDictionary content that should be used. /// - /// an instance of . + /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IProject DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IProject DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new Project(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. /// - /// an instance of . + /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IProject DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IProject DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new Project(content); } @@ -93,10 +93,10 @@ public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301 /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IProject FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IProject FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonNode.Parse(jsonText)); /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. @@ -111,61 +111,61 @@ internal Project(global::System.Collections.IDictionary content) // actually deserialize if (content.Contains("Property")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IProjectInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IProjectProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IProjectInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.ProjectPropertiesTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IProjectInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IProjectProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IProjectInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.ProjectPropertiesTypeConverter.ConvertFrom); } - if (content.Contains("SystemData")) + if (content.Contains("SystemDataCreatedBy")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IProjectInternal)this).SystemData = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.ISystemData) content.GetValueForProperty("SystemData",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IProjectInternal)this).SystemData, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.SystemDataTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IResourceInternal)this).SystemDataCreatedBy = (string) content.GetValueForProperty("SystemDataCreatedBy",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IResourceInternal)this).SystemDataCreatedBy, global::System.Convert.ToString); } - if (content.Contains("Id")) + if (content.Contains("SystemDataCreatedAt")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.IResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.IResourceInternal)this).Id, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IResourceInternal)this).SystemDataCreatedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataCreatedAt",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IResourceInternal)this).SystemDataCreatedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); } - if (content.Contains("Name")) + if (content.Contains("SystemDataCreatedByType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.IResourceInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.IResourceInternal)this).Name, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IResourceInternal)this).SystemDataCreatedByType = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.CreatedByType?) content.GetValueForProperty("SystemDataCreatedByType",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IResourceInternal)this).SystemDataCreatedByType, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.CreatedByType.CreateFrom); } - if (content.Contains("Type")) + if (content.Contains("SystemDataLastModifiedBy")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.IResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.IResourceInternal)this).Type, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IResourceInternal)this).SystemDataLastModifiedBy = (string) content.GetValueForProperty("SystemDataLastModifiedBy",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IResourceInternal)this).SystemDataLastModifiedBy, global::System.Convert.ToString); } - if (content.Contains("ProvisioningState")) + if (content.Contains("SystemDataLastModifiedByType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IProjectInternal)this).ProvisioningState = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.ProvisioningState?) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IProjectInternal)this).ProvisioningState, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.ProvisioningState.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IResourceInternal)this).SystemDataLastModifiedByType = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.CreatedByType?) content.GetValueForProperty("SystemDataLastModifiedByType",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IResourceInternal)this).SystemDataLastModifiedByType, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.CreatedByType.CreateFrom); } - if (content.Contains("SystemDataCreatedBy")) + if (content.Contains("SystemDataLastModifiedAt")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IProjectInternal)this).SystemDataCreatedBy = (string) content.GetValueForProperty("SystemDataCreatedBy",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IProjectInternal)this).SystemDataCreatedBy, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IResourceInternal)this).SystemDataLastModifiedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataLastModifiedAt",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IResourceInternal)this).SystemDataLastModifiedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); } - if (content.Contains("SystemDataCreatedAt")) + if (content.Contains("SystemData")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IProjectInternal)this).SystemDataCreatedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataCreatedAt",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IProjectInternal)this).SystemDataCreatedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IResourceInternal)this).SystemData = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.ISystemData) content.GetValueForProperty("SystemData",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IResourceInternal)this).SystemData, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.SystemDataTypeConverter.ConvertFrom); } - if (content.Contains("Description")) + if (content.Contains("Id")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IProjectInternal)this).Description = (string) content.GetValueForProperty("Description",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IProjectInternal)this).Description, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IResourceInternal)this).Id, global::System.Convert.ToString); } - if (content.Contains("SystemDataCreatedByType")) + if (content.Contains("Name")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IProjectInternal)this).SystemDataCreatedByType = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.CreatedByType?) content.GetValueForProperty("SystemDataCreatedByType",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IProjectInternal)this).SystemDataCreatedByType, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.CreatedByType.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IResourceInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IResourceInternal)this).Name, global::System.Convert.ToString); } - if (content.Contains("SystemDataLastModifiedBy")) + if (content.Contains("Type")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IProjectInternal)this).SystemDataLastModifiedBy = (string) content.GetValueForProperty("SystemDataLastModifiedBy",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IProjectInternal)this).SystemDataLastModifiedBy, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IResourceInternal)this).Type, global::System.Convert.ToString); } - if (content.Contains("SystemDataLastModifiedByType")) + if (content.Contains("ProvisioningState")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IProjectInternal)this).SystemDataLastModifiedByType = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.CreatedByType?) content.GetValueForProperty("SystemDataLastModifiedByType",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IProjectInternal)this).SystemDataLastModifiedByType, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.CreatedByType.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IProjectInternal)this).ProvisioningState = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.ProvisioningState?) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IProjectInternal)this).ProvisioningState, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.ProvisioningState.CreateFrom); } - if (content.Contains("SystemDataLastModifiedAt")) + if (content.Contains("Description")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IProjectInternal)this).SystemDataLastModifiedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataLastModifiedAt",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IProjectInternal)this).SystemDataLastModifiedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IProjectInternal)this).Description = (string) content.GetValueForProperty("Description",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IProjectInternal)this).Description, global::System.Convert.ToString); } AfterDeserializeDictionary(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -180,55 +180,55 @@ internal Project(global::System.Management.Automation.PSObject content) // actually deserialize if (content.Contains("Property")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IProjectInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IProjectProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IProjectInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.ProjectPropertiesTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IProjectInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IProjectProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IProjectInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.ProjectPropertiesTypeConverter.ConvertFrom); } - if (content.Contains("SystemData")) + if (content.Contains("SystemDataCreatedBy")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IProjectInternal)this).SystemData = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.ISystemData) content.GetValueForProperty("SystemData",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IProjectInternal)this).SystemData, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.SystemDataTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IResourceInternal)this).SystemDataCreatedBy = (string) content.GetValueForProperty("SystemDataCreatedBy",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IResourceInternal)this).SystemDataCreatedBy, global::System.Convert.ToString); } - if (content.Contains("Id")) + if (content.Contains("SystemDataCreatedAt")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.IResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.IResourceInternal)this).Id, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IResourceInternal)this).SystemDataCreatedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataCreatedAt",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IResourceInternal)this).SystemDataCreatedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); } - if (content.Contains("Name")) + if (content.Contains("SystemDataCreatedByType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.IResourceInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.IResourceInternal)this).Name, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IResourceInternal)this).SystemDataCreatedByType = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.CreatedByType?) content.GetValueForProperty("SystemDataCreatedByType",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IResourceInternal)this).SystemDataCreatedByType, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.CreatedByType.CreateFrom); } - if (content.Contains("Type")) + if (content.Contains("SystemDataLastModifiedBy")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.IResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.IResourceInternal)this).Type, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IResourceInternal)this).SystemDataLastModifiedBy = (string) content.GetValueForProperty("SystemDataLastModifiedBy",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IResourceInternal)this).SystemDataLastModifiedBy, global::System.Convert.ToString); } - if (content.Contains("ProvisioningState")) + if (content.Contains("SystemDataLastModifiedByType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IProjectInternal)this).ProvisioningState = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.ProvisioningState?) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IProjectInternal)this).ProvisioningState, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.ProvisioningState.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IResourceInternal)this).SystemDataLastModifiedByType = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.CreatedByType?) content.GetValueForProperty("SystemDataLastModifiedByType",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IResourceInternal)this).SystemDataLastModifiedByType, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.CreatedByType.CreateFrom); } - if (content.Contains("SystemDataCreatedBy")) + if (content.Contains("SystemDataLastModifiedAt")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IProjectInternal)this).SystemDataCreatedBy = (string) content.GetValueForProperty("SystemDataCreatedBy",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IProjectInternal)this).SystemDataCreatedBy, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IResourceInternal)this).SystemDataLastModifiedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataLastModifiedAt",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IResourceInternal)this).SystemDataLastModifiedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); } - if (content.Contains("SystemDataCreatedAt")) + if (content.Contains("SystemData")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IProjectInternal)this).SystemDataCreatedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataCreatedAt",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IProjectInternal)this).SystemDataCreatedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IResourceInternal)this).SystemData = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.ISystemData) content.GetValueForProperty("SystemData",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IResourceInternal)this).SystemData, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.SystemDataTypeConverter.ConvertFrom); } - if (content.Contains("Description")) + if (content.Contains("Id")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IProjectInternal)this).Description = (string) content.GetValueForProperty("Description",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IProjectInternal)this).Description, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IResourceInternal)this).Id, global::System.Convert.ToString); } - if (content.Contains("SystemDataCreatedByType")) + if (content.Contains("Name")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IProjectInternal)this).SystemDataCreatedByType = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.CreatedByType?) content.GetValueForProperty("SystemDataCreatedByType",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IProjectInternal)this).SystemDataCreatedByType, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.CreatedByType.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IResourceInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IResourceInternal)this).Name, global::System.Convert.ToString); } - if (content.Contains("SystemDataLastModifiedBy")) + if (content.Contains("Type")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IProjectInternal)this).SystemDataLastModifiedBy = (string) content.GetValueForProperty("SystemDataLastModifiedBy",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IProjectInternal)this).SystemDataLastModifiedBy, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IResourceInternal)this).Type, global::System.Convert.ToString); } - if (content.Contains("SystemDataLastModifiedByType")) + if (content.Contains("ProvisioningState")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IProjectInternal)this).SystemDataLastModifiedByType = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.CreatedByType?) content.GetValueForProperty("SystemDataLastModifiedByType",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IProjectInternal)this).SystemDataLastModifiedByType, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.CreatedByType.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IProjectInternal)this).ProvisioningState = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.ProvisioningState?) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IProjectInternal)this).ProvisioningState, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.ProvisioningState.CreateFrom); } - if (content.Contains("SystemDataLastModifiedAt")) + if (content.Contains("Description")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IProjectInternal)this).SystemDataLastModifiedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataLastModifiedAt",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IProjectInternal)this).SystemDataLastModifiedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IProjectInternal)this).Description = (string) content.GetValueForProperty("Description",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IProjectInternal)this).Description, global::System.Convert.ToString); } AfterDeserializePSObject(content); } diff --git a/src/StorageMover/generated/api/Models/Api20230301/Project.TypeConverter.cs b/src/StorageMover/generated/api/Models/Api20231001/Project.TypeConverter.cs similarity index 98% rename from src/StorageMover/generated/api/Models/Api20230301/Project.TypeConverter.cs rename to src/StorageMover/generated/api/Models/Api20231001/Project.TypeConverter.cs index 7a4b05855bc5..666c94087a19 100644 --- a/src/StorageMover/generated/api/Models/Api20230301/Project.TypeConverter.cs +++ b/src/StorageMover/generated/api/Models/Api20231001/Project.TypeConverter.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301 +namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001 { using Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.PowerShell; @@ -105,14 +105,14 @@ public static bool CanConvertFrom(dynamic sourceValue) /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IProject ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IProject ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IProject).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IProject).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/StorageMover/generated/api/Models/Api20230301/Project.cs b/src/StorageMover/generated/api/Models/Api20231001/Project.cs similarity index 53% rename from src/StorageMover/generated/api/Models/Api20230301/Project.cs rename to src/StorageMover/generated/api/Models/Api20231001/Project.cs index 5e39fad793a2..693865ae9c66 100644 --- a/src/StorageMover/generated/api/Models/Api20230301/Project.cs +++ b/src/StorageMover/generated/api/Models/Api20231001/Project.cs @@ -3,102 +3,101 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301 +namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001 { using static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Extensions; /// The Project resource. [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.DoNotFormat] public partial class Project : - Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IProject, - Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IProjectInternal, + Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IProject, + Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IProjectInternal, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.IValidates { /// - /// Backing field for Inherited model /// - private Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.IResource __resource = new Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.Resource(); + private Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IResource __resource = new Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.Resource(); /// A description for the Project. [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Origin(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.PropertyOrigin.Inlined)] - public string Description { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IProjectPropertiesInternal)Property).Description; set => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IProjectPropertiesInternal)Property).Description = value ?? null; } + public string Description { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IProjectPropertiesInternal)Property).Description; set => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IProjectPropertiesInternal)Property).Description = value ?? null; } /// /// Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} /// [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Origin(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.PropertyOrigin.Inherited)] - public string Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.IResourceInternal)__resource).Id; } - - /// Internal Acessors for Id - string Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.IResourceInternal)__resource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.IResourceInternal)__resource).Id = value; } - - /// Internal Acessors for Name - string Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.IResourceInternal)__resource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.IResourceInternal)__resource).Name = value; } - - /// Internal Acessors for Type - string Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.IResourceInternal)__resource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.IResourceInternal)__resource).Type = value; } + public string Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IResourceInternal)__resource).Id; } /// Internal Acessors for Property - Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IProjectProperties Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IProjectInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.ProjectProperties()); set { {_property = value;} } } + Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IProjectProperties Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IProjectInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.ProjectProperties()); set { {_property = value;} } } /// Internal Acessors for ProvisioningState - Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.ProvisioningState? Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IProjectInternal.ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IProjectPropertiesInternal)Property).ProvisioningState; set => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IProjectPropertiesInternal)Property).ProvisioningState = value; } + Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.ProvisioningState? Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IProjectInternal.ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IProjectPropertiesInternal)Property).ProvisioningState; set => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IProjectPropertiesInternal)Property).ProvisioningState = value; } + + /// Internal Acessors for Id + string Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IResourceInternal)__resource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IResourceInternal)__resource).Id = value; } + + /// Internal Acessors for Name + string Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IResourceInternal)__resource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IResourceInternal)__resource).Name = value; } /// Internal Acessors for SystemData - Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.ISystemData Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IProjectInternal.SystemData { get => (this._systemData = this._systemData ?? new Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.SystemData()); set { {_systemData = value;} } } + Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.ISystemData Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IResourceInternal.SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IResourceInternal)__resource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IResourceInternal)__resource).SystemData = value; } + + /// Internal Acessors for Type + string Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IResourceInternal)__resource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IResourceInternal)__resource).Type = value; } /// The name of the resource [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Origin(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.PropertyOrigin.Inherited)] - public string Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.IResourceInternal)__resource).Name; } + public string Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IResourceInternal)__resource).Name; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IProjectProperties _property; + private Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IProjectProperties _property; /// Project properties. [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Origin(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.PropertyOrigin.Owned)] - internal Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IProjectProperties Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.ProjectProperties()); set => this._property = value; } + internal Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IProjectProperties Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.ProjectProperties()); set => this._property = value; } /// The provisioning state of this resource. [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Origin(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.PropertyOrigin.Inlined)] - public Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.ProvisioningState? ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IProjectPropertiesInternal)Property).ProvisioningState; } + public Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.ProvisioningState? ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IProjectPropertiesInternal)Property).ProvisioningState; } - /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.ISystemData _systemData; - - /// Resource system metadata. - [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Origin(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.PropertyOrigin.Owned)] - internal Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.ISystemData SystemData { get => (this._systemData = this._systemData ?? new Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.SystemData()); } + /// + /// Azure Resource Manager metadata containing createdBy and modifiedBy information. + /// + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Origin(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.PropertyOrigin.Inherited)] + private Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.ISystemData SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IResourceInternal)__resource).SystemData; } /// The timestamp of resource creation (UTC). - [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Origin(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.PropertyOrigin.Inlined)] - public global::System.DateTime? SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.ISystemDataInternal)SystemData).CreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.ISystemDataInternal)SystemData).CreatedAt = value ?? default(global::System.DateTime); } + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Origin(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.PropertyOrigin.Inherited)] + public global::System.DateTime? SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IResourceInternal)__resource).SystemDataCreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IResourceInternal)__resource).SystemDataCreatedAt = value ?? default(global::System.DateTime); } /// The identity that created the resource. - [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Origin(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.PropertyOrigin.Inlined)] - public string SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.ISystemDataInternal)SystemData).CreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.ISystemDataInternal)SystemData).CreatedBy = value ?? null; } + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Origin(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.PropertyOrigin.Inherited)] + public string SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IResourceInternal)__resource).SystemDataCreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IResourceInternal)__resource).SystemDataCreatedBy = value ?? null; } /// The type of identity that created the resource. - [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Origin(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.PropertyOrigin.Inlined)] - public Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.CreatedByType? SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.ISystemDataInternal)SystemData).CreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.ISystemDataInternal)SystemData).CreatedByType = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.CreatedByType)""); } + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Origin(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.PropertyOrigin.Inherited)] + public Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.CreatedByType? SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IResourceInternal)__resource).SystemDataCreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IResourceInternal)__resource).SystemDataCreatedByType = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.CreatedByType)""); } /// The timestamp of resource last modification (UTC) - [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Origin(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.PropertyOrigin.Inlined)] - public global::System.DateTime? SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.ISystemDataInternal)SystemData).LastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.ISystemDataInternal)SystemData).LastModifiedAt = value ?? default(global::System.DateTime); } + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Origin(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.PropertyOrigin.Inherited)] + public global::System.DateTime? SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IResourceInternal)__resource).SystemDataLastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IResourceInternal)__resource).SystemDataLastModifiedAt = value ?? default(global::System.DateTime); } /// The identity that last modified the resource. - [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Origin(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.PropertyOrigin.Inlined)] - public string SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.ISystemDataInternal)SystemData).LastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.ISystemDataInternal)SystemData).LastModifiedBy = value ?? null; } + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Origin(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.PropertyOrigin.Inherited)] + public string SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IResourceInternal)__resource).SystemDataLastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IResourceInternal)__resource).SystemDataLastModifiedBy = value ?? null; } /// The type of identity that last modified the resource. - [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Origin(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.PropertyOrigin.Inlined)] - public Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.CreatedByType? SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.ISystemDataInternal)SystemData).LastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.ISystemDataInternal)SystemData).LastModifiedByType = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.CreatedByType)""); } + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Origin(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.PropertyOrigin.Inherited)] + public Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.CreatedByType? SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IResourceInternal)__resource).SystemDataLastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IResourceInternal)__resource).SystemDataLastModifiedByType = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.CreatedByType)""); } /// /// The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" /// [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Origin(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.PropertyOrigin.Inherited)] - public string Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.IResourceInternal)__resource).Type; } + public string Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IResourceInternal)__resource).Type; } /// Creates an new instance. public Project() @@ -121,7 +120,7 @@ public Project() /// The Project resource. public partial interface IProject : Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.IJsonSerializable, - Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.IResource + Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IResource { /// A description for the Project. [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Info( @@ -139,80 +138,18 @@ public partial interface IProject : SerializedName = @"provisioningState", PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.ProvisioningState) })] Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.ProvisioningState? ProvisioningState { get; } - /// The timestamp of resource creation (UTC). - [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"The timestamp of resource creation (UTC).", - SerializedName = @"createdAt", - PossibleTypes = new [] { typeof(global::System.DateTime) })] - global::System.DateTime? SystemDataCreatedAt { get; set; } - /// The identity that created the resource. - [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"The identity that created the resource.", - SerializedName = @"createdBy", - PossibleTypes = new [] { typeof(string) })] - string SystemDataCreatedBy { get; set; } - /// The type of identity that created the resource. - [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"The type of identity that created the resource.", - SerializedName = @"createdByType", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.CreatedByType) })] - Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.CreatedByType? SystemDataCreatedByType { get; set; } - /// The timestamp of resource last modification (UTC) - [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"The timestamp of resource last modification (UTC)", - SerializedName = @"lastModifiedAt", - PossibleTypes = new [] { typeof(global::System.DateTime) })] - global::System.DateTime? SystemDataLastModifiedAt { get; set; } - /// The identity that last modified the resource. - [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"The identity that last modified the resource.", - SerializedName = @"lastModifiedBy", - PossibleTypes = new [] { typeof(string) })] - string SystemDataLastModifiedBy { get; set; } - /// The type of identity that last modified the resource. - [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"The type of identity that last modified the resource.", - SerializedName = @"lastModifiedByType", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.CreatedByType) })] - Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.CreatedByType? SystemDataLastModifiedByType { get; set; } } /// The Project resource. internal partial interface IProjectInternal : - Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.IResourceInternal + Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IResourceInternal { /// A description for the Project. string Description { get; set; } /// Project properties. - Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IProjectProperties Property { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IProjectProperties Property { get; set; } /// The provisioning state of this resource. Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.ProvisioningState? ProvisioningState { get; set; } - /// Resource system metadata. - Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.ISystemData SystemData { get; set; } - /// The timestamp of resource creation (UTC). - global::System.DateTime? SystemDataCreatedAt { get; set; } - /// The identity that created the resource. - string SystemDataCreatedBy { get; set; } - /// The type of identity that created the resource. - Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.CreatedByType? SystemDataCreatedByType { get; set; } - /// The timestamp of resource last modification (UTC) - global::System.DateTime? SystemDataLastModifiedAt { get; set; } - /// The identity that last modified the resource. - string SystemDataLastModifiedBy { get; set; } - /// The type of identity that last modified the resource. - Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.CreatedByType? SystemDataLastModifiedByType { get; set; } } } \ No newline at end of file diff --git a/src/StorageMover/generated/api/Models/Api20230301/Project.json.cs b/src/StorageMover/generated/api/Models/Api20231001/Project.json.cs similarity index 88% rename from src/StorageMover/generated/api/Models/Api20230301/Project.json.cs rename to src/StorageMover/generated/api/Models/Api20231001/Project.json.cs index c10ce149f54d..ee3341f78c3d 100644 --- a/src/StorageMover/generated/api/Models/Api20230301/Project.json.cs +++ b/src/StorageMover/generated/api/Models/Api20231001/Project.json.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301 +namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001 { using static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Extensions; @@ -54,13 +54,13 @@ public partial class Project partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IProject. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IProject. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IProject. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IProject. /// - public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IProject FromJson(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IProject FromJson(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonObject json ? new Project(json) : null; } @@ -77,9 +77,8 @@ internal Project(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.Js { return; } - __resource = new Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.Resource(json); - {_property = If( json?.PropertyT("properties"), out var __jsonProperties) ? Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.ProjectProperties.FromJson(__jsonProperties) : Property;} - {_systemData = If( json?.PropertyT("systemData"), out var __jsonSystemData) ? Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.SystemData.FromJson(__jsonSystemData) : SystemData;} + __resource = new Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.Resource(json); + {_property = If( json?.PropertyT("properties"), out var __jsonProperties) ? Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.ProjectProperties.FromJson(__jsonProperties) : Property;} AfterFromJson(json); } @@ -104,10 +103,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonNode ToJ } __resource?.ToJson(container, serializationMode); AddIf( null != this._property ? (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonNode) this._property.ToJson(null,serializationMode) : null, "properties" ,container.Add ); - if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.SerializationMode.IncludeReadOnly)) - { - AddIf( null != this._systemData ? (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonNode) this._systemData.ToJson(null,serializationMode) : null, "systemData" ,container.Add ); - } AfterToJson(ref container); return container; } diff --git a/src/StorageMover/generated/api/Models/Api20230301/ProjectList.PowerShell.cs b/src/StorageMover/generated/api/Models/Api20231001/ProjectList.PowerShell.cs similarity index 85% rename from src/StorageMover/generated/api/Models/Api20230301/ProjectList.PowerShell.cs rename to src/StorageMover/generated/api/Models/Api20231001/ProjectList.PowerShell.cs index e5005129d77d..00568bda70d7 100644 --- a/src/StorageMover/generated/api/Models/Api20230301/ProjectList.PowerShell.cs +++ b/src/StorageMover/generated/api/Models/Api20231001/ProjectList.PowerShell.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301 +namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001 { using Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.PowerShell; @@ -63,27 +63,27 @@ public partial class ProjectList partial void OverrideToString(ref string stringResult, ref bool returnNow); /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Collections.IDictionary content that should be used. /// - /// an instance of . + /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IProjectList DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IProjectList DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new ProjectList(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. /// - /// an instance of . + /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IProjectList DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IProjectList DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new ProjectList(content); } @@ -93,10 +93,10 @@ public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301 /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IProjectList FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IProjectList FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonNode.Parse(jsonText)); /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. @@ -111,17 +111,17 @@ internal ProjectList(global::System.Collections.IDictionary content) // actually deserialize if (content.Contains("Value")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IProjectListInternal)this).Value = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IProject[]) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IProjectListInternal)this).Value, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.ProjectTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IProjectListInternal)this).Value = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IProject[]) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IProjectListInternal)this).Value, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.ProjectTypeConverter.ConvertFrom)); } if (content.Contains("NextLink")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IProjectListInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IProjectListInternal)this).NextLink, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IProjectListInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IProjectListInternal)this).NextLink, global::System.Convert.ToString); } AfterDeserializeDictionary(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -136,11 +136,11 @@ internal ProjectList(global::System.Management.Automation.PSObject content) // actually deserialize if (content.Contains("Value")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IProjectListInternal)this).Value = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IProject[]) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IProjectListInternal)this).Value, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.ProjectTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IProjectListInternal)this).Value = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IProject[]) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IProjectListInternal)this).Value, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.ProjectTypeConverter.ConvertFrom)); } if (content.Contains("NextLink")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IProjectListInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IProjectListInternal)this).NextLink, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IProjectListInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IProjectListInternal)this).NextLink, global::System.Convert.ToString); } AfterDeserializePSObject(content); } diff --git a/src/StorageMover/generated/api/Models/Api20230301/ProjectList.TypeConverter.cs b/src/StorageMover/generated/api/Models/Api20231001/ProjectList.TypeConverter.cs similarity index 98% rename from src/StorageMover/generated/api/Models/Api20230301/ProjectList.TypeConverter.cs rename to src/StorageMover/generated/api/Models/Api20231001/ProjectList.TypeConverter.cs index 2f6cd9aaf701..e9ae06df7b0d 100644 --- a/src/StorageMover/generated/api/Models/Api20230301/ProjectList.TypeConverter.cs +++ b/src/StorageMover/generated/api/Models/Api20231001/ProjectList.TypeConverter.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301 +namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001 { using Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.PowerShell; @@ -106,14 +106,14 @@ public static bool CanConvertFrom(dynamic sourceValue) /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IProjectList ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IProjectList ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IProjectList).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IProjectList).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/StorageMover/generated/api/Models/Api20230301/ProjectList.cs b/src/StorageMover/generated/api/Models/Api20231001/ProjectList.cs similarity index 87% rename from src/StorageMover/generated/api/Models/Api20230301/ProjectList.cs rename to src/StorageMover/generated/api/Models/Api20231001/ProjectList.cs index ebdac7d45528..7746e18c28f7 100644 --- a/src/StorageMover/generated/api/Models/Api20230301/ProjectList.cs +++ b/src/StorageMover/generated/api/Models/Api20231001/ProjectList.cs @@ -3,22 +3,22 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301 +namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001 { using static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Extensions; /// List of Project resources. [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.DoNotFormat] public partial class ProjectList : - Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IProjectList, - Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IProjectListInternal + Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IProjectList, + Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IProjectListInternal { /// Internal Acessors for NextLink - string Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IProjectListInternal.NextLink { get => this._nextLink; set { {_nextLink = value;} } } + string Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IProjectListInternal.NextLink { get => this._nextLink; set { {_nextLink = value;} } } /// Internal Acessors for Value - Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IProject[] Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IProjectListInternal.Value { get => this._value; set { {_value = value;} } } + Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IProject[] Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IProjectListInternal.Value { get => this._value; set { {_value = value;} } } /// Backing field for property. private string _nextLink; @@ -31,10 +31,10 @@ public partial class ProjectList : public string NextLink { get => this._nextLink; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IProject[] _value; + private Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IProject[] _value; [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Origin(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.PropertyOrigin.Owned)] - public Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IProject[] Value { get => this._value; } + public Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IProject[] Value { get => this._value; } /// Creates an new instance. public ProjectList() @@ -63,8 +63,8 @@ public partial interface IProjectList : ReadOnly = true, Description = @"", SerializedName = @"value", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IProject) })] - Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IProject[] Value { get; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IProject) })] + Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IProject[] Value { get; } } /// List of Project resources. @@ -77,7 +77,7 @@ internal partial interface IProjectListInternal /// string NextLink { get; set; } - Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IProject[] Value { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IProject[] Value { get; set; } } } \ No newline at end of file diff --git a/src/StorageMover/generated/api/Models/Api20230301/ProjectList.json.cs b/src/StorageMover/generated/api/Models/Api20231001/ProjectList.json.cs similarity index 96% rename from src/StorageMover/generated/api/Models/Api20230301/ProjectList.json.cs rename to src/StorageMover/generated/api/Models/Api20231001/ProjectList.json.cs index 7d53a479eb95..63bc75c012d9 100644 --- a/src/StorageMover/generated/api/Models/Api20230301/ProjectList.json.cs +++ b/src/StorageMover/generated/api/Models/Api20231001/ProjectList.json.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301 +namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001 { using static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Extensions; @@ -54,13 +54,13 @@ public partial class ProjectList partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IProjectList. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IProjectList. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IProjectList. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IProjectList. /// - public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IProjectList FromJson(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IProjectList FromJson(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonObject json ? new ProjectList(json) : null; } @@ -77,7 +77,7 @@ internal ProjectList(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Jso { return; } - {_value = If( json?.PropertyT("value"), out var __jsonValue) ? If( __jsonValue as Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonArray, out var __v) ? new global::System.Func(()=> global::System.Linq.Enumerable.ToArray(global::System.Linq.Enumerable.Select(__v, (__u)=>(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IProject) (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.Project.FromJson(__u) )) ))() : null : Value;} + {_value = If( json?.PropertyT("value"), out var __jsonValue) ? If( __jsonValue as Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonArray, out var __v) ? new global::System.Func(()=> global::System.Linq.Enumerable.ToArray(global::System.Linq.Enumerable.Select(__v, (__u)=>(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IProject) (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.Project.FromJson(__u) )) ))() : null : Value;} {_nextLink = If( json?.PropertyT("nextLink"), out var __jsonNextLink) ? (string)__jsonNextLink : (string)NextLink;} AfterFromJson(json); } diff --git a/src/StorageMover/generated/api/Models/Api20230301/ProjectProperties.PowerShell.cs b/src/StorageMover/generated/api/Models/Api20231001/ProjectProperties.PowerShell.cs similarity index 89% rename from src/StorageMover/generated/api/Models/Api20230301/ProjectProperties.PowerShell.cs rename to src/StorageMover/generated/api/Models/Api20231001/ProjectProperties.PowerShell.cs index 83753ba93a7e..a5c41f5dcd3a 100644 --- a/src/StorageMover/generated/api/Models/Api20230301/ProjectProperties.PowerShell.cs +++ b/src/StorageMover/generated/api/Models/Api20231001/ProjectProperties.PowerShell.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301 +namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001 { using Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.PowerShell; @@ -63,27 +63,27 @@ public partial class ProjectProperties partial void OverrideToString(ref string stringResult, ref bool returnNow); /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Collections.IDictionary content that should be used. /// - /// an instance of . + /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IProjectProperties DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IProjectProperties DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new ProjectProperties(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. /// - /// an instance of . + /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IProjectProperties DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IProjectProperties DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new ProjectProperties(content); } @@ -93,10 +93,10 @@ public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301 /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IProjectProperties FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IProjectProperties FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonNode.Parse(jsonText)); /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. @@ -111,17 +111,17 @@ internal ProjectProperties(global::System.Collections.IDictionary content) // actually deserialize if (content.Contains("Description")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IProjectPropertiesInternal)this).Description = (string) content.GetValueForProperty("Description",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IProjectPropertiesInternal)this).Description, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IProjectPropertiesInternal)this).Description = (string) content.GetValueForProperty("Description",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IProjectPropertiesInternal)this).Description, global::System.Convert.ToString); } if (content.Contains("ProvisioningState")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IProjectPropertiesInternal)this).ProvisioningState = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.ProvisioningState?) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IProjectPropertiesInternal)this).ProvisioningState, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.ProvisioningState.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IProjectPropertiesInternal)this).ProvisioningState = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.ProvisioningState?) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IProjectPropertiesInternal)this).ProvisioningState, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.ProvisioningState.CreateFrom); } AfterDeserializeDictionary(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -136,11 +136,11 @@ internal ProjectProperties(global::System.Management.Automation.PSObject content // actually deserialize if (content.Contains("Description")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IProjectPropertiesInternal)this).Description = (string) content.GetValueForProperty("Description",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IProjectPropertiesInternal)this).Description, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IProjectPropertiesInternal)this).Description = (string) content.GetValueForProperty("Description",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IProjectPropertiesInternal)this).Description, global::System.Convert.ToString); } if (content.Contains("ProvisioningState")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IProjectPropertiesInternal)this).ProvisioningState = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.ProvisioningState?) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IProjectPropertiesInternal)this).ProvisioningState, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.ProvisioningState.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IProjectPropertiesInternal)this).ProvisioningState = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.ProvisioningState?) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IProjectPropertiesInternal)this).ProvisioningState, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.ProvisioningState.CreateFrom); } AfterDeserializePSObject(content); } diff --git a/src/StorageMover/generated/api/Models/Api20230301/ProjectProperties.TypeConverter.cs b/src/StorageMover/generated/api/Models/Api20231001/ProjectProperties.TypeConverter.cs similarity index 98% rename from src/StorageMover/generated/api/Models/Api20230301/ProjectProperties.TypeConverter.cs rename to src/StorageMover/generated/api/Models/Api20231001/ProjectProperties.TypeConverter.cs index 0513d36b1c31..c2da3d2c4861 100644 --- a/src/StorageMover/generated/api/Models/Api20230301/ProjectProperties.TypeConverter.cs +++ b/src/StorageMover/generated/api/Models/Api20231001/ProjectProperties.TypeConverter.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301 +namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001 { using Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.PowerShell; @@ -106,14 +106,14 @@ public static bool CanConvertFrom(dynamic sourceValue) /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IProjectProperties ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IProjectProperties ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IProjectProperties).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IProjectProperties).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/StorageMover/generated/api/Models/Api20230301/ProjectProperties.cs b/src/StorageMover/generated/api/Models/Api20231001/ProjectProperties.cs similarity index 96% rename from src/StorageMover/generated/api/Models/Api20230301/ProjectProperties.cs rename to src/StorageMover/generated/api/Models/Api20231001/ProjectProperties.cs index a3043015a9f9..3dfc02280c65 100644 --- a/src/StorageMover/generated/api/Models/Api20230301/ProjectProperties.cs +++ b/src/StorageMover/generated/api/Models/Api20231001/ProjectProperties.cs @@ -3,15 +3,15 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301 +namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001 { using static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Extensions; /// Project properties. [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.DoNotFormat] public partial class ProjectProperties : - Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IProjectProperties, - Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IProjectPropertiesInternal + Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IProjectProperties, + Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IProjectPropertiesInternal { /// Backing field for property. @@ -22,7 +22,7 @@ public partial class ProjectProperties : public string Description { get => this._description; set => this._description = value; } /// Internal Acessors for ProvisioningState - Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.ProvisioningState? Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IProjectPropertiesInternal.ProvisioningState { get => this._provisioningState; set { {_provisioningState = value;} } } + Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.ProvisioningState? Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IProjectPropertiesInternal.ProvisioningState { get => this._provisioningState; set { {_provisioningState = value;} } } /// Backing field for property. private Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.ProvisioningState? _provisioningState; diff --git a/src/StorageMover/generated/api/Models/Api20230301/ProjectProperties.json.cs b/src/StorageMover/generated/api/Models/Api20231001/ProjectProperties.json.cs similarity index 98% rename from src/StorageMover/generated/api/Models/Api20230301/ProjectProperties.json.cs rename to src/StorageMover/generated/api/Models/Api20231001/ProjectProperties.json.cs index 0eb37915dcf0..60863f6a5f75 100644 --- a/src/StorageMover/generated/api/Models/Api20230301/ProjectProperties.json.cs +++ b/src/StorageMover/generated/api/Models/Api20231001/ProjectProperties.json.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301 +namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001 { using static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Extensions; @@ -54,13 +54,13 @@ public partial class ProjectProperties partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IProjectProperties. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IProjectProperties. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IProjectProperties. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IProjectProperties. /// - public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IProjectProperties FromJson(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IProjectProperties FromJson(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonObject json ? new ProjectProperties(json) : null; } diff --git a/src/StorageMover/generated/api/Models/Api20230301/ProjectUpdateParameters.PowerShell.cs b/src/StorageMover/generated/api/Models/Api20231001/ProjectUpdateParameters.PowerShell.cs similarity index 87% rename from src/StorageMover/generated/api/Models/Api20230301/ProjectUpdateParameters.PowerShell.cs rename to src/StorageMover/generated/api/Models/Api20231001/ProjectUpdateParameters.PowerShell.cs index d1bf1ca5b374..0c77f7696116 100644 --- a/src/StorageMover/generated/api/Models/Api20230301/ProjectUpdateParameters.PowerShell.cs +++ b/src/StorageMover/generated/api/Models/Api20231001/ProjectUpdateParameters.PowerShell.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301 +namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001 { using Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.PowerShell; @@ -63,29 +63,29 @@ public partial class ProjectUpdateParameters partial void OverrideToString(ref string stringResult, ref bool returnNow); /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Collections.IDictionary content that should be used. /// - /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IProjectUpdateParameters DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IProjectUpdateParameters DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new ProjectUpdateParameters(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. /// - /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IProjectUpdateParameters DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IProjectUpdateParameters DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new ProjectUpdateParameters(content); } @@ -95,10 +95,10 @@ public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301 /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IProjectUpdateParameters FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IProjectUpdateParameters FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonNode.Parse(jsonText)); /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. @@ -113,17 +113,17 @@ internal ProjectUpdateParameters(global::System.Collections.IDictionary content) // actually deserialize if (content.Contains("Property")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IProjectUpdateParametersInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IProjectUpdateProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IProjectUpdateParametersInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.ProjectUpdatePropertiesTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IProjectUpdateParametersInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IProjectUpdateProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IProjectUpdateParametersInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.ProjectUpdatePropertiesTypeConverter.ConvertFrom); } if (content.Contains("Description")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IProjectUpdateParametersInternal)this).Description = (string) content.GetValueForProperty("Description",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IProjectUpdateParametersInternal)this).Description, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IProjectUpdateParametersInternal)this).Description = (string) content.GetValueForProperty("Description",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IProjectUpdateParametersInternal)this).Description, global::System.Convert.ToString); } AfterDeserializeDictionary(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -138,11 +138,11 @@ internal ProjectUpdateParameters(global::System.Management.Automation.PSObject c // actually deserialize if (content.Contains("Property")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IProjectUpdateParametersInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IProjectUpdateProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IProjectUpdateParametersInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.ProjectUpdatePropertiesTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IProjectUpdateParametersInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IProjectUpdateProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IProjectUpdateParametersInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.ProjectUpdatePropertiesTypeConverter.ConvertFrom); } if (content.Contains("Description")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IProjectUpdateParametersInternal)this).Description = (string) content.GetValueForProperty("Description",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IProjectUpdateParametersInternal)this).Description, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IProjectUpdateParametersInternal)this).Description = (string) content.GetValueForProperty("Description",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IProjectUpdateParametersInternal)this).Description, global::System.Convert.ToString); } AfterDeserializePSObject(content); } diff --git a/src/StorageMover/generated/api/Models/Api20230301/ProjectUpdateParameters.TypeConverter.cs b/src/StorageMover/generated/api/Models/Api20231001/ProjectUpdateParameters.TypeConverter.cs similarity index 98% rename from src/StorageMover/generated/api/Models/Api20230301/ProjectUpdateParameters.TypeConverter.cs rename to src/StorageMover/generated/api/Models/Api20231001/ProjectUpdateParameters.TypeConverter.cs index 0b51e59de690..d4c75bada698 100644 --- a/src/StorageMover/generated/api/Models/Api20230301/ProjectUpdateParameters.TypeConverter.cs +++ b/src/StorageMover/generated/api/Models/Api20231001/ProjectUpdateParameters.TypeConverter.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301 +namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001 { using Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.PowerShell; @@ -106,14 +106,14 @@ public static bool CanConvertFrom(dynamic sourceValue) /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IProjectUpdateParameters ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IProjectUpdateParameters ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IProjectUpdateParameters).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IProjectUpdateParameters).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/StorageMover/generated/api/Models/Api20230301/ProjectUpdateParameters.cs b/src/StorageMover/generated/api/Models/Api20231001/ProjectUpdateParameters.cs similarity index 81% rename from src/StorageMover/generated/api/Models/Api20230301/ProjectUpdateParameters.cs rename to src/StorageMover/generated/api/Models/Api20231001/ProjectUpdateParameters.cs index 996a98b87a0a..d8ade53dd0b2 100644 --- a/src/StorageMover/generated/api/Models/Api20230301/ProjectUpdateParameters.cs +++ b/src/StorageMover/generated/api/Models/Api20231001/ProjectUpdateParameters.cs @@ -3,30 +3,30 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301 +namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001 { using static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Extensions; /// The Project resource. [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.DoNotFormat] public partial class ProjectUpdateParameters : - Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IProjectUpdateParameters, - Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IProjectUpdateParametersInternal + Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IProjectUpdateParameters, + Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IProjectUpdateParametersInternal { /// A description for the Project. [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Origin(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.PropertyOrigin.Inlined)] - public string Description { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IProjectUpdatePropertiesInternal)Property).Description; set => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IProjectUpdatePropertiesInternal)Property).Description = value ?? null; } + public string Description { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IProjectUpdatePropertiesInternal)Property).Description; set => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IProjectUpdatePropertiesInternal)Property).Description = value ?? null; } /// Internal Acessors for Property - Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IProjectUpdateProperties Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IProjectUpdateParametersInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.ProjectUpdateProperties()); set { {_property = value;} } } + Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IProjectUpdateProperties Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IProjectUpdateParametersInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.ProjectUpdateProperties()); set { {_property = value;} } } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IProjectUpdateProperties _property; + private Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IProjectUpdateProperties _property; /// Project properties. [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Origin(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.PropertyOrigin.Owned)] - internal Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IProjectUpdateProperties Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.ProjectUpdateProperties()); set => this._property = value; } + internal Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IProjectUpdateProperties Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.ProjectUpdateProperties()); set => this._property = value; } /// Creates an new instance. public ProjectUpdateParameters() @@ -55,7 +55,7 @@ internal partial interface IProjectUpdateParametersInternal /// A description for the Project. string Description { get; set; } /// Project properties. - Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IProjectUpdateProperties Property { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IProjectUpdateProperties Property { get; set; } } } \ No newline at end of file diff --git a/src/StorageMover/generated/api/Models/Api20230301/ProjectUpdateParameters.json.cs b/src/StorageMover/generated/api/Models/Api20231001/ProjectUpdateParameters.json.cs similarity index 96% rename from src/StorageMover/generated/api/Models/Api20230301/ProjectUpdateParameters.json.cs rename to src/StorageMover/generated/api/Models/Api20231001/ProjectUpdateParameters.json.cs index d0ff28023b7a..bf3df51b8584 100644 --- a/src/StorageMover/generated/api/Models/Api20230301/ProjectUpdateParameters.json.cs +++ b/src/StorageMover/generated/api/Models/Api20231001/ProjectUpdateParameters.json.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301 +namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001 { using static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Extensions; @@ -54,13 +54,13 @@ public partial class ProjectUpdateParameters partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IProjectUpdateParameters. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IProjectUpdateParameters. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IProjectUpdateParameters. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IProjectUpdateParameters. /// - public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IProjectUpdateParameters FromJson(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IProjectUpdateParameters FromJson(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonObject json ? new ProjectUpdateParameters(json) : null; } @@ -77,7 +77,7 @@ internal ProjectUpdateParameters(Microsoft.Azure.PowerShell.Cmdlets.StorageMover { return; } - {_property = If( json?.PropertyT("properties"), out var __jsonProperties) ? Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.ProjectUpdateProperties.FromJson(__jsonProperties) : Property;} + {_property = If( json?.PropertyT("properties"), out var __jsonProperties) ? Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.ProjectUpdateProperties.FromJson(__jsonProperties) : Property;} AfterFromJson(json); } diff --git a/src/StorageMover/generated/api/Models/Api20230301/ProjectUpdateProperties.PowerShell.cs b/src/StorageMover/generated/api/Models/Api20231001/ProjectUpdateProperties.PowerShell.cs similarity index 91% rename from src/StorageMover/generated/api/Models/Api20230301/ProjectUpdateProperties.PowerShell.cs rename to src/StorageMover/generated/api/Models/Api20231001/ProjectUpdateProperties.PowerShell.cs index 9c40b451a8a4..1ed83571c7c0 100644 --- a/src/StorageMover/generated/api/Models/Api20230301/ProjectUpdateProperties.PowerShell.cs +++ b/src/StorageMover/generated/api/Models/Api20231001/ProjectUpdateProperties.PowerShell.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301 +namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001 { using Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.PowerShell; @@ -63,29 +63,29 @@ public partial class ProjectUpdateProperties partial void OverrideToString(ref string stringResult, ref bool returnNow); /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Collections.IDictionary content that should be used. /// - /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IProjectUpdateProperties DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IProjectUpdateProperties DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new ProjectUpdateProperties(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. /// - /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IProjectUpdateProperties DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IProjectUpdateProperties DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new ProjectUpdateProperties(content); } @@ -95,10 +95,10 @@ public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301 /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IProjectUpdateProperties FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IProjectUpdateProperties FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonNode.Parse(jsonText)); /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. @@ -113,13 +113,13 @@ internal ProjectUpdateProperties(global::System.Collections.IDictionary content) // actually deserialize if (content.Contains("Description")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IProjectUpdatePropertiesInternal)this).Description = (string) content.GetValueForProperty("Description",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IProjectUpdatePropertiesInternal)this).Description, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IProjectUpdatePropertiesInternal)this).Description = (string) content.GetValueForProperty("Description",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IProjectUpdatePropertiesInternal)this).Description, global::System.Convert.ToString); } AfterDeserializeDictionary(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -134,7 +134,7 @@ internal ProjectUpdateProperties(global::System.Management.Automation.PSObject c // actually deserialize if (content.Contains("Description")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IProjectUpdatePropertiesInternal)this).Description = (string) content.GetValueForProperty("Description",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IProjectUpdatePropertiesInternal)this).Description, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IProjectUpdatePropertiesInternal)this).Description = (string) content.GetValueForProperty("Description",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IProjectUpdatePropertiesInternal)this).Description, global::System.Convert.ToString); } AfterDeserializePSObject(content); } diff --git a/src/StorageMover/generated/api/Models/Api20230301/ProjectUpdateProperties.TypeConverter.cs b/src/StorageMover/generated/api/Models/Api20231001/ProjectUpdateProperties.TypeConverter.cs similarity index 98% rename from src/StorageMover/generated/api/Models/Api20230301/ProjectUpdateProperties.TypeConverter.cs rename to src/StorageMover/generated/api/Models/Api20231001/ProjectUpdateProperties.TypeConverter.cs index 3d0db076877b..eaeec7897549 100644 --- a/src/StorageMover/generated/api/Models/Api20230301/ProjectUpdateProperties.TypeConverter.cs +++ b/src/StorageMover/generated/api/Models/Api20231001/ProjectUpdateProperties.TypeConverter.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301 +namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001 { using Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.PowerShell; @@ -106,14 +106,14 @@ public static bool CanConvertFrom(dynamic sourceValue) /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IProjectUpdateProperties ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IProjectUpdateProperties ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IProjectUpdateProperties).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IProjectUpdateProperties).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/StorageMover/generated/api/Models/Api20230301/ProjectUpdateProperties.cs b/src/StorageMover/generated/api/Models/Api20231001/ProjectUpdateProperties.cs similarity index 95% rename from src/StorageMover/generated/api/Models/Api20230301/ProjectUpdateProperties.cs rename to src/StorageMover/generated/api/Models/Api20231001/ProjectUpdateProperties.cs index b223a2fa8bfe..fb61dd8280cd 100644 --- a/src/StorageMover/generated/api/Models/Api20230301/ProjectUpdateProperties.cs +++ b/src/StorageMover/generated/api/Models/Api20231001/ProjectUpdateProperties.cs @@ -3,15 +3,15 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301 +namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001 { using static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Extensions; /// Project properties. [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.DoNotFormat] public partial class ProjectUpdateProperties : - Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IProjectUpdateProperties, - Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IProjectUpdatePropertiesInternal + Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IProjectUpdateProperties, + Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IProjectUpdatePropertiesInternal { /// Backing field for property. diff --git a/src/StorageMover/generated/api/Models/Api20230301/ProjectUpdateProperties.json.cs b/src/StorageMover/generated/api/Models/Api20231001/ProjectUpdateProperties.json.cs similarity index 97% rename from src/StorageMover/generated/api/Models/Api20230301/ProjectUpdateProperties.json.cs rename to src/StorageMover/generated/api/Models/Api20231001/ProjectUpdateProperties.json.cs index cd0074cb99f6..3613d1949777 100644 --- a/src/StorageMover/generated/api/Models/Api20230301/ProjectUpdateProperties.json.cs +++ b/src/StorageMover/generated/api/Models/Api20231001/ProjectUpdateProperties.json.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301 +namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001 { using static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Extensions; @@ -54,13 +54,13 @@ public partial class ProjectUpdateProperties partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IProjectUpdateProperties. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IProjectUpdateProperties. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IProjectUpdateProperties. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IProjectUpdateProperties. /// - public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IProjectUpdateProperties FromJson(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IProjectUpdateProperties FromJson(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonObject json ? new ProjectUpdateProperties(json) : null; } diff --git a/src/StorageMover/generated/api/Models/Api20231001/SmbMountEndpointProperties.PowerShell.cs b/src/StorageMover/generated/api/Models/Api20231001/SmbMountEndpointProperties.PowerShell.cs new file mode 100644 index 000000000000..554b53652f81 --- /dev/null +++ b/src/StorageMover/generated/api/Models/Api20231001/SmbMountEndpointProperties.PowerShell.cs @@ -0,0 +1,230 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001 +{ + using Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.PowerShell; + + /// The properties of SMB share endpoint. + [System.ComponentModel.TypeConverter(typeof(SmbMountEndpointPropertiesTypeConverter))] + public partial class SmbMountEndpointProperties + { + + /// + /// AfterDeserializeDictionary will be called after the deserialization has finished, allowing customization of the + /// object before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The global::System.Collections.IDictionary content that should be used. + + partial void AfterDeserializeDictionary(global::System.Collections.IDictionary content); + + /// + /// AfterDeserializePSObject will be called after the deserialization has finished, allowing customization of the object + /// before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The global::System.Management.Automation.PSObject content that should be used. + + partial void AfterDeserializePSObject(global::System.Management.Automation.PSObject content); + + /// + /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization + /// of the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The global::System.Collections.IDictionary content that should be used. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeDeserializeDictionary(global::System.Collections.IDictionary content, ref bool returnNow); + + /// + /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization + /// of the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The global::System.Management.Automation.PSObject content that should be used. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); + + /// + /// OverrideToString will be called if it is implemented. Implement this method in a partial class to enable this behavior + /// + /// /// instance serialized to a string, normally it is a Json + /// /// set returnNow to true if you provide a customized OverrideToString function + + partial void OverrideToString(ref string stringResult, ref bool returnNow); + + /// + /// Deserializes a into an instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + /// + /// an instance of . + /// + public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.ISmbMountEndpointProperties DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new SmbMountEndpointProperties(content); + } + + /// + /// Deserializes a into an instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + /// + /// an instance of . + /// + public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.ISmbMountEndpointProperties DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new SmbMountEndpointProperties(content); + } + + /// + /// Creates a new instance of , deserializing the content from a json string. + /// + /// a string containing a JSON serialized instance of this model. + /// an instance of the model class. + public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.ISmbMountEndpointProperties FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonNode.Parse(jsonText)); + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal SmbMountEndpointProperties(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("Credentials")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.ISmbMountEndpointPropertiesInternal)this).Credentials = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IAzureKeyVaultSmbCredentials) content.GetValueForProperty("Credentials",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.ISmbMountEndpointPropertiesInternal)this).Credentials, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.AzureKeyVaultSmbCredentialsTypeConverter.ConvertFrom); + } + if (content.Contains("Host")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.ISmbMountEndpointPropertiesInternal)this).Host = (string) content.GetValueForProperty("Host",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.ISmbMountEndpointPropertiesInternal)this).Host, global::System.Convert.ToString); + } + if (content.Contains("ShareName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.ISmbMountEndpointPropertiesInternal)this).ShareName = (string) content.GetValueForProperty("ShareName",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.ISmbMountEndpointPropertiesInternal)this).ShareName, global::System.Convert.ToString); + } + if (content.Contains("EndpointType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IEndpointBasePropertiesInternal)this).EndpointType = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.EndpointType) content.GetValueForProperty("EndpointType",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IEndpointBasePropertiesInternal)this).EndpointType, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.EndpointType.CreateFrom); + } + if (content.Contains("Description")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IEndpointBasePropertiesInternal)this).Description = (string) content.GetValueForProperty("Description",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IEndpointBasePropertiesInternal)this).Description, global::System.Convert.ToString); + } + if (content.Contains("ProvisioningState")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IEndpointBasePropertiesInternal)this).ProvisioningState = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.ProvisioningState?) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IEndpointBasePropertiesInternal)this).ProvisioningState, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.ProvisioningState.CreateFrom); + } + if (content.Contains("CredentialsType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.ISmbMountEndpointPropertiesInternal)this).CredentialsType = (string) content.GetValueForProperty("CredentialsType",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.ISmbMountEndpointPropertiesInternal)this).CredentialsType, global::System.Convert.ToString); + } + if (content.Contains("CredentialsUsernameUri")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.ISmbMountEndpointPropertiesInternal)this).CredentialsUsernameUri = (string) content.GetValueForProperty("CredentialsUsernameUri",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.ISmbMountEndpointPropertiesInternal)this).CredentialsUsernameUri, global::System.Convert.ToString); + } + if (content.Contains("CredentialsPasswordUri")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.ISmbMountEndpointPropertiesInternal)this).CredentialsPasswordUri = (string) content.GetValueForProperty("CredentialsPasswordUri",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.ISmbMountEndpointPropertiesInternal)this).CredentialsPasswordUri, global::System.Convert.ToString); + } + AfterDeserializeDictionary(content); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + internal SmbMountEndpointProperties(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("Credentials")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.ISmbMountEndpointPropertiesInternal)this).Credentials = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IAzureKeyVaultSmbCredentials) content.GetValueForProperty("Credentials",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.ISmbMountEndpointPropertiesInternal)this).Credentials, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.AzureKeyVaultSmbCredentialsTypeConverter.ConvertFrom); + } + if (content.Contains("Host")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.ISmbMountEndpointPropertiesInternal)this).Host = (string) content.GetValueForProperty("Host",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.ISmbMountEndpointPropertiesInternal)this).Host, global::System.Convert.ToString); + } + if (content.Contains("ShareName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.ISmbMountEndpointPropertiesInternal)this).ShareName = (string) content.GetValueForProperty("ShareName",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.ISmbMountEndpointPropertiesInternal)this).ShareName, global::System.Convert.ToString); + } + if (content.Contains("EndpointType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IEndpointBasePropertiesInternal)this).EndpointType = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.EndpointType) content.GetValueForProperty("EndpointType",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IEndpointBasePropertiesInternal)this).EndpointType, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.EndpointType.CreateFrom); + } + if (content.Contains("Description")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IEndpointBasePropertiesInternal)this).Description = (string) content.GetValueForProperty("Description",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IEndpointBasePropertiesInternal)this).Description, global::System.Convert.ToString); + } + if (content.Contains("ProvisioningState")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IEndpointBasePropertiesInternal)this).ProvisioningState = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.ProvisioningState?) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IEndpointBasePropertiesInternal)this).ProvisioningState, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.ProvisioningState.CreateFrom); + } + if (content.Contains("CredentialsType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.ISmbMountEndpointPropertiesInternal)this).CredentialsType = (string) content.GetValueForProperty("CredentialsType",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.ISmbMountEndpointPropertiesInternal)this).CredentialsType, global::System.Convert.ToString); + } + if (content.Contains("CredentialsUsernameUri")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.ISmbMountEndpointPropertiesInternal)this).CredentialsUsernameUri = (string) content.GetValueForProperty("CredentialsUsernameUri",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.ISmbMountEndpointPropertiesInternal)this).CredentialsUsernameUri, global::System.Convert.ToString); + } + if (content.Contains("CredentialsPasswordUri")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.ISmbMountEndpointPropertiesInternal)this).CredentialsPasswordUri = (string) content.GetValueForProperty("CredentialsPasswordUri",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.ISmbMountEndpointPropertiesInternal)this).CredentialsPasswordUri, global::System.Convert.ToString); + } + AfterDeserializePSObject(content); + } + + /// Serializes this instance to a json string. + + /// a containing this model serialized to JSON text. + public string ToJsonString() => ToJson(null, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.SerializationMode.IncludeAll)?.ToString(); + + public override string ToString() + { + var returnNow = false; + var result = global::System.String.Empty; + OverrideToString(ref result, ref returnNow); + if (returnNow) + { + return result; + } + return ToJsonString(); + } + } + /// The properties of SMB share endpoint. + [System.ComponentModel.TypeConverter(typeof(SmbMountEndpointPropertiesTypeConverter))] + public partial interface ISmbMountEndpointProperties + + { + + } +} \ No newline at end of file diff --git a/src/StorageMover/generated/api/Models/Api20231001/SmbMountEndpointProperties.TypeConverter.cs b/src/StorageMover/generated/api/Models/Api20231001/SmbMountEndpointProperties.TypeConverter.cs new file mode 100644 index 000000000000..cef44f99d001 --- /dev/null +++ b/src/StorageMover/generated/api/Models/Api20231001/SmbMountEndpointProperties.TypeConverter.cs @@ -0,0 +1,147 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001 +{ + using Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.PowerShell; + + /// + /// A PowerShell PSTypeConverter to support converting to an instance of + /// + public partial class SmbMountEndpointPropertiesTypeConverter : global::System.Management.Automation.PSTypeConverter + { + + /// + /// Determines if the converter can convert the parameter to the parameter. + /// + /// the to convert from + /// the to convert to + /// + /// true if the converter can convert the parameter to the parameter, otherwise false. + /// + public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); + + /// + /// Determines if the converter can convert the parameter to the + /// type. + /// + /// the instance to check if it can be converted to the type. + /// + /// true if the instance could be converted to a type, otherwise false + /// + public static bool CanConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return true; + } + global::System.Type type = sourceValue.GetType(); + if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + // we say yest to PSObjects + return true; + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + // we say yest to Hashtables/dictionaries + return true; + } + try + { + if (null != sourceValue.ToJsonString()) + { + return true; + } + } + catch + { + // Not one of our objects + } + try + { + string text = sourceValue.ToString()?.Trim(); + return true == text?.StartsWith("{") && true == text?.EndsWith("}") && Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonNode.Parse(text).Type == Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonType.Object; + } + catch + { + // Doesn't look like it can be treated as JSON + } + return false; + } + + /// + /// Determines if the parameter can be converted to the + /// parameter + /// + /// the to convert from + /// the to convert to + /// + /// true if the converter can convert the parameter to the parameter, otherwise false + /// + public override bool CanConvertTo(object sourceValue, global::System.Type destinationType) => false; + + /// + /// Converts the parameter to the parameter using and + /// + /// the to convert from + /// the to convert to + /// not used by this TypeConverter. + /// when set to true, will ignore the case when converting. + /// + /// an instance of , or null if there is no suitable conversion. + /// + public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue); + + /// + /// Converts the parameter into an instance of + /// + /// the value to convert into an instance of . + /// + /// an instance of , or null if there is no suitable conversion. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.ISmbMountEndpointProperties ConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return null; + } + global::System.Type type = sourceValue.GetType(); + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.ISmbMountEndpointProperties).IsAssignableFrom(type)) + { + return sourceValue; + } + try + { + return SmbMountEndpointProperties.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());; + } + catch + { + // Unable to use JSON pattern + } + if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + return SmbMountEndpointProperties.DeserializeFromPSObject(sourceValue); + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + return SmbMountEndpointProperties.DeserializeFromDictionary(sourceValue); + } + return null; + } + + /// NotImplemented -- this will return null + /// the to convert from + /// the to convert to + /// not used by this TypeConverter. + /// when set to true, will ignore the case when converting. + /// will always return null. + public override object ConvertTo(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => null; + } +} \ No newline at end of file diff --git a/src/StorageMover/generated/api/Models/Api20231001/SmbMountEndpointProperties.cs b/src/StorageMover/generated/api/Models/Api20231001/SmbMountEndpointProperties.cs new file mode 100644 index 000000000000..bc6fab25bd94 --- /dev/null +++ b/src/StorageMover/generated/api/Models/Api20231001/SmbMountEndpointProperties.cs @@ -0,0 +1,176 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001 +{ + using static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Extensions; + + /// The properties of SMB share endpoint. + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.DoNotFormat] + public partial class SmbMountEndpointProperties : + Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.ISmbMountEndpointProperties, + Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.ISmbMountEndpointPropertiesInternal, + Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.IValidates + { + /// + /// Backing field for Inherited model + /// + private Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IEndpointBaseProperties __endpointBaseProperties = new Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.EndpointBaseProperties(); + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IAzureKeyVaultSmbCredentials _credentials; + + /// + /// The Azure Key Vault secret URIs which store the required credentials to access the SMB share. + /// + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Origin(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.PropertyOrigin.Owned)] + internal Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IAzureKeyVaultSmbCredentials Credentials { get => (this._credentials = this._credentials ?? new Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.AzureKeyVaultSmbCredentials()); set => this._credentials = value; } + + /// + /// The Azure Key Vault secret URI which stores the password. Use empty string to clean-up existing value. + /// + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Origin(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.PropertyOrigin.Inlined)] + public string CredentialsPasswordUri { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IAzureKeyVaultSmbCredentialsInternal)Credentials).PasswordUri; set => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IAzureKeyVaultSmbCredentialsInternal)Credentials).PasswordUri = value ?? null; } + + /// The Credentials type. + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Origin(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.PropertyOrigin.Inlined)] + public string CredentialsType { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.ICredentialsInternal)Credentials).Type; } + + /// + /// The Azure Key Vault secret URI which stores the username. Use empty string to clean-up existing value. + /// + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Origin(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.PropertyOrigin.Inlined)] + public string CredentialsUsernameUri { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IAzureKeyVaultSmbCredentialsInternal)Credentials).UsernameUri; set => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IAzureKeyVaultSmbCredentialsInternal)Credentials).UsernameUri = value ?? null; } + + /// A description for the Endpoint. + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Origin(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.PropertyOrigin.Inherited)] + public string Description { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IEndpointBasePropertiesInternal)__endpointBaseProperties).Description; set => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IEndpointBasePropertiesInternal)__endpointBaseProperties).Description = value ?? null; } + + /// The Endpoint resource type. + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Origin(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.PropertyOrigin.Inherited)] + public Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.EndpointType EndpointType { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IEndpointBasePropertiesInternal)__endpointBaseProperties).EndpointType; set => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IEndpointBasePropertiesInternal)__endpointBaseProperties).EndpointType = value ; } + + /// Backing field for property. + private string _host; + + /// The host name or IP address of the server exporting the file system. + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Origin(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.PropertyOrigin.Owned)] + public string Host { get => this._host; set => this._host = value; } + + /// Internal Acessors for ProvisioningState + Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.ProvisioningState? Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IEndpointBasePropertiesInternal.ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IEndpointBasePropertiesInternal)__endpointBaseProperties).ProvisioningState; set => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IEndpointBasePropertiesInternal)__endpointBaseProperties).ProvisioningState = value; } + + /// Internal Acessors for Credentials + Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IAzureKeyVaultSmbCredentials Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.ISmbMountEndpointPropertiesInternal.Credentials { get => (this._credentials = this._credentials ?? new Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.AzureKeyVaultSmbCredentials()); set { {_credentials = value;} } } + + /// Internal Acessors for CredentialsType + string Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.ISmbMountEndpointPropertiesInternal.CredentialsType { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.ICredentialsInternal)Credentials).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.ICredentialsInternal)Credentials).Type = value; } + + /// The provisioning state of this resource. + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Origin(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.PropertyOrigin.Inherited)] + public Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.ProvisioningState? ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IEndpointBasePropertiesInternal)__endpointBaseProperties).ProvisioningState; } + + /// Backing field for property. + private string _shareName; + + /// The name of the SMB share being exported from the server. + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Origin(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.PropertyOrigin.Owned)] + public string ShareName { get => this._shareName; set => this._shareName = value; } + + /// Creates an new instance. + public SmbMountEndpointProperties() + { + + } + + /// Validates that this object meets the validation criteria. + /// an instance that will receive validation + /// events. + /// + /// A that will be complete when validation is completed. + /// + public async global::System.Threading.Tasks.Task Validate(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.IEventListener eventListener) + { + await eventListener.AssertNotNull(nameof(__endpointBaseProperties), __endpointBaseProperties); + await eventListener.AssertObjectIsValid(nameof(__endpointBaseProperties), __endpointBaseProperties); + } + } + /// The properties of SMB share endpoint. + public partial interface ISmbMountEndpointProperties : + Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.IJsonSerializable, + Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IEndpointBaseProperties + { + /// + /// The Azure Key Vault secret URI which stores the password. Use empty string to clean-up existing value. + /// + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The Azure Key Vault secret URI which stores the password. Use empty string to clean-up existing value.", + SerializedName = @"passwordUri", + PossibleTypes = new [] { typeof(string) })] + string CredentialsPasswordUri { get; set; } + /// The Credentials type. + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"The Credentials type.", + SerializedName = @"type", + PossibleTypes = new [] { typeof(string) })] + string CredentialsType { get; } + /// + /// The Azure Key Vault secret URI which stores the username. Use empty string to clean-up existing value. + /// + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The Azure Key Vault secret URI which stores the username. Use empty string to clean-up existing value.", + SerializedName = @"usernameUri", + PossibleTypes = new [] { typeof(string) })] + string CredentialsUsernameUri { get; set; } + /// The host name or IP address of the server exporting the file system. + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The host name or IP address of the server exporting the file system.", + SerializedName = @"host", + PossibleTypes = new [] { typeof(string) })] + string Host { get; set; } + /// The name of the SMB share being exported from the server. + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The name of the SMB share being exported from the server.", + SerializedName = @"shareName", + PossibleTypes = new [] { typeof(string) })] + string ShareName { get; set; } + + } + /// The properties of SMB share endpoint. + internal partial interface ISmbMountEndpointPropertiesInternal : + Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IEndpointBasePropertiesInternal + { + /// + /// The Azure Key Vault secret URIs which store the required credentials to access the SMB share. + /// + Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IAzureKeyVaultSmbCredentials Credentials { get; set; } + /// + /// The Azure Key Vault secret URI which stores the password. Use empty string to clean-up existing value. + /// + string CredentialsPasswordUri { get; set; } + /// The Credentials type. + string CredentialsType { get; set; } + /// + /// The Azure Key Vault secret URI which stores the username. Use empty string to clean-up existing value. + /// + string CredentialsUsernameUri { get; set; } + /// The host name or IP address of the server exporting the file system. + string Host { get; set; } + /// The name of the SMB share being exported from the server. + string ShareName { get; set; } + + } +} \ No newline at end of file diff --git a/src/StorageMover/generated/api/Models/Api20231001/SmbMountEndpointProperties.json.cs b/src/StorageMover/generated/api/Models/Api20231001/SmbMountEndpointProperties.json.cs new file mode 100644 index 000000000000..61884e95f4a1 --- /dev/null +++ b/src/StorageMover/generated/api/Models/Api20231001/SmbMountEndpointProperties.json.cs @@ -0,0 +1,114 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001 +{ + using static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Extensions; + + /// The properties of SMB share endpoint. + public partial class SmbMountEndpointProperties + { + + /// + /// AfterFromJson will be called after the json deserialization has finished, allowing customization of the object + /// before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The JsonNode that should be deserialized into this object. + + partial void AfterFromJson(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonObject json); + + /// + /// AfterToJson will be called after the json serialization has finished, allowing customization of the before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The JSON container that the serialization result will be placed in. + + partial void AfterToJson(ref Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonObject container); + + /// + /// BeforeFromJson will be called before the json deserialization has commenced, allowing complete customization of + /// the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the + /// output parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The JsonNode that should be deserialized into this object. + /// Determines if the rest of the deserialization should be processed, or if the method should return + /// instantly. + + partial void BeforeFromJson(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonObject json, ref bool returnNow); + + /// + /// BeforeToJson will be called before the json serialization has commenced, allowing complete customization of the + /// object before it is serialized. + /// If you wish to disable the default serialization entirely, return true in the output + /// parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The JSON container that the serialization result will be placed in. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonObject container, ref bool returnNow); + + /// + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.ISmbMountEndpointProperties. + /// + /// a to deserialize from. + /// + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.ISmbMountEndpointProperties. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.ISmbMountEndpointProperties FromJson(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonNode node) + { + return node is Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonObject json ? new SmbMountEndpointProperties(json) : null; + } + + /// + /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonObject into a new instance of . + /// + /// A Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonObject instance to deserialize from. + internal SmbMountEndpointProperties(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonObject json) + { + bool returnNow = false; + BeforeFromJson(json, ref returnNow); + if (returnNow) + { + return; + } + __endpointBaseProperties = new Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.EndpointBaseProperties(json); + {_credentials = If( json?.PropertyT("credentials"), out var __jsonCredentials) ? Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.AzureKeyVaultSmbCredentials.FromJson(__jsonCredentials) : Credentials;} + {_host = If( json?.PropertyT("host"), out var __jsonHost) ? (string)__jsonHost : (string)Host;} + {_shareName = If( json?.PropertyT("shareName"), out var __jsonShareName) ? (string)__jsonShareName : (string)ShareName;} + AfterFromJson(json); + } + + /// + /// Serializes this instance of into a . + /// + /// The container to serialize this object into. If the caller + /// passes in null, a new instance will be created and returned to the caller. + /// Allows the caller to choose the depth of the serialization. See . + /// + /// a serialized instance of as a . + /// + public Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonNode ToJson(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonObject container, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.SerializationMode serializationMode) + { + container = container ?? new Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonObject(); + + bool returnNow = false; + BeforeToJson(ref container, ref returnNow); + if (returnNow) + { + return container; + } + __endpointBaseProperties?.ToJson(container, serializationMode); + AddIf( null != this._credentials ? (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonNode) this._credentials.ToJson(null,serializationMode) : null, "credentials" ,container.Add ); + AddIf( null != (((object)this._host)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonString(this._host.ToString()) : null, "host" ,container.Add ); + AddIf( null != (((object)this._shareName)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonString(this._shareName.ToString()) : null, "shareName" ,container.Add ); + AfterToJson(ref container); + return container; + } + } +} \ No newline at end of file diff --git a/src/StorageMover/generated/api/Models/Api20231001/SmbMountEndpointUpdateProperties.PowerShell.cs b/src/StorageMover/generated/api/Models/Api20231001/SmbMountEndpointUpdateProperties.PowerShell.cs new file mode 100644 index 000000000000..da3331ac3dd8 --- /dev/null +++ b/src/StorageMover/generated/api/Models/Api20231001/SmbMountEndpointUpdateProperties.PowerShell.cs @@ -0,0 +1,206 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001 +{ + using Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.PowerShell; + + /// The properties of SMB share endpoint to update. + [System.ComponentModel.TypeConverter(typeof(SmbMountEndpointUpdatePropertiesTypeConverter))] + public partial class SmbMountEndpointUpdateProperties + { + + /// + /// AfterDeserializeDictionary will be called after the deserialization has finished, allowing customization of the + /// object before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The global::System.Collections.IDictionary content that should be used. + + partial void AfterDeserializeDictionary(global::System.Collections.IDictionary content); + + /// + /// AfterDeserializePSObject will be called after the deserialization has finished, allowing customization of the object + /// before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The global::System.Management.Automation.PSObject content that should be used. + + partial void AfterDeserializePSObject(global::System.Management.Automation.PSObject content); + + /// + /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization + /// of the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The global::System.Collections.IDictionary content that should be used. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeDeserializeDictionary(global::System.Collections.IDictionary content, ref bool returnNow); + + /// + /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization + /// of the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The global::System.Management.Automation.PSObject content that should be used. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); + + /// + /// OverrideToString will be called if it is implemented. Implement this method in a partial class to enable this behavior + /// + /// /// instance serialized to a string, normally it is a Json + /// /// set returnNow to true if you provide a customized OverrideToString function + + partial void OverrideToString(ref string stringResult, ref bool returnNow); + + /// + /// Deserializes a into an instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + /// + /// an instance of . + /// + public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.ISmbMountEndpointUpdateProperties DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new SmbMountEndpointUpdateProperties(content); + } + + /// + /// Deserializes a into an instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + /// + /// an instance of . + /// + public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.ISmbMountEndpointUpdateProperties DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new SmbMountEndpointUpdateProperties(content); + } + + /// + /// Creates a new instance of , deserializing the content from a json string. + /// + /// a string containing a JSON serialized instance of this model. + /// an instance of the model class. + public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.ISmbMountEndpointUpdateProperties FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonNode.Parse(jsonText)); + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal SmbMountEndpointUpdateProperties(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("Credentials")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.ISmbMountEndpointUpdatePropertiesInternal)this).Credentials = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IAzureKeyVaultSmbCredentials) content.GetValueForProperty("Credentials",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.ISmbMountEndpointUpdatePropertiesInternal)this).Credentials, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.AzureKeyVaultSmbCredentialsTypeConverter.ConvertFrom); + } + if (content.Contains("EndpointType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IEndpointBaseUpdatePropertiesInternal)this).EndpointType = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.EndpointType) content.GetValueForProperty("EndpointType",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IEndpointBaseUpdatePropertiesInternal)this).EndpointType, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.EndpointType.CreateFrom); + } + if (content.Contains("Description")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IEndpointBaseUpdatePropertiesInternal)this).Description = (string) content.GetValueForProperty("Description",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IEndpointBaseUpdatePropertiesInternal)this).Description, global::System.Convert.ToString); + } + if (content.Contains("CredentialsType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.ISmbMountEndpointUpdatePropertiesInternal)this).CredentialsType = (string) content.GetValueForProperty("CredentialsType",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.ISmbMountEndpointUpdatePropertiesInternal)this).CredentialsType, global::System.Convert.ToString); + } + if (content.Contains("CredentialsUsernameUri")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.ISmbMountEndpointUpdatePropertiesInternal)this).CredentialsUsernameUri = (string) content.GetValueForProperty("CredentialsUsernameUri",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.ISmbMountEndpointUpdatePropertiesInternal)this).CredentialsUsernameUri, global::System.Convert.ToString); + } + if (content.Contains("CredentialsPasswordUri")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.ISmbMountEndpointUpdatePropertiesInternal)this).CredentialsPasswordUri = (string) content.GetValueForProperty("CredentialsPasswordUri",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.ISmbMountEndpointUpdatePropertiesInternal)this).CredentialsPasswordUri, global::System.Convert.ToString); + } + AfterDeserializeDictionary(content); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + internal SmbMountEndpointUpdateProperties(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("Credentials")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.ISmbMountEndpointUpdatePropertiesInternal)this).Credentials = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IAzureKeyVaultSmbCredentials) content.GetValueForProperty("Credentials",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.ISmbMountEndpointUpdatePropertiesInternal)this).Credentials, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.AzureKeyVaultSmbCredentialsTypeConverter.ConvertFrom); + } + if (content.Contains("EndpointType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IEndpointBaseUpdatePropertiesInternal)this).EndpointType = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.EndpointType) content.GetValueForProperty("EndpointType",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IEndpointBaseUpdatePropertiesInternal)this).EndpointType, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.EndpointType.CreateFrom); + } + if (content.Contains("Description")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IEndpointBaseUpdatePropertiesInternal)this).Description = (string) content.GetValueForProperty("Description",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IEndpointBaseUpdatePropertiesInternal)this).Description, global::System.Convert.ToString); + } + if (content.Contains("CredentialsType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.ISmbMountEndpointUpdatePropertiesInternal)this).CredentialsType = (string) content.GetValueForProperty("CredentialsType",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.ISmbMountEndpointUpdatePropertiesInternal)this).CredentialsType, global::System.Convert.ToString); + } + if (content.Contains("CredentialsUsernameUri")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.ISmbMountEndpointUpdatePropertiesInternal)this).CredentialsUsernameUri = (string) content.GetValueForProperty("CredentialsUsernameUri",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.ISmbMountEndpointUpdatePropertiesInternal)this).CredentialsUsernameUri, global::System.Convert.ToString); + } + if (content.Contains("CredentialsPasswordUri")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.ISmbMountEndpointUpdatePropertiesInternal)this).CredentialsPasswordUri = (string) content.GetValueForProperty("CredentialsPasswordUri",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.ISmbMountEndpointUpdatePropertiesInternal)this).CredentialsPasswordUri, global::System.Convert.ToString); + } + AfterDeserializePSObject(content); + } + + /// Serializes this instance to a json string. + + /// a containing this model serialized to JSON text. + public string ToJsonString() => ToJson(null, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.SerializationMode.IncludeAll)?.ToString(); + + public override string ToString() + { + var returnNow = false; + var result = global::System.String.Empty; + OverrideToString(ref result, ref returnNow); + if (returnNow) + { + return result; + } + return ToJsonString(); + } + } + /// The properties of SMB share endpoint to update. + [System.ComponentModel.TypeConverter(typeof(SmbMountEndpointUpdatePropertiesTypeConverter))] + public partial interface ISmbMountEndpointUpdateProperties + + { + + } +} \ No newline at end of file diff --git a/src/StorageMover/generated/api/Models/Api20231001/SmbMountEndpointUpdateProperties.TypeConverter.cs b/src/StorageMover/generated/api/Models/Api20231001/SmbMountEndpointUpdateProperties.TypeConverter.cs new file mode 100644 index 000000000000..ff03cfa7d101 --- /dev/null +++ b/src/StorageMover/generated/api/Models/Api20231001/SmbMountEndpointUpdateProperties.TypeConverter.cs @@ -0,0 +1,148 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001 +{ + using Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.PowerShell; + + /// + /// A PowerShell PSTypeConverter to support converting to an instance of + /// + public partial class SmbMountEndpointUpdatePropertiesTypeConverter : global::System.Management.Automation.PSTypeConverter + { + + /// + /// Determines if the converter can convert the parameter to the parameter. + /// + /// the to convert from + /// the to convert to + /// + /// true if the converter can convert the parameter to the parameter, otherwise false. + /// + public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); + + /// + /// Determines if the converter can convert the parameter to the + /// type. + /// + /// the instance to check if it can be converted to the type. + /// + /// true if the instance could be converted to a type, otherwise false + /// + public static bool CanConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return true; + } + global::System.Type type = sourceValue.GetType(); + if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + // we say yest to PSObjects + return true; + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + // we say yest to Hashtables/dictionaries + return true; + } + try + { + if (null != sourceValue.ToJsonString()) + { + return true; + } + } + catch + { + // Not one of our objects + } + try + { + string text = sourceValue.ToString()?.Trim(); + return true == text?.StartsWith("{") && true == text?.EndsWith("}") && Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonNode.Parse(text).Type == Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonType.Object; + } + catch + { + // Doesn't look like it can be treated as JSON + } + return false; + } + + /// + /// Determines if the parameter can be converted to the + /// parameter + /// + /// the to convert from + /// the to convert to + /// + /// true if the converter can convert the parameter to the parameter, otherwise false + /// + public override bool CanConvertTo(object sourceValue, global::System.Type destinationType) => false; + + /// + /// Converts the parameter to the parameter using and + /// + /// the to convert from + /// the to convert to + /// not used by this TypeConverter. + /// when set to true, will ignore the case when converting. + /// + /// an instance of , or null if there is no suitable conversion. + /// + public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue); + + /// + /// Converts the parameter into an instance of + /// + /// the value to convert into an instance of . + /// + /// an instance of , or null if there is no suitable conversion. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.ISmbMountEndpointUpdateProperties ConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return null; + } + global::System.Type type = sourceValue.GetType(); + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.ISmbMountEndpointUpdateProperties).IsAssignableFrom(type)) + { + return sourceValue; + } + try + { + return SmbMountEndpointUpdateProperties.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());; + } + catch + { + // Unable to use JSON pattern + } + if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + return SmbMountEndpointUpdateProperties.DeserializeFromPSObject(sourceValue); + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + return SmbMountEndpointUpdateProperties.DeserializeFromDictionary(sourceValue); + } + return null; + } + + /// NotImplemented -- this will return null + /// the to convert from + /// the to convert to + /// not used by this TypeConverter. + /// when set to true, will ignore the case when converting. + /// will always return null. + public override object ConvertTo(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => null; + } +} \ No newline at end of file diff --git a/src/StorageMover/generated/api/Models/Api20231001/SmbMountEndpointUpdateProperties.cs b/src/StorageMover/generated/api/Models/Api20231001/SmbMountEndpointUpdateProperties.cs new file mode 100644 index 000000000000..8d5b4c1e1a9c --- /dev/null +++ b/src/StorageMover/generated/api/Models/Api20231001/SmbMountEndpointUpdateProperties.cs @@ -0,0 +1,135 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001 +{ + using static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Extensions; + + /// The properties of SMB share endpoint to update. + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.DoNotFormat] + public partial class SmbMountEndpointUpdateProperties : + Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.ISmbMountEndpointUpdateProperties, + Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.ISmbMountEndpointUpdatePropertiesInternal, + Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.IValidates + { + /// + /// Backing field for Inherited model + /// + private Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IEndpointBaseUpdateProperties __endpointBaseUpdateProperties = new Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.EndpointBaseUpdateProperties(); + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IAzureKeyVaultSmbCredentials _credentials; + + /// + /// The Azure Key Vault secret URIs which store the required credentials to access the SMB share. + /// + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Origin(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.PropertyOrigin.Owned)] + internal Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IAzureKeyVaultSmbCredentials Credentials { get => (this._credentials = this._credentials ?? new Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.AzureKeyVaultSmbCredentials()); set => this._credentials = value; } + + /// + /// The Azure Key Vault secret URI which stores the password. Use empty string to clean-up existing value. + /// + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Origin(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.PropertyOrigin.Inlined)] + public string CredentialsPasswordUri { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IAzureKeyVaultSmbCredentialsInternal)Credentials).PasswordUri; set => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IAzureKeyVaultSmbCredentialsInternal)Credentials).PasswordUri = value ?? null; } + + /// The Credentials type. + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Origin(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.PropertyOrigin.Inlined)] + public string CredentialsType { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.ICredentialsInternal)Credentials).Type; } + + /// + /// The Azure Key Vault secret URI which stores the username. Use empty string to clean-up existing value. + /// + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Origin(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.PropertyOrigin.Inlined)] + public string CredentialsUsernameUri { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IAzureKeyVaultSmbCredentialsInternal)Credentials).UsernameUri; set => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IAzureKeyVaultSmbCredentialsInternal)Credentials).UsernameUri = value ?? null; } + + /// A description for the Endpoint. + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Origin(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.PropertyOrigin.Inherited)] + public string Description { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IEndpointBaseUpdatePropertiesInternal)__endpointBaseUpdateProperties).Description; set => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IEndpointBaseUpdatePropertiesInternal)__endpointBaseUpdateProperties).Description = value ?? null; } + + /// The Endpoint resource type. + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Origin(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.PropertyOrigin.Inherited)] + public Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.EndpointType EndpointType { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IEndpointBaseUpdatePropertiesInternal)__endpointBaseUpdateProperties).EndpointType; set => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IEndpointBaseUpdatePropertiesInternal)__endpointBaseUpdateProperties).EndpointType = value ; } + + /// Internal Acessors for Credentials + Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IAzureKeyVaultSmbCredentials Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.ISmbMountEndpointUpdatePropertiesInternal.Credentials { get => (this._credentials = this._credentials ?? new Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.AzureKeyVaultSmbCredentials()); set { {_credentials = value;} } } + + /// Internal Acessors for CredentialsType + string Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.ISmbMountEndpointUpdatePropertiesInternal.CredentialsType { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.ICredentialsInternal)Credentials).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.ICredentialsInternal)Credentials).Type = value; } + + /// Creates an new instance. + public SmbMountEndpointUpdateProperties() + { + + } + + /// Validates that this object meets the validation criteria. + /// an instance that will receive validation + /// events. + /// + /// A that will be complete when validation is completed. + /// + public async global::System.Threading.Tasks.Task Validate(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.IEventListener eventListener) + { + await eventListener.AssertNotNull(nameof(__endpointBaseUpdateProperties), __endpointBaseUpdateProperties); + await eventListener.AssertObjectIsValid(nameof(__endpointBaseUpdateProperties), __endpointBaseUpdateProperties); + } + } + /// The properties of SMB share endpoint to update. + public partial interface ISmbMountEndpointUpdateProperties : + Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.IJsonSerializable, + Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IEndpointBaseUpdateProperties + { + /// + /// The Azure Key Vault secret URI which stores the password. Use empty string to clean-up existing value. + /// + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The Azure Key Vault secret URI which stores the password. Use empty string to clean-up existing value.", + SerializedName = @"passwordUri", + PossibleTypes = new [] { typeof(string) })] + string CredentialsPasswordUri { get; set; } + /// The Credentials type. + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"The Credentials type.", + SerializedName = @"type", + PossibleTypes = new [] { typeof(string) })] + string CredentialsType { get; } + /// + /// The Azure Key Vault secret URI which stores the username. Use empty string to clean-up existing value. + /// + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The Azure Key Vault secret URI which stores the username. Use empty string to clean-up existing value.", + SerializedName = @"usernameUri", + PossibleTypes = new [] { typeof(string) })] + string CredentialsUsernameUri { get; set; } + + } + /// The properties of SMB share endpoint to update. + internal partial interface ISmbMountEndpointUpdatePropertiesInternal : + Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IEndpointBaseUpdatePropertiesInternal + { + /// + /// The Azure Key Vault secret URIs which store the required credentials to access the SMB share. + /// + Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IAzureKeyVaultSmbCredentials Credentials { get; set; } + /// + /// The Azure Key Vault secret URI which stores the password. Use empty string to clean-up existing value. + /// + string CredentialsPasswordUri { get; set; } + /// The Credentials type. + string CredentialsType { get; set; } + /// + /// The Azure Key Vault secret URI which stores the username. Use empty string to clean-up existing value. + /// + string CredentialsUsernameUri { get; set; } + + } +} \ No newline at end of file diff --git a/src/StorageMover/generated/api/Models/Api20231001/SmbMountEndpointUpdateProperties.json.cs b/src/StorageMover/generated/api/Models/Api20231001/SmbMountEndpointUpdateProperties.json.cs new file mode 100644 index 000000000000..5e5bce9f3405 --- /dev/null +++ b/src/StorageMover/generated/api/Models/Api20231001/SmbMountEndpointUpdateProperties.json.cs @@ -0,0 +1,110 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001 +{ + using static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Extensions; + + /// The properties of SMB share endpoint to update. + public partial class SmbMountEndpointUpdateProperties + { + + /// + /// AfterFromJson will be called after the json deserialization has finished, allowing customization of the object + /// before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The JsonNode that should be deserialized into this object. + + partial void AfterFromJson(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonObject json); + + /// + /// AfterToJson will be called after the json serialization has finished, allowing customization of the before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The JSON container that the serialization result will be placed in. + + partial void AfterToJson(ref Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonObject container); + + /// + /// BeforeFromJson will be called before the json deserialization has commenced, allowing complete customization of + /// the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the + /// output parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The JsonNode that should be deserialized into this object. + /// Determines if the rest of the deserialization should be processed, or if the method should return + /// instantly. + + partial void BeforeFromJson(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonObject json, ref bool returnNow); + + /// + /// BeforeToJson will be called before the json serialization has commenced, allowing complete customization of the + /// object before it is serialized. + /// If you wish to disable the default serialization entirely, return true in the output + /// parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The JSON container that the serialization result will be placed in. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonObject container, ref bool returnNow); + + /// + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.ISmbMountEndpointUpdateProperties. + /// + /// a to deserialize from. + /// + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.ISmbMountEndpointUpdateProperties. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.ISmbMountEndpointUpdateProperties FromJson(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonNode node) + { + return node is Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonObject json ? new SmbMountEndpointUpdateProperties(json) : null; + } + + /// + /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonObject into a new instance of . + /// + /// A Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonObject instance to deserialize from. + internal SmbMountEndpointUpdateProperties(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonObject json) + { + bool returnNow = false; + BeforeFromJson(json, ref returnNow); + if (returnNow) + { + return; + } + __endpointBaseUpdateProperties = new Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.EndpointBaseUpdateProperties(json); + {_credentials = If( json?.PropertyT("credentials"), out var __jsonCredentials) ? Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.AzureKeyVaultSmbCredentials.FromJson(__jsonCredentials) : Credentials;} + AfterFromJson(json); + } + + /// + /// Serializes this instance of into a . + /// + /// The container to serialize this object into. If the caller + /// passes in null, a new instance will be created and returned to the caller. + /// Allows the caller to choose the depth of the serialization. See . + /// + /// a serialized instance of as a . + /// + public Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonNode ToJson(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonObject container, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.SerializationMode serializationMode) + { + container = container ?? new Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonObject(); + + bool returnNow = false; + BeforeToJson(ref container, ref returnNow); + if (returnNow) + { + return container; + } + __endpointBaseUpdateProperties?.ToJson(container, serializationMode); + AddIf( null != this._credentials ? (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonNode) this._credentials.ToJson(null,serializationMode) : null, "credentials" ,container.Add ); + AfterToJson(ref container); + return container; + } + } +} \ No newline at end of file diff --git a/src/StorageMover/generated/api/Models/Api20230301/StorageMover.PowerShell.cs b/src/StorageMover/generated/api/Models/Api20231001/StorageMover.PowerShell.cs similarity index 63% rename from src/StorageMover/generated/api/Models/Api20230301/StorageMover.PowerShell.cs rename to src/StorageMover/generated/api/Models/Api20231001/StorageMover.PowerShell.cs index 04b6567f3af0..6545678cc98d 100644 --- a/src/StorageMover/generated/api/Models/Api20230301/StorageMover.PowerShell.cs +++ b/src/StorageMover/generated/api/Models/Api20231001/StorageMover.PowerShell.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301 +namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001 { using Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.PowerShell; @@ -65,27 +65,27 @@ public partial class StorageMover partial void OverrideToString(ref string stringResult, ref bool returnNow); /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Collections.IDictionary content that should be used. /// - /// an instance of . + /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IStorageMover DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IStorageMover DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new StorageMover(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. /// - /// an instance of . + /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IStorageMover DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IStorageMover DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new StorageMover(content); } @@ -95,10 +95,10 @@ public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301 /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IStorageMover FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IStorageMover FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonNode.Parse(jsonText)); /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. @@ -113,69 +113,69 @@ internal StorageMover(global::System.Collections.IDictionary content) // actually deserialize if (content.Contains("Property")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IStorageMoverInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IStorageMoverProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IStorageMoverInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.StorageMoverPropertiesTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IStorageMoverInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IStorageMoverProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IStorageMoverInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.StorageMoverPropertiesTypeConverter.ConvertFrom); } - if (content.Contains("SystemData")) + if (content.Contains("SystemDataCreatedBy")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IStorageMoverInternal)this).SystemData = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.ISystemData) content.GetValueForProperty("SystemData",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IStorageMoverInternal)this).SystemData, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.SystemDataTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IResourceInternal)this).SystemDataCreatedBy = (string) content.GetValueForProperty("SystemDataCreatedBy",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IResourceInternal)this).SystemDataCreatedBy, global::System.Convert.ToString); } - if (content.Contains("Id")) + if (content.Contains("SystemDataCreatedAt")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.IResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.IResourceInternal)this).Id, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IResourceInternal)this).SystemDataCreatedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataCreatedAt",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IResourceInternal)this).SystemDataCreatedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); } - if (content.Contains("Name")) + if (content.Contains("SystemDataCreatedByType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.IResourceInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.IResourceInternal)this).Name, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IResourceInternal)this).SystemDataCreatedByType = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.CreatedByType?) content.GetValueForProperty("SystemDataCreatedByType",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IResourceInternal)this).SystemDataCreatedByType, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.CreatedByType.CreateFrom); } - if (content.Contains("Type")) + if (content.Contains("SystemDataLastModifiedBy")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.IResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.IResourceInternal)this).Type, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IResourceInternal)this).SystemDataLastModifiedBy = (string) content.GetValueForProperty("SystemDataLastModifiedBy",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IResourceInternal)this).SystemDataLastModifiedBy, global::System.Convert.ToString); } - if (content.Contains("Tag")) + if (content.Contains("SystemDataLastModifiedByType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.ITrackedResourceInternal)this).Tag = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.ITrackedResourceTags) content.GetValueForProperty("Tag",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.ITrackedResourceInternal)this).Tag, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.TrackedResourceTagsTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IResourceInternal)this).SystemDataLastModifiedByType = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.CreatedByType?) content.GetValueForProperty("SystemDataLastModifiedByType",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IResourceInternal)this).SystemDataLastModifiedByType, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.CreatedByType.CreateFrom); } - if (content.Contains("Location")) + if (content.Contains("SystemDataLastModifiedAt")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.ITrackedResourceInternal)this).Location = (string) content.GetValueForProperty("Location",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.ITrackedResourceInternal)this).Location, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IResourceInternal)this).SystemDataLastModifiedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataLastModifiedAt",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IResourceInternal)this).SystemDataLastModifiedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); } - if (content.Contains("ProvisioningState")) + if (content.Contains("SystemData")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IStorageMoverInternal)this).ProvisioningState = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.ProvisioningState?) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IStorageMoverInternal)this).ProvisioningState, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.ProvisioningState.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IResourceInternal)this).SystemData = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.ISystemData) content.GetValueForProperty("SystemData",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IResourceInternal)this).SystemData, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.SystemDataTypeConverter.ConvertFrom); } - if (content.Contains("SystemDataCreatedBy")) + if (content.Contains("Id")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IStorageMoverInternal)this).SystemDataCreatedBy = (string) content.GetValueForProperty("SystemDataCreatedBy",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IStorageMoverInternal)this).SystemDataCreatedBy, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IResourceInternal)this).Id, global::System.Convert.ToString); } - if (content.Contains("SystemDataCreatedAt")) + if (content.Contains("Name")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IStorageMoverInternal)this).SystemDataCreatedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataCreatedAt",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IStorageMoverInternal)this).SystemDataCreatedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IResourceInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IResourceInternal)this).Name, global::System.Convert.ToString); } - if (content.Contains("Description")) + if (content.Contains("Type")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IStorageMoverInternal)this).Description = (string) content.GetValueForProperty("Description",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IStorageMoverInternal)this).Description, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IResourceInternal)this).Type, global::System.Convert.ToString); } - if (content.Contains("SystemDataCreatedByType")) + if (content.Contains("Tag")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IStorageMoverInternal)this).SystemDataCreatedByType = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.CreatedByType?) content.GetValueForProperty("SystemDataCreatedByType",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IStorageMoverInternal)this).SystemDataCreatedByType, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.CreatedByType.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.ITrackedResourceInternal)this).Tag = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.ITrackedResourceTags) content.GetValueForProperty("Tag",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.ITrackedResourceInternal)this).Tag, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.TrackedResourceTagsTypeConverter.ConvertFrom); } - if (content.Contains("SystemDataLastModifiedBy")) + if (content.Contains("Location")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IStorageMoverInternal)this).SystemDataLastModifiedBy = (string) content.GetValueForProperty("SystemDataLastModifiedBy",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IStorageMoverInternal)this).SystemDataLastModifiedBy, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.ITrackedResourceInternal)this).Location = (string) content.GetValueForProperty("Location",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.ITrackedResourceInternal)this).Location, global::System.Convert.ToString); } - if (content.Contains("SystemDataLastModifiedByType")) + if (content.Contains("ProvisioningState")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IStorageMoverInternal)this).SystemDataLastModifiedByType = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.CreatedByType?) content.GetValueForProperty("SystemDataLastModifiedByType",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IStorageMoverInternal)this).SystemDataLastModifiedByType, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.CreatedByType.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IStorageMoverInternal)this).ProvisioningState = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.ProvisioningState?) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IStorageMoverInternal)this).ProvisioningState, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.ProvisioningState.CreateFrom); } - if (content.Contains("SystemDataLastModifiedAt")) + if (content.Contains("Description")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IStorageMoverInternal)this).SystemDataLastModifiedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataLastModifiedAt",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IStorageMoverInternal)this).SystemDataLastModifiedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IStorageMoverInternal)this).Description = (string) content.GetValueForProperty("Description",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IStorageMoverInternal)this).Description, global::System.Convert.ToString); } AfterDeserializeDictionary(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -190,63 +190,63 @@ internal StorageMover(global::System.Management.Automation.PSObject content) // actually deserialize if (content.Contains("Property")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IStorageMoverInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IStorageMoverProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IStorageMoverInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.StorageMoverPropertiesTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IStorageMoverInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IStorageMoverProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IStorageMoverInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.StorageMoverPropertiesTypeConverter.ConvertFrom); } - if (content.Contains("SystemData")) + if (content.Contains("SystemDataCreatedBy")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IStorageMoverInternal)this).SystemData = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.ISystemData) content.GetValueForProperty("SystemData",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IStorageMoverInternal)this).SystemData, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.SystemDataTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IResourceInternal)this).SystemDataCreatedBy = (string) content.GetValueForProperty("SystemDataCreatedBy",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IResourceInternal)this).SystemDataCreatedBy, global::System.Convert.ToString); } - if (content.Contains("Id")) + if (content.Contains("SystemDataCreatedAt")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.IResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.IResourceInternal)this).Id, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IResourceInternal)this).SystemDataCreatedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataCreatedAt",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IResourceInternal)this).SystemDataCreatedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); } - if (content.Contains("Name")) + if (content.Contains("SystemDataCreatedByType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.IResourceInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.IResourceInternal)this).Name, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IResourceInternal)this).SystemDataCreatedByType = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.CreatedByType?) content.GetValueForProperty("SystemDataCreatedByType",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IResourceInternal)this).SystemDataCreatedByType, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.CreatedByType.CreateFrom); } - if (content.Contains("Type")) + if (content.Contains("SystemDataLastModifiedBy")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.IResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.IResourceInternal)this).Type, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IResourceInternal)this).SystemDataLastModifiedBy = (string) content.GetValueForProperty("SystemDataLastModifiedBy",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IResourceInternal)this).SystemDataLastModifiedBy, global::System.Convert.ToString); } - if (content.Contains("Tag")) + if (content.Contains("SystemDataLastModifiedByType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.ITrackedResourceInternal)this).Tag = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.ITrackedResourceTags) content.GetValueForProperty("Tag",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.ITrackedResourceInternal)this).Tag, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.TrackedResourceTagsTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IResourceInternal)this).SystemDataLastModifiedByType = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.CreatedByType?) content.GetValueForProperty("SystemDataLastModifiedByType",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IResourceInternal)this).SystemDataLastModifiedByType, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.CreatedByType.CreateFrom); } - if (content.Contains("Location")) + if (content.Contains("SystemDataLastModifiedAt")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.ITrackedResourceInternal)this).Location = (string) content.GetValueForProperty("Location",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.ITrackedResourceInternal)this).Location, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IResourceInternal)this).SystemDataLastModifiedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataLastModifiedAt",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IResourceInternal)this).SystemDataLastModifiedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); } - if (content.Contains("ProvisioningState")) + if (content.Contains("SystemData")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IStorageMoverInternal)this).ProvisioningState = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.ProvisioningState?) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IStorageMoverInternal)this).ProvisioningState, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.ProvisioningState.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IResourceInternal)this).SystemData = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.ISystemData) content.GetValueForProperty("SystemData",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IResourceInternal)this).SystemData, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.SystemDataTypeConverter.ConvertFrom); } - if (content.Contains("SystemDataCreatedBy")) + if (content.Contains("Id")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IStorageMoverInternal)this).SystemDataCreatedBy = (string) content.GetValueForProperty("SystemDataCreatedBy",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IStorageMoverInternal)this).SystemDataCreatedBy, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IResourceInternal)this).Id, global::System.Convert.ToString); } - if (content.Contains("SystemDataCreatedAt")) + if (content.Contains("Name")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IStorageMoverInternal)this).SystemDataCreatedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataCreatedAt",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IStorageMoverInternal)this).SystemDataCreatedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IResourceInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IResourceInternal)this).Name, global::System.Convert.ToString); } - if (content.Contains("Description")) + if (content.Contains("Type")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IStorageMoverInternal)this).Description = (string) content.GetValueForProperty("Description",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IStorageMoverInternal)this).Description, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IResourceInternal)this).Type, global::System.Convert.ToString); } - if (content.Contains("SystemDataCreatedByType")) + if (content.Contains("Tag")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IStorageMoverInternal)this).SystemDataCreatedByType = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.CreatedByType?) content.GetValueForProperty("SystemDataCreatedByType",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IStorageMoverInternal)this).SystemDataCreatedByType, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.CreatedByType.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.ITrackedResourceInternal)this).Tag = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.ITrackedResourceTags) content.GetValueForProperty("Tag",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.ITrackedResourceInternal)this).Tag, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.TrackedResourceTagsTypeConverter.ConvertFrom); } - if (content.Contains("SystemDataLastModifiedBy")) + if (content.Contains("Location")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IStorageMoverInternal)this).SystemDataLastModifiedBy = (string) content.GetValueForProperty("SystemDataLastModifiedBy",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IStorageMoverInternal)this).SystemDataLastModifiedBy, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.ITrackedResourceInternal)this).Location = (string) content.GetValueForProperty("Location",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.ITrackedResourceInternal)this).Location, global::System.Convert.ToString); } - if (content.Contains("SystemDataLastModifiedByType")) + if (content.Contains("ProvisioningState")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IStorageMoverInternal)this).SystemDataLastModifiedByType = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.CreatedByType?) content.GetValueForProperty("SystemDataLastModifiedByType",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IStorageMoverInternal)this).SystemDataLastModifiedByType, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.CreatedByType.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IStorageMoverInternal)this).ProvisioningState = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.ProvisioningState?) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IStorageMoverInternal)this).ProvisioningState, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.ProvisioningState.CreateFrom); } - if (content.Contains("SystemDataLastModifiedAt")) + if (content.Contains("Description")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IStorageMoverInternal)this).SystemDataLastModifiedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataLastModifiedAt",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IStorageMoverInternal)this).SystemDataLastModifiedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IStorageMoverInternal)this).Description = (string) content.GetValueForProperty("Description",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IStorageMoverInternal)this).Description, global::System.Convert.ToString); } AfterDeserializePSObject(content); } diff --git a/src/StorageMover/generated/api/Models/Api20230301/StorageMover.TypeConverter.cs b/src/StorageMover/generated/api/Models/Api20231001/StorageMover.TypeConverter.cs similarity index 98% rename from src/StorageMover/generated/api/Models/Api20230301/StorageMover.TypeConverter.cs rename to src/StorageMover/generated/api/Models/Api20231001/StorageMover.TypeConverter.cs index b2a5a5b7e13c..6b156b5ef4b6 100644 --- a/src/StorageMover/generated/api/Models/Api20230301/StorageMover.TypeConverter.cs +++ b/src/StorageMover/generated/api/Models/Api20231001/StorageMover.TypeConverter.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301 +namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001 { using Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.PowerShell; @@ -106,14 +106,14 @@ public static bool CanConvertFrom(dynamic sourceValue) /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IStorageMover ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IStorageMover ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IStorageMover).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IStorageMover).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/StorageMover/generated/api/Models/Api20230301/StorageMover.cs b/src/StorageMover/generated/api/Models/Api20231001/StorageMover.cs similarity index 55% rename from src/StorageMover/generated/api/Models/Api20230301/StorageMover.cs rename to src/StorageMover/generated/api/Models/Api20231001/StorageMover.cs index 39d89f521b6e..0834d879c563 100644 --- a/src/StorageMover/generated/api/Models/Api20230301/StorageMover.cs +++ b/src/StorageMover/generated/api/Models/Api20231001/StorageMover.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301 +namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001 { using static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Extensions; @@ -12,103 +12,102 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301 /// [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.DoNotFormat] public partial class StorageMover : - Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IStorageMover, - Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IStorageMoverInternal, + Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IStorageMover, + Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IStorageMoverInternal, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.IValidates { /// - /// Backing field for Inherited model /// - private Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.ITrackedResource __trackedResource = new Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.TrackedResource(); + private Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.ITrackedResource __trackedResource = new Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.TrackedResource(); /// A description for the Storage Mover. [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Origin(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.PropertyOrigin.Inlined)] - public string Description { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IStorageMoverPropertiesInternal)Property).Description; set => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IStorageMoverPropertiesInternal)Property).Description = value ?? null; } + public string Description { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IStorageMoverPropertiesInternal)Property).Description; set => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IStorageMoverPropertiesInternal)Property).Description = value ?? null; } /// /// Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} /// [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Origin(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.PropertyOrigin.Inherited)] - public string Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.IResourceInternal)__trackedResource).Id; } + public string Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IResourceInternal)__trackedResource).Id; } /// The geo-location where the resource lives [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Origin(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.PropertyOrigin.Inherited)] - public string Location { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.ITrackedResourceInternal)__trackedResource).Location; set => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.ITrackedResourceInternal)__trackedResource).Location = value ; } - - /// Internal Acessors for Id - string Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.IResourceInternal)__trackedResource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.IResourceInternal)__trackedResource).Id = value; } - - /// Internal Acessors for Name - string Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.IResourceInternal)__trackedResource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.IResourceInternal)__trackedResource).Name = value; } - - /// Internal Acessors for Type - string Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.IResourceInternal)__trackedResource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.IResourceInternal)__trackedResource).Type = value; } + public string Location { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.ITrackedResourceInternal)__trackedResource).Location; set => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.ITrackedResourceInternal)__trackedResource).Location = value ; } /// Internal Acessors for Property - Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IStorageMoverProperties Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IStorageMoverInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.StorageMoverProperties()); set { {_property = value;} } } + Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IStorageMoverProperties Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IStorageMoverInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.StorageMoverProperties()); set { {_property = value;} } } /// Internal Acessors for ProvisioningState - Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.ProvisioningState? Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IStorageMoverInternal.ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IStorageMoverPropertiesInternal)Property).ProvisioningState; set => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IStorageMoverPropertiesInternal)Property).ProvisioningState = value; } + Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.ProvisioningState? Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IStorageMoverInternal.ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IStorageMoverPropertiesInternal)Property).ProvisioningState; set => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IStorageMoverPropertiesInternal)Property).ProvisioningState = value; } + + /// Internal Acessors for Id + string Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IResourceInternal)__trackedResource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IResourceInternal)__trackedResource).Id = value; } + + /// Internal Acessors for Name + string Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IResourceInternal)__trackedResource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IResourceInternal)__trackedResource).Name = value; } /// Internal Acessors for SystemData - Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.ISystemData Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IStorageMoverInternal.SystemData { get => (this._systemData = this._systemData ?? new Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.SystemData()); set { {_systemData = value;} } } + Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.ISystemData Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IResourceInternal.SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IResourceInternal)__trackedResource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IResourceInternal)__trackedResource).SystemData = value; } + + /// Internal Acessors for Type + string Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IResourceInternal)__trackedResource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IResourceInternal)__trackedResource).Type = value; } /// The name of the resource [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Origin(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.PropertyOrigin.Inherited)] - public string Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.IResourceInternal)__trackedResource).Name; } + public string Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IResourceInternal)__trackedResource).Name; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IStorageMoverProperties _property; + private Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IStorageMoverProperties _property; /// The resource specific properties for the Storage Mover resource. [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Origin(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.PropertyOrigin.Owned)] - internal Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IStorageMoverProperties Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.StorageMoverProperties()); set => this._property = value; } + internal Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IStorageMoverProperties Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.StorageMoverProperties()); set => this._property = value; } /// The provisioning state of this resource. [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Origin(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.PropertyOrigin.Inlined)] - public Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.ProvisioningState? ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IStorageMoverPropertiesInternal)Property).ProvisioningState; } + public Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.ProvisioningState? ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IStorageMoverPropertiesInternal)Property).ProvisioningState; } - /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.ISystemData _systemData; - - /// Resource system metadata. - [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Origin(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.PropertyOrigin.Owned)] - internal Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.ISystemData SystemData { get => (this._systemData = this._systemData ?? new Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.SystemData()); } + /// + /// Azure Resource Manager metadata containing createdBy and modifiedBy information. + /// + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Origin(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.PropertyOrigin.Inherited)] + private Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.ISystemData SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IResourceInternal)__trackedResource).SystemData; } /// The timestamp of resource creation (UTC). - [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Origin(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.PropertyOrigin.Inlined)] - public global::System.DateTime? SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.ISystemDataInternal)SystemData).CreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.ISystemDataInternal)SystemData).CreatedAt = value ?? default(global::System.DateTime); } + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Origin(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.PropertyOrigin.Inherited)] + public global::System.DateTime? SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IResourceInternal)__trackedResource).SystemDataCreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IResourceInternal)__trackedResource).SystemDataCreatedAt = value ?? default(global::System.DateTime); } /// The identity that created the resource. - [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Origin(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.PropertyOrigin.Inlined)] - public string SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.ISystemDataInternal)SystemData).CreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.ISystemDataInternal)SystemData).CreatedBy = value ?? null; } + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Origin(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.PropertyOrigin.Inherited)] + public string SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IResourceInternal)__trackedResource).SystemDataCreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IResourceInternal)__trackedResource).SystemDataCreatedBy = value ?? null; } /// The type of identity that created the resource. - [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Origin(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.PropertyOrigin.Inlined)] - public Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.CreatedByType? SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.ISystemDataInternal)SystemData).CreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.ISystemDataInternal)SystemData).CreatedByType = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.CreatedByType)""); } + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Origin(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.PropertyOrigin.Inherited)] + public Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.CreatedByType? SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IResourceInternal)__trackedResource).SystemDataCreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IResourceInternal)__trackedResource).SystemDataCreatedByType = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.CreatedByType)""); } /// The timestamp of resource last modification (UTC) - [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Origin(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.PropertyOrigin.Inlined)] - public global::System.DateTime? SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.ISystemDataInternal)SystemData).LastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.ISystemDataInternal)SystemData).LastModifiedAt = value ?? default(global::System.DateTime); } + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Origin(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.PropertyOrigin.Inherited)] + public global::System.DateTime? SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IResourceInternal)__trackedResource).SystemDataLastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IResourceInternal)__trackedResource).SystemDataLastModifiedAt = value ?? default(global::System.DateTime); } /// The identity that last modified the resource. - [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Origin(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.PropertyOrigin.Inlined)] - public string SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.ISystemDataInternal)SystemData).LastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.ISystemDataInternal)SystemData).LastModifiedBy = value ?? null; } + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Origin(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.PropertyOrigin.Inherited)] + public string SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IResourceInternal)__trackedResource).SystemDataLastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IResourceInternal)__trackedResource).SystemDataLastModifiedBy = value ?? null; } /// The type of identity that last modified the resource. - [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Origin(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.PropertyOrigin.Inlined)] - public Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.CreatedByType? SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.ISystemDataInternal)SystemData).LastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.ISystemDataInternal)SystemData).LastModifiedByType = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.CreatedByType)""); } + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Origin(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.PropertyOrigin.Inherited)] + public Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.CreatedByType? SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IResourceInternal)__trackedResource).SystemDataLastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IResourceInternal)__trackedResource).SystemDataLastModifiedByType = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.CreatedByType)""); } /// Resource tags. [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Origin(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.PropertyOrigin.Inherited)] - public Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.ITrackedResourceTags Tag { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.ITrackedResourceInternal)__trackedResource).Tag; set => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.ITrackedResourceInternal)__trackedResource).Tag = value ?? null /* model class */; } + public Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.ITrackedResourceTags Tag { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.ITrackedResourceInternal)__trackedResource).Tag; set => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.ITrackedResourceInternal)__trackedResource).Tag = value ?? null /* model class */; } /// /// The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" /// [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Origin(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.PropertyOrigin.Inherited)] - public string Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.IResourceInternal)__trackedResource).Type; } + public string Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IResourceInternal)__trackedResource).Type; } /// Creates an new instance. public StorageMover() @@ -131,7 +130,7 @@ public StorageMover() /// The Storage Mover resource, which is a container for a group of Agents, Projects, and Endpoints. public partial interface IStorageMover : Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.IJsonSerializable, - Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.ITrackedResource + Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.ITrackedResource { /// A description for the Storage Mover. [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Info( @@ -149,80 +148,18 @@ public partial interface IStorageMover : SerializedName = @"provisioningState", PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.ProvisioningState) })] Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.ProvisioningState? ProvisioningState { get; } - /// The timestamp of resource creation (UTC). - [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"The timestamp of resource creation (UTC).", - SerializedName = @"createdAt", - PossibleTypes = new [] { typeof(global::System.DateTime) })] - global::System.DateTime? SystemDataCreatedAt { get; set; } - /// The identity that created the resource. - [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"The identity that created the resource.", - SerializedName = @"createdBy", - PossibleTypes = new [] { typeof(string) })] - string SystemDataCreatedBy { get; set; } - /// The type of identity that created the resource. - [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"The type of identity that created the resource.", - SerializedName = @"createdByType", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.CreatedByType) })] - Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.CreatedByType? SystemDataCreatedByType { get; set; } - /// The timestamp of resource last modification (UTC) - [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"The timestamp of resource last modification (UTC)", - SerializedName = @"lastModifiedAt", - PossibleTypes = new [] { typeof(global::System.DateTime) })] - global::System.DateTime? SystemDataLastModifiedAt { get; set; } - /// The identity that last modified the resource. - [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"The identity that last modified the resource.", - SerializedName = @"lastModifiedBy", - PossibleTypes = new [] { typeof(string) })] - string SystemDataLastModifiedBy { get; set; } - /// The type of identity that last modified the resource. - [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"The type of identity that last modified the resource.", - SerializedName = @"lastModifiedByType", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.CreatedByType) })] - Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.CreatedByType? SystemDataLastModifiedByType { get; set; } } /// The Storage Mover resource, which is a container for a group of Agents, Projects, and Endpoints. internal partial interface IStorageMoverInternal : - Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.ITrackedResourceInternal + Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.ITrackedResourceInternal { /// A description for the Storage Mover. string Description { get; set; } /// The resource specific properties for the Storage Mover resource. - Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IStorageMoverProperties Property { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IStorageMoverProperties Property { get; set; } /// The provisioning state of this resource. Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.ProvisioningState? ProvisioningState { get; set; } - /// Resource system metadata. - Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.ISystemData SystemData { get; set; } - /// The timestamp of resource creation (UTC). - global::System.DateTime? SystemDataCreatedAt { get; set; } - /// The identity that created the resource. - string SystemDataCreatedBy { get; set; } - /// The type of identity that created the resource. - Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.CreatedByType? SystemDataCreatedByType { get; set; } - /// The timestamp of resource last modification (UTC) - global::System.DateTime? SystemDataLastModifiedAt { get; set; } - /// The identity that last modified the resource. - string SystemDataLastModifiedBy { get; set; } - /// The type of identity that last modified the resource. - Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.CreatedByType? SystemDataLastModifiedByType { get; set; } } } \ No newline at end of file diff --git a/src/StorageMover/generated/api/Models/Api20230301/StorageMover.json.cs b/src/StorageMover/generated/api/Models/Api20231001/StorageMover.json.cs similarity index 88% rename from src/StorageMover/generated/api/Models/Api20230301/StorageMover.json.cs rename to src/StorageMover/generated/api/Models/Api20231001/StorageMover.json.cs index c50a37b1db2a..6297b90ff9c5 100644 --- a/src/StorageMover/generated/api/Models/Api20230301/StorageMover.json.cs +++ b/src/StorageMover/generated/api/Models/Api20231001/StorageMover.json.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301 +namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001 { using static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Extensions; @@ -56,13 +56,13 @@ public partial class StorageMover partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IStorageMover. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IStorageMover. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IStorageMover. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IStorageMover. /// - public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IStorageMover FromJson(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IStorageMover FromJson(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonObject json ? new StorageMover(json) : null; } @@ -79,9 +79,8 @@ internal StorageMover(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Js { return; } - __trackedResource = new Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.TrackedResource(json); - {_property = If( json?.PropertyT("properties"), out var __jsonProperties) ? Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.StorageMoverProperties.FromJson(__jsonProperties) : Property;} - {_systemData = If( json?.PropertyT("systemData"), out var __jsonSystemData) ? Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.SystemData.FromJson(__jsonSystemData) : SystemData;} + __trackedResource = new Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.TrackedResource(json); + {_property = If( json?.PropertyT("properties"), out var __jsonProperties) ? Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.StorageMoverProperties.FromJson(__jsonProperties) : Property;} AfterFromJson(json); } @@ -106,10 +105,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonNode ToJ } __trackedResource?.ToJson(container, serializationMode); AddIf( null != this._property ? (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonNode) this._property.ToJson(null,serializationMode) : null, "properties" ,container.Add ); - if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.SerializationMode.IncludeReadOnly)) - { - AddIf( null != this._systemData ? (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonNode) this._systemData.ToJson(null,serializationMode) : null, "systemData" ,container.Add ); - } AfterToJson(ref container); return container; } diff --git a/src/StorageMover/generated/api/Models/Api20230301/StorageMoverList.PowerShell.cs b/src/StorageMover/generated/api/Models/Api20231001/StorageMoverList.PowerShell.cs similarity index 85% rename from src/StorageMover/generated/api/Models/Api20230301/StorageMoverList.PowerShell.cs rename to src/StorageMover/generated/api/Models/Api20231001/StorageMoverList.PowerShell.cs index 8e4919a8eff5..edbd64fb5ec0 100644 --- a/src/StorageMover/generated/api/Models/Api20230301/StorageMoverList.PowerShell.cs +++ b/src/StorageMover/generated/api/Models/Api20231001/StorageMoverList.PowerShell.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301 +namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001 { using Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.PowerShell; @@ -63,27 +63,27 @@ public partial class StorageMoverList partial void OverrideToString(ref string stringResult, ref bool returnNow); /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Collections.IDictionary content that should be used. /// - /// an instance of . + /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IStorageMoverList DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IStorageMoverList DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new StorageMoverList(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. /// - /// an instance of . + /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IStorageMoverList DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IStorageMoverList DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new StorageMoverList(content); } @@ -93,10 +93,10 @@ public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301 /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IStorageMoverList FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IStorageMoverList FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonNode.Parse(jsonText)); /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. @@ -111,17 +111,17 @@ internal StorageMoverList(global::System.Collections.IDictionary content) // actually deserialize if (content.Contains("Value")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IStorageMoverListInternal)this).Value = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IStorageMover[]) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IStorageMoverListInternal)this).Value, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.StorageMoverTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IStorageMoverListInternal)this).Value = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IStorageMover[]) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IStorageMoverListInternal)this).Value, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.StorageMoverTypeConverter.ConvertFrom)); } if (content.Contains("NextLink")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IStorageMoverListInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IStorageMoverListInternal)this).NextLink, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IStorageMoverListInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IStorageMoverListInternal)this).NextLink, global::System.Convert.ToString); } AfterDeserializeDictionary(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -136,11 +136,11 @@ internal StorageMoverList(global::System.Management.Automation.PSObject content) // actually deserialize if (content.Contains("Value")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IStorageMoverListInternal)this).Value = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IStorageMover[]) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IStorageMoverListInternal)this).Value, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.StorageMoverTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IStorageMoverListInternal)this).Value = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IStorageMover[]) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IStorageMoverListInternal)this).Value, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.StorageMoverTypeConverter.ConvertFrom)); } if (content.Contains("NextLink")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IStorageMoverListInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IStorageMoverListInternal)this).NextLink, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IStorageMoverListInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IStorageMoverListInternal)this).NextLink, global::System.Convert.ToString); } AfterDeserializePSObject(content); } diff --git a/src/StorageMover/generated/api/Models/Api20230301/StorageMoverList.TypeConverter.cs b/src/StorageMover/generated/api/Models/Api20231001/StorageMoverList.TypeConverter.cs similarity index 98% rename from src/StorageMover/generated/api/Models/Api20230301/StorageMoverList.TypeConverter.cs rename to src/StorageMover/generated/api/Models/Api20231001/StorageMoverList.TypeConverter.cs index ba05ea33a6a2..f75aab2e832f 100644 --- a/src/StorageMover/generated/api/Models/Api20230301/StorageMoverList.TypeConverter.cs +++ b/src/StorageMover/generated/api/Models/Api20231001/StorageMoverList.TypeConverter.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301 +namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001 { using Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.PowerShell; @@ -106,14 +106,14 @@ public static bool CanConvertFrom(dynamic sourceValue) /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IStorageMoverList ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IStorageMoverList ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IStorageMoverList).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IStorageMoverList).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/StorageMover/generated/api/Models/Api20230301/StorageMoverList.cs b/src/StorageMover/generated/api/Models/Api20231001/StorageMoverList.cs similarity index 87% rename from src/StorageMover/generated/api/Models/Api20230301/StorageMoverList.cs rename to src/StorageMover/generated/api/Models/Api20231001/StorageMoverList.cs index 55926286e57a..f25394200f82 100644 --- a/src/StorageMover/generated/api/Models/Api20230301/StorageMoverList.cs +++ b/src/StorageMover/generated/api/Models/Api20231001/StorageMoverList.cs @@ -3,22 +3,22 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301 +namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001 { using static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Extensions; /// List of Storage Movers. [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.DoNotFormat] public partial class StorageMoverList : - Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IStorageMoverList, - Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IStorageMoverListInternal + Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IStorageMoverList, + Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IStorageMoverListInternal { /// Internal Acessors for NextLink - string Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IStorageMoverListInternal.NextLink { get => this._nextLink; set { {_nextLink = value;} } } + string Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IStorageMoverListInternal.NextLink { get => this._nextLink; set { {_nextLink = value;} } } /// Internal Acessors for Value - Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IStorageMover[] Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IStorageMoverListInternal.Value { get => this._value; set { {_value = value;} } } + Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IStorageMover[] Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IStorageMoverListInternal.Value { get => this._value; set { {_value = value;} } } /// Backing field for property. private string _nextLink; @@ -31,10 +31,10 @@ public partial class StorageMoverList : public string NextLink { get => this._nextLink; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IStorageMover[] _value; + private Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IStorageMover[] _value; [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Origin(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.PropertyOrigin.Owned)] - public Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IStorageMover[] Value { get => this._value; } + public Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IStorageMover[] Value { get => this._value; } /// Creates an new instance. public StorageMoverList() @@ -63,8 +63,8 @@ public partial interface IStorageMoverList : ReadOnly = true, Description = @"", SerializedName = @"value", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IStorageMover) })] - Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IStorageMover[] Value { get; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IStorageMover) })] + Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IStorageMover[] Value { get; } } /// List of Storage Movers. @@ -77,7 +77,7 @@ internal partial interface IStorageMoverListInternal /// string NextLink { get; set; } - Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IStorageMover[] Value { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IStorageMover[] Value { get; set; } } } \ No newline at end of file diff --git a/src/StorageMover/generated/api/Models/Api20230301/StorageMoverList.json.cs b/src/StorageMover/generated/api/Models/Api20231001/StorageMoverList.json.cs similarity index 95% rename from src/StorageMover/generated/api/Models/Api20230301/StorageMoverList.json.cs rename to src/StorageMover/generated/api/Models/Api20231001/StorageMoverList.json.cs index 5e5ec931e3b3..3b02c96c7213 100644 --- a/src/StorageMover/generated/api/Models/Api20230301/StorageMoverList.json.cs +++ b/src/StorageMover/generated/api/Models/Api20231001/StorageMoverList.json.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301 +namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001 { using static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Extensions; @@ -54,13 +54,13 @@ public partial class StorageMoverList partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IStorageMoverList. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IStorageMoverList. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IStorageMoverList. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IStorageMoverList. /// - public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IStorageMoverList FromJson(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IStorageMoverList FromJson(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonObject json ? new StorageMoverList(json) : null; } @@ -77,7 +77,7 @@ internal StorageMoverList(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtim { return; } - {_value = If( json?.PropertyT("value"), out var __jsonValue) ? If( __jsonValue as Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonArray, out var __v) ? new global::System.Func(()=> global::System.Linq.Enumerable.ToArray(global::System.Linq.Enumerable.Select(__v, (__u)=>(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IStorageMover) (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.StorageMover.FromJson(__u) )) ))() : null : Value;} + {_value = If( json?.PropertyT("value"), out var __jsonValue) ? If( __jsonValue as Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonArray, out var __v) ? new global::System.Func(()=> global::System.Linq.Enumerable.ToArray(global::System.Linq.Enumerable.Select(__v, (__u)=>(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IStorageMover) (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.StorageMover.FromJson(__u) )) ))() : null : Value;} {_nextLink = If( json?.PropertyT("nextLink"), out var __jsonNextLink) ? (string)__jsonNextLink : (string)NextLink;} AfterFromJson(json); } diff --git a/src/StorageMover/generated/api/Models/Api20230301/StorageMoverProperties.PowerShell.cs b/src/StorageMover/generated/api/Models/Api20231001/StorageMoverProperties.PowerShell.cs similarity index 89% rename from src/StorageMover/generated/api/Models/Api20230301/StorageMoverProperties.PowerShell.cs rename to src/StorageMover/generated/api/Models/Api20231001/StorageMoverProperties.PowerShell.cs index 4718d411bcfb..2a310711f2e6 100644 --- a/src/StorageMover/generated/api/Models/Api20230301/StorageMoverProperties.PowerShell.cs +++ b/src/StorageMover/generated/api/Models/Api20231001/StorageMoverProperties.PowerShell.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301 +namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001 { using Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.PowerShell; @@ -63,29 +63,29 @@ public partial class StorageMoverProperties partial void OverrideToString(ref string stringResult, ref bool returnNow); /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Collections.IDictionary content that should be used. /// - /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IStorageMoverProperties DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IStorageMoverProperties DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new StorageMoverProperties(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. /// - /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IStorageMoverProperties DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IStorageMoverProperties DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new StorageMoverProperties(content); } @@ -95,10 +95,10 @@ public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301 /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IStorageMoverProperties FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IStorageMoverProperties FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonNode.Parse(jsonText)); /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. @@ -113,17 +113,17 @@ internal StorageMoverProperties(global::System.Collections.IDictionary content) // actually deserialize if (content.Contains("Description")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IStorageMoverPropertiesInternal)this).Description = (string) content.GetValueForProperty("Description",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IStorageMoverPropertiesInternal)this).Description, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IStorageMoverPropertiesInternal)this).Description = (string) content.GetValueForProperty("Description",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IStorageMoverPropertiesInternal)this).Description, global::System.Convert.ToString); } if (content.Contains("ProvisioningState")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IStorageMoverPropertiesInternal)this).ProvisioningState = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.ProvisioningState?) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IStorageMoverPropertiesInternal)this).ProvisioningState, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.ProvisioningState.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IStorageMoverPropertiesInternal)this).ProvisioningState = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.ProvisioningState?) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IStorageMoverPropertiesInternal)this).ProvisioningState, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.ProvisioningState.CreateFrom); } AfterDeserializeDictionary(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -138,11 +138,11 @@ internal StorageMoverProperties(global::System.Management.Automation.PSObject co // actually deserialize if (content.Contains("Description")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IStorageMoverPropertiesInternal)this).Description = (string) content.GetValueForProperty("Description",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IStorageMoverPropertiesInternal)this).Description, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IStorageMoverPropertiesInternal)this).Description = (string) content.GetValueForProperty("Description",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IStorageMoverPropertiesInternal)this).Description, global::System.Convert.ToString); } if (content.Contains("ProvisioningState")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IStorageMoverPropertiesInternal)this).ProvisioningState = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.ProvisioningState?) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IStorageMoverPropertiesInternal)this).ProvisioningState, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.ProvisioningState.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IStorageMoverPropertiesInternal)this).ProvisioningState = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.ProvisioningState?) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IStorageMoverPropertiesInternal)this).ProvisioningState, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.ProvisioningState.CreateFrom); } AfterDeserializePSObject(content); } diff --git a/src/StorageMover/generated/api/Models/Api20230301/StorageMoverProperties.TypeConverter.cs b/src/StorageMover/generated/api/Models/Api20231001/StorageMoverProperties.TypeConverter.cs similarity index 98% rename from src/StorageMover/generated/api/Models/Api20230301/StorageMoverProperties.TypeConverter.cs rename to src/StorageMover/generated/api/Models/Api20231001/StorageMoverProperties.TypeConverter.cs index 838f46d4156b..8ae3cbb07dfc 100644 --- a/src/StorageMover/generated/api/Models/Api20230301/StorageMoverProperties.TypeConverter.cs +++ b/src/StorageMover/generated/api/Models/Api20231001/StorageMoverProperties.TypeConverter.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301 +namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001 { using Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.PowerShell; @@ -106,14 +106,14 @@ public static bool CanConvertFrom(dynamic sourceValue) /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IStorageMoverProperties ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IStorageMoverProperties ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IStorageMoverProperties).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IStorageMoverProperties).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/StorageMover/generated/api/Models/Api20230301/StorageMoverProperties.cs b/src/StorageMover/generated/api/Models/Api20231001/StorageMoverProperties.cs similarity index 96% rename from src/StorageMover/generated/api/Models/Api20230301/StorageMoverProperties.cs rename to src/StorageMover/generated/api/Models/Api20231001/StorageMoverProperties.cs index 2a8e59f6b28d..8b6c91b3352a 100644 --- a/src/StorageMover/generated/api/Models/Api20230301/StorageMoverProperties.cs +++ b/src/StorageMover/generated/api/Models/Api20231001/StorageMoverProperties.cs @@ -3,15 +3,15 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301 +namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001 { using static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Extensions; /// The resource specific properties for the Storage Mover resource. [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.DoNotFormat] public partial class StorageMoverProperties : - Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IStorageMoverProperties, - Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IStorageMoverPropertiesInternal + Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IStorageMoverProperties, + Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IStorageMoverPropertiesInternal { /// Backing field for property. @@ -22,7 +22,7 @@ public partial class StorageMoverProperties : public string Description { get => this._description; set => this._description = value; } /// Internal Acessors for ProvisioningState - Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.ProvisioningState? Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IStorageMoverPropertiesInternal.ProvisioningState { get => this._provisioningState; set { {_provisioningState = value;} } } + Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.ProvisioningState? Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IStorageMoverPropertiesInternal.ProvisioningState { get => this._provisioningState; set { {_provisioningState = value;} } } /// Backing field for property. private Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.ProvisioningState? _provisioningState; diff --git a/src/StorageMover/generated/api/Models/Api20230301/StorageMoverProperties.json.cs b/src/StorageMover/generated/api/Models/Api20231001/StorageMoverProperties.json.cs similarity index 97% rename from src/StorageMover/generated/api/Models/Api20230301/StorageMoverProperties.json.cs rename to src/StorageMover/generated/api/Models/Api20231001/StorageMoverProperties.json.cs index ea47011e7d5a..d268818a38e4 100644 --- a/src/StorageMover/generated/api/Models/Api20230301/StorageMoverProperties.json.cs +++ b/src/StorageMover/generated/api/Models/Api20231001/StorageMoverProperties.json.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301 +namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001 { using static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Extensions; @@ -54,13 +54,13 @@ public partial class StorageMoverProperties partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IStorageMoverProperties. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IStorageMoverProperties. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IStorageMoverProperties. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IStorageMoverProperties. /// - public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IStorageMoverProperties FromJson(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IStorageMoverProperties FromJson(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonObject json ? new StorageMoverProperties(json) : null; } diff --git a/src/StorageMover/generated/api/Models/Api20230301/StorageMoverUpdateParameters.PowerShell.cs b/src/StorageMover/generated/api/Models/Api20231001/StorageMoverUpdateParameters.PowerShell.cs similarity index 84% rename from src/StorageMover/generated/api/Models/Api20230301/StorageMoverUpdateParameters.PowerShell.cs rename to src/StorageMover/generated/api/Models/Api20231001/StorageMoverUpdateParameters.PowerShell.cs index e7beb2fae641..533ee1d9f1b0 100644 --- a/src/StorageMover/generated/api/Models/Api20230301/StorageMoverUpdateParameters.PowerShell.cs +++ b/src/StorageMover/generated/api/Models/Api20231001/StorageMoverUpdateParameters.PowerShell.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301 +namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001 { using Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.PowerShell; @@ -63,29 +63,29 @@ public partial class StorageMoverUpdateParameters partial void OverrideToString(ref string stringResult, ref bool returnNow); /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Collections.IDictionary content that should be used. /// - /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IStorageMoverUpdateParameters DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IStorageMoverUpdateParameters DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new StorageMoverUpdateParameters(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. /// - /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IStorageMoverUpdateParameters DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IStorageMoverUpdateParameters DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new StorageMoverUpdateParameters(content); } @@ -95,10 +95,10 @@ public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301 /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IStorageMoverUpdateParameters FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IStorageMoverUpdateParameters FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonNode.Parse(jsonText)); /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. @@ -113,21 +113,21 @@ internal StorageMoverUpdateParameters(global::System.Collections.IDictionary con // actually deserialize if (content.Contains("Property")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IStorageMoverUpdateParametersInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IStorageMoverUpdateProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IStorageMoverUpdateParametersInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.StorageMoverUpdatePropertiesTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IStorageMoverUpdateParametersInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IStorageMoverUpdateProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IStorageMoverUpdateParametersInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.StorageMoverUpdatePropertiesTypeConverter.ConvertFrom); } if (content.Contains("Tag")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IStorageMoverUpdateParametersInternal)this).Tag = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IStorageMoverUpdateParametersTags) content.GetValueForProperty("Tag",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IStorageMoverUpdateParametersInternal)this).Tag, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.StorageMoverUpdateParametersTagsTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IStorageMoverUpdateParametersInternal)this).Tag = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IStorageMoverUpdateParametersTags) content.GetValueForProperty("Tag",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IStorageMoverUpdateParametersInternal)this).Tag, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.StorageMoverUpdateParametersTagsTypeConverter.ConvertFrom); } if (content.Contains("Description")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IStorageMoverUpdateParametersInternal)this).Description = (string) content.GetValueForProperty("Description",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IStorageMoverUpdateParametersInternal)this).Description, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IStorageMoverUpdateParametersInternal)this).Description = (string) content.GetValueForProperty("Description",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IStorageMoverUpdateParametersInternal)this).Description, global::System.Convert.ToString); } AfterDeserializeDictionary(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -142,15 +142,15 @@ internal StorageMoverUpdateParameters(global::System.Management.Automation.PSObj // actually deserialize if (content.Contains("Property")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IStorageMoverUpdateParametersInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IStorageMoverUpdateProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IStorageMoverUpdateParametersInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.StorageMoverUpdatePropertiesTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IStorageMoverUpdateParametersInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IStorageMoverUpdateProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IStorageMoverUpdateParametersInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.StorageMoverUpdatePropertiesTypeConverter.ConvertFrom); } if (content.Contains("Tag")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IStorageMoverUpdateParametersInternal)this).Tag = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IStorageMoverUpdateParametersTags) content.GetValueForProperty("Tag",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IStorageMoverUpdateParametersInternal)this).Tag, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.StorageMoverUpdateParametersTagsTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IStorageMoverUpdateParametersInternal)this).Tag = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IStorageMoverUpdateParametersTags) content.GetValueForProperty("Tag",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IStorageMoverUpdateParametersInternal)this).Tag, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.StorageMoverUpdateParametersTagsTypeConverter.ConvertFrom); } if (content.Contains("Description")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IStorageMoverUpdateParametersInternal)this).Description = (string) content.GetValueForProperty("Description",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IStorageMoverUpdateParametersInternal)this).Description, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IStorageMoverUpdateParametersInternal)this).Description = (string) content.GetValueForProperty("Description",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IStorageMoverUpdateParametersInternal)this).Description, global::System.Convert.ToString); } AfterDeserializePSObject(content); } diff --git a/src/StorageMover/generated/api/Models/Api20230301/StorageMoverUpdateParameters.TypeConverter.cs b/src/StorageMover/generated/api/Models/Api20231001/StorageMoverUpdateParameters.TypeConverter.cs similarity index 98% rename from src/StorageMover/generated/api/Models/Api20230301/StorageMoverUpdateParameters.TypeConverter.cs rename to src/StorageMover/generated/api/Models/Api20231001/StorageMoverUpdateParameters.TypeConverter.cs index 7000dd0252d2..8bd793558dcd 100644 --- a/src/StorageMover/generated/api/Models/Api20230301/StorageMoverUpdateParameters.TypeConverter.cs +++ b/src/StorageMover/generated/api/Models/Api20231001/StorageMoverUpdateParameters.TypeConverter.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301 +namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001 { using Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.PowerShell; @@ -106,14 +106,14 @@ public static bool CanConvertFrom(dynamic sourceValue) /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IStorageMoverUpdateParameters ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IStorageMoverUpdateParameters ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IStorageMoverUpdateParameters).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IStorageMoverUpdateParameters).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/StorageMover/generated/api/Models/Api20230301/StorageMoverUpdateParameters.cs b/src/StorageMover/generated/api/Models/Api20231001/StorageMoverUpdateParameters.cs similarity index 79% rename from src/StorageMover/generated/api/Models/Api20230301/StorageMoverUpdateParameters.cs rename to src/StorageMover/generated/api/Models/Api20231001/StorageMoverUpdateParameters.cs index 8b344ecfd8f5..86fac56b320d 100644 --- a/src/StorageMover/generated/api/Models/Api20230301/StorageMoverUpdateParameters.cs +++ b/src/StorageMover/generated/api/Models/Api20231001/StorageMoverUpdateParameters.cs @@ -3,37 +3,37 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301 +namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001 { using static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Extensions; /// The Storage Mover resource. [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.DoNotFormat] public partial class StorageMoverUpdateParameters : - Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IStorageMoverUpdateParameters, - Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IStorageMoverUpdateParametersInternal + Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IStorageMoverUpdateParameters, + Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IStorageMoverUpdateParametersInternal { /// A description for the Storage Mover. [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Origin(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.PropertyOrigin.Inlined)] - public string Description { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IStorageMoverUpdatePropertiesInternal)Property).Description; set => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IStorageMoverUpdatePropertiesInternal)Property).Description = value ?? null; } + public string Description { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IStorageMoverUpdatePropertiesInternal)Property).Description; set => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IStorageMoverUpdatePropertiesInternal)Property).Description = value ?? null; } /// Internal Acessors for Property - Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IStorageMoverUpdateProperties Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IStorageMoverUpdateParametersInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.StorageMoverUpdateProperties()); set { {_property = value;} } } + Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IStorageMoverUpdateProperties Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IStorageMoverUpdateParametersInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.StorageMoverUpdateProperties()); set { {_property = value;} } } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IStorageMoverUpdateProperties _property; + private Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IStorageMoverUpdateProperties _property; /// The resource specific properties for the Storage Mover resource. [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Origin(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.PropertyOrigin.Owned)] - internal Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IStorageMoverUpdateProperties Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.StorageMoverUpdateProperties()); set => this._property = value; } + internal Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IStorageMoverUpdateProperties Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.StorageMoverUpdateProperties()); set => this._property = value; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IStorageMoverUpdateParametersTags _tag; + private Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IStorageMoverUpdateParametersTags _tag; /// Resource tags. [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Origin(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.PropertyOrigin.Owned)] - public Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IStorageMoverUpdateParametersTags Tag { get => (this._tag = this._tag ?? new Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.StorageMoverUpdateParametersTags()); set => this._tag = value; } + public Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IStorageMoverUpdateParametersTags Tag { get => (this._tag = this._tag ?? new Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.StorageMoverUpdateParametersTags()); set => this._tag = value; } /// Creates an new instance. public StorageMoverUpdateParameters() @@ -59,8 +59,8 @@ public partial interface IStorageMoverUpdateParameters : ReadOnly = false, Description = @"Resource tags.", SerializedName = @"tags", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IStorageMoverUpdateParametersTags) })] - Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IStorageMoverUpdateParametersTags Tag { get; set; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IStorageMoverUpdateParametersTags) })] + Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IStorageMoverUpdateParametersTags Tag { get; set; } } /// The Storage Mover resource. @@ -70,9 +70,9 @@ internal partial interface IStorageMoverUpdateParametersInternal /// A description for the Storage Mover. string Description { get; set; } /// The resource specific properties for the Storage Mover resource. - Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IStorageMoverUpdateProperties Property { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IStorageMoverUpdateProperties Property { get; set; } /// Resource tags. - Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IStorageMoverUpdateParametersTags Tag { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IStorageMoverUpdateParametersTags Tag { get; set; } } } \ No newline at end of file diff --git a/src/StorageMover/generated/api/Models/Api20230301/StorageMoverUpdateParameters.json.cs b/src/StorageMover/generated/api/Models/Api20231001/StorageMoverUpdateParameters.json.cs similarity index 96% rename from src/StorageMover/generated/api/Models/Api20230301/StorageMoverUpdateParameters.json.cs rename to src/StorageMover/generated/api/Models/Api20231001/StorageMoverUpdateParameters.json.cs index 95c01adda568..2336eea0e6a1 100644 --- a/src/StorageMover/generated/api/Models/Api20230301/StorageMoverUpdateParameters.json.cs +++ b/src/StorageMover/generated/api/Models/Api20231001/StorageMoverUpdateParameters.json.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301 +namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001 { using static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Extensions; @@ -54,13 +54,13 @@ public partial class StorageMoverUpdateParameters partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IStorageMoverUpdateParameters. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IStorageMoverUpdateParameters. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IStorageMoverUpdateParameters. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IStorageMoverUpdateParameters. /// - public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IStorageMoverUpdateParameters FromJson(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IStorageMoverUpdateParameters FromJson(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonObject json ? new StorageMoverUpdateParameters(json) : null; } @@ -77,8 +77,8 @@ internal StorageMoverUpdateParameters(Microsoft.Azure.PowerShell.Cmdlets.Storage { return; } - {_property = If( json?.PropertyT("properties"), out var __jsonProperties) ? Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.StorageMoverUpdateProperties.FromJson(__jsonProperties) : Property;} - {_tag = If( json?.PropertyT("tags"), out var __jsonTags) ? Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.StorageMoverUpdateParametersTags.FromJson(__jsonTags) : Tag;} + {_property = If( json?.PropertyT("properties"), out var __jsonProperties) ? Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.StorageMoverUpdateProperties.FromJson(__jsonProperties) : Property;} + {_tag = If( json?.PropertyT("tags"), out var __jsonTags) ? Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.StorageMoverUpdateParametersTags.FromJson(__jsonTags) : Tag;} AfterFromJson(json); } diff --git a/src/StorageMover/generated/api/Models/Api20230301/StorageMoverUpdateParametersTags.PowerShell.cs b/src/StorageMover/generated/api/Models/Api20231001/StorageMoverUpdateParametersTags.PowerShell.cs similarity index 93% rename from src/StorageMover/generated/api/Models/Api20230301/StorageMoverUpdateParametersTags.PowerShell.cs rename to src/StorageMover/generated/api/Models/Api20231001/StorageMoverUpdateParametersTags.PowerShell.cs index f422dff58968..2c10ae658395 100644 --- a/src/StorageMover/generated/api/Models/Api20230301/StorageMoverUpdateParametersTags.PowerShell.cs +++ b/src/StorageMover/generated/api/Models/Api20231001/StorageMoverUpdateParametersTags.PowerShell.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301 +namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001 { using Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.PowerShell; @@ -63,29 +63,29 @@ public partial class StorageMoverUpdateParametersTags partial void OverrideToString(ref string stringResult, ref bool returnNow); /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Collections.IDictionary content that should be used. /// - /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IStorageMoverUpdateParametersTags DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IStorageMoverUpdateParametersTags DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new StorageMoverUpdateParametersTags(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. /// - /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IStorageMoverUpdateParametersTags DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IStorageMoverUpdateParametersTags DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new StorageMoverUpdateParametersTags(content); } @@ -95,10 +95,10 @@ public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301 /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IStorageMoverUpdateParametersTags FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IStorageMoverUpdateParametersTags FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonNode.Parse(jsonText)); /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. @@ -117,7 +117,7 @@ internal StorageMoverUpdateParametersTags(global::System.Collections.IDictionary } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. diff --git a/src/StorageMover/generated/api/Models/Api20230301/StorageMoverUpdateParametersTags.TypeConverter.cs b/src/StorageMover/generated/api/Models/Api20231001/StorageMoverUpdateParametersTags.TypeConverter.cs similarity index 98% rename from src/StorageMover/generated/api/Models/Api20230301/StorageMoverUpdateParametersTags.TypeConverter.cs rename to src/StorageMover/generated/api/Models/Api20231001/StorageMoverUpdateParametersTags.TypeConverter.cs index a6341d597d72..d21b09094b73 100644 --- a/src/StorageMover/generated/api/Models/Api20230301/StorageMoverUpdateParametersTags.TypeConverter.cs +++ b/src/StorageMover/generated/api/Models/Api20231001/StorageMoverUpdateParametersTags.TypeConverter.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301 +namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001 { using Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.PowerShell; @@ -107,14 +107,14 @@ public static bool CanConvertFrom(dynamic sourceValue) /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IStorageMoverUpdateParametersTags ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IStorageMoverUpdateParametersTags ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IStorageMoverUpdateParametersTags).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IStorageMoverUpdateParametersTags).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/StorageMover/generated/api/Models/Api20230301/StorageMoverUpdateParametersTags.cs b/src/StorageMover/generated/api/Models/Api20231001/StorageMoverUpdateParametersTags.cs similarity index 91% rename from src/StorageMover/generated/api/Models/Api20230301/StorageMoverUpdateParametersTags.cs rename to src/StorageMover/generated/api/Models/Api20231001/StorageMoverUpdateParametersTags.cs index 3ef34728f9af..29f245bc1aff 100644 --- a/src/StorageMover/generated/api/Models/Api20230301/StorageMoverUpdateParametersTags.cs +++ b/src/StorageMover/generated/api/Models/Api20231001/StorageMoverUpdateParametersTags.cs @@ -3,14 +3,14 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301 +namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001 { using static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Extensions; /// Resource tags. public partial class StorageMoverUpdateParametersTags : - Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IStorageMoverUpdateParametersTags, - Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IStorageMoverUpdateParametersTagsInternal + Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IStorageMoverUpdateParametersTags, + Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IStorageMoverUpdateParametersTagsInternal { /// Creates an new instance. diff --git a/src/StorageMover/generated/api/Models/Api20230301/StorageMoverUpdateParametersTags.dictionary.cs b/src/StorageMover/generated/api/Models/Api20231001/StorageMoverUpdateParametersTags.dictionary.cs similarity index 98% rename from src/StorageMover/generated/api/Models/Api20230301/StorageMoverUpdateParametersTags.dictionary.cs rename to src/StorageMover/generated/api/Models/Api20231001/StorageMoverUpdateParametersTags.dictionary.cs index 87133ab73eb0..36662490c403 100644 --- a/src/StorageMover/generated/api/Models/Api20230301/StorageMoverUpdateParametersTags.dictionary.cs +++ b/src/StorageMover/generated/api/Models/Api20231001/StorageMoverUpdateParametersTags.dictionary.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301 +namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001 { using static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Extensions; @@ -70,6 +70,6 @@ public void CopyFrom(global::System.Management.Automation.PSObject source) /// - public static implicit operator global::System.Collections.Generic.Dictionary(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.StorageMoverUpdateParametersTags source) => source.__additionalProperties; + public static implicit operator global::System.Collections.Generic.Dictionary(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.StorageMoverUpdateParametersTags source) => source.__additionalProperties; } } \ No newline at end of file diff --git a/src/StorageMover/generated/api/Models/Api20230301/StorageMoverUpdateParametersTags.json.cs b/src/StorageMover/generated/api/Models/Api20231001/StorageMoverUpdateParametersTags.json.cs similarity index 97% rename from src/StorageMover/generated/api/Models/Api20230301/StorageMoverUpdateParametersTags.json.cs rename to src/StorageMover/generated/api/Models/Api20231001/StorageMoverUpdateParametersTags.json.cs index ff24ff673337..739e405dfbec 100644 --- a/src/StorageMover/generated/api/Models/Api20230301/StorageMoverUpdateParametersTags.json.cs +++ b/src/StorageMover/generated/api/Models/Api20231001/StorageMoverUpdateParametersTags.json.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301 +namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001 { using static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Extensions; @@ -54,13 +54,13 @@ public partial class StorageMoverUpdateParametersTags partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IStorageMoverUpdateParametersTags. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IStorageMoverUpdateParametersTags. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IStorageMoverUpdateParametersTags. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IStorageMoverUpdateParametersTags. /// - public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IStorageMoverUpdateParametersTags FromJson(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IStorageMoverUpdateParametersTags FromJson(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonObject json ? new StorageMoverUpdateParametersTags(json) : null; } diff --git a/src/StorageMover/generated/api/Models/Api20230301/StorageMoverUpdateProperties.PowerShell.cs b/src/StorageMover/generated/api/Models/Api20231001/StorageMoverUpdateProperties.PowerShell.cs similarity index 91% rename from src/StorageMover/generated/api/Models/Api20230301/StorageMoverUpdateProperties.PowerShell.cs rename to src/StorageMover/generated/api/Models/Api20231001/StorageMoverUpdateProperties.PowerShell.cs index 02dd12a5fd68..0170d91661e7 100644 --- a/src/StorageMover/generated/api/Models/Api20230301/StorageMoverUpdateProperties.PowerShell.cs +++ b/src/StorageMover/generated/api/Models/Api20231001/StorageMoverUpdateProperties.PowerShell.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301 +namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001 { using Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.PowerShell; @@ -63,29 +63,29 @@ public partial class StorageMoverUpdateProperties partial void OverrideToString(ref string stringResult, ref bool returnNow); /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Collections.IDictionary content that should be used. /// - /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IStorageMoverUpdateProperties DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IStorageMoverUpdateProperties DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new StorageMoverUpdateProperties(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. /// - /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IStorageMoverUpdateProperties DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IStorageMoverUpdateProperties DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new StorageMoverUpdateProperties(content); } @@ -95,10 +95,10 @@ public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301 /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IStorageMoverUpdateProperties FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IStorageMoverUpdateProperties FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonNode.Parse(jsonText)); /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. @@ -113,13 +113,13 @@ internal StorageMoverUpdateProperties(global::System.Collections.IDictionary con // actually deserialize if (content.Contains("Description")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IStorageMoverUpdatePropertiesInternal)this).Description = (string) content.GetValueForProperty("Description",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IStorageMoverUpdatePropertiesInternal)this).Description, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IStorageMoverUpdatePropertiesInternal)this).Description = (string) content.GetValueForProperty("Description",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IStorageMoverUpdatePropertiesInternal)this).Description, global::System.Convert.ToString); } AfterDeserializeDictionary(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -134,7 +134,7 @@ internal StorageMoverUpdateProperties(global::System.Management.Automation.PSObj // actually deserialize if (content.Contains("Description")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IStorageMoverUpdatePropertiesInternal)this).Description = (string) content.GetValueForProperty("Description",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IStorageMoverUpdatePropertiesInternal)this).Description, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IStorageMoverUpdatePropertiesInternal)this).Description = (string) content.GetValueForProperty("Description",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IStorageMoverUpdatePropertiesInternal)this).Description, global::System.Convert.ToString); } AfterDeserializePSObject(content); } diff --git a/src/StorageMover/generated/api/Models/Api20230301/StorageMoverUpdateProperties.TypeConverter.cs b/src/StorageMover/generated/api/Models/Api20231001/StorageMoverUpdateProperties.TypeConverter.cs similarity index 98% rename from src/StorageMover/generated/api/Models/Api20230301/StorageMoverUpdateProperties.TypeConverter.cs rename to src/StorageMover/generated/api/Models/Api20231001/StorageMoverUpdateProperties.TypeConverter.cs index bbe3d5d84f12..da9eea42a239 100644 --- a/src/StorageMover/generated/api/Models/Api20230301/StorageMoverUpdateProperties.TypeConverter.cs +++ b/src/StorageMover/generated/api/Models/Api20231001/StorageMoverUpdateProperties.TypeConverter.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301 +namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001 { using Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.PowerShell; @@ -106,14 +106,14 @@ public static bool CanConvertFrom(dynamic sourceValue) /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IStorageMoverUpdateProperties ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IStorageMoverUpdateProperties ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IStorageMoverUpdateProperties).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IStorageMoverUpdateProperties).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/StorageMover/generated/api/Models/Api20230301/StorageMoverUpdateProperties.cs b/src/StorageMover/generated/api/Models/Api20231001/StorageMoverUpdateProperties.cs similarity index 95% rename from src/StorageMover/generated/api/Models/Api20230301/StorageMoverUpdateProperties.cs rename to src/StorageMover/generated/api/Models/Api20231001/StorageMoverUpdateProperties.cs index 85251e4f1da3..fa908f2c15f1 100644 --- a/src/StorageMover/generated/api/Models/Api20230301/StorageMoverUpdateProperties.cs +++ b/src/StorageMover/generated/api/Models/Api20231001/StorageMoverUpdateProperties.cs @@ -3,15 +3,15 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301 +namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001 { using static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Extensions; /// The resource specific properties for the Storage Mover resource. [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.DoNotFormat] public partial class StorageMoverUpdateProperties : - Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IStorageMoverUpdateProperties, - Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IStorageMoverUpdatePropertiesInternal + Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IStorageMoverUpdateProperties, + Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IStorageMoverUpdatePropertiesInternal { /// Backing field for property. diff --git a/src/StorageMover/generated/api/Models/Api20230301/StorageMoverUpdateProperties.json.cs b/src/StorageMover/generated/api/Models/Api20231001/StorageMoverUpdateProperties.json.cs similarity index 97% rename from src/StorageMover/generated/api/Models/Api20230301/StorageMoverUpdateProperties.json.cs rename to src/StorageMover/generated/api/Models/Api20231001/StorageMoverUpdateProperties.json.cs index 98bc64f3ef4a..9fc0d77c1e34 100644 --- a/src/StorageMover/generated/api/Models/Api20230301/StorageMoverUpdateProperties.json.cs +++ b/src/StorageMover/generated/api/Models/Api20231001/StorageMoverUpdateProperties.json.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301 +namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001 { using static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Extensions; @@ -54,13 +54,13 @@ public partial class StorageMoverUpdateProperties partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IStorageMoverUpdateProperties. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IStorageMoverUpdateProperties. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IStorageMoverUpdateProperties. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IStorageMoverUpdateProperties. /// - public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IStorageMoverUpdateProperties FromJson(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IStorageMoverUpdateProperties FromJson(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonObject json ? new StorageMoverUpdateProperties(json) : null; } diff --git a/src/StorageMover/generated/api/Models/Api20/ErrorAdditionalInfo.PowerShell.cs b/src/StorageMover/generated/api/Models/Api30/ErrorAdditionalInfo.PowerShell.cs similarity index 89% rename from src/StorageMover/generated/api/Models/Api20/ErrorAdditionalInfo.PowerShell.cs rename to src/StorageMover/generated/api/Models/Api30/ErrorAdditionalInfo.PowerShell.cs index 1e2a8e55f062..e64daf6aa509 100644 --- a/src/StorageMover/generated/api/Models/Api20/ErrorAdditionalInfo.PowerShell.cs +++ b/src/StorageMover/generated/api/Models/Api30/ErrorAdditionalInfo.PowerShell.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20 +namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30 { using Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.PowerShell; @@ -63,33 +63,33 @@ public partial class ErrorAdditionalInfo partial void OverrideToString(ref string stringResult, ref bool returnNow); /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Collections.IDictionary content that should be used. /// - /// an instance of . + /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.IErrorAdditionalInfo DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IErrorAdditionalInfo DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new ErrorAdditionalInfo(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. /// - /// an instance of . + /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.IErrorAdditionalInfo DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IErrorAdditionalInfo DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new ErrorAdditionalInfo(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. @@ -104,17 +104,17 @@ internal ErrorAdditionalInfo(global::System.Collections.IDictionary content) // actually deserialize if (content.Contains("Type")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.IErrorAdditionalInfoInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.IErrorAdditionalInfoInternal)this).Type, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IErrorAdditionalInfoInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IErrorAdditionalInfoInternal)this).Type, global::System.Convert.ToString); } if (content.Contains("Info")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.IErrorAdditionalInfoInternal)this).Info = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.IAny) content.GetValueForProperty("Info",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.IErrorAdditionalInfoInternal)this).Info, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.AnyTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IErrorAdditionalInfoInternal)this).Info = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.IAny) content.GetValueForProperty("Info",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IErrorAdditionalInfoInternal)this).Info, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.AnyTypeConverter.ConvertFrom); } AfterDeserializeDictionary(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -129,11 +129,11 @@ internal ErrorAdditionalInfo(global::System.Management.Automation.PSObject conte // actually deserialize if (content.Contains("Type")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.IErrorAdditionalInfoInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.IErrorAdditionalInfoInternal)this).Type, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IErrorAdditionalInfoInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IErrorAdditionalInfoInternal)this).Type, global::System.Convert.ToString); } if (content.Contains("Info")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.IErrorAdditionalInfoInternal)this).Info = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.IAny) content.GetValueForProperty("Info",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.IErrorAdditionalInfoInternal)this).Info, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.AnyTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IErrorAdditionalInfoInternal)this).Info = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.IAny) content.GetValueForProperty("Info",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IErrorAdditionalInfoInternal)this).Info, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.AnyTypeConverter.ConvertFrom); } AfterDeserializePSObject(content); } @@ -143,7 +143,7 @@ internal ErrorAdditionalInfo(global::System.Management.Automation.PSObject conte /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.IErrorAdditionalInfo FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IErrorAdditionalInfo FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonNode.Parse(jsonText)); /// Serializes this instance to a json string. diff --git a/src/StorageMover/generated/api/Models/Api20/ErrorAdditionalInfo.TypeConverter.cs b/src/StorageMover/generated/api/Models/Api30/ErrorAdditionalInfo.TypeConverter.cs similarity index 98% rename from src/StorageMover/generated/api/Models/Api20/ErrorAdditionalInfo.TypeConverter.cs rename to src/StorageMover/generated/api/Models/Api30/ErrorAdditionalInfo.TypeConverter.cs index 397f26d9e559..daf78252f2eb 100644 --- a/src/StorageMover/generated/api/Models/Api20/ErrorAdditionalInfo.TypeConverter.cs +++ b/src/StorageMover/generated/api/Models/Api30/ErrorAdditionalInfo.TypeConverter.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20 +namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30 { using Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.PowerShell; @@ -106,14 +106,14 @@ public static bool CanConvertFrom(dynamic sourceValue) /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.IErrorAdditionalInfo ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IErrorAdditionalInfo ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.IErrorAdditionalInfo).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IErrorAdditionalInfo).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/StorageMover/generated/api/Models/Api20/ErrorAdditionalInfo.cs b/src/StorageMover/generated/api/Models/Api30/ErrorAdditionalInfo.cs similarity index 94% rename from src/StorageMover/generated/api/Models/Api20/ErrorAdditionalInfo.cs rename to src/StorageMover/generated/api/Models/Api30/ErrorAdditionalInfo.cs index ab46d6197b8f..fbd35bd00e86 100644 --- a/src/StorageMover/generated/api/Models/Api20/ErrorAdditionalInfo.cs +++ b/src/StorageMover/generated/api/Models/Api30/ErrorAdditionalInfo.cs @@ -3,14 +3,14 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20 +namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30 { using static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Extensions; /// The resource management error additional info. public partial class ErrorAdditionalInfo : - Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.IErrorAdditionalInfo, - Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.IErrorAdditionalInfoInternal + Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IErrorAdditionalInfo, + Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IErrorAdditionalInfoInternal { /// Backing field for property. @@ -21,10 +21,10 @@ public partial class ErrorAdditionalInfo : public Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.IAny Info { get => (this._info = this._info ?? new Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Any()); } /// Internal Acessors for Info - Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.IAny Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.IErrorAdditionalInfoInternal.Info { get => (this._info = this._info ?? new Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Any()); set { {_info = value;} } } + Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.IAny Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IErrorAdditionalInfoInternal.Info { get => (this._info = this._info ?? new Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Any()); set { {_info = value;} } } /// Internal Acessors for Type - string Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.IErrorAdditionalInfoInternal.Type { get => this._type; set { {_type = value;} } } + string Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IErrorAdditionalInfoInternal.Type { get => this._type; set { {_type = value;} } } /// Backing field for property. private string _type; diff --git a/src/StorageMover/generated/api/Models/Api20/ErrorAdditionalInfo.json.cs b/src/StorageMover/generated/api/Models/Api30/ErrorAdditionalInfo.json.cs similarity index 97% rename from src/StorageMover/generated/api/Models/Api20/ErrorAdditionalInfo.json.cs rename to src/StorageMover/generated/api/Models/Api30/ErrorAdditionalInfo.json.cs index 7b65b554eebc..460f71cdc85e 100644 --- a/src/StorageMover/generated/api/Models/Api20/ErrorAdditionalInfo.json.cs +++ b/src/StorageMover/generated/api/Models/Api30/ErrorAdditionalInfo.json.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20 +namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30 { using static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Extensions; @@ -71,13 +71,13 @@ internal ErrorAdditionalInfo(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Run } /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.IErrorAdditionalInfo. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IErrorAdditionalInfo. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.IErrorAdditionalInfo. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IErrorAdditionalInfo. /// - public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.IErrorAdditionalInfo FromJson(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IErrorAdditionalInfo FromJson(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonObject json ? new ErrorAdditionalInfo(json) : null; } diff --git a/src/StorageMover/generated/api/Models/Api20/ErrorDetail.PowerShell.cs b/src/StorageMover/generated/api/Models/Api30/ErrorDetail.PowerShell.cs similarity index 80% rename from src/StorageMover/generated/api/Models/Api20/ErrorDetail.PowerShell.cs rename to src/StorageMover/generated/api/Models/Api30/ErrorDetail.PowerShell.cs index 48c28c057abe..aac5536c47d5 100644 --- a/src/StorageMover/generated/api/Models/Api20/ErrorDetail.PowerShell.cs +++ b/src/StorageMover/generated/api/Models/Api30/ErrorDetail.PowerShell.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20 +namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30 { using Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.PowerShell; @@ -63,33 +63,33 @@ public partial class ErrorDetail partial void OverrideToString(ref string stringResult, ref bool returnNow); /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Collections.IDictionary content that should be used. /// - /// an instance of . + /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.IErrorDetail DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IErrorDetail DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new ErrorDetail(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. /// - /// an instance of . + /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.IErrorDetail DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IErrorDetail DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new ErrorDetail(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. @@ -104,29 +104,29 @@ internal ErrorDetail(global::System.Collections.IDictionary content) // actually deserialize if (content.Contains("Code")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.IErrorDetailInternal)this).Code = (string) content.GetValueForProperty("Code",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.IErrorDetailInternal)this).Code, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IErrorDetailInternal)this).Code = (string) content.GetValueForProperty("Code",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IErrorDetailInternal)this).Code, global::System.Convert.ToString); } if (content.Contains("Message")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.IErrorDetailInternal)this).Message = (string) content.GetValueForProperty("Message",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.IErrorDetailInternal)this).Message, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IErrorDetailInternal)this).Message = (string) content.GetValueForProperty("Message",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IErrorDetailInternal)this).Message, global::System.Convert.ToString); } if (content.Contains("Target")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.IErrorDetailInternal)this).Target = (string) content.GetValueForProperty("Target",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.IErrorDetailInternal)this).Target, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IErrorDetailInternal)this).Target = (string) content.GetValueForProperty("Target",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IErrorDetailInternal)this).Target, global::System.Convert.ToString); } if (content.Contains("Detail")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.IErrorDetailInternal)this).Detail = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.IErrorDetail[]) content.GetValueForProperty("Detail",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.IErrorDetailInternal)this).Detail, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.ErrorDetailTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IErrorDetailInternal)this).Detail = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IErrorDetail[]) content.GetValueForProperty("Detail",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IErrorDetailInternal)this).Detail, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.ErrorDetailTypeConverter.ConvertFrom)); } if (content.Contains("AdditionalInfo")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.IErrorDetailInternal)this).AdditionalInfo = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.IErrorAdditionalInfo[]) content.GetValueForProperty("AdditionalInfo",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.IErrorDetailInternal)this).AdditionalInfo, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.ErrorAdditionalInfoTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IErrorDetailInternal)this).AdditionalInfo = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IErrorAdditionalInfo[]) content.GetValueForProperty("AdditionalInfo",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IErrorDetailInternal)this).AdditionalInfo, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.ErrorAdditionalInfoTypeConverter.ConvertFrom)); } AfterDeserializeDictionary(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -141,23 +141,23 @@ internal ErrorDetail(global::System.Management.Automation.PSObject content) // actually deserialize if (content.Contains("Code")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.IErrorDetailInternal)this).Code = (string) content.GetValueForProperty("Code",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.IErrorDetailInternal)this).Code, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IErrorDetailInternal)this).Code = (string) content.GetValueForProperty("Code",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IErrorDetailInternal)this).Code, global::System.Convert.ToString); } if (content.Contains("Message")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.IErrorDetailInternal)this).Message = (string) content.GetValueForProperty("Message",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.IErrorDetailInternal)this).Message, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IErrorDetailInternal)this).Message = (string) content.GetValueForProperty("Message",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IErrorDetailInternal)this).Message, global::System.Convert.ToString); } if (content.Contains("Target")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.IErrorDetailInternal)this).Target = (string) content.GetValueForProperty("Target",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.IErrorDetailInternal)this).Target, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IErrorDetailInternal)this).Target = (string) content.GetValueForProperty("Target",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IErrorDetailInternal)this).Target, global::System.Convert.ToString); } if (content.Contains("Detail")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.IErrorDetailInternal)this).Detail = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.IErrorDetail[]) content.GetValueForProperty("Detail",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.IErrorDetailInternal)this).Detail, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.ErrorDetailTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IErrorDetailInternal)this).Detail = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IErrorDetail[]) content.GetValueForProperty("Detail",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IErrorDetailInternal)this).Detail, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.ErrorDetailTypeConverter.ConvertFrom)); } if (content.Contains("AdditionalInfo")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.IErrorDetailInternal)this).AdditionalInfo = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.IErrorAdditionalInfo[]) content.GetValueForProperty("AdditionalInfo",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.IErrorDetailInternal)this).AdditionalInfo, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.ErrorAdditionalInfoTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IErrorDetailInternal)this).AdditionalInfo = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IErrorAdditionalInfo[]) content.GetValueForProperty("AdditionalInfo",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IErrorDetailInternal)this).AdditionalInfo, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.ErrorAdditionalInfoTypeConverter.ConvertFrom)); } AfterDeserializePSObject(content); } @@ -167,7 +167,7 @@ internal ErrorDetail(global::System.Management.Automation.PSObject content) /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.IErrorDetail FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IErrorDetail FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonNode.Parse(jsonText)); /// Serializes this instance to a json string. diff --git a/src/StorageMover/generated/api/Models/Api20/ErrorDetail.TypeConverter.cs b/src/StorageMover/generated/api/Models/Api30/ErrorDetail.TypeConverter.cs similarity index 98% rename from src/StorageMover/generated/api/Models/Api20/ErrorDetail.TypeConverter.cs rename to src/StorageMover/generated/api/Models/Api30/ErrorDetail.TypeConverter.cs index d5d1103e87c8..4806c0ea02e8 100644 --- a/src/StorageMover/generated/api/Models/Api20/ErrorDetail.TypeConverter.cs +++ b/src/StorageMover/generated/api/Models/Api30/ErrorDetail.TypeConverter.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20 +namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30 { using Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.PowerShell; @@ -106,14 +106,14 @@ public static bool CanConvertFrom(dynamic sourceValue) /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.IErrorDetail ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IErrorDetail ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.IErrorDetail).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IErrorDetail).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/StorageMover/generated/api/Models/Api20/ErrorDetail.cs b/src/StorageMover/generated/api/Models/Api30/ErrorDetail.cs similarity index 85% rename from src/StorageMover/generated/api/Models/Api20/ErrorDetail.cs rename to src/StorageMover/generated/api/Models/Api30/ErrorDetail.cs index 2d10679a244f..913489f3d917 100644 --- a/src/StorageMover/generated/api/Models/Api20/ErrorDetail.cs +++ b/src/StorageMover/generated/api/Models/Api30/ErrorDetail.cs @@ -3,22 +3,22 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20 +namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30 { using static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Extensions; /// The error detail. public partial class ErrorDetail : - Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.IErrorDetail, - Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.IErrorDetailInternal + Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IErrorDetail, + Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IErrorDetailInternal { /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.IErrorAdditionalInfo[] _additionalInfo; + private Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IErrorAdditionalInfo[] _additionalInfo; /// The error additional info. [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Origin(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.PropertyOrigin.Owned)] - public Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.IErrorAdditionalInfo[] AdditionalInfo { get => this._additionalInfo; } + public Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IErrorAdditionalInfo[] AdditionalInfo { get => this._additionalInfo; } /// Backing field for property. private string _code; @@ -28,11 +28,11 @@ public partial class ErrorDetail : public string Code { get => this._code; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.IErrorDetail[] _detail; + private Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IErrorDetail[] _detail; /// The error details. [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Origin(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.PropertyOrigin.Owned)] - public Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.IErrorDetail[] Detail { get => this._detail; } + public Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IErrorDetail[] Detail { get => this._detail; } /// Backing field for property. private string _message; @@ -42,19 +42,19 @@ public partial class ErrorDetail : public string Message { get => this._message; } /// Internal Acessors for AdditionalInfo - Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.IErrorAdditionalInfo[] Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.IErrorDetailInternal.AdditionalInfo { get => this._additionalInfo; set { {_additionalInfo = value;} } } + Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IErrorAdditionalInfo[] Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IErrorDetailInternal.AdditionalInfo { get => this._additionalInfo; set { {_additionalInfo = value;} } } /// Internal Acessors for Code - string Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.IErrorDetailInternal.Code { get => this._code; set { {_code = value;} } } + string Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IErrorDetailInternal.Code { get => this._code; set { {_code = value;} } } /// Internal Acessors for Detail - Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.IErrorDetail[] Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.IErrorDetailInternal.Detail { get => this._detail; set { {_detail = value;} } } + Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IErrorDetail[] Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IErrorDetailInternal.Detail { get => this._detail; set { {_detail = value;} } } /// Internal Acessors for Message - string Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.IErrorDetailInternal.Message { get => this._message; set { {_message = value;} } } + string Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IErrorDetailInternal.Message { get => this._message; set { {_message = value;} } } /// Internal Acessors for Target - string Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.IErrorDetailInternal.Target { get => this._target; set { {_target = value;} } } + string Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IErrorDetailInternal.Target { get => this._target; set { {_target = value;} } } /// Backing field for property. private string _target; @@ -79,8 +79,8 @@ public partial interface IErrorDetail : ReadOnly = true, Description = @"The error additional info.", SerializedName = @"additionalInfo", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.IErrorAdditionalInfo) })] - Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.IErrorAdditionalInfo[] AdditionalInfo { get; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IErrorAdditionalInfo) })] + Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IErrorAdditionalInfo[] AdditionalInfo { get; } /// The error code. [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Info( Required = false, @@ -95,8 +95,8 @@ public partial interface IErrorDetail : ReadOnly = true, Description = @"The error details.", SerializedName = @"details", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.IErrorDetail) })] - Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.IErrorDetail[] Detail { get; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IErrorDetail) })] + Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IErrorDetail[] Detail { get; } /// The error message. [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Info( Required = false, @@ -120,11 +120,11 @@ internal partial interface IErrorDetailInternal { /// The error additional info. - Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.IErrorAdditionalInfo[] AdditionalInfo { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IErrorAdditionalInfo[] AdditionalInfo { get; set; } /// The error code. string Code { get; set; } /// The error details. - Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.IErrorDetail[] Detail { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IErrorDetail[] Detail { get; set; } /// The error message. string Message { get; set; } /// The error target. diff --git a/src/StorageMover/generated/api/Models/Api20/ErrorDetail.json.cs b/src/StorageMover/generated/api/Models/Api30/ErrorDetail.json.cs similarity index 94% rename from src/StorageMover/generated/api/Models/Api20/ErrorDetail.json.cs rename to src/StorageMover/generated/api/Models/Api30/ErrorDetail.json.cs index b3297558b34f..b134f4c5d514 100644 --- a/src/StorageMover/generated/api/Models/Api20/ErrorDetail.json.cs +++ b/src/StorageMover/generated/api/Models/Api30/ErrorDetail.json.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20 +namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30 { using static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Extensions; @@ -68,19 +68,19 @@ internal ErrorDetail(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Jso {_code = If( json?.PropertyT("code"), out var __jsonCode) ? (string)__jsonCode : (string)Code;} {_message = If( json?.PropertyT("message"), out var __jsonMessage) ? (string)__jsonMessage : (string)Message;} {_target = If( json?.PropertyT("target"), out var __jsonTarget) ? (string)__jsonTarget : (string)Target;} - {_detail = If( json?.PropertyT("details"), out var __jsonDetails) ? If( __jsonDetails as Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonArray, out var __v) ? new global::System.Func(()=> global::System.Linq.Enumerable.ToArray(global::System.Linq.Enumerable.Select(__v, (__u)=>(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.IErrorDetail) (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.ErrorDetail.FromJson(__u) )) ))() : null : Detail;} - {_additionalInfo = If( json?.PropertyT("additionalInfo"), out var __jsonAdditionalInfo) ? If( __jsonAdditionalInfo as Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonArray, out var __q) ? new global::System.Func(()=> global::System.Linq.Enumerable.ToArray(global::System.Linq.Enumerable.Select(__q, (__p)=>(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.IErrorAdditionalInfo) (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.ErrorAdditionalInfo.FromJson(__p) )) ))() : null : AdditionalInfo;} + {_detail = If( json?.PropertyT("details"), out var __jsonDetails) ? If( __jsonDetails as Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonArray, out var __v) ? new global::System.Func(()=> global::System.Linq.Enumerable.ToArray(global::System.Linq.Enumerable.Select(__v, (__u)=>(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IErrorDetail) (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.ErrorDetail.FromJson(__u) )) ))() : null : Detail;} + {_additionalInfo = If( json?.PropertyT("additionalInfo"), out var __jsonAdditionalInfo) ? If( __jsonAdditionalInfo as Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonArray, out var __q) ? new global::System.Func(()=> global::System.Linq.Enumerable.ToArray(global::System.Linq.Enumerable.Select(__q, (__p)=>(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IErrorAdditionalInfo) (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.ErrorAdditionalInfo.FromJson(__p) )) ))() : null : AdditionalInfo;} AfterFromJson(json); } /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.IErrorDetail. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IErrorDetail. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.IErrorDetail. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IErrorDetail. /// - public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.IErrorDetail FromJson(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IErrorDetail FromJson(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonObject json ? new ErrorDetail(json) : null; } diff --git a/src/StorageMover/generated/api/Models/Api20/ErrorResponse.PowerShell.cs b/src/StorageMover/generated/api/Models/Api30/ErrorResponse.PowerShell.cs similarity index 78% rename from src/StorageMover/generated/api/Models/Api20/ErrorResponse.PowerShell.cs rename to src/StorageMover/generated/api/Models/Api30/ErrorResponse.PowerShell.cs index 8839376c104d..1c47fa0e6e56 100644 --- a/src/StorageMover/generated/api/Models/Api20/ErrorResponse.PowerShell.cs +++ b/src/StorageMover/generated/api/Models/Api30/ErrorResponse.PowerShell.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20 +namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30 { using Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.PowerShell; @@ -66,33 +66,33 @@ public partial class ErrorResponse partial void OverrideToString(ref string stringResult, ref bool returnNow); /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Collections.IDictionary content that should be used. /// - /// an instance of . + /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.IErrorResponse DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IErrorResponse DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new ErrorResponse(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. /// - /// an instance of . + /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.IErrorResponse DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IErrorResponse DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new ErrorResponse(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. @@ -107,33 +107,33 @@ internal ErrorResponse(global::System.Collections.IDictionary content) // actually deserialize if (content.Contains("Error")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.IErrorResponseInternal)this).Error = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.IErrorDetail) content.GetValueForProperty("Error",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.IErrorResponseInternal)this).Error, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.ErrorDetailTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IErrorResponseInternal)this).Error = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IErrorDetail) content.GetValueForProperty("Error",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IErrorResponseInternal)this).Error, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.ErrorDetailTypeConverter.ConvertFrom); } if (content.Contains("Code")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.IErrorResponseInternal)this).Code = (string) content.GetValueForProperty("Code",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.IErrorResponseInternal)this).Code, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IErrorResponseInternal)this).Code = (string) content.GetValueForProperty("Code",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IErrorResponseInternal)this).Code, global::System.Convert.ToString); } if (content.Contains("Message")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.IErrorResponseInternal)this).Message = (string) content.GetValueForProperty("Message",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.IErrorResponseInternal)this).Message, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IErrorResponseInternal)this).Message = (string) content.GetValueForProperty("Message",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IErrorResponseInternal)this).Message, global::System.Convert.ToString); } if (content.Contains("Target")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.IErrorResponseInternal)this).Target = (string) content.GetValueForProperty("Target",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.IErrorResponseInternal)this).Target, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IErrorResponseInternal)this).Target = (string) content.GetValueForProperty("Target",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IErrorResponseInternal)this).Target, global::System.Convert.ToString); } if (content.Contains("Detail")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.IErrorResponseInternal)this).Detail = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.IErrorDetail[]) content.GetValueForProperty("Detail",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.IErrorResponseInternal)this).Detail, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.ErrorDetailTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IErrorResponseInternal)this).Detail = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IErrorDetail[]) content.GetValueForProperty("Detail",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IErrorResponseInternal)this).Detail, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.ErrorDetailTypeConverter.ConvertFrom)); } if (content.Contains("AdditionalInfo")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.IErrorResponseInternal)this).AdditionalInfo = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.IErrorAdditionalInfo[]) content.GetValueForProperty("AdditionalInfo",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.IErrorResponseInternal)this).AdditionalInfo, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.ErrorAdditionalInfoTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IErrorResponseInternal)this).AdditionalInfo = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IErrorAdditionalInfo[]) content.GetValueForProperty("AdditionalInfo",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IErrorResponseInternal)this).AdditionalInfo, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.ErrorAdditionalInfoTypeConverter.ConvertFrom)); } AfterDeserializeDictionary(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -148,27 +148,27 @@ internal ErrorResponse(global::System.Management.Automation.PSObject content) // actually deserialize if (content.Contains("Error")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.IErrorResponseInternal)this).Error = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.IErrorDetail) content.GetValueForProperty("Error",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.IErrorResponseInternal)this).Error, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.ErrorDetailTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IErrorResponseInternal)this).Error = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IErrorDetail) content.GetValueForProperty("Error",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IErrorResponseInternal)this).Error, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.ErrorDetailTypeConverter.ConvertFrom); } if (content.Contains("Code")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.IErrorResponseInternal)this).Code = (string) content.GetValueForProperty("Code",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.IErrorResponseInternal)this).Code, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IErrorResponseInternal)this).Code = (string) content.GetValueForProperty("Code",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IErrorResponseInternal)this).Code, global::System.Convert.ToString); } if (content.Contains("Message")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.IErrorResponseInternal)this).Message = (string) content.GetValueForProperty("Message",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.IErrorResponseInternal)this).Message, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IErrorResponseInternal)this).Message = (string) content.GetValueForProperty("Message",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IErrorResponseInternal)this).Message, global::System.Convert.ToString); } if (content.Contains("Target")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.IErrorResponseInternal)this).Target = (string) content.GetValueForProperty("Target",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.IErrorResponseInternal)this).Target, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IErrorResponseInternal)this).Target = (string) content.GetValueForProperty("Target",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IErrorResponseInternal)this).Target, global::System.Convert.ToString); } if (content.Contains("Detail")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.IErrorResponseInternal)this).Detail = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.IErrorDetail[]) content.GetValueForProperty("Detail",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.IErrorResponseInternal)this).Detail, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.ErrorDetailTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IErrorResponseInternal)this).Detail = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IErrorDetail[]) content.GetValueForProperty("Detail",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IErrorResponseInternal)this).Detail, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.ErrorDetailTypeConverter.ConvertFrom)); } if (content.Contains("AdditionalInfo")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.IErrorResponseInternal)this).AdditionalInfo = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.IErrorAdditionalInfo[]) content.GetValueForProperty("AdditionalInfo",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.IErrorResponseInternal)this).AdditionalInfo, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.ErrorAdditionalInfoTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IErrorResponseInternal)this).AdditionalInfo = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IErrorAdditionalInfo[]) content.GetValueForProperty("AdditionalInfo",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IErrorResponseInternal)this).AdditionalInfo, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.ErrorAdditionalInfoTypeConverter.ConvertFrom)); } AfterDeserializePSObject(content); } @@ -178,7 +178,7 @@ internal ErrorResponse(global::System.Management.Automation.PSObject content) /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.IErrorResponse FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IErrorResponse FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonNode.Parse(jsonText)); /// Serializes this instance to a json string. diff --git a/src/StorageMover/generated/api/Models/Api20/ErrorResponse.TypeConverter.cs b/src/StorageMover/generated/api/Models/Api30/ErrorResponse.TypeConverter.cs similarity index 98% rename from src/StorageMover/generated/api/Models/Api20/ErrorResponse.TypeConverter.cs rename to src/StorageMover/generated/api/Models/Api30/ErrorResponse.TypeConverter.cs index 63c57c6e2cf8..cfbf1d8018e1 100644 --- a/src/StorageMover/generated/api/Models/Api20/ErrorResponse.TypeConverter.cs +++ b/src/StorageMover/generated/api/Models/Api30/ErrorResponse.TypeConverter.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20 +namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30 { using Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.PowerShell; @@ -106,14 +106,14 @@ public static bool CanConvertFrom(dynamic sourceValue) /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.IErrorResponse ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IErrorResponse ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.IErrorResponse).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IErrorResponse).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/StorageMover/generated/api/Models/Api20/ErrorResponse.cs b/src/StorageMover/generated/api/Models/Api30/ErrorResponse.cs similarity index 75% rename from src/StorageMover/generated/api/Models/Api20/ErrorResponse.cs rename to src/StorageMover/generated/api/Models/Api30/ErrorResponse.cs index 6cef743ad44f..7e8e08a7226d 100644 --- a/src/StorageMover/generated/api/Models/Api20/ErrorResponse.cs +++ b/src/StorageMover/generated/api/Models/Api30/ErrorResponse.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20 +namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30 { using static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Extensions; @@ -12,54 +12,54 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20 /// the OData error response format.). /// public partial class ErrorResponse : - Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.IErrorResponse, - Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.IErrorResponseInternal + Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IErrorResponse, + Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IErrorResponseInternal { /// The error additional info. [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Origin(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.PropertyOrigin.Inlined)] - public Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.IErrorAdditionalInfo[] AdditionalInfo { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.IErrorDetailInternal)Error).AdditionalInfo; } + public Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IErrorAdditionalInfo[] AdditionalInfo { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IErrorDetailInternal)Error).AdditionalInfo; } /// The error code. [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Origin(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.PropertyOrigin.Inlined)] - public string Code { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.IErrorDetailInternal)Error).Code; } + public string Code { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IErrorDetailInternal)Error).Code; } /// The error details. [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Origin(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.PropertyOrigin.Inlined)] - public Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.IErrorDetail[] Detail { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.IErrorDetailInternal)Error).Detail; } + public Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IErrorDetail[] Detail { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IErrorDetailInternal)Error).Detail; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.IErrorDetail _error; + private Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IErrorDetail _error; /// The error object. [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Origin(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.PropertyOrigin.Owned)] - internal Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.IErrorDetail Error { get => (this._error = this._error ?? new Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.ErrorDetail()); set => this._error = value; } + internal Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IErrorDetail Error { get => (this._error = this._error ?? new Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.ErrorDetail()); set => this._error = value; } /// The error message. [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Origin(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.PropertyOrigin.Inlined)] - public string Message { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.IErrorDetailInternal)Error).Message; } + public string Message { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IErrorDetailInternal)Error).Message; } /// Internal Acessors for AdditionalInfo - Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.IErrorAdditionalInfo[] Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.IErrorResponseInternal.AdditionalInfo { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.IErrorDetailInternal)Error).AdditionalInfo; set => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.IErrorDetailInternal)Error).AdditionalInfo = value; } + Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IErrorAdditionalInfo[] Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IErrorResponseInternal.AdditionalInfo { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IErrorDetailInternal)Error).AdditionalInfo; set => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IErrorDetailInternal)Error).AdditionalInfo = value; } /// Internal Acessors for Code - string Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.IErrorResponseInternal.Code { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.IErrorDetailInternal)Error).Code; set => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.IErrorDetailInternal)Error).Code = value; } + string Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IErrorResponseInternal.Code { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IErrorDetailInternal)Error).Code; set => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IErrorDetailInternal)Error).Code = value; } /// Internal Acessors for Detail - Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.IErrorDetail[] Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.IErrorResponseInternal.Detail { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.IErrorDetailInternal)Error).Detail; set => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.IErrorDetailInternal)Error).Detail = value; } + Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IErrorDetail[] Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IErrorResponseInternal.Detail { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IErrorDetailInternal)Error).Detail; set => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IErrorDetailInternal)Error).Detail = value; } /// Internal Acessors for Error - Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.IErrorDetail Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.IErrorResponseInternal.Error { get => (this._error = this._error ?? new Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.ErrorDetail()); set { {_error = value;} } } + Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IErrorDetail Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IErrorResponseInternal.Error { get => (this._error = this._error ?? new Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.ErrorDetail()); set { {_error = value;} } } /// Internal Acessors for Message - string Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.IErrorResponseInternal.Message { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.IErrorDetailInternal)Error).Message; set => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.IErrorDetailInternal)Error).Message = value; } + string Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IErrorResponseInternal.Message { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IErrorDetailInternal)Error).Message; set => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IErrorDetailInternal)Error).Message = value; } /// Internal Acessors for Target - string Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.IErrorResponseInternal.Target { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.IErrorDetailInternal)Error).Target; set => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.IErrorDetailInternal)Error).Target = value; } + string Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IErrorResponseInternal.Target { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IErrorDetailInternal)Error).Target; set => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IErrorDetailInternal)Error).Target = value; } /// The error target. [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Origin(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.PropertyOrigin.Inlined)] - public string Target { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.IErrorDetailInternal)Error).Target; } + public string Target { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IErrorDetailInternal)Error).Target; } /// Creates an new instance. public ErrorResponse() @@ -78,8 +78,8 @@ public partial interface IErrorResponse : ReadOnly = true, Description = @"The error additional info.", SerializedName = @"additionalInfo", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.IErrorAdditionalInfo) })] - Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.IErrorAdditionalInfo[] AdditionalInfo { get; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IErrorAdditionalInfo) })] + Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IErrorAdditionalInfo[] AdditionalInfo { get; } /// The error code. [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Info( Required = false, @@ -94,8 +94,8 @@ public partial interface IErrorResponse : ReadOnly = true, Description = @"The error details.", SerializedName = @"details", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.IErrorDetail) })] - Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.IErrorDetail[] Detail { get; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IErrorDetail) })] + Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IErrorDetail[] Detail { get; } /// The error message. [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Info( Required = false, @@ -120,13 +120,13 @@ internal partial interface IErrorResponseInternal { /// The error additional info. - Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.IErrorAdditionalInfo[] AdditionalInfo { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IErrorAdditionalInfo[] AdditionalInfo { get; set; } /// The error code. string Code { get; set; } /// The error details. - Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.IErrorDetail[] Detail { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IErrorDetail[] Detail { get; set; } /// The error object. - Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.IErrorDetail Error { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IErrorDetail Error { get; set; } /// The error message. string Message { get; set; } /// The error target. diff --git a/src/StorageMover/generated/api/Models/Api20/ErrorResponse.json.cs b/src/StorageMover/generated/api/Models/Api30/ErrorResponse.json.cs similarity index 96% rename from src/StorageMover/generated/api/Models/Api20/ErrorResponse.json.cs rename to src/StorageMover/generated/api/Models/Api30/ErrorResponse.json.cs index 1b0f9eed0dba..c674c60ee2a6 100644 --- a/src/StorageMover/generated/api/Models/Api20/ErrorResponse.json.cs +++ b/src/StorageMover/generated/api/Models/Api30/ErrorResponse.json.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20 +namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30 { using static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Extensions; @@ -68,18 +68,18 @@ internal ErrorResponse(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.J { return; } - {_error = If( json?.PropertyT("error"), out var __jsonError) ? Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.ErrorDetail.FromJson(__jsonError) : Error;} + {_error = If( json?.PropertyT("error"), out var __jsonError) ? Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.ErrorDetail.FromJson(__jsonError) : Error;} AfterFromJson(json); } /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.IErrorResponse. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IErrorResponse. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.IErrorResponse. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IErrorResponse. /// - public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.IErrorResponse FromJson(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IErrorResponse FromJson(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonObject json ? new ErrorResponse(json) : null; } diff --git a/src/StorageMover/generated/api/Models/Api20/Operation.PowerShell.cs b/src/StorageMover/generated/api/Models/Api30/Operation.PowerShell.cs similarity index 80% rename from src/StorageMover/generated/api/Models/Api20/Operation.PowerShell.cs rename to src/StorageMover/generated/api/Models/Api30/Operation.PowerShell.cs index 18a65ca4e04e..9e2a4fc93924 100644 --- a/src/StorageMover/generated/api/Models/Api20/Operation.PowerShell.cs +++ b/src/StorageMover/generated/api/Models/Api30/Operation.PowerShell.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20 +namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30 { using Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.PowerShell; @@ -65,27 +65,27 @@ public partial class Operation partial void OverrideToString(ref string stringResult, ref bool returnNow); /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Collections.IDictionary content that should be used. /// - /// an instance of . + /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.IOperation DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IOperation DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new Operation(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. /// - /// an instance of . + /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.IOperation DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IOperation DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new Operation(content); } @@ -95,10 +95,10 @@ public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.IOper /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.IOperation FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IOperation FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonNode.Parse(jsonText)); /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. @@ -113,45 +113,45 @@ internal Operation(global::System.Collections.IDictionary content) // actually deserialize if (content.Contains("Display")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.IOperationInternal)this).Display = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.IOperationDisplay) content.GetValueForProperty("Display",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.IOperationInternal)this).Display, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.OperationDisplayTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IOperationInternal)this).Display = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IOperationDisplay) content.GetValueForProperty("Display",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IOperationInternal)this).Display, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.OperationDisplayTypeConverter.ConvertFrom); } if (content.Contains("Name")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.IOperationInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.IOperationInternal)this).Name, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IOperationInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IOperationInternal)this).Name, global::System.Convert.ToString); } if (content.Contains("IsDataAction")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.IOperationInternal)this).IsDataAction = (bool?) content.GetValueForProperty("IsDataAction",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.IOperationInternal)this).IsDataAction, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IOperationInternal)this).IsDataAction = (bool?) content.GetValueForProperty("IsDataAction",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IOperationInternal)this).IsDataAction, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); } if (content.Contains("Origin")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.IOperationInternal)this).Origin = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.Origin?) content.GetValueForProperty("Origin",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.IOperationInternal)this).Origin, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.Origin.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IOperationInternal)this).Origin = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.Origin?) content.GetValueForProperty("Origin",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IOperationInternal)this).Origin, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.Origin.CreateFrom); } if (content.Contains("ActionType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.IOperationInternal)this).ActionType = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.ActionType?) content.GetValueForProperty("ActionType",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.IOperationInternal)this).ActionType, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.ActionType.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IOperationInternal)this).ActionType = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.ActionType?) content.GetValueForProperty("ActionType",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IOperationInternal)this).ActionType, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.ActionType.CreateFrom); } if (content.Contains("DisplayProvider")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.IOperationInternal)this).DisplayProvider = (string) content.GetValueForProperty("DisplayProvider",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.IOperationInternal)this).DisplayProvider, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IOperationInternal)this).DisplayProvider = (string) content.GetValueForProperty("DisplayProvider",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IOperationInternal)this).DisplayProvider, global::System.Convert.ToString); } if (content.Contains("DisplayResource")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.IOperationInternal)this).DisplayResource = (string) content.GetValueForProperty("DisplayResource",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.IOperationInternal)this).DisplayResource, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IOperationInternal)this).DisplayResource = (string) content.GetValueForProperty("DisplayResource",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IOperationInternal)this).DisplayResource, global::System.Convert.ToString); } if (content.Contains("DisplayOperation")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.IOperationInternal)this).DisplayOperation = (string) content.GetValueForProperty("DisplayOperation",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.IOperationInternal)this).DisplayOperation, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IOperationInternal)this).DisplayOperation = (string) content.GetValueForProperty("DisplayOperation",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IOperationInternal)this).DisplayOperation, global::System.Convert.ToString); } if (content.Contains("DisplayDescription")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.IOperationInternal)this).DisplayDescription = (string) content.GetValueForProperty("DisplayDescription",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.IOperationInternal)this).DisplayDescription, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IOperationInternal)this).DisplayDescription = (string) content.GetValueForProperty("DisplayDescription",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IOperationInternal)this).DisplayDescription, global::System.Convert.ToString); } AfterDeserializeDictionary(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -166,39 +166,39 @@ internal Operation(global::System.Management.Automation.PSObject content) // actually deserialize if (content.Contains("Display")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.IOperationInternal)this).Display = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.IOperationDisplay) content.GetValueForProperty("Display",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.IOperationInternal)this).Display, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.OperationDisplayTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IOperationInternal)this).Display = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IOperationDisplay) content.GetValueForProperty("Display",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IOperationInternal)this).Display, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.OperationDisplayTypeConverter.ConvertFrom); } if (content.Contains("Name")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.IOperationInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.IOperationInternal)this).Name, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IOperationInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IOperationInternal)this).Name, global::System.Convert.ToString); } if (content.Contains("IsDataAction")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.IOperationInternal)this).IsDataAction = (bool?) content.GetValueForProperty("IsDataAction",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.IOperationInternal)this).IsDataAction, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IOperationInternal)this).IsDataAction = (bool?) content.GetValueForProperty("IsDataAction",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IOperationInternal)this).IsDataAction, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); } if (content.Contains("Origin")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.IOperationInternal)this).Origin = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.Origin?) content.GetValueForProperty("Origin",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.IOperationInternal)this).Origin, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.Origin.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IOperationInternal)this).Origin = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.Origin?) content.GetValueForProperty("Origin",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IOperationInternal)this).Origin, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.Origin.CreateFrom); } if (content.Contains("ActionType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.IOperationInternal)this).ActionType = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.ActionType?) content.GetValueForProperty("ActionType",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.IOperationInternal)this).ActionType, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.ActionType.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IOperationInternal)this).ActionType = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.ActionType?) content.GetValueForProperty("ActionType",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IOperationInternal)this).ActionType, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.ActionType.CreateFrom); } if (content.Contains("DisplayProvider")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.IOperationInternal)this).DisplayProvider = (string) content.GetValueForProperty("DisplayProvider",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.IOperationInternal)this).DisplayProvider, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IOperationInternal)this).DisplayProvider = (string) content.GetValueForProperty("DisplayProvider",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IOperationInternal)this).DisplayProvider, global::System.Convert.ToString); } if (content.Contains("DisplayResource")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.IOperationInternal)this).DisplayResource = (string) content.GetValueForProperty("DisplayResource",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.IOperationInternal)this).DisplayResource, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IOperationInternal)this).DisplayResource = (string) content.GetValueForProperty("DisplayResource",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IOperationInternal)this).DisplayResource, global::System.Convert.ToString); } if (content.Contains("DisplayOperation")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.IOperationInternal)this).DisplayOperation = (string) content.GetValueForProperty("DisplayOperation",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.IOperationInternal)this).DisplayOperation, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IOperationInternal)this).DisplayOperation = (string) content.GetValueForProperty("DisplayOperation",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IOperationInternal)this).DisplayOperation, global::System.Convert.ToString); } if (content.Contains("DisplayDescription")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.IOperationInternal)this).DisplayDescription = (string) content.GetValueForProperty("DisplayDescription",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.IOperationInternal)this).DisplayDescription, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IOperationInternal)this).DisplayDescription = (string) content.GetValueForProperty("DisplayDescription",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IOperationInternal)this).DisplayDescription, global::System.Convert.ToString); } AfterDeserializePSObject(content); } diff --git a/src/StorageMover/generated/api/Models/Api20/Operation.TypeConverter.cs b/src/StorageMover/generated/api/Models/Api30/Operation.TypeConverter.cs similarity index 98% rename from src/StorageMover/generated/api/Models/Api20/Operation.TypeConverter.cs rename to src/StorageMover/generated/api/Models/Api30/Operation.TypeConverter.cs index 65ac14c37b69..fdf8af64285a 100644 --- a/src/StorageMover/generated/api/Models/Api20/Operation.TypeConverter.cs +++ b/src/StorageMover/generated/api/Models/Api30/Operation.TypeConverter.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20 +namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30 { using Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.PowerShell; @@ -105,14 +105,14 @@ public static bool CanConvertFrom(dynamic sourceValue) /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.IOperation ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IOperation ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.IOperation).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IOperation).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/StorageMover/generated/api/Models/Api20/Operation.cs b/src/StorageMover/generated/api/Models/Api30/Operation.cs similarity index 89% rename from src/StorageMover/generated/api/Models/Api20/Operation.cs rename to src/StorageMover/generated/api/Models/Api30/Operation.cs index 324eefd6a09a..26cb000234b6 100644 --- a/src/StorageMover/generated/api/Models/Api20/Operation.cs +++ b/src/StorageMover/generated/api/Models/Api30/Operation.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20 +namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30 { using static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Extensions; @@ -11,8 +11,8 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20 /// Details of a REST API operation, returned from the Resource Provider Operations API /// public partial class Operation : - Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.IOperation, - Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.IOperationInternal + Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IOperation, + Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IOperationInternal { /// Backing field for property. @@ -25,36 +25,36 @@ public partial class Operation : public Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.ActionType? ActionType { get => this._actionType; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.IOperationDisplay _display; + private Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IOperationDisplay _display; /// Localized display information for this particular operation. [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Origin(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.PropertyOrigin.Owned)] - internal Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.IOperationDisplay Display { get => (this._display = this._display ?? new Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.OperationDisplay()); set => this._display = value; } + internal Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IOperationDisplay Display { get => (this._display = this._display ?? new Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.OperationDisplay()); set => this._display = value; } /// /// The short, localized friendly description of the operation; suitable for tool tips and detailed views. /// [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Origin(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.PropertyOrigin.Inlined)] - public string DisplayDescription { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.IOperationDisplayInternal)Display).Description; } + public string DisplayDescription { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IOperationDisplayInternal)Display).Description; } /// /// The concise, localized friendly name for the operation; suitable for dropdowns. E.g. "Create or Update Virtual Machine", /// "Restart Virtual Machine". /// [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Origin(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.PropertyOrigin.Inlined)] - public string DisplayOperation { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.IOperationDisplayInternal)Display).Operation; } + public string DisplayOperation { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IOperationDisplayInternal)Display).Operation; } /// /// The localized friendly form of the resource provider name, e.g. "Microsoft Monitoring Insights" or "Microsoft Compute". /// [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Origin(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.PropertyOrigin.Inlined)] - public string DisplayProvider { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.IOperationDisplayInternal)Display).Provider; } + public string DisplayProvider { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IOperationDisplayInternal)Display).Provider; } /// /// The localized friendly name of the resource type related to this operation. E.g. "Virtual Machines" or "Job Schedule Collections". /// [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Origin(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.PropertyOrigin.Inlined)] - public string DisplayResource { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.IOperationDisplayInternal)Display).Resource; } + public string DisplayResource { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IOperationDisplayInternal)Display).Resource; } /// Backing field for property. private bool? _isDataAction; @@ -67,31 +67,31 @@ public partial class Operation : public bool? IsDataAction { get => this._isDataAction; } /// Internal Acessors for ActionType - Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.ActionType? Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.IOperationInternal.ActionType { get => this._actionType; set { {_actionType = value;} } } + Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.ActionType? Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IOperationInternal.ActionType { get => this._actionType; set { {_actionType = value;} } } /// Internal Acessors for Display - Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.IOperationDisplay Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.IOperationInternal.Display { get => (this._display = this._display ?? new Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.OperationDisplay()); set { {_display = value;} } } + Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IOperationDisplay Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IOperationInternal.Display { get => (this._display = this._display ?? new Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.OperationDisplay()); set { {_display = value;} } } /// Internal Acessors for DisplayDescription - string Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.IOperationInternal.DisplayDescription { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.IOperationDisplayInternal)Display).Description; set => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.IOperationDisplayInternal)Display).Description = value; } + string Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IOperationInternal.DisplayDescription { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IOperationDisplayInternal)Display).Description; set => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IOperationDisplayInternal)Display).Description = value; } /// Internal Acessors for DisplayOperation - string Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.IOperationInternal.DisplayOperation { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.IOperationDisplayInternal)Display).Operation; set => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.IOperationDisplayInternal)Display).Operation = value; } + string Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IOperationInternal.DisplayOperation { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IOperationDisplayInternal)Display).Operation; set => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IOperationDisplayInternal)Display).Operation = value; } /// Internal Acessors for DisplayProvider - string Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.IOperationInternal.DisplayProvider { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.IOperationDisplayInternal)Display).Provider; set => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.IOperationDisplayInternal)Display).Provider = value; } + string Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IOperationInternal.DisplayProvider { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IOperationDisplayInternal)Display).Provider; set => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IOperationDisplayInternal)Display).Provider = value; } /// Internal Acessors for DisplayResource - string Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.IOperationInternal.DisplayResource { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.IOperationDisplayInternal)Display).Resource; set => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.IOperationDisplayInternal)Display).Resource = value; } + string Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IOperationInternal.DisplayResource { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IOperationDisplayInternal)Display).Resource; set => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IOperationDisplayInternal)Display).Resource = value; } /// Internal Acessors for IsDataAction - bool? Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.IOperationInternal.IsDataAction { get => this._isDataAction; set { {_isDataAction = value;} } } + bool? Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IOperationInternal.IsDataAction { get => this._isDataAction; set { {_isDataAction = value;} } } /// Internal Acessors for Name - string Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.IOperationInternal.Name { get => this._name; set { {_name = value;} } } + string Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IOperationInternal.Name { get => this._name; set { {_name = value;} } } /// Internal Acessors for Origin - Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.Origin? Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.IOperationInternal.Origin { get => this._origin; set { {_origin = value;} } } + Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.Origin? Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IOperationInternal.Origin { get => this._origin; set { {_origin = value;} } } /// Backing field for property. private string _name; @@ -218,7 +218,7 @@ internal partial interface IOperationInternal /// Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.ActionType? ActionType { get; set; } /// Localized display information for this particular operation. - Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.IOperationDisplay Display { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IOperationDisplay Display { get; set; } /// /// The short, localized friendly description of the operation; suitable for tool tips and detailed views. /// diff --git a/src/StorageMover/generated/api/Models/Api20/Operation.json.cs b/src/StorageMover/generated/api/Models/Api30/Operation.json.cs similarity index 97% rename from src/StorageMover/generated/api/Models/Api20/Operation.json.cs rename to src/StorageMover/generated/api/Models/Api30/Operation.json.cs index 222b8f50f8f3..bea19184094b 100644 --- a/src/StorageMover/generated/api/Models/Api20/Operation.json.cs +++ b/src/StorageMover/generated/api/Models/Api30/Operation.json.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20 +namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30 { using static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Extensions; @@ -56,13 +56,13 @@ public partial class Operation partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.IOperation. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IOperation. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.IOperation. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IOperation. /// - public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.IOperation FromJson(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IOperation FromJson(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonObject json ? new Operation(json) : null; } @@ -79,7 +79,7 @@ internal Operation(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json. { return; } - {_display = If( json?.PropertyT("display"), out var __jsonDisplay) ? Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.OperationDisplay.FromJson(__jsonDisplay) : Display;} + {_display = If( json?.PropertyT("display"), out var __jsonDisplay) ? Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.OperationDisplay.FromJson(__jsonDisplay) : Display;} {_name = If( json?.PropertyT("name"), out var __jsonName) ? (string)__jsonName : (string)Name;} {_isDataAction = If( json?.PropertyT("isDataAction"), out var __jsonIsDataAction) ? (bool?)__jsonIsDataAction : IsDataAction;} {_origin = If( json?.PropertyT("origin"), out var __jsonOrigin) ? (string)__jsonOrigin : (string)Origin;} diff --git a/src/StorageMover/generated/api/Models/Api20/OperationDisplay.PowerShell.cs b/src/StorageMover/generated/api/Models/Api30/OperationDisplay.PowerShell.cs similarity index 86% rename from src/StorageMover/generated/api/Models/Api20/OperationDisplay.PowerShell.cs rename to src/StorageMover/generated/api/Models/Api30/OperationDisplay.PowerShell.cs index c85fc400c15e..09c5504e5c22 100644 --- a/src/StorageMover/generated/api/Models/Api20/OperationDisplay.PowerShell.cs +++ b/src/StorageMover/generated/api/Models/Api30/OperationDisplay.PowerShell.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20 +namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30 { using Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.PowerShell; @@ -63,27 +63,27 @@ public partial class OperationDisplay partial void OverrideToString(ref string stringResult, ref bool returnNow); /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Collections.IDictionary content that should be used. /// - /// an instance of . + /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.IOperationDisplay DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IOperationDisplay DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new OperationDisplay(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. /// - /// an instance of . + /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.IOperationDisplay DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IOperationDisplay DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new OperationDisplay(content); } @@ -93,10 +93,10 @@ public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.IOper /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.IOperationDisplay FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IOperationDisplay FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonNode.Parse(jsonText)); /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. @@ -111,25 +111,25 @@ internal OperationDisplay(global::System.Collections.IDictionary content) // actually deserialize if (content.Contains("Provider")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.IOperationDisplayInternal)this).Provider = (string) content.GetValueForProperty("Provider",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.IOperationDisplayInternal)this).Provider, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IOperationDisplayInternal)this).Provider = (string) content.GetValueForProperty("Provider",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IOperationDisplayInternal)this).Provider, global::System.Convert.ToString); } if (content.Contains("Resource")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.IOperationDisplayInternal)this).Resource = (string) content.GetValueForProperty("Resource",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.IOperationDisplayInternal)this).Resource, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IOperationDisplayInternal)this).Resource = (string) content.GetValueForProperty("Resource",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IOperationDisplayInternal)this).Resource, global::System.Convert.ToString); } if (content.Contains("Operation")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.IOperationDisplayInternal)this).Operation = (string) content.GetValueForProperty("Operation",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.IOperationDisplayInternal)this).Operation, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IOperationDisplayInternal)this).Operation = (string) content.GetValueForProperty("Operation",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IOperationDisplayInternal)this).Operation, global::System.Convert.ToString); } if (content.Contains("Description")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.IOperationDisplayInternal)this).Description = (string) content.GetValueForProperty("Description",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.IOperationDisplayInternal)this).Description, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IOperationDisplayInternal)this).Description = (string) content.GetValueForProperty("Description",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IOperationDisplayInternal)this).Description, global::System.Convert.ToString); } AfterDeserializeDictionary(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -144,19 +144,19 @@ internal OperationDisplay(global::System.Management.Automation.PSObject content) // actually deserialize if (content.Contains("Provider")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.IOperationDisplayInternal)this).Provider = (string) content.GetValueForProperty("Provider",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.IOperationDisplayInternal)this).Provider, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IOperationDisplayInternal)this).Provider = (string) content.GetValueForProperty("Provider",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IOperationDisplayInternal)this).Provider, global::System.Convert.ToString); } if (content.Contains("Resource")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.IOperationDisplayInternal)this).Resource = (string) content.GetValueForProperty("Resource",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.IOperationDisplayInternal)this).Resource, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IOperationDisplayInternal)this).Resource = (string) content.GetValueForProperty("Resource",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IOperationDisplayInternal)this).Resource, global::System.Convert.ToString); } if (content.Contains("Operation")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.IOperationDisplayInternal)this).Operation = (string) content.GetValueForProperty("Operation",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.IOperationDisplayInternal)this).Operation, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IOperationDisplayInternal)this).Operation = (string) content.GetValueForProperty("Operation",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IOperationDisplayInternal)this).Operation, global::System.Convert.ToString); } if (content.Contains("Description")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.IOperationDisplayInternal)this).Description = (string) content.GetValueForProperty("Description",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.IOperationDisplayInternal)this).Description, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IOperationDisplayInternal)this).Description = (string) content.GetValueForProperty("Description",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IOperationDisplayInternal)this).Description, global::System.Convert.ToString); } AfterDeserializePSObject(content); } diff --git a/src/StorageMover/generated/api/Models/Api20/OperationDisplay.TypeConverter.cs b/src/StorageMover/generated/api/Models/Api30/OperationDisplay.TypeConverter.cs similarity index 98% rename from src/StorageMover/generated/api/Models/Api20/OperationDisplay.TypeConverter.cs rename to src/StorageMover/generated/api/Models/Api30/OperationDisplay.TypeConverter.cs index cd70cab19545..82c90a0ebd6b 100644 --- a/src/StorageMover/generated/api/Models/Api20/OperationDisplay.TypeConverter.cs +++ b/src/StorageMover/generated/api/Models/Api30/OperationDisplay.TypeConverter.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20 +namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30 { using Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.PowerShell; @@ -106,14 +106,14 @@ public static bool CanConvertFrom(dynamic sourceValue) /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.IOperationDisplay ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IOperationDisplay ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.IOperationDisplay).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IOperationDisplay).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/StorageMover/generated/api/Models/Api20/OperationDisplay.cs b/src/StorageMover/generated/api/Models/Api30/OperationDisplay.cs similarity index 95% rename from src/StorageMover/generated/api/Models/Api20/OperationDisplay.cs rename to src/StorageMover/generated/api/Models/Api30/OperationDisplay.cs index 268978ed0975..9301611c7353 100644 --- a/src/StorageMover/generated/api/Models/Api20/OperationDisplay.cs +++ b/src/StorageMover/generated/api/Models/Api30/OperationDisplay.cs @@ -3,14 +3,14 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20 +namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30 { using static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Extensions; /// Localized display information for this particular operation. public partial class OperationDisplay : - Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.IOperationDisplay, - Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.IOperationDisplayInternal + Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IOperationDisplay, + Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IOperationDisplayInternal { /// Backing field for property. @@ -23,16 +23,16 @@ public partial class OperationDisplay : public string Description { get => this._description; } /// Internal Acessors for Description - string Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.IOperationDisplayInternal.Description { get => this._description; set { {_description = value;} } } + string Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IOperationDisplayInternal.Description { get => this._description; set { {_description = value;} } } /// Internal Acessors for Operation - string Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.IOperationDisplayInternal.Operation { get => this._operation; set { {_operation = value;} } } + string Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IOperationDisplayInternal.Operation { get => this._operation; set { {_operation = value;} } } /// Internal Acessors for Provider - string Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.IOperationDisplayInternal.Provider { get => this._provider; set { {_provider = value;} } } + string Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IOperationDisplayInternal.Provider { get => this._provider; set { {_provider = value;} } } /// Internal Acessors for Resource - string Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.IOperationDisplayInternal.Resource { get => this._resource; set { {_resource = value;} } } + string Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IOperationDisplayInternal.Resource { get => this._resource; set { {_resource = value;} } } /// Backing field for property. private string _operation; diff --git a/src/StorageMover/generated/api/Models/Api20/OperationDisplay.json.cs b/src/StorageMover/generated/api/Models/Api30/OperationDisplay.json.cs similarity index 98% rename from src/StorageMover/generated/api/Models/Api20/OperationDisplay.json.cs rename to src/StorageMover/generated/api/Models/Api30/OperationDisplay.json.cs index 2b084795802f..659a28771eea 100644 --- a/src/StorageMover/generated/api/Models/Api20/OperationDisplay.json.cs +++ b/src/StorageMover/generated/api/Models/Api30/OperationDisplay.json.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20 +namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30 { using static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Extensions; @@ -54,13 +54,13 @@ public partial class OperationDisplay partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.IOperationDisplay. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IOperationDisplay. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.IOperationDisplay. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IOperationDisplay. /// - public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.IOperationDisplay FromJson(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IOperationDisplay FromJson(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonObject json ? new OperationDisplay(json) : null; } diff --git a/src/StorageMover/generated/api/Models/Api20/OperationListResult.PowerShell.cs b/src/StorageMover/generated/api/Models/Api30/OperationListResult.PowerShell.cs similarity index 86% rename from src/StorageMover/generated/api/Models/Api20/OperationListResult.PowerShell.cs rename to src/StorageMover/generated/api/Models/Api30/OperationListResult.PowerShell.cs index de56b884def3..f970b34a8577 100644 --- a/src/StorageMover/generated/api/Models/Api20/OperationListResult.PowerShell.cs +++ b/src/StorageMover/generated/api/Models/Api30/OperationListResult.PowerShell.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20 +namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30 { using Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.PowerShell; @@ -66,27 +66,27 @@ public partial class OperationListResult partial void OverrideToString(ref string stringResult, ref bool returnNow); /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Collections.IDictionary content that should be used. /// - /// an instance of . + /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.IOperationListResult DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IOperationListResult DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new OperationListResult(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. /// - /// an instance of . + /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.IOperationListResult DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IOperationListResult DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new OperationListResult(content); } @@ -96,10 +96,10 @@ public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.IOper /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.IOperationListResult FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IOperationListResult FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonNode.Parse(jsonText)); /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. @@ -114,17 +114,17 @@ internal OperationListResult(global::System.Collections.IDictionary content) // actually deserialize if (content.Contains("Value")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.IOperationListResultInternal)this).Value = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.IOperation[]) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.IOperationListResultInternal)this).Value, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.OperationTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IOperationListResultInternal)this).Value = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IOperation[]) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IOperationListResultInternal)this).Value, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.OperationTypeConverter.ConvertFrom)); } if (content.Contains("NextLink")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.IOperationListResultInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.IOperationListResultInternal)this).NextLink, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IOperationListResultInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IOperationListResultInternal)this).NextLink, global::System.Convert.ToString); } AfterDeserializeDictionary(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -139,11 +139,11 @@ internal OperationListResult(global::System.Management.Automation.PSObject conte // actually deserialize if (content.Contains("Value")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.IOperationListResultInternal)this).Value = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.IOperation[]) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.IOperationListResultInternal)this).Value, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.OperationTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IOperationListResultInternal)this).Value = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IOperation[]) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IOperationListResultInternal)this).Value, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.OperationTypeConverter.ConvertFrom)); } if (content.Contains("NextLink")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.IOperationListResultInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.IOperationListResultInternal)this).NextLink, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IOperationListResultInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IOperationListResultInternal)this).NextLink, global::System.Convert.ToString); } AfterDeserializePSObject(content); } diff --git a/src/StorageMover/generated/api/Models/Api20/OperationListResult.TypeConverter.cs b/src/StorageMover/generated/api/Models/Api30/OperationListResult.TypeConverter.cs similarity index 98% rename from src/StorageMover/generated/api/Models/Api20/OperationListResult.TypeConverter.cs rename to src/StorageMover/generated/api/Models/Api30/OperationListResult.TypeConverter.cs index c6d088e4034e..2aacdf25057b 100644 --- a/src/StorageMover/generated/api/Models/Api20/OperationListResult.TypeConverter.cs +++ b/src/StorageMover/generated/api/Models/Api30/OperationListResult.TypeConverter.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20 +namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30 { using Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.PowerShell; @@ -106,14 +106,14 @@ public static bool CanConvertFrom(dynamic sourceValue) /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.IOperationListResult ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IOperationListResult ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.IOperationListResult).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IOperationListResult).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/StorageMover/generated/api/Models/Api20/OperationListResult.cs b/src/StorageMover/generated/api/Models/Api30/OperationListResult.cs similarity index 88% rename from src/StorageMover/generated/api/Models/Api20/OperationListResult.cs rename to src/StorageMover/generated/api/Models/Api30/OperationListResult.cs index 46d0752c5090..35a286b6ffc2 100644 --- a/src/StorageMover/generated/api/Models/Api20/OperationListResult.cs +++ b/src/StorageMover/generated/api/Models/Api30/OperationListResult.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20 +namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30 { using static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Extensions; @@ -12,15 +12,15 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20 /// results. /// public partial class OperationListResult : - Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.IOperationListResult, - Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.IOperationListResultInternal + Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IOperationListResult, + Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IOperationListResultInternal { /// Internal Acessors for NextLink - string Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.IOperationListResultInternal.NextLink { get => this._nextLink; set { {_nextLink = value;} } } + string Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IOperationListResultInternal.NextLink { get => this._nextLink; set { {_nextLink = value;} } } /// Internal Acessors for Value - Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.IOperation[] Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.IOperationListResultInternal.Value { get => this._value; set { {_value = value;} } } + Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IOperation[] Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IOperationListResultInternal.Value { get => this._value; set { {_value = value;} } } /// Backing field for property. private string _nextLink; @@ -30,11 +30,11 @@ public partial class OperationListResult : public string NextLink { get => this._nextLink; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.IOperation[] _value; + private Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IOperation[] _value; /// List of operations supported by the resource provider [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Origin(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.PropertyOrigin.Owned)] - public Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.IOperation[] Value { get => this._value; } + public Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IOperation[] Value { get => this._value; } /// Creates an new instance. public OperationListResult() @@ -61,8 +61,8 @@ public partial interface IOperationListResult : ReadOnly = true, Description = @"List of operations supported by the resource provider", SerializedName = @"value", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.IOperation) })] - Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.IOperation[] Value { get; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IOperation) })] + Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IOperation[] Value { get; } } /// A list of REST API operations supported by an Azure Resource Provider. It contains an URL link to get the next set of @@ -73,7 +73,7 @@ internal partial interface IOperationListResultInternal /// URL to get the next set of operation list results (if there are any). string NextLink { get; set; } /// List of operations supported by the resource provider - Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.IOperation[] Value { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IOperation[] Value { get; set; } } } \ No newline at end of file diff --git a/src/StorageMover/generated/api/Models/Api20/OperationListResult.json.cs b/src/StorageMover/generated/api/Models/Api30/OperationListResult.json.cs similarity index 95% rename from src/StorageMover/generated/api/Models/Api20/OperationListResult.json.cs rename to src/StorageMover/generated/api/Models/Api30/OperationListResult.json.cs index a295f02c43e5..c1756a591483 100644 --- a/src/StorageMover/generated/api/Models/Api20/OperationListResult.json.cs +++ b/src/StorageMover/generated/api/Models/Api30/OperationListResult.json.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20 +namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30 { using static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Extensions; @@ -57,13 +57,13 @@ public partial class OperationListResult partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.IOperationListResult. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IOperationListResult. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.IOperationListResult. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IOperationListResult. /// - public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.IOperationListResult FromJson(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IOperationListResult FromJson(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonObject json ? new OperationListResult(json) : null; } @@ -80,7 +80,7 @@ internal OperationListResult(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Run { return; } - {_value = If( json?.PropertyT("value"), out var __jsonValue) ? If( __jsonValue as Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonArray, out var __v) ? new global::System.Func(()=> global::System.Linq.Enumerable.ToArray(global::System.Linq.Enumerable.Select(__v, (__u)=>(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.IOperation) (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.Operation.FromJson(__u) )) ))() : null : Value;} + {_value = If( json?.PropertyT("value"), out var __jsonValue) ? If( __jsonValue as Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonArray, out var __v) ? new global::System.Func(()=> global::System.Linq.Enumerable.ToArray(global::System.Linq.Enumerable.Select(__v, (__u)=>(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IOperation) (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.Operation.FromJson(__u) )) ))() : null : Value;} {_nextLink = If( json?.PropertyT("nextLink"), out var __jsonNextLink) ? (string)__jsonNextLink : (string)NextLink;} AfterFromJson(json); } diff --git a/src/StorageMover/generated/api/Models/Api30/ProxyResource.PowerShell.cs b/src/StorageMover/generated/api/Models/Api30/ProxyResource.PowerShell.cs new file mode 100644 index 000000000000..e7e6ca1aa898 --- /dev/null +++ b/src/StorageMover/generated/api/Models/Api30/ProxyResource.PowerShell.cs @@ -0,0 +1,238 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30 +{ + using Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.PowerShell; + + /// + /// The resource model definition for a Azure Resource Manager proxy resource. It will not have tags and a location + /// + [System.ComponentModel.TypeConverter(typeof(ProxyResourceTypeConverter))] + public partial class ProxyResource + { + + /// + /// AfterDeserializeDictionary will be called after the deserialization has finished, allowing customization of the + /// object before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The global::System.Collections.IDictionary content that should be used. + + partial void AfterDeserializeDictionary(global::System.Collections.IDictionary content); + + /// + /// AfterDeserializePSObject will be called after the deserialization has finished, allowing customization of the object + /// before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The global::System.Management.Automation.PSObject content that should be used. + + partial void AfterDeserializePSObject(global::System.Management.Automation.PSObject content); + + /// + /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization + /// of the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The global::System.Collections.IDictionary content that should be used. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeDeserializeDictionary(global::System.Collections.IDictionary content, ref bool returnNow); + + /// + /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization + /// of the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The global::System.Management.Automation.PSObject content that should be used. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); + + /// + /// OverrideToString will be called if it is implemented. Implement this method in a partial class to enable this behavior + /// + /// /// instance serialized to a string, normally it is a Json + /// /// set returnNow to true if you provide a customized OverrideToString function + + partial void OverrideToString(ref string stringResult, ref bool returnNow); + + /// + /// Deserializes a into an instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + /// + /// an instance of . + /// + public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IProxyResource DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new ProxyResource(content); + } + + /// + /// Deserializes a into an instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + /// + /// an instance of . + /// + public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IProxyResource DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new ProxyResource(content); + } + + /// + /// Creates a new instance of , deserializing the content from a json string. + /// + /// a string containing a JSON serialized instance of this model. + /// an instance of the model class. + public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IProxyResource FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonNode.Parse(jsonText)); + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal ProxyResource(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("SystemDataCreatedBy")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IResourceInternal)this).SystemDataCreatedBy = (string) content.GetValueForProperty("SystemDataCreatedBy",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IResourceInternal)this).SystemDataCreatedBy, global::System.Convert.ToString); + } + if (content.Contains("SystemDataCreatedAt")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IResourceInternal)this).SystemDataCreatedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataCreatedAt",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IResourceInternal)this).SystemDataCreatedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + } + if (content.Contains("SystemDataCreatedByType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IResourceInternal)this).SystemDataCreatedByType = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.CreatedByType?) content.GetValueForProperty("SystemDataCreatedByType",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IResourceInternal)this).SystemDataCreatedByType, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.CreatedByType.CreateFrom); + } + if (content.Contains("SystemDataLastModifiedBy")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IResourceInternal)this).SystemDataLastModifiedBy = (string) content.GetValueForProperty("SystemDataLastModifiedBy",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IResourceInternal)this).SystemDataLastModifiedBy, global::System.Convert.ToString); + } + if (content.Contains("SystemDataLastModifiedByType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IResourceInternal)this).SystemDataLastModifiedByType = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.CreatedByType?) content.GetValueForProperty("SystemDataLastModifiedByType",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IResourceInternal)this).SystemDataLastModifiedByType, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.CreatedByType.CreateFrom); + } + if (content.Contains("SystemDataLastModifiedAt")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IResourceInternal)this).SystemDataLastModifiedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataLastModifiedAt",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IResourceInternal)this).SystemDataLastModifiedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + } + if (content.Contains("SystemData")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IResourceInternal)this).SystemData = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.ISystemData) content.GetValueForProperty("SystemData",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IResourceInternal)this).SystemData, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.SystemDataTypeConverter.ConvertFrom); + } + if (content.Contains("Id")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IResourceInternal)this).Id, global::System.Convert.ToString); + } + if (content.Contains("Name")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IResourceInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IResourceInternal)this).Name, global::System.Convert.ToString); + } + if (content.Contains("Type")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IResourceInternal)this).Type, global::System.Convert.ToString); + } + AfterDeserializeDictionary(content); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + internal ProxyResource(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("SystemDataCreatedBy")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IResourceInternal)this).SystemDataCreatedBy = (string) content.GetValueForProperty("SystemDataCreatedBy",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IResourceInternal)this).SystemDataCreatedBy, global::System.Convert.ToString); + } + if (content.Contains("SystemDataCreatedAt")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IResourceInternal)this).SystemDataCreatedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataCreatedAt",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IResourceInternal)this).SystemDataCreatedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + } + if (content.Contains("SystemDataCreatedByType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IResourceInternal)this).SystemDataCreatedByType = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.CreatedByType?) content.GetValueForProperty("SystemDataCreatedByType",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IResourceInternal)this).SystemDataCreatedByType, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.CreatedByType.CreateFrom); + } + if (content.Contains("SystemDataLastModifiedBy")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IResourceInternal)this).SystemDataLastModifiedBy = (string) content.GetValueForProperty("SystemDataLastModifiedBy",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IResourceInternal)this).SystemDataLastModifiedBy, global::System.Convert.ToString); + } + if (content.Contains("SystemDataLastModifiedByType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IResourceInternal)this).SystemDataLastModifiedByType = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.CreatedByType?) content.GetValueForProperty("SystemDataLastModifiedByType",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IResourceInternal)this).SystemDataLastModifiedByType, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.CreatedByType.CreateFrom); + } + if (content.Contains("SystemDataLastModifiedAt")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IResourceInternal)this).SystemDataLastModifiedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataLastModifiedAt",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IResourceInternal)this).SystemDataLastModifiedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + } + if (content.Contains("SystemData")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IResourceInternal)this).SystemData = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.ISystemData) content.GetValueForProperty("SystemData",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IResourceInternal)this).SystemData, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.SystemDataTypeConverter.ConvertFrom); + } + if (content.Contains("Id")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IResourceInternal)this).Id, global::System.Convert.ToString); + } + if (content.Contains("Name")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IResourceInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IResourceInternal)this).Name, global::System.Convert.ToString); + } + if (content.Contains("Type")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IResourceInternal)this).Type, global::System.Convert.ToString); + } + AfterDeserializePSObject(content); + } + + /// Serializes this instance to a json string. + + /// a containing this model serialized to JSON text. + public string ToJsonString() => ToJson(null, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.SerializationMode.IncludeAll)?.ToString(); + + public override string ToString() + { + var returnNow = false; + var result = global::System.String.Empty; + OverrideToString(ref result, ref returnNow); + if (returnNow) + { + return result; + } + return ToJsonString(); + } + } + /// The resource model definition for a Azure Resource Manager proxy resource. It will not have tags and a location + [System.ComponentModel.TypeConverter(typeof(ProxyResourceTypeConverter))] + public partial interface IProxyResource + + { + + } +} \ No newline at end of file diff --git a/src/StorageMover/generated/api/Models/Api20/ProxyResource.TypeConverter.cs b/src/StorageMover/generated/api/Models/Api30/ProxyResource.TypeConverter.cs similarity index 98% rename from src/StorageMover/generated/api/Models/Api20/ProxyResource.TypeConverter.cs rename to src/StorageMover/generated/api/Models/Api30/ProxyResource.TypeConverter.cs index e9655f9c02be..7d249a3a3d94 100644 --- a/src/StorageMover/generated/api/Models/Api20/ProxyResource.TypeConverter.cs +++ b/src/StorageMover/generated/api/Models/Api30/ProxyResource.TypeConverter.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20 +namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30 { using Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.PowerShell; @@ -106,14 +106,14 @@ public static bool CanConvertFrom(dynamic sourceValue) /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.IProxyResource ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IProxyResource ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.IProxyResource).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IProxyResource).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/StorageMover/generated/api/Models/Api30/ProxyResource.cs b/src/StorageMover/generated/api/Models/Api30/ProxyResource.cs new file mode 100644 index 000000000000..03060a2dbcc6 --- /dev/null +++ b/src/StorageMover/generated/api/Models/Api30/ProxyResource.cs @@ -0,0 +1,113 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30 +{ + using static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Extensions; + + /// + /// The resource model definition for a Azure Resource Manager proxy resource. It will not have tags and a location + /// + public partial class ProxyResource : + Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IProxyResource, + Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IProxyResourceInternal, + Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.IValidates + { + /// + /// Backing field for Inherited model + /// + private Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IResource __resource = new Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.Resource(); + + /// + /// Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} + /// + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Origin(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.PropertyOrigin.Inherited)] + public string Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IResourceInternal)__resource).Id; } + + /// Internal Acessors for Id + string Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IResourceInternal)__resource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IResourceInternal)__resource).Id = value; } + + /// Internal Acessors for Name + string Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IResourceInternal)__resource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IResourceInternal)__resource).Name = value; } + + /// Internal Acessors for SystemData + Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.ISystemData Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IResourceInternal.SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IResourceInternal)__resource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IResourceInternal)__resource).SystemData = value; } + + /// Internal Acessors for Type + string Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IResourceInternal)__resource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IResourceInternal)__resource).Type = value; } + + /// The name of the resource + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Origin(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.PropertyOrigin.Inherited)] + public string Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IResourceInternal)__resource).Name; } + + /// + /// Azure Resource Manager metadata containing createdBy and modifiedBy information. + /// + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Origin(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.PropertyOrigin.Inherited)] + private Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.ISystemData SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IResourceInternal)__resource).SystemData; } + + /// The timestamp of resource creation (UTC). + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Origin(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.PropertyOrigin.Inherited)] + public global::System.DateTime? SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IResourceInternal)__resource).SystemDataCreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IResourceInternal)__resource).SystemDataCreatedAt = value ?? default(global::System.DateTime); } + + /// The identity that created the resource. + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Origin(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.PropertyOrigin.Inherited)] + public string SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IResourceInternal)__resource).SystemDataCreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IResourceInternal)__resource).SystemDataCreatedBy = value ?? null; } + + /// The type of identity that created the resource. + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Origin(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.PropertyOrigin.Inherited)] + public Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.CreatedByType? SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IResourceInternal)__resource).SystemDataCreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IResourceInternal)__resource).SystemDataCreatedByType = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.CreatedByType)""); } + + /// The timestamp of resource last modification (UTC) + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Origin(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.PropertyOrigin.Inherited)] + public global::System.DateTime? SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IResourceInternal)__resource).SystemDataLastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IResourceInternal)__resource).SystemDataLastModifiedAt = value ?? default(global::System.DateTime); } + + /// The identity that last modified the resource. + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Origin(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.PropertyOrigin.Inherited)] + public string SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IResourceInternal)__resource).SystemDataLastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IResourceInternal)__resource).SystemDataLastModifiedBy = value ?? null; } + + /// The type of identity that last modified the resource. + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Origin(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.PropertyOrigin.Inherited)] + public Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.CreatedByType? SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IResourceInternal)__resource).SystemDataLastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IResourceInternal)__resource).SystemDataLastModifiedByType = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.CreatedByType)""); } + + /// + /// The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" + /// + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Origin(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.PropertyOrigin.Inherited)] + public string Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IResourceInternal)__resource).Type; } + + /// Creates an new instance. + public ProxyResource() + { + + } + + /// Validates that this object meets the validation criteria. + /// an instance that will receive validation + /// events. + /// + /// A that will be complete when validation is completed. + /// + public async global::System.Threading.Tasks.Task Validate(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.IEventListener eventListener) + { + await eventListener.AssertNotNull(nameof(__resource), __resource); + await eventListener.AssertObjectIsValid(nameof(__resource), __resource); + } + } + /// The resource model definition for a Azure Resource Manager proxy resource. It will not have tags and a location + public partial interface IProxyResource : + Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.IJsonSerializable, + Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IResource + { + + } + /// The resource model definition for a Azure Resource Manager proxy resource. It will not have tags and a location + internal partial interface IProxyResourceInternal : + Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IResourceInternal + { + + } +} \ No newline at end of file diff --git a/src/StorageMover/generated/api/Models/Api20/ProxyResource.json.cs b/src/StorageMover/generated/api/Models/Api30/ProxyResource.json.cs similarity index 96% rename from src/StorageMover/generated/api/Models/Api20/ProxyResource.json.cs rename to src/StorageMover/generated/api/Models/Api30/ProxyResource.json.cs index 620623576ba9..f24db2f399ac 100644 --- a/src/StorageMover/generated/api/Models/Api20/ProxyResource.json.cs +++ b/src/StorageMover/generated/api/Models/Api30/ProxyResource.json.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20 +namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30 { using static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Extensions; @@ -56,13 +56,13 @@ public partial class ProxyResource partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.IProxyResource. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IProxyResource. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.IProxyResource. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IProxyResource. /// - public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.IProxyResource FromJson(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IProxyResource FromJson(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonObject json ? new ProxyResource(json) : null; } @@ -79,7 +79,7 @@ internal ProxyResource(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.J { return; } - __resource = new Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.Resource(json); + __resource = new Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.Resource(json); AfterFromJson(json); } diff --git a/src/StorageMover/generated/api/Models/Api30/Resource.PowerShell.cs b/src/StorageMover/generated/api/Models/Api30/Resource.PowerShell.cs new file mode 100644 index 000000000000..670b99f5b408 --- /dev/null +++ b/src/StorageMover/generated/api/Models/Api30/Resource.PowerShell.cs @@ -0,0 +1,238 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30 +{ + using Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.PowerShell; + + /// + /// Common fields that are returned in the response for all Azure Resource Manager resources + /// + [System.ComponentModel.TypeConverter(typeof(ResourceTypeConverter))] + public partial class Resource + { + + /// + /// AfterDeserializeDictionary will be called after the deserialization has finished, allowing customization of the + /// object before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The global::System.Collections.IDictionary content that should be used. + + partial void AfterDeserializeDictionary(global::System.Collections.IDictionary content); + + /// + /// AfterDeserializePSObject will be called after the deserialization has finished, allowing customization of the object + /// before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The global::System.Management.Automation.PSObject content that should be used. + + partial void AfterDeserializePSObject(global::System.Management.Automation.PSObject content); + + /// + /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization + /// of the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The global::System.Collections.IDictionary content that should be used. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeDeserializeDictionary(global::System.Collections.IDictionary content, ref bool returnNow); + + /// + /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization + /// of the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The global::System.Management.Automation.PSObject content that should be used. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); + + /// + /// OverrideToString will be called if it is implemented. Implement this method in a partial class to enable this behavior + /// + /// /// instance serialized to a string, normally it is a Json + /// /// set returnNow to true if you provide a customized OverrideToString function + + partial void OverrideToString(ref string stringResult, ref bool returnNow); + + /// + /// Deserializes a into an instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + /// + /// an instance of . + /// + public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IResource DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new Resource(content); + } + + /// + /// Deserializes a into an instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + /// + /// an instance of . + /// + public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IResource DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new Resource(content); + } + + /// + /// Creates a new instance of , deserializing the content from a json string. + /// + /// a string containing a JSON serialized instance of this model. + /// an instance of the model class. + public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IResource FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonNode.Parse(jsonText)); + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal Resource(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("SystemData")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IResourceInternal)this).SystemData = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.ISystemData) content.GetValueForProperty("SystemData",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IResourceInternal)this).SystemData, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.SystemDataTypeConverter.ConvertFrom); + } + if (content.Contains("Id")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IResourceInternal)this).Id, global::System.Convert.ToString); + } + if (content.Contains("Name")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IResourceInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IResourceInternal)this).Name, global::System.Convert.ToString); + } + if (content.Contains("Type")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IResourceInternal)this).Type, global::System.Convert.ToString); + } + if (content.Contains("SystemDataCreatedBy")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IResourceInternal)this).SystemDataCreatedBy = (string) content.GetValueForProperty("SystemDataCreatedBy",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IResourceInternal)this).SystemDataCreatedBy, global::System.Convert.ToString); + } + if (content.Contains("SystemDataCreatedAt")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IResourceInternal)this).SystemDataCreatedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataCreatedAt",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IResourceInternal)this).SystemDataCreatedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + } + if (content.Contains("SystemDataCreatedByType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IResourceInternal)this).SystemDataCreatedByType = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.CreatedByType?) content.GetValueForProperty("SystemDataCreatedByType",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IResourceInternal)this).SystemDataCreatedByType, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.CreatedByType.CreateFrom); + } + if (content.Contains("SystemDataLastModifiedBy")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IResourceInternal)this).SystemDataLastModifiedBy = (string) content.GetValueForProperty("SystemDataLastModifiedBy",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IResourceInternal)this).SystemDataLastModifiedBy, global::System.Convert.ToString); + } + if (content.Contains("SystemDataLastModifiedByType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IResourceInternal)this).SystemDataLastModifiedByType = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.CreatedByType?) content.GetValueForProperty("SystemDataLastModifiedByType",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IResourceInternal)this).SystemDataLastModifiedByType, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.CreatedByType.CreateFrom); + } + if (content.Contains("SystemDataLastModifiedAt")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IResourceInternal)this).SystemDataLastModifiedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataLastModifiedAt",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IResourceInternal)this).SystemDataLastModifiedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + } + AfterDeserializeDictionary(content); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + internal Resource(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("SystemData")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IResourceInternal)this).SystemData = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.ISystemData) content.GetValueForProperty("SystemData",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IResourceInternal)this).SystemData, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.SystemDataTypeConverter.ConvertFrom); + } + if (content.Contains("Id")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IResourceInternal)this).Id, global::System.Convert.ToString); + } + if (content.Contains("Name")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IResourceInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IResourceInternal)this).Name, global::System.Convert.ToString); + } + if (content.Contains("Type")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IResourceInternal)this).Type, global::System.Convert.ToString); + } + if (content.Contains("SystemDataCreatedBy")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IResourceInternal)this).SystemDataCreatedBy = (string) content.GetValueForProperty("SystemDataCreatedBy",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IResourceInternal)this).SystemDataCreatedBy, global::System.Convert.ToString); + } + if (content.Contains("SystemDataCreatedAt")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IResourceInternal)this).SystemDataCreatedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataCreatedAt",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IResourceInternal)this).SystemDataCreatedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + } + if (content.Contains("SystemDataCreatedByType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IResourceInternal)this).SystemDataCreatedByType = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.CreatedByType?) content.GetValueForProperty("SystemDataCreatedByType",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IResourceInternal)this).SystemDataCreatedByType, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.CreatedByType.CreateFrom); + } + if (content.Contains("SystemDataLastModifiedBy")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IResourceInternal)this).SystemDataLastModifiedBy = (string) content.GetValueForProperty("SystemDataLastModifiedBy",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IResourceInternal)this).SystemDataLastModifiedBy, global::System.Convert.ToString); + } + if (content.Contains("SystemDataLastModifiedByType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IResourceInternal)this).SystemDataLastModifiedByType = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.CreatedByType?) content.GetValueForProperty("SystemDataLastModifiedByType",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IResourceInternal)this).SystemDataLastModifiedByType, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.CreatedByType.CreateFrom); + } + if (content.Contains("SystemDataLastModifiedAt")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IResourceInternal)this).SystemDataLastModifiedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataLastModifiedAt",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IResourceInternal)this).SystemDataLastModifiedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + } + AfterDeserializePSObject(content); + } + + /// Serializes this instance to a json string. + + /// a containing this model serialized to JSON text. + public string ToJsonString() => ToJson(null, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.SerializationMode.IncludeAll)?.ToString(); + + public override string ToString() + { + var returnNow = false; + var result = global::System.String.Empty; + OverrideToString(ref result, ref returnNow); + if (returnNow) + { + return result; + } + return ToJsonString(); + } + } + /// Common fields that are returned in the response for all Azure Resource Manager resources + [System.ComponentModel.TypeConverter(typeof(ResourceTypeConverter))] + public partial interface IResource + + { + + } +} \ No newline at end of file diff --git a/src/StorageMover/generated/api/Models/Api20/Resource.TypeConverter.cs b/src/StorageMover/generated/api/Models/Api30/Resource.TypeConverter.cs similarity index 98% rename from src/StorageMover/generated/api/Models/Api20/Resource.TypeConverter.cs rename to src/StorageMover/generated/api/Models/Api30/Resource.TypeConverter.cs index 8fae88d1b644..19755cf45120 100644 --- a/src/StorageMover/generated/api/Models/Api20/Resource.TypeConverter.cs +++ b/src/StorageMover/generated/api/Models/Api30/Resource.TypeConverter.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20 +namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30 { using Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.PowerShell; @@ -105,14 +105,14 @@ public static bool CanConvertFrom(dynamic sourceValue) /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.IResource ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IResource ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.IResource).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IResource).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/StorageMover/generated/api/Models/Api20230301/Endpoint.cs b/src/StorageMover/generated/api/Models/Api30/Resource.cs similarity index 59% rename from src/StorageMover/generated/api/Models/Api20230301/Endpoint.cs rename to src/StorageMover/generated/api/Models/Api30/Resource.cs index 5ac3bbfe0173..377ccafbe675 100644 --- a/src/StorageMover/generated/api/Models/Api20230301/Endpoint.cs +++ b/src/StorageMover/generated/api/Models/Api30/Resource.cs @@ -3,122 +3,116 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301 +namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30 { using static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Extensions; /// - /// The Endpoint resource, which contains information about file sources and targets. + /// Common fields that are returned in the response for all Azure Resource Manager resources /// - [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.DoNotFormat] - public partial class Endpoint : - Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IEndpoint, - Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IEndpointInternal, - Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.IValidates + public partial class Resource : + Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IResource, + Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IResourceInternal { - /// - /// Backing field for Inherited model - /// - private Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.IResource __resource = new Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.Resource(); + + /// Backing field for property. + private string _id; /// /// Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} /// - [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Origin(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.PropertyOrigin.Inherited)] - public string Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.IResourceInternal)__resource).Id; } + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Origin(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.PropertyOrigin.Owned)] + public string Id { get => this._id; } /// Internal Acessors for Id - string Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.IResourceInternal)__resource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.IResourceInternal)__resource).Id = value; } + string Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IResourceInternal.Id { get => this._id; set { {_id = value;} } } /// Internal Acessors for Name - string Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.IResourceInternal)__resource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.IResourceInternal)__resource).Name = value; } - - /// Internal Acessors for Type - string Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.IResourceInternal)__resource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.IResourceInternal)__resource).Type = value; } + string Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IResourceInternal.Name { get => this._name; set { {_name = value;} } } /// Internal Acessors for SystemData - Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.ISystemData Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IEndpointInternal.SystemData { get => (this._systemData = this._systemData ?? new Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.SystemData()); set { {_systemData = value;} } } + Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.ISystemData Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IResourceInternal.SystemData { get => (this._systemData = this._systemData ?? new Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.SystemData()); set { {_systemData = value;} } } - /// The name of the resource - [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Origin(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.PropertyOrigin.Inherited)] - public string Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.IResourceInternal)__resource).Name; } + /// Internal Acessors for Type + string Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IResourceInternal.Type { get => this._type; set { {_type = value;} } } - /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IEndpointBaseProperties _property; + /// Backing field for property. + private string _name; - /// The resource specific properties for the Storage Mover resource. + /// The name of the resource [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Origin(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.PropertyOrigin.Owned)] - public Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IEndpointBaseProperties Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.EndpointBaseProperties()); set => this._property = value; } + public string Name { get => this._name; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.ISystemData _systemData; + private Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.ISystemData _systemData; - /// Resource system metadata. + /// + /// Azure Resource Manager metadata containing createdBy and modifiedBy information. + /// [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Origin(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.PropertyOrigin.Owned)] - internal Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.ISystemData SystemData { get => (this._systemData = this._systemData ?? new Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.SystemData()); } + internal Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.ISystemData SystemData { get => (this._systemData = this._systemData ?? new Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.SystemData()); } /// The timestamp of resource creation (UTC). [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Origin(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.PropertyOrigin.Inlined)] - public global::System.DateTime? SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.ISystemDataInternal)SystemData).CreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.ISystemDataInternal)SystemData).CreatedAt = value ?? default(global::System.DateTime); } + public global::System.DateTime? SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.ISystemDataInternal)SystemData).CreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.ISystemDataInternal)SystemData).CreatedAt = value ?? default(global::System.DateTime); } /// The identity that created the resource. [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Origin(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.PropertyOrigin.Inlined)] - public string SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.ISystemDataInternal)SystemData).CreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.ISystemDataInternal)SystemData).CreatedBy = value ?? null; } + public string SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.ISystemDataInternal)SystemData).CreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.ISystemDataInternal)SystemData).CreatedBy = value ?? null; } /// The type of identity that created the resource. [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Origin(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.PropertyOrigin.Inlined)] - public Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.CreatedByType? SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.ISystemDataInternal)SystemData).CreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.ISystemDataInternal)SystemData).CreatedByType = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.CreatedByType)""); } + public Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.CreatedByType? SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.ISystemDataInternal)SystemData).CreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.ISystemDataInternal)SystemData).CreatedByType = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.CreatedByType)""); } /// The timestamp of resource last modification (UTC) [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Origin(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.PropertyOrigin.Inlined)] - public global::System.DateTime? SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.ISystemDataInternal)SystemData).LastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.ISystemDataInternal)SystemData).LastModifiedAt = value ?? default(global::System.DateTime); } + public global::System.DateTime? SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.ISystemDataInternal)SystemData).LastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.ISystemDataInternal)SystemData).LastModifiedAt = value ?? default(global::System.DateTime); } /// The identity that last modified the resource. [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Origin(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.PropertyOrigin.Inlined)] - public string SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.ISystemDataInternal)SystemData).LastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.ISystemDataInternal)SystemData).LastModifiedBy = value ?? null; } + public string SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.ISystemDataInternal)SystemData).LastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.ISystemDataInternal)SystemData).LastModifiedBy = value ?? null; } /// The type of identity that last modified the resource. [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Origin(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.PropertyOrigin.Inlined)] - public Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.CreatedByType? SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.ISystemDataInternal)SystemData).LastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.ISystemDataInternal)SystemData).LastModifiedByType = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.CreatedByType)""); } + public Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.CreatedByType? SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.ISystemDataInternal)SystemData).LastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.ISystemDataInternal)SystemData).LastModifiedByType = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.CreatedByType)""); } + + /// Backing field for property. + private string _type; /// /// The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" /// - [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Origin(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.PropertyOrigin.Inherited)] - public string Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.IResourceInternal)__resource).Type; } + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Origin(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.PropertyOrigin.Owned)] + public string Type { get => this._type; } - /// Creates an new instance. - public Endpoint() + /// Creates an new instance. + public Resource() { } - - /// Validates that this object meets the validation criteria. - /// an instance that will receive validation - /// events. - /// - /// A that will be complete when validation is completed. - /// - public async global::System.Threading.Tasks.Task Validate(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.IEventListener eventListener) - { - await eventListener.AssertNotNull(nameof(__resource), __resource); - await eventListener.AssertObjectIsValid(nameof(__resource), __resource); - } } - /// The Endpoint resource, which contains information about file sources and targets. - public partial interface IEndpoint : - Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.IJsonSerializable, - Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.IResource + /// Common fields that are returned in the response for all Azure Resource Manager resources + public partial interface IResource : + Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.IJsonSerializable { - /// The resource specific properties for the Storage Mover resource. + /// + /// Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} + /// [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Info( - Required = true, - ReadOnly = false, - Description = @"The resource specific properties for the Storage Mover resource.", - SerializedName = @"properties", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IEndpointBaseProperties) })] - Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IEndpointBaseProperties Property { get; set; } + Required = false, + ReadOnly = true, + Description = @"Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}", + SerializedName = @"id", + PossibleTypes = new [] { typeof(string) })] + string Id { get; } + /// The name of the resource + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"The name of the resource", + SerializedName = @"name", + PossibleTypes = new [] { typeof(string) })] + string Name { get; } /// The timestamp of resource creation (UTC). [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Info( Required = false, @@ -167,16 +161,32 @@ public partial interface IEndpoint : SerializedName = @"lastModifiedByType", PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.CreatedByType) })] Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.CreatedByType? SystemDataLastModifiedByType { get; set; } + /// + /// The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" + /// + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"The type of the resource. E.g. ""Microsoft.Compute/virtualMachines"" or ""Microsoft.Storage/storageAccounts""", + SerializedName = @"type", + PossibleTypes = new [] { typeof(string) })] + string Type { get; } } - /// The Endpoint resource, which contains information about file sources and targets. - internal partial interface IEndpointInternal : - Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.IResourceInternal + /// Common fields that are returned in the response for all Azure Resource Manager resources + internal partial interface IResourceInternal + { - /// The resource specific properties for the Storage Mover resource. - Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IEndpointBaseProperties Property { get; set; } - /// Resource system metadata. - Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.ISystemData SystemData { get; set; } + /// + /// Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} + /// + string Id { get; set; } + /// The name of the resource + string Name { get; set; } + /// + /// Azure Resource Manager metadata containing createdBy and modifiedBy information. + /// + Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.ISystemData SystemData { get; set; } /// The timestamp of resource creation (UTC). global::System.DateTime? SystemDataCreatedAt { get; set; } /// The identity that created the resource. @@ -189,6 +199,10 @@ internal partial interface IEndpointInternal : string SystemDataLastModifiedBy { get; set; } /// The type of identity that last modified the resource. Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.CreatedByType? SystemDataLastModifiedByType { get; set; } + /// + /// The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" + /// + string Type { get; set; } } } \ No newline at end of file diff --git a/src/StorageMover/generated/api/Models/Api20/Resource.json.cs b/src/StorageMover/generated/api/Models/Api30/Resource.json.cs similarity index 90% rename from src/StorageMover/generated/api/Models/Api20/Resource.json.cs rename to src/StorageMover/generated/api/Models/Api30/Resource.json.cs index 611ea61ed0d9..dcd07d2ad393 100644 --- a/src/StorageMover/generated/api/Models/Api20/Resource.json.cs +++ b/src/StorageMover/generated/api/Models/Api30/Resource.json.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20 +namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30 { using static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Extensions; @@ -56,13 +56,13 @@ public partial class Resource partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.IResource. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IResource. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.IResource. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IResource. /// - public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.IResource FromJson(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IResource FromJson(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonObject json ? new Resource(json) : null; } @@ -79,6 +79,7 @@ internal Resource(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.J { return; } + {_systemData = If( json?.PropertyT("systemData"), out var __jsonSystemData) ? Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.SystemData.FromJson(__jsonSystemData) : SystemData;} {_id = If( json?.PropertyT("id"), out var __jsonId) ? (string)__jsonId : (string)Id;} {_name = If( json?.PropertyT("name"), out var __jsonName) ? (string)__jsonName : (string)Name;} {_type = If( json?.PropertyT("type"), out var __jsonType) ? (string)__jsonType : (string)Type;} @@ -105,6 +106,10 @@ public Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonNode ToJ return container; } if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.SerializationMode.IncludeReadOnly)) + { + AddIf( null != this._systemData ? (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonNode) this._systemData.ToJson(null,serializationMode) : null, "systemData" ,container.Add ); + } + if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.SerializationMode.IncludeReadOnly)) { AddIf( null != (((object)this._id)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonString(this._id.ToString()) : null, "id" ,container.Add ); } diff --git a/src/StorageMover/generated/api/Models/Api20/SystemData.PowerShell.cs b/src/StorageMover/generated/api/Models/Api30/SystemData.PowerShell.cs similarity index 85% rename from src/StorageMover/generated/api/Models/Api20/SystemData.PowerShell.cs rename to src/StorageMover/generated/api/Models/Api30/SystemData.PowerShell.cs index 14e6f8e80699..5b31c2823c9c 100644 --- a/src/StorageMover/generated/api/Models/Api20/SystemData.PowerShell.cs +++ b/src/StorageMover/generated/api/Models/Api30/SystemData.PowerShell.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20 +namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30 { using Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.PowerShell; @@ -63,27 +63,27 @@ public partial class SystemData partial void OverrideToString(ref string stringResult, ref bool returnNow); /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Collections.IDictionary content that should be used. /// - /// an instance of . + /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.ISystemData DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.ISystemData DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new SystemData(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. /// - /// an instance of . + /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.ISystemData DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.ISystemData DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new SystemData(content); } @@ -93,10 +93,10 @@ public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.ISyst /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.ISystemData FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.ISystemData FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonNode.Parse(jsonText)); /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. @@ -111,33 +111,33 @@ internal SystemData(global::System.Collections.IDictionary content) // actually deserialize if (content.Contains("CreatedBy")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.ISystemDataInternal)this).CreatedBy = (string) content.GetValueForProperty("CreatedBy",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.ISystemDataInternal)this).CreatedBy, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.ISystemDataInternal)this).CreatedBy = (string) content.GetValueForProperty("CreatedBy",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.ISystemDataInternal)this).CreatedBy, global::System.Convert.ToString); } if (content.Contains("CreatedByType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.ISystemDataInternal)this).CreatedByType = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.CreatedByType?) content.GetValueForProperty("CreatedByType",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.ISystemDataInternal)this).CreatedByType, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.CreatedByType.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.ISystemDataInternal)this).CreatedByType = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.CreatedByType?) content.GetValueForProperty("CreatedByType",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.ISystemDataInternal)this).CreatedByType, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.CreatedByType.CreateFrom); } if (content.Contains("CreatedAt")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.ISystemDataInternal)this).CreatedAt = (global::System.DateTime?) content.GetValueForProperty("CreatedAt",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.ISystemDataInternal)this).CreatedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.ISystemDataInternal)this).CreatedAt = (global::System.DateTime?) content.GetValueForProperty("CreatedAt",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.ISystemDataInternal)this).CreatedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); } if (content.Contains("LastModifiedBy")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.ISystemDataInternal)this).LastModifiedBy = (string) content.GetValueForProperty("LastModifiedBy",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.ISystemDataInternal)this).LastModifiedBy, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.ISystemDataInternal)this).LastModifiedBy = (string) content.GetValueForProperty("LastModifiedBy",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.ISystemDataInternal)this).LastModifiedBy, global::System.Convert.ToString); } if (content.Contains("LastModifiedByType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.ISystemDataInternal)this).LastModifiedByType = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.CreatedByType?) content.GetValueForProperty("LastModifiedByType",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.ISystemDataInternal)this).LastModifiedByType, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.CreatedByType.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.ISystemDataInternal)this).LastModifiedByType = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.CreatedByType?) content.GetValueForProperty("LastModifiedByType",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.ISystemDataInternal)this).LastModifiedByType, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.CreatedByType.CreateFrom); } if (content.Contains("LastModifiedAt")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.ISystemDataInternal)this).LastModifiedAt = (global::System.DateTime?) content.GetValueForProperty("LastModifiedAt",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.ISystemDataInternal)this).LastModifiedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.ISystemDataInternal)this).LastModifiedAt = (global::System.DateTime?) content.GetValueForProperty("LastModifiedAt",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.ISystemDataInternal)this).LastModifiedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); } AfterDeserializeDictionary(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -152,27 +152,27 @@ internal SystemData(global::System.Management.Automation.PSObject content) // actually deserialize if (content.Contains("CreatedBy")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.ISystemDataInternal)this).CreatedBy = (string) content.GetValueForProperty("CreatedBy",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.ISystemDataInternal)this).CreatedBy, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.ISystemDataInternal)this).CreatedBy = (string) content.GetValueForProperty("CreatedBy",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.ISystemDataInternal)this).CreatedBy, global::System.Convert.ToString); } if (content.Contains("CreatedByType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.ISystemDataInternal)this).CreatedByType = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.CreatedByType?) content.GetValueForProperty("CreatedByType",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.ISystemDataInternal)this).CreatedByType, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.CreatedByType.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.ISystemDataInternal)this).CreatedByType = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.CreatedByType?) content.GetValueForProperty("CreatedByType",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.ISystemDataInternal)this).CreatedByType, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.CreatedByType.CreateFrom); } if (content.Contains("CreatedAt")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.ISystemDataInternal)this).CreatedAt = (global::System.DateTime?) content.GetValueForProperty("CreatedAt",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.ISystemDataInternal)this).CreatedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.ISystemDataInternal)this).CreatedAt = (global::System.DateTime?) content.GetValueForProperty("CreatedAt",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.ISystemDataInternal)this).CreatedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); } if (content.Contains("LastModifiedBy")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.ISystemDataInternal)this).LastModifiedBy = (string) content.GetValueForProperty("LastModifiedBy",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.ISystemDataInternal)this).LastModifiedBy, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.ISystemDataInternal)this).LastModifiedBy = (string) content.GetValueForProperty("LastModifiedBy",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.ISystemDataInternal)this).LastModifiedBy, global::System.Convert.ToString); } if (content.Contains("LastModifiedByType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.ISystemDataInternal)this).LastModifiedByType = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.CreatedByType?) content.GetValueForProperty("LastModifiedByType",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.ISystemDataInternal)this).LastModifiedByType, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.CreatedByType.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.ISystemDataInternal)this).LastModifiedByType = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.CreatedByType?) content.GetValueForProperty("LastModifiedByType",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.ISystemDataInternal)this).LastModifiedByType, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.CreatedByType.CreateFrom); } if (content.Contains("LastModifiedAt")) { - ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.ISystemDataInternal)this).LastModifiedAt = (global::System.DateTime?) content.GetValueForProperty("LastModifiedAt",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.ISystemDataInternal)this).LastModifiedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.ISystemDataInternal)this).LastModifiedAt = (global::System.DateTime?) content.GetValueForProperty("LastModifiedAt",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.ISystemDataInternal)this).LastModifiedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); } AfterDeserializePSObject(content); } diff --git a/src/StorageMover/generated/api/Models/Api20/SystemData.TypeConverter.cs b/src/StorageMover/generated/api/Models/Api30/SystemData.TypeConverter.cs similarity index 98% rename from src/StorageMover/generated/api/Models/Api20/SystemData.TypeConverter.cs rename to src/StorageMover/generated/api/Models/Api30/SystemData.TypeConverter.cs index 2e31e02b9d79..65a98b913cc2 100644 --- a/src/StorageMover/generated/api/Models/Api20/SystemData.TypeConverter.cs +++ b/src/StorageMover/generated/api/Models/Api30/SystemData.TypeConverter.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20 +namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30 { using Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.PowerShell; @@ -105,14 +105,14 @@ public static bool CanConvertFrom(dynamic sourceValue) /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.ISystemData ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.ISystemData ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.ISystemData).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.ISystemData).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/StorageMover/generated/api/Models/Api20/SystemData.cs b/src/StorageMover/generated/api/Models/Api30/SystemData.cs similarity index 99% rename from src/StorageMover/generated/api/Models/Api20/SystemData.cs rename to src/StorageMover/generated/api/Models/Api30/SystemData.cs index 361e8a1e7206..be8b021531ef 100644 --- a/src/StorageMover/generated/api/Models/Api20/SystemData.cs +++ b/src/StorageMover/generated/api/Models/Api30/SystemData.cs @@ -3,14 +3,14 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20 +namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30 { using static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Extensions; /// Metadata pertaining to creation and last modification of the resource. public partial class SystemData : - Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.ISystemData, - Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.ISystemDataInternal + Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.ISystemData, + Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.ISystemDataInternal { /// Backing field for property. diff --git a/src/StorageMover/generated/api/Models/Api20/SystemData.json.cs b/src/StorageMover/generated/api/Models/Api30/SystemData.json.cs similarity index 98% rename from src/StorageMover/generated/api/Models/Api20/SystemData.json.cs rename to src/StorageMover/generated/api/Models/Api30/SystemData.json.cs index 8a4851581545..ee33dc39d6e5 100644 --- a/src/StorageMover/generated/api/Models/Api20/SystemData.json.cs +++ b/src/StorageMover/generated/api/Models/Api30/SystemData.json.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20 +namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30 { using static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Extensions; @@ -54,13 +54,13 @@ public partial class SystemData partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.ISystemData. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.ISystemData. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.ISystemData. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.ISystemData. /// - public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.ISystemData FromJson(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.ISystemData FromJson(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonObject json ? new SystemData(json) : null; } diff --git a/src/StorageMover/generated/api/Models/Api30/TrackedResource.PowerShell.cs b/src/StorageMover/generated/api/Models/Api30/TrackedResource.PowerShell.cs new file mode 100644 index 000000000000..b8f5c3bd05cf --- /dev/null +++ b/src/StorageMover/generated/api/Models/Api30/TrackedResource.PowerShell.cs @@ -0,0 +1,254 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30 +{ + using Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.PowerShell; + + /// + /// The resource model definition for an Azure Resource Manager tracked top level resource which has 'tags' and a 'location' + /// + [System.ComponentModel.TypeConverter(typeof(TrackedResourceTypeConverter))] + public partial class TrackedResource + { + + /// + /// AfterDeserializeDictionary will be called after the deserialization has finished, allowing customization of the + /// object before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The global::System.Collections.IDictionary content that should be used. + + partial void AfterDeserializeDictionary(global::System.Collections.IDictionary content); + + /// + /// AfterDeserializePSObject will be called after the deserialization has finished, allowing customization of the object + /// before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The global::System.Management.Automation.PSObject content that should be used. + + partial void AfterDeserializePSObject(global::System.Management.Automation.PSObject content); + + /// + /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization + /// of the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The global::System.Collections.IDictionary content that should be used. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeDeserializeDictionary(global::System.Collections.IDictionary content, ref bool returnNow); + + /// + /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization + /// of the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The global::System.Management.Automation.PSObject content that should be used. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); + + /// + /// OverrideToString will be called if it is implemented. Implement this method in a partial class to enable this behavior + /// + /// /// instance serialized to a string, normally it is a Json + /// /// set returnNow to true if you provide a customized OverrideToString function + + partial void OverrideToString(ref string stringResult, ref bool returnNow); + + /// + /// Deserializes a into an instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + /// + /// an instance of . + /// + public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.ITrackedResource DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new TrackedResource(content); + } + + /// + /// Deserializes a into an instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + /// + /// an instance of . + /// + public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.ITrackedResource DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new TrackedResource(content); + } + + /// + /// Creates a new instance of , deserializing the content from a json string. + /// + /// a string containing a JSON serialized instance of this model. + /// an instance of the model class. + public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.ITrackedResource FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonNode.Parse(jsonText)); + + /// Serializes this instance to a json string. + + /// a containing this model serialized to JSON text. + public string ToJsonString() => ToJson(null, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.SerializationMode.IncludeAll)?.ToString(); + + public override string ToString() + { + var returnNow = false; + var result = global::System.String.Empty; + OverrideToString(ref result, ref returnNow); + if (returnNow) + { + return result; + } + return ToJsonString(); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal TrackedResource(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("Tag")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.ITrackedResourceInternal)this).Tag = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.ITrackedResourceTags) content.GetValueForProperty("Tag",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.ITrackedResourceInternal)this).Tag, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.TrackedResourceTagsTypeConverter.ConvertFrom); + } + if (content.Contains("Location")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.ITrackedResourceInternal)this).Location = (string) content.GetValueForProperty("Location",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.ITrackedResourceInternal)this).Location, global::System.Convert.ToString); + } + if (content.Contains("SystemDataCreatedBy")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IResourceInternal)this).SystemDataCreatedBy = (string) content.GetValueForProperty("SystemDataCreatedBy",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IResourceInternal)this).SystemDataCreatedBy, global::System.Convert.ToString); + } + if (content.Contains("SystemDataCreatedAt")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IResourceInternal)this).SystemDataCreatedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataCreatedAt",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IResourceInternal)this).SystemDataCreatedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + } + if (content.Contains("SystemDataCreatedByType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IResourceInternal)this).SystemDataCreatedByType = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.CreatedByType?) content.GetValueForProperty("SystemDataCreatedByType",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IResourceInternal)this).SystemDataCreatedByType, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.CreatedByType.CreateFrom); + } + if (content.Contains("SystemDataLastModifiedBy")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IResourceInternal)this).SystemDataLastModifiedBy = (string) content.GetValueForProperty("SystemDataLastModifiedBy",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IResourceInternal)this).SystemDataLastModifiedBy, global::System.Convert.ToString); + } + if (content.Contains("SystemDataLastModifiedByType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IResourceInternal)this).SystemDataLastModifiedByType = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.CreatedByType?) content.GetValueForProperty("SystemDataLastModifiedByType",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IResourceInternal)this).SystemDataLastModifiedByType, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.CreatedByType.CreateFrom); + } + if (content.Contains("SystemDataLastModifiedAt")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IResourceInternal)this).SystemDataLastModifiedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataLastModifiedAt",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IResourceInternal)this).SystemDataLastModifiedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + } + if (content.Contains("SystemData")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IResourceInternal)this).SystemData = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.ISystemData) content.GetValueForProperty("SystemData",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IResourceInternal)this).SystemData, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.SystemDataTypeConverter.ConvertFrom); + } + if (content.Contains("Id")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IResourceInternal)this).Id, global::System.Convert.ToString); + } + if (content.Contains("Name")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IResourceInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IResourceInternal)this).Name, global::System.Convert.ToString); + } + if (content.Contains("Type")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IResourceInternal)this).Type, global::System.Convert.ToString); + } + AfterDeserializeDictionary(content); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + internal TrackedResource(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("Tag")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.ITrackedResourceInternal)this).Tag = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.ITrackedResourceTags) content.GetValueForProperty("Tag",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.ITrackedResourceInternal)this).Tag, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.TrackedResourceTagsTypeConverter.ConvertFrom); + } + if (content.Contains("Location")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.ITrackedResourceInternal)this).Location = (string) content.GetValueForProperty("Location",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.ITrackedResourceInternal)this).Location, global::System.Convert.ToString); + } + if (content.Contains("SystemDataCreatedBy")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IResourceInternal)this).SystemDataCreatedBy = (string) content.GetValueForProperty("SystemDataCreatedBy",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IResourceInternal)this).SystemDataCreatedBy, global::System.Convert.ToString); + } + if (content.Contains("SystemDataCreatedAt")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IResourceInternal)this).SystemDataCreatedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataCreatedAt",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IResourceInternal)this).SystemDataCreatedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + } + if (content.Contains("SystemDataCreatedByType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IResourceInternal)this).SystemDataCreatedByType = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.CreatedByType?) content.GetValueForProperty("SystemDataCreatedByType",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IResourceInternal)this).SystemDataCreatedByType, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.CreatedByType.CreateFrom); + } + if (content.Contains("SystemDataLastModifiedBy")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IResourceInternal)this).SystemDataLastModifiedBy = (string) content.GetValueForProperty("SystemDataLastModifiedBy",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IResourceInternal)this).SystemDataLastModifiedBy, global::System.Convert.ToString); + } + if (content.Contains("SystemDataLastModifiedByType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IResourceInternal)this).SystemDataLastModifiedByType = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.CreatedByType?) content.GetValueForProperty("SystemDataLastModifiedByType",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IResourceInternal)this).SystemDataLastModifiedByType, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.CreatedByType.CreateFrom); + } + if (content.Contains("SystemDataLastModifiedAt")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IResourceInternal)this).SystemDataLastModifiedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataLastModifiedAt",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IResourceInternal)this).SystemDataLastModifiedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + } + if (content.Contains("SystemData")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IResourceInternal)this).SystemData = (Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.ISystemData) content.GetValueForProperty("SystemData",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IResourceInternal)this).SystemData, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.SystemDataTypeConverter.ConvertFrom); + } + if (content.Contains("Id")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IResourceInternal)this).Id, global::System.Convert.ToString); + } + if (content.Contains("Name")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IResourceInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IResourceInternal)this).Name, global::System.Convert.ToString); + } + if (content.Contains("Type")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IResourceInternal)this).Type, global::System.Convert.ToString); + } + AfterDeserializePSObject(content); + } + } + /// The resource model definition for an Azure Resource Manager tracked top level resource which has 'tags' and a 'location' + [System.ComponentModel.TypeConverter(typeof(TrackedResourceTypeConverter))] + public partial interface ITrackedResource + + { + + } +} \ No newline at end of file diff --git a/src/StorageMover/generated/api/Models/Api20/TrackedResource.TypeConverter.cs b/src/StorageMover/generated/api/Models/Api30/TrackedResource.TypeConverter.cs similarity index 98% rename from src/StorageMover/generated/api/Models/Api20/TrackedResource.TypeConverter.cs rename to src/StorageMover/generated/api/Models/Api30/TrackedResource.TypeConverter.cs index 7cd6c96f367c..8e5bbf8974d3 100644 --- a/src/StorageMover/generated/api/Models/Api20/TrackedResource.TypeConverter.cs +++ b/src/StorageMover/generated/api/Models/Api30/TrackedResource.TypeConverter.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20 +namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30 { using Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.PowerShell; @@ -106,14 +106,14 @@ public static bool CanConvertFrom(dynamic sourceValue) /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.ITrackedResource ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.ITrackedResource ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.ITrackedResource).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.ITrackedResource).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/StorageMover/generated/api/Models/Api20/TrackedResource.cs b/src/StorageMover/generated/api/Models/Api30/TrackedResource.cs similarity index 50% rename from src/StorageMover/generated/api/Models/Api20/TrackedResource.cs rename to src/StorageMover/generated/api/Models/Api30/TrackedResource.cs index d72733bf50c4..9a13d3a2861c 100644 --- a/src/StorageMover/generated/api/Models/Api20/TrackedResource.cs +++ b/src/StorageMover/generated/api/Models/Api30/TrackedResource.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20 +namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30 { using static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Extensions; @@ -11,21 +11,21 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20 /// The resource model definition for an Azure Resource Manager tracked top level resource which has 'tags' and a 'location' /// public partial class TrackedResource : - Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.ITrackedResource, - Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.ITrackedResourceInternal, + Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.ITrackedResource, + Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.ITrackedResourceInternal, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.IValidates { /// - /// Backing field for Inherited model /// - private Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.IResource __resource = new Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.Resource(); + private Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IResource __resource = new Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.Resource(); /// /// Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} /// [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Origin(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.PropertyOrigin.Inherited)] - public string Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.IResourceInternal)__resource).Id; } + public string Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IResourceInternal)__resource).Id; } /// Backing field for property. private string _location; @@ -35,30 +35,63 @@ public partial class TrackedResource : public string Location { get => this._location; set => this._location = value; } /// Internal Acessors for Id - string Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.IResourceInternal)__resource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.IResourceInternal)__resource).Id = value; } + string Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IResourceInternal)__resource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IResourceInternal)__resource).Id = value; } /// Internal Acessors for Name - string Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.IResourceInternal)__resource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.IResourceInternal)__resource).Name = value; } + string Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IResourceInternal)__resource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IResourceInternal)__resource).Name = value; } + + /// Internal Acessors for SystemData + Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.ISystemData Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IResourceInternal.SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IResourceInternal)__resource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IResourceInternal)__resource).SystemData = value; } /// Internal Acessors for Type - string Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.IResourceInternal)__resource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.IResourceInternal)__resource).Type = value; } + string Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IResourceInternal)__resource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IResourceInternal)__resource).Type = value; } /// The name of the resource [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Origin(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.PropertyOrigin.Inherited)] - public string Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.IResourceInternal)__resource).Name; } + public string Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IResourceInternal)__resource).Name; } + + /// + /// Azure Resource Manager metadata containing createdBy and modifiedBy information. + /// + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Origin(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.PropertyOrigin.Inherited)] + private Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.ISystemData SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IResourceInternal)__resource).SystemData; } + + /// The timestamp of resource creation (UTC). + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Origin(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.PropertyOrigin.Inherited)] + public global::System.DateTime? SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IResourceInternal)__resource).SystemDataCreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IResourceInternal)__resource).SystemDataCreatedAt = value ?? default(global::System.DateTime); } + + /// The identity that created the resource. + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Origin(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.PropertyOrigin.Inherited)] + public string SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IResourceInternal)__resource).SystemDataCreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IResourceInternal)__resource).SystemDataCreatedBy = value ?? null; } + + /// The type of identity that created the resource. + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Origin(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.PropertyOrigin.Inherited)] + public Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.CreatedByType? SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IResourceInternal)__resource).SystemDataCreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IResourceInternal)__resource).SystemDataCreatedByType = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.CreatedByType)""); } + + /// The timestamp of resource last modification (UTC) + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Origin(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.PropertyOrigin.Inherited)] + public global::System.DateTime? SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IResourceInternal)__resource).SystemDataLastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IResourceInternal)__resource).SystemDataLastModifiedAt = value ?? default(global::System.DateTime); } + + /// The identity that last modified the resource. + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Origin(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.PropertyOrigin.Inherited)] + public string SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IResourceInternal)__resource).SystemDataLastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IResourceInternal)__resource).SystemDataLastModifiedBy = value ?? null; } + + /// The type of identity that last modified the resource. + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Origin(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.PropertyOrigin.Inherited)] + public Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.CreatedByType? SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IResourceInternal)__resource).SystemDataLastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IResourceInternal)__resource).SystemDataLastModifiedByType = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.CreatedByType)""); } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.ITrackedResourceTags _tag; + private Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.ITrackedResourceTags _tag; /// Resource tags. [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Origin(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.PropertyOrigin.Owned)] - public Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.ITrackedResourceTags Tag { get => (this._tag = this._tag ?? new Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.TrackedResourceTags()); set => this._tag = value; } + public Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.ITrackedResourceTags Tag { get => (this._tag = this._tag ?? new Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.TrackedResourceTags()); set => this._tag = value; } /// /// The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" /// [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Origin(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.PropertyOrigin.Inherited)] - public string Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.IResourceInternal)__resource).Type; } + public string Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IResourceInternal)__resource).Type; } /// Creates an new instance. public TrackedResource() @@ -81,7 +114,7 @@ public TrackedResource() /// The resource model definition for an Azure Resource Manager tracked top level resource which has 'tags' and a 'location' public partial interface ITrackedResource : Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.IJsonSerializable, - Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.IResource + Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IResource { /// The geo-location where the resource lives [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Info( @@ -97,18 +130,18 @@ public partial interface ITrackedResource : ReadOnly = false, Description = @"Resource tags.", SerializedName = @"tags", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.ITrackedResourceTags) })] - Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.ITrackedResourceTags Tag { get; set; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.ITrackedResourceTags) })] + Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.ITrackedResourceTags Tag { get; set; } } /// The resource model definition for an Azure Resource Manager tracked top level resource which has 'tags' and a 'location' internal partial interface ITrackedResourceInternal : - Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.IResourceInternal + Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IResourceInternal { /// The geo-location where the resource lives string Location { get; set; } /// Resource tags. - Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.ITrackedResourceTags Tag { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.ITrackedResourceTags Tag { get; set; } } } \ No newline at end of file diff --git a/src/StorageMover/generated/api/Models/Api20/TrackedResource.json.cs b/src/StorageMover/generated/api/Models/Api30/TrackedResource.json.cs similarity index 96% rename from src/StorageMover/generated/api/Models/Api20/TrackedResource.json.cs rename to src/StorageMover/generated/api/Models/Api30/TrackedResource.json.cs index c7ab855189cd..b654462fe13a 100644 --- a/src/StorageMover/generated/api/Models/Api20/TrackedResource.json.cs +++ b/src/StorageMover/generated/api/Models/Api30/TrackedResource.json.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20 +namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30 { using static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Extensions; @@ -56,13 +56,13 @@ public partial class TrackedResource partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.ITrackedResource. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.ITrackedResource. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.ITrackedResource. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.ITrackedResource. /// - public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.ITrackedResource FromJson(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.ITrackedResource FromJson(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonObject json ? new TrackedResource(json) : null; } @@ -105,8 +105,8 @@ internal TrackedResource(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime { return; } - __resource = new Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.Resource(json); - {_tag = If( json?.PropertyT("tags"), out var __jsonTags) ? Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.TrackedResourceTags.FromJson(__jsonTags) : Tag;} + __resource = new Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.Resource(json); + {_tag = If( json?.PropertyT("tags"), out var __jsonTags) ? Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.TrackedResourceTags.FromJson(__jsonTags) : Tag;} {_location = If( json?.PropertyT("location"), out var __jsonLocation) ? (string)__jsonLocation : (string)Location;} AfterFromJson(json); } diff --git a/src/StorageMover/generated/api/Models/Api20/TrackedResourceTags.PowerShell.cs b/src/StorageMover/generated/api/Models/Api30/TrackedResourceTags.PowerShell.cs similarity index 93% rename from src/StorageMover/generated/api/Models/Api20/TrackedResourceTags.PowerShell.cs rename to src/StorageMover/generated/api/Models/Api30/TrackedResourceTags.PowerShell.cs index b1877d8a575a..05d189086f57 100644 --- a/src/StorageMover/generated/api/Models/Api20/TrackedResourceTags.PowerShell.cs +++ b/src/StorageMover/generated/api/Models/Api30/TrackedResourceTags.PowerShell.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20 +namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30 { using Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.PowerShell; @@ -63,27 +63,27 @@ public partial class TrackedResourceTags partial void OverrideToString(ref string stringResult, ref bool returnNow); /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Collections.IDictionary content that should be used. /// - /// an instance of . + /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.ITrackedResourceTags DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.ITrackedResourceTags DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new TrackedResourceTags(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. /// - /// an instance of . + /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.ITrackedResourceTags DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.ITrackedResourceTags DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new TrackedResourceTags(content); } @@ -93,7 +93,7 @@ public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.ITrac /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.ITrackedResourceTags FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.ITrackedResourceTags FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonNode.Parse(jsonText)); /// Serializes this instance to a json string. @@ -113,7 +113,7 @@ public override string ToString() } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. @@ -132,7 +132,7 @@ internal TrackedResourceTags(global::System.Collections.IDictionary content) } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. diff --git a/src/StorageMover/generated/api/Models/Api20/TrackedResourceTags.TypeConverter.cs b/src/StorageMover/generated/api/Models/Api30/TrackedResourceTags.TypeConverter.cs similarity index 98% rename from src/StorageMover/generated/api/Models/Api20/TrackedResourceTags.TypeConverter.cs rename to src/StorageMover/generated/api/Models/Api30/TrackedResourceTags.TypeConverter.cs index f17b36c410b4..20bd7cf31e65 100644 --- a/src/StorageMover/generated/api/Models/Api20/TrackedResourceTags.TypeConverter.cs +++ b/src/StorageMover/generated/api/Models/Api30/TrackedResourceTags.TypeConverter.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20 +namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30 { using Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.PowerShell; @@ -106,14 +106,14 @@ public static bool CanConvertFrom(dynamic sourceValue) /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.ITrackedResourceTags ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.ITrackedResourceTags ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.ITrackedResourceTags).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.ITrackedResourceTags).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/StorageMover/generated/api/Models/Api20/TrackedResourceTags.cs b/src/StorageMover/generated/api/Models/Api30/TrackedResourceTags.cs similarity index 94% rename from src/StorageMover/generated/api/Models/Api20/TrackedResourceTags.cs rename to src/StorageMover/generated/api/Models/Api30/TrackedResourceTags.cs index 846fd7381df1..471f53d992bd 100644 --- a/src/StorageMover/generated/api/Models/Api20/TrackedResourceTags.cs +++ b/src/StorageMover/generated/api/Models/Api30/TrackedResourceTags.cs @@ -3,14 +3,14 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20 +namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30 { using static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Extensions; /// Resource tags. public partial class TrackedResourceTags : - Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.ITrackedResourceTags, - Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.ITrackedResourceTagsInternal + Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.ITrackedResourceTags, + Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.ITrackedResourceTagsInternal { /// Creates an new instance. diff --git a/src/StorageMover/generated/api/Models/Api20/TrackedResourceTags.dictionary.cs b/src/StorageMover/generated/api/Models/Api30/TrackedResourceTags.dictionary.cs similarity index 98% rename from src/StorageMover/generated/api/Models/Api20/TrackedResourceTags.dictionary.cs rename to src/StorageMover/generated/api/Models/Api30/TrackedResourceTags.dictionary.cs index 059589ff287d..ae21f52eb4a9 100644 --- a/src/StorageMover/generated/api/Models/Api20/TrackedResourceTags.dictionary.cs +++ b/src/StorageMover/generated/api/Models/Api30/TrackedResourceTags.dictionary.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20 +namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30 { using static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Extensions; @@ -70,6 +70,6 @@ public void CopyFrom(global::System.Management.Automation.PSObject source) /// - public static implicit operator global::System.Collections.Generic.Dictionary(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.TrackedResourceTags source) => source.__additionalProperties; + public static implicit operator global::System.Collections.Generic.Dictionary(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.TrackedResourceTags source) => source.__additionalProperties; } } \ No newline at end of file diff --git a/src/StorageMover/generated/api/Models/Api20/TrackedResourceTags.json.cs b/src/StorageMover/generated/api/Models/Api30/TrackedResourceTags.json.cs similarity index 97% rename from src/StorageMover/generated/api/Models/Api20/TrackedResourceTags.json.cs rename to src/StorageMover/generated/api/Models/Api30/TrackedResourceTags.json.cs index e32ff71df53f..b6f4c665bc6f 100644 --- a/src/StorageMover/generated/api/Models/Api20/TrackedResourceTags.json.cs +++ b/src/StorageMover/generated/api/Models/Api30/TrackedResourceTags.json.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20 +namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30 { using static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Extensions; @@ -54,13 +54,13 @@ public partial class TrackedResourceTags partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.ITrackedResourceTags. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.ITrackedResourceTags. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.ITrackedResourceTags. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.ITrackedResourceTags. /// - public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.ITrackedResourceTags FromJson(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.ITrackedResourceTags FromJson(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonObject json ? new TrackedResourceTags(json) : null; } diff --git a/src/StorageMover/generated/api/StorageMover.cs b/src/StorageMover/generated/api/StorageMover.cs index 6186571fa1b7..69a63edfcddb 100644 --- a/src/StorageMover/generated/api/StorageMover.cs +++ b/src/StorageMover/generated/api/StorageMover.cs @@ -30,9 +30,9 @@ public partial class StorageMover /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task AgentsCreateOrUpdate(string subscriptionId, string resourceGroupName, string storageMoverName, string agentName, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IAgent body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task AgentsCreateOrUpdate(string subscriptionId, string resourceGroupName, string storageMoverName, string agentName, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IAgent body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.ISendAsync sender) { - var apiVersion = @"2023-03-01"; + var apiVersion = @"2023-10-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -80,9 +80,9 @@ public partial class StorageMover /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task AgentsCreateOrUpdateViaIdentity(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IAgent body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task AgentsCreateOrUpdateViaIdentity(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IAgent body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.ISendAsync sender) { - var apiVersion = @"2023-03-01"; + var apiVersion = @"2023-10-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -140,7 +140,7 @@ public partial class StorageMover /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task AgentsCreateOrUpdate_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.ISendAsync sender) + internal async global::System.Threading.Tasks.Task AgentsCreateOrUpdate_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.ISendAsync sender) { using( NoSynchronizationContext ) { @@ -158,13 +158,13 @@ public partial class StorageMover case global::System.Net.HttpStatusCode.OK: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.Agent.FromJson(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.Agent.FromJson(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } default: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.ErrorResponse.FromJson(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.ErrorResponse.FromJson(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } } @@ -192,7 +192,7 @@ public partial class StorageMover /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task AgentsCreateOrUpdate_Validate(string subscriptionId, string resourceGroupName, string storageMoverName, string agentName, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IAgent body, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.IEventListener eventListener) + internal async global::System.Threading.Tasks.Task AgentsCreateOrUpdate_Validate(string subscriptionId, string resourceGroupName, string storageMoverName, string agentName, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IAgent body, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.IEventListener eventListener) { using( NoSynchronizationContext ) { @@ -222,9 +222,9 @@ public partial class StorageMover /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task AgentsDelete(string subscriptionId, string resourceGroupName, string storageMoverName, string agentName, global::System.Func onOk, global::System.Func onNoContent, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task AgentsDelete(string subscriptionId, string resourceGroupName, string storageMoverName, string agentName, global::System.Func onOk, global::System.Func onNoContent, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.ISendAsync sender) { - var apiVersion = @"2023-03-01"; + var apiVersion = @"2023-10-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -266,9 +266,9 @@ public partial class StorageMover /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task AgentsDeleteViaIdentity(global::System.String viaIdentity, global::System.Func onOk, global::System.Func onNoContent, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task AgentsDeleteViaIdentity(global::System.String viaIdentity, global::System.Func onOk, global::System.Func onNoContent, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.ISendAsync sender) { - var apiVersion = @"2023-03-01"; + var apiVersion = @"2023-10-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -323,7 +323,7 @@ public partial class StorageMover /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task AgentsDelete_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func onOk, global::System.Func onNoContent, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.ISendAsync sender) + internal async global::System.Threading.Tasks.Task AgentsDelete_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func onOk, global::System.Func onNoContent, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.ISendAsync sender) { using( NoSynchronizationContext ) { @@ -450,7 +450,7 @@ public partial class StorageMover default: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.ErrorResponse.FromJson(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.ErrorResponse.FromJson(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } } @@ -504,9 +504,9 @@ public partial class StorageMover /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task AgentsGet(string subscriptionId, string resourceGroupName, string storageMoverName, string agentName, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task AgentsGet(string subscriptionId, string resourceGroupName, string storageMoverName, string agentName, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.ISendAsync sender) { - var apiVersion = @"2023-03-01"; + var apiVersion = @"2023-10-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -547,9 +547,9 @@ public partial class StorageMover /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task AgentsGetViaIdentity(global::System.String viaIdentity, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task AgentsGetViaIdentity(global::System.String viaIdentity, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.ISendAsync sender) { - var apiVersion = @"2023-03-01"; + var apiVersion = @"2023-10-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -603,7 +603,7 @@ public partial class StorageMover /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task AgentsGet_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.ISendAsync sender) + internal async global::System.Threading.Tasks.Task AgentsGet_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.ISendAsync sender) { using( NoSynchronizationContext ) { @@ -621,13 +621,13 @@ public partial class StorageMover case global::System.Net.HttpStatusCode.OK: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.Agent.FromJson(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.Agent.FromJson(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } default: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.ErrorResponse.FromJson(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.ErrorResponse.FromJson(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } } @@ -680,9 +680,9 @@ public partial class StorageMover /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task AgentsList(string subscriptionId, string resourceGroupName, string storageMoverName, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task AgentsList(string subscriptionId, string resourceGroupName, string storageMoverName, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.ISendAsync sender) { - var apiVersion = @"2023-03-01"; + var apiVersion = @"2023-10-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -722,9 +722,9 @@ public partial class StorageMover /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task AgentsListViaIdentity(global::System.String viaIdentity, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task AgentsListViaIdentity(global::System.String viaIdentity, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.ISendAsync sender) { - var apiVersion = @"2023-03-01"; + var apiVersion = @"2023-10-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -776,7 +776,7 @@ public partial class StorageMover /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task AgentsList_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.ISendAsync sender) + internal async global::System.Threading.Tasks.Task AgentsList_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.ISendAsync sender) { using( NoSynchronizationContext ) { @@ -794,13 +794,13 @@ public partial class StorageMover case global::System.Net.HttpStatusCode.OK: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.AgentList.FromJson(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.AgentList.FromJson(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } default: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.ErrorResponse.FromJson(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.ErrorResponse.FromJson(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } } @@ -853,9 +853,9 @@ public partial class StorageMover /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task AgentsUpdate(string subscriptionId, string resourceGroupName, string storageMoverName, string agentName, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IAgentUpdateParameters body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task AgentsUpdate(string subscriptionId, string resourceGroupName, string storageMoverName, string agentName, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IAgentUpdateParameters body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.ISendAsync sender) { - var apiVersion = @"2023-03-01"; + var apiVersion = @"2023-10-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -901,9 +901,9 @@ public partial class StorageMover /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task AgentsUpdateViaIdentity(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IAgentUpdateParameters body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task AgentsUpdateViaIdentity(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IAgentUpdateParameters body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.ISendAsync sender) { - var apiVersion = @"2023-03-01"; + var apiVersion = @"2023-10-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -961,7 +961,7 @@ public partial class StorageMover /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task AgentsUpdate_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.ISendAsync sender) + internal async global::System.Threading.Tasks.Task AgentsUpdate_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.ISendAsync sender) { using( NoSynchronizationContext ) { @@ -979,13 +979,13 @@ public partial class StorageMover case global::System.Net.HttpStatusCode.OK: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.Agent.FromJson(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.Agent.FromJson(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } default: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.ErrorResponse.FromJson(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.ErrorResponse.FromJson(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } } @@ -1013,7 +1013,7 @@ public partial class StorageMover /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task AgentsUpdate_Validate(string subscriptionId, string resourceGroupName, string storageMoverName, string agentName, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IAgentUpdateParameters body, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.IEventListener eventListener) + internal async global::System.Threading.Tasks.Task AgentsUpdate_Validate(string subscriptionId, string resourceGroupName, string storageMoverName, string agentName, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IAgentUpdateParameters body, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.IEventListener eventListener) { using( NoSynchronizationContext ) { @@ -1045,9 +1045,9 @@ public partial class StorageMover /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task EndpointsCreateOrUpdate(string subscriptionId, string resourceGroupName, string storageMoverName, string endpointName, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IEndpoint body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task EndpointsCreateOrUpdate(string subscriptionId, string resourceGroupName, string storageMoverName, string endpointName, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IEndpoint body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.ISendAsync sender) { - var apiVersion = @"2023-03-01"; + var apiVersion = @"2023-10-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -1095,9 +1095,9 @@ public partial class StorageMover /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task EndpointsCreateOrUpdateViaIdentity(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IEndpoint body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task EndpointsCreateOrUpdateViaIdentity(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IEndpoint body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.ISendAsync sender) { - var apiVersion = @"2023-03-01"; + var apiVersion = @"2023-10-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -1155,7 +1155,7 @@ public partial class StorageMover /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task EndpointsCreateOrUpdate_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.ISendAsync sender) + internal async global::System.Threading.Tasks.Task EndpointsCreateOrUpdate_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.ISendAsync sender) { using( NoSynchronizationContext ) { @@ -1173,13 +1173,13 @@ public partial class StorageMover case global::System.Net.HttpStatusCode.OK: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.Endpoint.FromJson(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.Endpoint.FromJson(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } default: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.ErrorResponse.FromJson(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.ErrorResponse.FromJson(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } } @@ -1207,7 +1207,7 @@ public partial class StorageMover /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task EndpointsCreateOrUpdate_Validate(string subscriptionId, string resourceGroupName, string storageMoverName, string endpointName, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IEndpoint body, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.IEventListener eventListener) + internal async global::System.Threading.Tasks.Task EndpointsCreateOrUpdate_Validate(string subscriptionId, string resourceGroupName, string storageMoverName, string endpointName, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IEndpoint body, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.IEventListener eventListener) { using( NoSynchronizationContext ) { @@ -1237,9 +1237,9 @@ public partial class StorageMover /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task EndpointsDelete(string subscriptionId, string resourceGroupName, string storageMoverName, string endpointName, global::System.Func onOk, global::System.Func onNoContent, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task EndpointsDelete(string subscriptionId, string resourceGroupName, string storageMoverName, string endpointName, global::System.Func onOk, global::System.Func onNoContent, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.ISendAsync sender) { - var apiVersion = @"2023-03-01"; + var apiVersion = @"2023-10-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -1281,9 +1281,9 @@ public partial class StorageMover /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task EndpointsDeleteViaIdentity(global::System.String viaIdentity, global::System.Func onOk, global::System.Func onNoContent, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task EndpointsDeleteViaIdentity(global::System.String viaIdentity, global::System.Func onOk, global::System.Func onNoContent, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.ISendAsync sender) { - var apiVersion = @"2023-03-01"; + var apiVersion = @"2023-10-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -1338,7 +1338,7 @@ public partial class StorageMover /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task EndpointsDelete_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func onOk, global::System.Func onNoContent, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.ISendAsync sender) + internal async global::System.Threading.Tasks.Task EndpointsDelete_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func onOk, global::System.Func onNoContent, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.ISendAsync sender) { using( NoSynchronizationContext ) { @@ -1465,7 +1465,7 @@ public partial class StorageMover default: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.ErrorResponse.FromJson(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.ErrorResponse.FromJson(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } } @@ -1519,9 +1519,9 @@ public partial class StorageMover /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task EndpointsGet(string subscriptionId, string resourceGroupName, string storageMoverName, string endpointName, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task EndpointsGet(string subscriptionId, string resourceGroupName, string storageMoverName, string endpointName, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.ISendAsync sender) { - var apiVersion = @"2023-03-01"; + var apiVersion = @"2023-10-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -1562,9 +1562,9 @@ public partial class StorageMover /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task EndpointsGetViaIdentity(global::System.String viaIdentity, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task EndpointsGetViaIdentity(global::System.String viaIdentity, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.ISendAsync sender) { - var apiVersion = @"2023-03-01"; + var apiVersion = @"2023-10-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -1618,7 +1618,7 @@ public partial class StorageMover /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task EndpointsGet_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.ISendAsync sender) + internal async global::System.Threading.Tasks.Task EndpointsGet_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.ISendAsync sender) { using( NoSynchronizationContext ) { @@ -1636,13 +1636,13 @@ public partial class StorageMover case global::System.Net.HttpStatusCode.OK: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.Endpoint.FromJson(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.Endpoint.FromJson(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } default: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.ErrorResponse.FromJson(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.ErrorResponse.FromJson(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } } @@ -1695,9 +1695,9 @@ public partial class StorageMover /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task EndpointsList(string subscriptionId, string resourceGroupName, string storageMoverName, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task EndpointsList(string subscriptionId, string resourceGroupName, string storageMoverName, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.ISendAsync sender) { - var apiVersion = @"2023-03-01"; + var apiVersion = @"2023-10-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -1737,9 +1737,9 @@ public partial class StorageMover /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task EndpointsListViaIdentity(global::System.String viaIdentity, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task EndpointsListViaIdentity(global::System.String viaIdentity, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.ISendAsync sender) { - var apiVersion = @"2023-03-01"; + var apiVersion = @"2023-10-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -1791,7 +1791,7 @@ public partial class StorageMover /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task EndpointsList_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.ISendAsync sender) + internal async global::System.Threading.Tasks.Task EndpointsList_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.ISendAsync sender) { using( NoSynchronizationContext ) { @@ -1809,13 +1809,13 @@ public partial class StorageMover case global::System.Net.HttpStatusCode.OK: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.EndpointList.FromJson(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.EndpointList.FromJson(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } default: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.ErrorResponse.FromJson(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.ErrorResponse.FromJson(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } } @@ -1870,9 +1870,9 @@ public partial class StorageMover /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task EndpointsUpdate(string subscriptionId, string resourceGroupName, string storageMoverName, string endpointName, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IEndpointBaseUpdateParameters body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task EndpointsUpdate(string subscriptionId, string resourceGroupName, string storageMoverName, string endpointName, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IEndpointBaseUpdateParameters body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.ISendAsync sender) { - var apiVersion = @"2023-03-01"; + var apiVersion = @"2023-10-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -1920,9 +1920,9 @@ public partial class StorageMover /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task EndpointsUpdateViaIdentity(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IEndpointBaseUpdateParameters body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task EndpointsUpdateViaIdentity(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IEndpointBaseUpdateParameters body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.ISendAsync sender) { - var apiVersion = @"2023-03-01"; + var apiVersion = @"2023-10-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -1980,7 +1980,7 @@ public partial class StorageMover /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task EndpointsUpdate_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.ISendAsync sender) + internal async global::System.Threading.Tasks.Task EndpointsUpdate_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.ISendAsync sender) { using( NoSynchronizationContext ) { @@ -1998,13 +1998,13 @@ public partial class StorageMover case global::System.Net.HttpStatusCode.OK: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.Endpoint.FromJson(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.Endpoint.FromJson(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } default: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.ErrorResponse.FromJson(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.ErrorResponse.FromJson(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } } @@ -2032,7 +2032,7 @@ public partial class StorageMover /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task EndpointsUpdate_Validate(string subscriptionId, string resourceGroupName, string storageMoverName, string endpointName, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IEndpointBaseUpdateParameters body, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.IEventListener eventListener) + internal async global::System.Threading.Tasks.Task EndpointsUpdate_Validate(string subscriptionId, string resourceGroupName, string storageMoverName, string endpointName, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IEndpointBaseUpdateParameters body, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.IEventListener eventListener) { using( NoSynchronizationContext ) { @@ -2065,9 +2065,9 @@ public partial class StorageMover /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task JobDefinitionsCreateOrUpdate(string subscriptionId, string resourceGroupName, string storageMoverName, string projectName, string jobDefinitionName, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobDefinition body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task JobDefinitionsCreateOrUpdate(string subscriptionId, string resourceGroupName, string storageMoverName, string projectName, string jobDefinitionName, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobDefinition body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.ISendAsync sender) { - var apiVersion = @"2023-03-01"; + var apiVersion = @"2023-10-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -2117,9 +2117,9 @@ public partial class StorageMover /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task JobDefinitionsCreateOrUpdateViaIdentity(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobDefinition body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task JobDefinitionsCreateOrUpdateViaIdentity(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobDefinition body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.ISendAsync sender) { - var apiVersion = @"2023-03-01"; + var apiVersion = @"2023-10-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -2180,7 +2180,7 @@ public partial class StorageMover /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task JobDefinitionsCreateOrUpdate_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.ISendAsync sender) + internal async global::System.Threading.Tasks.Task JobDefinitionsCreateOrUpdate_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.ISendAsync sender) { using( NoSynchronizationContext ) { @@ -2198,13 +2198,13 @@ public partial class StorageMover case global::System.Net.HttpStatusCode.OK: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.JobDefinition.FromJson(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.JobDefinition.FromJson(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } default: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.ErrorResponse.FromJson(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.ErrorResponse.FromJson(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } } @@ -2233,7 +2233,7 @@ public partial class StorageMover /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task JobDefinitionsCreateOrUpdate_Validate(string subscriptionId, string resourceGroupName, string storageMoverName, string projectName, string jobDefinitionName, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobDefinition body, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.IEventListener eventListener) + internal async global::System.Threading.Tasks.Task JobDefinitionsCreateOrUpdate_Validate(string subscriptionId, string resourceGroupName, string storageMoverName, string projectName, string jobDefinitionName, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobDefinition body, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.IEventListener eventListener) { using( NoSynchronizationContext ) { @@ -2265,9 +2265,9 @@ public partial class StorageMover /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task JobDefinitionsDelete(string subscriptionId, string resourceGroupName, string storageMoverName, string projectName, string jobDefinitionName, global::System.Func onOk, global::System.Func onNoContent, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task JobDefinitionsDelete(string subscriptionId, string resourceGroupName, string storageMoverName, string projectName, string jobDefinitionName, global::System.Func onOk, global::System.Func onNoContent, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.ISendAsync sender) { - var apiVersion = @"2023-03-01"; + var apiVersion = @"2023-10-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -2311,9 +2311,9 @@ public partial class StorageMover /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task JobDefinitionsDeleteViaIdentity(global::System.String viaIdentity, global::System.Func onOk, global::System.Func onNoContent, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task JobDefinitionsDeleteViaIdentity(global::System.String viaIdentity, global::System.Func onOk, global::System.Func onNoContent, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.ISendAsync sender) { - var apiVersion = @"2023-03-01"; + var apiVersion = @"2023-10-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -2371,7 +2371,7 @@ public partial class StorageMover /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task JobDefinitionsDelete_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func onOk, global::System.Func onNoContent, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.ISendAsync sender) + internal async global::System.Threading.Tasks.Task JobDefinitionsDelete_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func onOk, global::System.Func onNoContent, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.ISendAsync sender) { using( NoSynchronizationContext ) { @@ -2498,7 +2498,7 @@ public partial class StorageMover default: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.ErrorResponse.FromJson(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.ErrorResponse.FromJson(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } } @@ -2555,9 +2555,9 @@ public partial class StorageMover /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task JobDefinitionsGet(string subscriptionId, string resourceGroupName, string storageMoverName, string projectName, string jobDefinitionName, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task JobDefinitionsGet(string subscriptionId, string resourceGroupName, string storageMoverName, string projectName, string jobDefinitionName, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.ISendAsync sender) { - var apiVersion = @"2023-03-01"; + var apiVersion = @"2023-10-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -2600,9 +2600,9 @@ public partial class StorageMover /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task JobDefinitionsGetViaIdentity(global::System.String viaIdentity, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task JobDefinitionsGetViaIdentity(global::System.String viaIdentity, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.ISendAsync sender) { - var apiVersion = @"2023-03-01"; + var apiVersion = @"2023-10-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -2659,7 +2659,7 @@ public partial class StorageMover /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task JobDefinitionsGet_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.ISendAsync sender) + internal async global::System.Threading.Tasks.Task JobDefinitionsGet_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.ISendAsync sender) { using( NoSynchronizationContext ) { @@ -2677,13 +2677,13 @@ public partial class StorageMover case global::System.Net.HttpStatusCode.OK: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.JobDefinition.FromJson(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.JobDefinition.FromJson(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } default: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.ErrorResponse.FromJson(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.ErrorResponse.FromJson(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } } @@ -2739,9 +2739,9 @@ public partial class StorageMover /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task JobDefinitionsList(string subscriptionId, string resourceGroupName, string storageMoverName, string projectName, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task JobDefinitionsList(string subscriptionId, string resourceGroupName, string storageMoverName, string projectName, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.ISendAsync sender) { - var apiVersion = @"2023-03-01"; + var apiVersion = @"2023-10-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -2783,9 +2783,9 @@ public partial class StorageMover /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task JobDefinitionsListViaIdentity(global::System.String viaIdentity, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task JobDefinitionsListViaIdentity(global::System.String viaIdentity, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.ISendAsync sender) { - var apiVersion = @"2023-03-01"; + var apiVersion = @"2023-10-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -2840,7 +2840,7 @@ public partial class StorageMover /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task JobDefinitionsList_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.ISendAsync sender) + internal async global::System.Threading.Tasks.Task JobDefinitionsList_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.ISendAsync sender) { using( NoSynchronizationContext ) { @@ -2858,13 +2858,13 @@ public partial class StorageMover case global::System.Net.HttpStatusCode.OK: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.JobDefinitionList.FromJson(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.JobDefinitionList.FromJson(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } default: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.ErrorResponse.FromJson(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.ErrorResponse.FromJson(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } } @@ -2921,9 +2921,9 @@ public partial class StorageMover /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task JobDefinitionsStartJob(string subscriptionId, string resourceGroupName, string storageMoverName, string projectName, string jobDefinitionName, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task JobDefinitionsStartJob(string subscriptionId, string resourceGroupName, string storageMoverName, string projectName, string jobDefinitionName, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.ISendAsync sender) { - var apiVersion = @"2023-03-01"; + var apiVersion = @"2023-10-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -2969,9 +2969,9 @@ public partial class StorageMover /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task JobDefinitionsStartJobViaIdentity(global::System.String viaIdentity, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task JobDefinitionsStartJobViaIdentity(global::System.String viaIdentity, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.ISendAsync sender) { - var apiVersion = @"2023-03-01"; + var apiVersion = @"2023-10-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -3029,7 +3029,7 @@ public partial class StorageMover /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task JobDefinitionsStartJob_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.ISendAsync sender) + internal async global::System.Threading.Tasks.Task JobDefinitionsStartJob_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.ISendAsync sender) { using( NoSynchronizationContext ) { @@ -3047,13 +3047,13 @@ public partial class StorageMover case global::System.Net.HttpStatusCode.OK: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.JobRunResourceId.FromJson(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.JobRunResourceId.FromJson(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } default: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.ErrorResponse.FromJson(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.ErrorResponse.FromJson(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } } @@ -3110,9 +3110,9 @@ public partial class StorageMover /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task JobDefinitionsStopJob(string subscriptionId, string resourceGroupName, string storageMoverName, string projectName, string jobDefinitionName, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task JobDefinitionsStopJob(string subscriptionId, string resourceGroupName, string storageMoverName, string projectName, string jobDefinitionName, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.ISendAsync sender) { - var apiVersion = @"2023-03-01"; + var apiVersion = @"2023-10-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -3156,9 +3156,9 @@ public partial class StorageMover /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task JobDefinitionsStopJobViaIdentity(global::System.String viaIdentity, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task JobDefinitionsStopJobViaIdentity(global::System.String viaIdentity, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.ISendAsync sender) { - var apiVersion = @"2023-03-01"; + var apiVersion = @"2023-10-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -3216,7 +3216,7 @@ public partial class StorageMover /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task JobDefinitionsStopJob_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.ISendAsync sender) + internal async global::System.Threading.Tasks.Task JobDefinitionsStopJob_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.ISendAsync sender) { using( NoSynchronizationContext ) { @@ -3234,13 +3234,13 @@ public partial class StorageMover case global::System.Net.HttpStatusCode.OK: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.JobRunResourceId.FromJson(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.JobRunResourceId.FromJson(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } default: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.ErrorResponse.FromJson(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.ErrorResponse.FromJson(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } } @@ -3300,9 +3300,9 @@ public partial class StorageMover /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task JobDefinitionsUpdate(string subscriptionId, string resourceGroupName, string storageMoverName, string projectName, string jobDefinitionName, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobDefinitionUpdateParameters body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task JobDefinitionsUpdate(string subscriptionId, string resourceGroupName, string storageMoverName, string projectName, string jobDefinitionName, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobDefinitionUpdateParameters body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.ISendAsync sender) { - var apiVersion = @"2023-03-01"; + var apiVersion = @"2023-10-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -3352,9 +3352,9 @@ public partial class StorageMover /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task JobDefinitionsUpdateViaIdentity(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobDefinitionUpdateParameters body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task JobDefinitionsUpdateViaIdentity(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobDefinitionUpdateParameters body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.ISendAsync sender) { - var apiVersion = @"2023-03-01"; + var apiVersion = @"2023-10-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -3415,7 +3415,7 @@ public partial class StorageMover /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task JobDefinitionsUpdate_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.ISendAsync sender) + internal async global::System.Threading.Tasks.Task JobDefinitionsUpdate_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.ISendAsync sender) { using( NoSynchronizationContext ) { @@ -3433,13 +3433,13 @@ public partial class StorageMover case global::System.Net.HttpStatusCode.OK: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.JobDefinition.FromJson(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.JobDefinition.FromJson(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } default: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.ErrorResponse.FromJson(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.ErrorResponse.FromJson(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } } @@ -3468,7 +3468,7 @@ public partial class StorageMover /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task JobDefinitionsUpdate_Validate(string subscriptionId, string resourceGroupName, string storageMoverName, string projectName, string jobDefinitionName, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobDefinitionUpdateParameters body, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.IEventListener eventListener) + internal async global::System.Threading.Tasks.Task JobDefinitionsUpdate_Validate(string subscriptionId, string resourceGroupName, string storageMoverName, string projectName, string jobDefinitionName, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobDefinitionUpdateParameters body, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.IEventListener eventListener) { using( NoSynchronizationContext ) { @@ -3500,9 +3500,9 @@ public partial class StorageMover /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task JobRunsGet(string subscriptionId, string resourceGroupName, string storageMoverName, string projectName, string jobDefinitionName, string jobRunName, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task JobRunsGet(string subscriptionId, string resourceGroupName, string storageMoverName, string projectName, string jobDefinitionName, string jobRunName, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.ISendAsync sender) { - var apiVersion = @"2023-03-01"; + var apiVersion = @"2023-10-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -3547,9 +3547,9 @@ public partial class StorageMover /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task JobRunsGetViaIdentity(global::System.String viaIdentity, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task JobRunsGetViaIdentity(global::System.String viaIdentity, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.ISendAsync sender) { - var apiVersion = @"2023-03-01"; + var apiVersion = @"2023-10-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -3609,7 +3609,7 @@ public partial class StorageMover /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task JobRunsGet_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.ISendAsync sender) + internal async global::System.Threading.Tasks.Task JobRunsGet_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.ISendAsync sender) { using( NoSynchronizationContext ) { @@ -3627,13 +3627,13 @@ public partial class StorageMover case global::System.Net.HttpStatusCode.OK: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.JobRun.FromJson(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.JobRun.FromJson(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } default: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.ErrorResponse.FromJson(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.ErrorResponse.FromJson(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } } @@ -3692,9 +3692,9 @@ public partial class StorageMover /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task JobRunsList(string subscriptionId, string resourceGroupName, string storageMoverName, string projectName, string jobDefinitionName, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task JobRunsList(string subscriptionId, string resourceGroupName, string storageMoverName, string projectName, string jobDefinitionName, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.ISendAsync sender) { - var apiVersion = @"2023-03-01"; + var apiVersion = @"2023-10-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -3738,9 +3738,9 @@ public partial class StorageMover /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task JobRunsListViaIdentity(global::System.String viaIdentity, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task JobRunsListViaIdentity(global::System.String viaIdentity, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.ISendAsync sender) { - var apiVersion = @"2023-03-01"; + var apiVersion = @"2023-10-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -3798,7 +3798,7 @@ public partial class StorageMover /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task JobRunsList_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.ISendAsync sender) + internal async global::System.Threading.Tasks.Task JobRunsList_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.ISendAsync sender) { using( NoSynchronizationContext ) { @@ -3816,13 +3816,13 @@ public partial class StorageMover case global::System.Net.HttpStatusCode.OK: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.JobRunList.FromJson(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.JobRunList.FromJson(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } default: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.ErrorResponse.FromJson(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.ErrorResponse.FromJson(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } } @@ -3874,9 +3874,9 @@ public partial class StorageMover /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task OperationsList(global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task OperationsList(global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.ISendAsync sender) { - var apiVersion = @"2023-03-01"; + var apiVersion = @"2023-10-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -3910,9 +3910,9 @@ public partial class StorageMover /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task OperationsListViaIdentity(global::System.String viaIdentity, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task OperationsListViaIdentity(global::System.String viaIdentity, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.ISendAsync sender) { - var apiVersion = @"2023-03-01"; + var apiVersion = @"2023-10-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -3955,7 +3955,7 @@ public partial class StorageMover /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task OperationsList_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.ISendAsync sender) + internal async global::System.Threading.Tasks.Task OperationsList_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.ISendAsync sender) { using( NoSynchronizationContext ) { @@ -3973,13 +3973,13 @@ public partial class StorageMover case global::System.Net.HttpStatusCode.OK: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.OperationListResult.FromJson(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.OperationListResult.FromJson(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } default: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.ErrorResponse.FromJson(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.ErrorResponse.FromJson(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } } @@ -4026,9 +4026,9 @@ public partial class StorageMover /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task ProjectsCreateOrUpdate(string subscriptionId, string resourceGroupName, string storageMoverName, string projectName, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IProject body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task ProjectsCreateOrUpdate(string subscriptionId, string resourceGroupName, string storageMoverName, string projectName, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IProject body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.ISendAsync sender) { - var apiVersion = @"2023-03-01"; + var apiVersion = @"2023-10-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -4076,9 +4076,9 @@ public partial class StorageMover /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task ProjectsCreateOrUpdateViaIdentity(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IProject body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task ProjectsCreateOrUpdateViaIdentity(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IProject body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.ISendAsync sender) { - var apiVersion = @"2023-03-01"; + var apiVersion = @"2023-10-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -4136,7 +4136,7 @@ public partial class StorageMover /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task ProjectsCreateOrUpdate_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.ISendAsync sender) + internal async global::System.Threading.Tasks.Task ProjectsCreateOrUpdate_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.ISendAsync sender) { using( NoSynchronizationContext ) { @@ -4154,13 +4154,13 @@ public partial class StorageMover case global::System.Net.HttpStatusCode.OK: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.Project.FromJson(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.Project.FromJson(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } default: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.ErrorResponse.FromJson(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.ErrorResponse.FromJson(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } } @@ -4188,7 +4188,7 @@ public partial class StorageMover /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task ProjectsCreateOrUpdate_Validate(string subscriptionId, string resourceGroupName, string storageMoverName, string projectName, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IProject body, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.IEventListener eventListener) + internal async global::System.Threading.Tasks.Task ProjectsCreateOrUpdate_Validate(string subscriptionId, string resourceGroupName, string storageMoverName, string projectName, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IProject body, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.IEventListener eventListener) { using( NoSynchronizationContext ) { @@ -4218,9 +4218,9 @@ public partial class StorageMover /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task ProjectsDelete(string subscriptionId, string resourceGroupName, string storageMoverName, string projectName, global::System.Func onOk, global::System.Func onNoContent, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task ProjectsDelete(string subscriptionId, string resourceGroupName, string storageMoverName, string projectName, global::System.Func onOk, global::System.Func onNoContent, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.ISendAsync sender) { - var apiVersion = @"2023-03-01"; + var apiVersion = @"2023-10-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -4262,9 +4262,9 @@ public partial class StorageMover /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task ProjectsDeleteViaIdentity(global::System.String viaIdentity, global::System.Func onOk, global::System.Func onNoContent, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task ProjectsDeleteViaIdentity(global::System.String viaIdentity, global::System.Func onOk, global::System.Func onNoContent, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.ISendAsync sender) { - var apiVersion = @"2023-03-01"; + var apiVersion = @"2023-10-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -4319,7 +4319,7 @@ public partial class StorageMover /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task ProjectsDelete_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func onOk, global::System.Func onNoContent, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.ISendAsync sender) + internal async global::System.Threading.Tasks.Task ProjectsDelete_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func onOk, global::System.Func onNoContent, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.ISendAsync sender) { using( NoSynchronizationContext ) { @@ -4446,7 +4446,7 @@ public partial class StorageMover default: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.ErrorResponse.FromJson(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.ErrorResponse.FromJson(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } } @@ -4500,9 +4500,9 @@ public partial class StorageMover /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task ProjectsGet(string subscriptionId, string resourceGroupName, string storageMoverName, string projectName, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task ProjectsGet(string subscriptionId, string resourceGroupName, string storageMoverName, string projectName, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.ISendAsync sender) { - var apiVersion = @"2023-03-01"; + var apiVersion = @"2023-10-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -4543,9 +4543,9 @@ public partial class StorageMover /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task ProjectsGetViaIdentity(global::System.String viaIdentity, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task ProjectsGetViaIdentity(global::System.String viaIdentity, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.ISendAsync sender) { - var apiVersion = @"2023-03-01"; + var apiVersion = @"2023-10-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -4599,7 +4599,7 @@ public partial class StorageMover /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task ProjectsGet_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.ISendAsync sender) + internal async global::System.Threading.Tasks.Task ProjectsGet_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.ISendAsync sender) { using( NoSynchronizationContext ) { @@ -4617,13 +4617,13 @@ public partial class StorageMover case global::System.Net.HttpStatusCode.OK: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.Project.FromJson(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.Project.FromJson(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } default: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.ErrorResponse.FromJson(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.ErrorResponse.FromJson(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } } @@ -4676,9 +4676,9 @@ public partial class StorageMover /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task ProjectsList(string subscriptionId, string resourceGroupName, string storageMoverName, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task ProjectsList(string subscriptionId, string resourceGroupName, string storageMoverName, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.ISendAsync sender) { - var apiVersion = @"2023-03-01"; + var apiVersion = @"2023-10-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -4718,9 +4718,9 @@ public partial class StorageMover /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task ProjectsListViaIdentity(global::System.String viaIdentity, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task ProjectsListViaIdentity(global::System.String viaIdentity, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.ISendAsync sender) { - var apiVersion = @"2023-03-01"; + var apiVersion = @"2023-10-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -4772,7 +4772,7 @@ public partial class StorageMover /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task ProjectsList_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.ISendAsync sender) + internal async global::System.Threading.Tasks.Task ProjectsList_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.ISendAsync sender) { using( NoSynchronizationContext ) { @@ -4790,13 +4790,13 @@ public partial class StorageMover case global::System.Net.HttpStatusCode.OK: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.ProjectList.FromJson(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.ProjectList.FromJson(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } default: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.ErrorResponse.FromJson(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.ErrorResponse.FromJson(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } } @@ -4851,9 +4851,9 @@ public partial class StorageMover /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task ProjectsUpdate(string subscriptionId, string resourceGroupName, string storageMoverName, string projectName, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IProjectUpdateParameters body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task ProjectsUpdate(string subscriptionId, string resourceGroupName, string storageMoverName, string projectName, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IProjectUpdateParameters body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.ISendAsync sender) { - var apiVersion = @"2023-03-01"; + var apiVersion = @"2023-10-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -4901,9 +4901,9 @@ public partial class StorageMover /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task ProjectsUpdateViaIdentity(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IProjectUpdateParameters body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task ProjectsUpdateViaIdentity(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IProjectUpdateParameters body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.ISendAsync sender) { - var apiVersion = @"2023-03-01"; + var apiVersion = @"2023-10-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -4961,7 +4961,7 @@ public partial class StorageMover /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task ProjectsUpdate_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.ISendAsync sender) + internal async global::System.Threading.Tasks.Task ProjectsUpdate_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.ISendAsync sender) { using( NoSynchronizationContext ) { @@ -4979,13 +4979,13 @@ public partial class StorageMover case global::System.Net.HttpStatusCode.OK: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.Project.FromJson(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.Project.FromJson(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } default: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.ErrorResponse.FromJson(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.ErrorResponse.FromJson(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } } @@ -5013,7 +5013,7 @@ public partial class StorageMover /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task ProjectsUpdate_Validate(string subscriptionId, string resourceGroupName, string storageMoverName, string projectName, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IProjectUpdateParameters body, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.IEventListener eventListener) + internal async global::System.Threading.Tasks.Task ProjectsUpdate_Validate(string subscriptionId, string resourceGroupName, string storageMoverName, string projectName, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IProjectUpdateParameters body, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.IEventListener eventListener) { using( NoSynchronizationContext ) { @@ -5042,9 +5042,9 @@ public partial class StorageMover /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task StorageMoversCreateOrUpdate(string subscriptionId, string resourceGroupName, string storageMoverName, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IStorageMover body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task StorageMoversCreateOrUpdate(string subscriptionId, string resourceGroupName, string storageMoverName, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IStorageMover body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.ISendAsync sender) { - var apiVersion = @"2023-03-01"; + var apiVersion = @"2023-10-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -5088,9 +5088,9 @@ public partial class StorageMover /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task StorageMoversCreateOrUpdateViaIdentity(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IStorageMover body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task StorageMoversCreateOrUpdateViaIdentity(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IStorageMover body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.ISendAsync sender) { - var apiVersion = @"2023-03-01"; + var apiVersion = @"2023-10-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -5145,7 +5145,7 @@ public partial class StorageMover /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task StorageMoversCreateOrUpdate_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.ISendAsync sender) + internal async global::System.Threading.Tasks.Task StorageMoversCreateOrUpdate_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.ISendAsync sender) { using( NoSynchronizationContext ) { @@ -5163,13 +5163,13 @@ public partial class StorageMover case global::System.Net.HttpStatusCode.OK: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.StorageMover.FromJson(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.StorageMover.FromJson(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } default: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.ErrorResponse.FromJson(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.ErrorResponse.FromJson(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } } @@ -5196,7 +5196,7 @@ public partial class StorageMover /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task StorageMoversCreateOrUpdate_Validate(string subscriptionId, string resourceGroupName, string storageMoverName, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IStorageMover body, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.IEventListener eventListener) + internal async global::System.Threading.Tasks.Task StorageMoversCreateOrUpdate_Validate(string subscriptionId, string resourceGroupName, string storageMoverName, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IStorageMover body, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.IEventListener eventListener) { using( NoSynchronizationContext ) { @@ -5224,9 +5224,9 @@ public partial class StorageMover /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task StorageMoversDelete(string subscriptionId, string resourceGroupName, string storageMoverName, global::System.Func onOk, global::System.Func onNoContent, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task StorageMoversDelete(string subscriptionId, string resourceGroupName, string storageMoverName, global::System.Func onOk, global::System.Func onNoContent, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.ISendAsync sender) { - var apiVersion = @"2023-03-01"; + var apiVersion = @"2023-10-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -5266,9 +5266,9 @@ public partial class StorageMover /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task StorageMoversDeleteViaIdentity(global::System.String viaIdentity, global::System.Func onOk, global::System.Func onNoContent, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task StorageMoversDeleteViaIdentity(global::System.String viaIdentity, global::System.Func onOk, global::System.Func onNoContent, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.ISendAsync sender) { - var apiVersion = @"2023-03-01"; + var apiVersion = @"2023-10-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -5320,7 +5320,7 @@ public partial class StorageMover /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task StorageMoversDelete_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func onOk, global::System.Func onNoContent, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.ISendAsync sender) + internal async global::System.Threading.Tasks.Task StorageMoversDelete_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func onOk, global::System.Func onNoContent, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.ISendAsync sender) { using( NoSynchronizationContext ) { @@ -5447,7 +5447,7 @@ public partial class StorageMover default: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.ErrorResponse.FromJson(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.ErrorResponse.FromJson(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } } @@ -5498,9 +5498,9 @@ public partial class StorageMover /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task StorageMoversGet(string subscriptionId, string resourceGroupName, string storageMoverName, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task StorageMoversGet(string subscriptionId, string resourceGroupName, string storageMoverName, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.ISendAsync sender) { - var apiVersion = @"2023-03-01"; + var apiVersion = @"2023-10-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -5539,9 +5539,9 @@ public partial class StorageMover /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task StorageMoversGetViaIdentity(global::System.String viaIdentity, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task StorageMoversGetViaIdentity(global::System.String viaIdentity, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.ISendAsync sender) { - var apiVersion = @"2023-03-01"; + var apiVersion = @"2023-10-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -5592,7 +5592,7 @@ public partial class StorageMover /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task StorageMoversGet_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.ISendAsync sender) + internal async global::System.Threading.Tasks.Task StorageMoversGet_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.ISendAsync sender) { using( NoSynchronizationContext ) { @@ -5610,13 +5610,13 @@ public partial class StorageMover case global::System.Net.HttpStatusCode.OK: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.StorageMover.FromJson(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.StorageMover.FromJson(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } default: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.ErrorResponse.FromJson(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.ErrorResponse.FromJson(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } } @@ -5666,9 +5666,9 @@ public partial class StorageMover /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task StorageMoversList(string subscriptionId, string resourceGroupName, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task StorageMoversList(string subscriptionId, string resourceGroupName, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.ISendAsync sender) { - var apiVersion = @"2023-03-01"; + var apiVersion = @"2023-10-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -5706,9 +5706,9 @@ public partial class StorageMover /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task StorageMoversListBySubscription(string subscriptionId, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task StorageMoversListBySubscription(string subscriptionId, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.ISendAsync sender) { - var apiVersion = @"2023-03-01"; + var apiVersion = @"2023-10-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -5744,9 +5744,9 @@ public partial class StorageMover /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task StorageMoversListBySubscriptionViaIdentity(global::System.String viaIdentity, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task StorageMoversListBySubscriptionViaIdentity(global::System.String viaIdentity, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.ISendAsync sender) { - var apiVersion = @"2023-03-01"; + var apiVersion = @"2023-10-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -5792,7 +5792,7 @@ public partial class StorageMover /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task StorageMoversListBySubscription_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.ISendAsync sender) + internal async global::System.Threading.Tasks.Task StorageMoversListBySubscription_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.ISendAsync sender) { using( NoSynchronizationContext ) { @@ -5810,13 +5810,13 @@ public partial class StorageMover case global::System.Net.HttpStatusCode.OK: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.StorageMoverList.FromJson(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.StorageMoverList.FromJson(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } default: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.ErrorResponse.FromJson(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.ErrorResponse.FromJson(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } } @@ -5859,9 +5859,9 @@ public partial class StorageMover /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task StorageMoversListViaIdentity(global::System.String viaIdentity, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task StorageMoversListViaIdentity(global::System.String viaIdentity, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.ISendAsync sender) { - var apiVersion = @"2023-03-01"; + var apiVersion = @"2023-10-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -5910,7 +5910,7 @@ public partial class StorageMover /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task StorageMoversList_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.ISendAsync sender) + internal async global::System.Threading.Tasks.Task StorageMoversList_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.ISendAsync sender) { using( NoSynchronizationContext ) { @@ -5928,13 +5928,13 @@ public partial class StorageMover case global::System.Net.HttpStatusCode.OK: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.StorageMoverList.FromJson(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.StorageMoverList.FromJson(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } default: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.ErrorResponse.FromJson(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.ErrorResponse.FromJson(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } } @@ -5986,9 +5986,9 @@ public partial class StorageMover /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task StorageMoversUpdate(string subscriptionId, string resourceGroupName, string storageMoverName, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IStorageMoverUpdateParameters body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task StorageMoversUpdate(string subscriptionId, string resourceGroupName, string storageMoverName, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IStorageMoverUpdateParameters body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.ISendAsync sender) { - var apiVersion = @"2023-03-01"; + var apiVersion = @"2023-10-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -6034,9 +6034,9 @@ public partial class StorageMover /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task StorageMoversUpdateViaIdentity(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IStorageMoverUpdateParameters body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task StorageMoversUpdateViaIdentity(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IStorageMoverUpdateParameters body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.ISendAsync sender) { - var apiVersion = @"2023-03-01"; + var apiVersion = @"2023-10-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -6091,7 +6091,7 @@ public partial class StorageMover /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task StorageMoversUpdate_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.ISendAsync sender) + internal async global::System.Threading.Tasks.Task StorageMoversUpdate_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.ISendAsync sender) { using( NoSynchronizationContext ) { @@ -6109,13 +6109,13 @@ public partial class StorageMover case global::System.Net.HttpStatusCode.OK: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.StorageMover.FromJson(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.StorageMover.FromJson(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } default: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.ErrorResponse.FromJson(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.ErrorResponse.FromJson(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } } @@ -6142,7 +6142,7 @@ public partial class StorageMover /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task StorageMoversUpdate_Validate(string subscriptionId, string resourceGroupName, string storageMoverName, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IStorageMoverUpdateParameters body, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.IEventListener eventListener) + internal async global::System.Threading.Tasks.Task StorageMoversUpdate_Validate(string subscriptionId, string resourceGroupName, string storageMoverName, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IStorageMoverUpdateParameters body, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.IEventListener eventListener) { using( NoSynchronizationContext ) { diff --git a/src/StorageMover/generated/api/Support/EndpointType.Completer.cs b/src/StorageMover/generated/api/Support/EndpointType.Completer.cs index 9bde928ae78f..90410c7d613d 100644 --- a/src/StorageMover/generated/api/Support/EndpointType.Completer.cs +++ b/src/StorageMover/generated/api/Support/EndpointType.Completer.cs @@ -34,6 +34,14 @@ public partial struct EndpointType : { yield return new global::System.Management.Automation.CompletionResult("'NfsMount'", "NfsMount", global::System.Management.Automation.CompletionResultType.ParameterValue, "NfsMount"); } + if (global::System.String.IsNullOrEmpty(wordToComplete) || "AzureStorageSmbFileShare".StartsWith(wordToComplete, global::System.StringComparison.InvariantCultureIgnoreCase)) + { + yield return new global::System.Management.Automation.CompletionResult("'AzureStorageSmbFileShare'", "AzureStorageSmbFileShare", global::System.Management.Automation.CompletionResultType.ParameterValue, "AzureStorageSmbFileShare"); + } + if (global::System.String.IsNullOrEmpty(wordToComplete) || "SmbMount".StartsWith(wordToComplete, global::System.StringComparison.InvariantCultureIgnoreCase)) + { + yield return new global::System.Management.Automation.CompletionResult("'SmbMount'", "SmbMount", global::System.Management.Automation.CompletionResultType.ParameterValue, "SmbMount"); + } } } } \ No newline at end of file diff --git a/src/StorageMover/generated/api/Support/EndpointType.cs b/src/StorageMover/generated/api/Support/EndpointType.cs index df6d9eef5594..2663442436b0 100644 --- a/src/StorageMover/generated/api/Support/EndpointType.cs +++ b/src/StorageMover/generated/api/Support/EndpointType.cs @@ -12,8 +12,12 @@ public partial struct EndpointType : { public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.EndpointType AzureStorageBlobContainer = @"AzureStorageBlobContainer"; + public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.EndpointType AzureStorageSmbFileShare = @"AzureStorageSmbFileShare"; + public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.EndpointType NfsMount = @"NfsMount"; + public static Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Support.EndpointType SmbMount = @"SmbMount"; + /// the value for an instance of the Enum. private string _value { get; set; } diff --git a/src/StorageMover/generated/cmdlets/GetAzStorageMoverAgent_Get.cs b/src/StorageMover/generated/cmdlets/GetAzStorageMoverAgent_Get.cs index e6c333bd785c..94f6eea520b1 100644 --- a/src/StorageMover/generated/cmdlets/GetAzStorageMoverAgent_Get.cs +++ b/src/StorageMover/generated/cmdlets/GetAzStorageMoverAgent_Get.cs @@ -13,9 +13,10 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Cmdlets /// [OpenAPI] Get=>GET:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorageMover/storageMovers/{storageMoverName}/agents/{agentName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzStorageMoverAgent_Get")] - [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IAgent))] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IAgent))] [global::Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Description(@"Gets an Agent resource.")] [global::Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Generated] + [global::Microsoft.Azure.PowerShell.Cmdlets.StorageMover.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorageMover/storageMovers/{storageMoverName}/agents/{agentName}", ApiVersion = "2023-10-01")] public partial class GetAzStorageMoverAgent_Get : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.IEventListener { @@ -161,24 +162,24 @@ public partial class GetAzStorageMoverAgent_Get : global::System.Management.Auto /// happens on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.IErrorResponse + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IErrorResponse /// from the remote call /// /// Determines if the rest of the onDefault method should be processed, or if the method should /// return immediately (set to true to skip further processing ) - partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// overrideOnOk will be called before the regular onOk has been processed, allowing customization of what happens /// on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IAgent + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IAgent /// from the remote call /// /// Determines if the rest of the onOk method should be processed, or if the method should return /// immediately (set to true to skip further processing ) - partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) @@ -354,12 +355,12 @@ protected override void StopProcessing() /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.IErrorResponse + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IErrorResponse /// from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { @@ -376,7 +377,7 @@ protected override void StopProcessing() if ((null == code || null == message)) { // Unrecognized Response. Create an error record based on what we have. - var ex = new Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.RestException(responseMessage, await response); WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId, ResourceGroupName=ResourceGroupName, StorageMoverName=StorageMoverName, Name=Name }) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } @@ -394,12 +395,12 @@ protected override void StopProcessing() /// a delegate that is called when the remote service returns 200 (OK). /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IAgent + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IAgent /// from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { @@ -411,7 +412,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / application/json - // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IAgent + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IAgent WriteObject((await response)); } } diff --git a/src/StorageMover/generated/cmdlets/GetAzStorageMoverAgent_GetViaIdentity.cs b/src/StorageMover/generated/cmdlets/GetAzStorageMoverAgent_GetViaIdentity.cs index 03021031422a..3d1fcd4324b4 100644 --- a/src/StorageMover/generated/cmdlets/GetAzStorageMoverAgent_GetViaIdentity.cs +++ b/src/StorageMover/generated/cmdlets/GetAzStorageMoverAgent_GetViaIdentity.cs @@ -13,9 +13,10 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Cmdlets /// [OpenAPI] Get=>GET:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorageMover/storageMovers/{storageMoverName}/agents/{agentName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzStorageMoverAgent_GetViaIdentity")] - [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IAgent))] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IAgent))] [global::Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Description(@"Gets an Agent resource.")] [global::Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Generated] + [global::Microsoft.Azure.PowerShell.Cmdlets.StorageMover.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorageMover/storageMovers/{storageMoverName}/agents/{agentName}", ApiVersion = "2023-10-01")] public partial class GetAzStorageMoverAgent_GetViaIdentity : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.IEventListener { @@ -108,24 +109,24 @@ public partial class GetAzStorageMoverAgent_GetViaIdentity : global::System.Mana /// happens on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.IErrorResponse + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IErrorResponse /// from the remote call /// /// Determines if the rest of the onDefault method should be processed, or if the method should /// return immediately (set to true to skip further processing ) - partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// overrideOnOk will be called before the regular onOk has been processed, allowing customization of what happens /// on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IAgent + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IAgent /// from the remote call /// /// Determines if the rest of the onOk method should be processed, or if the method should return /// immediately (set to true to skip further processing ) - partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) @@ -322,12 +323,12 @@ protected override void StopProcessing() /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.IErrorResponse + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IErrorResponse /// from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { @@ -344,7 +345,7 @@ protected override void StopProcessing() if ((null == code || null == message)) { // Unrecognized Response. Create an error record based on what we have. - var ex = new Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.RestException(responseMessage, await response); WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { }) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } @@ -362,12 +363,12 @@ protected override void StopProcessing() /// a delegate that is called when the remote service returns 200 (OK). /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IAgent + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IAgent /// from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { @@ -379,7 +380,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / application/json - // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IAgent + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IAgent WriteObject((await response)); } } diff --git a/src/StorageMover/generated/cmdlets/GetAzStorageMoverAgent_List.cs b/src/StorageMover/generated/cmdlets/GetAzStorageMoverAgent_List.cs index 809ddb9a7c79..20d300be73f4 100644 --- a/src/StorageMover/generated/cmdlets/GetAzStorageMoverAgent_List.cs +++ b/src/StorageMover/generated/cmdlets/GetAzStorageMoverAgent_List.cs @@ -13,9 +13,10 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Cmdlets /// [OpenAPI] List=>GET:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorageMover/storageMovers/{storageMoverName}/agents" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzStorageMoverAgent_List")] - [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IAgent))] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IAgent))] [global::Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Description(@"Lists all Agents in a Storage Mover.")] [global::Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Generated] + [global::Microsoft.Azure.PowerShell.Cmdlets.StorageMover.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorageMover/storageMovers/{storageMoverName}/agents", ApiVersion = "2023-10-01")] public partial class GetAzStorageMoverAgent_List : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.IEventListener { @@ -152,24 +153,24 @@ public partial class GetAzStorageMoverAgent_List : global::System.Management.Aut /// happens on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.IErrorResponse + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IErrorResponse /// from the remote call /// /// Determines if the rest of the onDefault method should be processed, or if the method should /// return immediately (set to true to skip further processing ) - partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// overrideOnOk will be called before the regular onOk has been processed, allowing customization of what happens /// on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IAgentList + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IAgentList /// from the remote call /// /// Determines if the rest of the onOk method should be processed, or if the method should return /// immediately (set to true to skip further processing ) - partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) @@ -345,12 +346,12 @@ protected override void StopProcessing() /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.IErrorResponse + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IErrorResponse /// from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { @@ -367,7 +368,7 @@ protected override void StopProcessing() if ((null == code || null == message)) { // Unrecognized Response. Create an error record based on what we have. - var ex = new Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.RestException(responseMessage, await response); WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId, ResourceGroupName=ResourceGroupName, StorageMoverName=StorageMoverName }) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } @@ -385,12 +386,12 @@ protected override void StopProcessing() /// a delegate that is called when the remote service returns 200 (OK). /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IAgentList + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IAgentList /// from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { diff --git a/src/StorageMover/generated/cmdlets/GetAzStorageMoverEndpoint_Get.cs b/src/StorageMover/generated/cmdlets/GetAzStorageMoverEndpoint_Get.cs index e86a5dce5506..aac08722d271 100644 --- a/src/StorageMover/generated/cmdlets/GetAzStorageMoverEndpoint_Get.cs +++ b/src/StorageMover/generated/cmdlets/GetAzStorageMoverEndpoint_Get.cs @@ -13,9 +13,10 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Cmdlets /// [OpenAPI] Get=>GET:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorageMover/storageMovers/{storageMoverName}/endpoints/{endpointName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzStorageMoverEndpoint_Get")] - [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IEndpoint))] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IEndpoint))] [global::Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Description(@"Gets an Endpoint resource.")] [global::Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Generated] + [global::Microsoft.Azure.PowerShell.Cmdlets.StorageMover.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorageMover/storageMovers/{storageMoverName}/endpoints/{endpointName}", ApiVersion = "2023-10-01")] public partial class GetAzStorageMoverEndpoint_Get : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.IEventListener { @@ -161,24 +162,24 @@ public partial class GetAzStorageMoverEndpoint_Get : global::System.Management.A /// happens on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.IErrorResponse + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IErrorResponse /// from the remote call /// /// Determines if the rest of the onDefault method should be processed, or if the method should /// return immediately (set to true to skip further processing ) - partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// overrideOnOk will be called before the regular onOk has been processed, allowing customization of what happens /// on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IEndpoint + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IEndpoint /// from the remote call /// /// Determines if the rest of the onOk method should be processed, or if the method should return /// immediately (set to true to skip further processing ) - partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) @@ -354,12 +355,12 @@ protected override void StopProcessing() /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.IErrorResponse + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IErrorResponse /// from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { @@ -376,7 +377,7 @@ protected override void StopProcessing() if ((null == code || null == message)) { // Unrecognized Response. Create an error record based on what we have. - var ex = new Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.RestException(responseMessage, await response); WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId, ResourceGroupName=ResourceGroupName, StorageMoverName=StorageMoverName, Name=Name }) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } @@ -394,12 +395,12 @@ protected override void StopProcessing() /// a delegate that is called when the remote service returns 200 (OK). /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IEndpoint + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IEndpoint /// from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { @@ -411,7 +412,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / application/json - // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IEndpoint + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IEndpoint WriteObject((await response)); } } diff --git a/src/StorageMover/generated/cmdlets/GetAzStorageMoverEndpoint_GetViaIdentity.cs b/src/StorageMover/generated/cmdlets/GetAzStorageMoverEndpoint_GetViaIdentity.cs index 13036d758899..e11b34c572e2 100644 --- a/src/StorageMover/generated/cmdlets/GetAzStorageMoverEndpoint_GetViaIdentity.cs +++ b/src/StorageMover/generated/cmdlets/GetAzStorageMoverEndpoint_GetViaIdentity.cs @@ -13,9 +13,10 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Cmdlets /// [OpenAPI] Get=>GET:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorageMover/storageMovers/{storageMoverName}/endpoints/{endpointName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzStorageMoverEndpoint_GetViaIdentity")] - [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IEndpoint))] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IEndpoint))] [global::Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Description(@"Gets an Endpoint resource.")] [global::Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Generated] + [global::Microsoft.Azure.PowerShell.Cmdlets.StorageMover.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorageMover/storageMovers/{storageMoverName}/endpoints/{endpointName}", ApiVersion = "2023-10-01")] public partial class GetAzStorageMoverEndpoint_GetViaIdentity : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.IEventListener { @@ -108,24 +109,24 @@ public partial class GetAzStorageMoverEndpoint_GetViaIdentity : global::System.M /// happens on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.IErrorResponse + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IErrorResponse /// from the remote call /// /// Determines if the rest of the onDefault method should be processed, or if the method should /// return immediately (set to true to skip further processing ) - partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// overrideOnOk will be called before the regular onOk has been processed, allowing customization of what happens /// on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IEndpoint + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IEndpoint /// from the remote call /// /// Determines if the rest of the onOk method should be processed, or if the method should return /// immediately (set to true to skip further processing ) - partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) @@ -322,12 +323,12 @@ protected override void StopProcessing() /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.IErrorResponse + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IErrorResponse /// from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { @@ -344,7 +345,7 @@ protected override void StopProcessing() if ((null == code || null == message)) { // Unrecognized Response. Create an error record based on what we have. - var ex = new Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.RestException(responseMessage, await response); WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { }) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } @@ -362,12 +363,12 @@ protected override void StopProcessing() /// a delegate that is called when the remote service returns 200 (OK). /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IEndpoint + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IEndpoint /// from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { @@ -379,7 +380,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / application/json - // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IEndpoint + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IEndpoint WriteObject((await response)); } } diff --git a/src/StorageMover/generated/cmdlets/GetAzStorageMoverEndpoint_List.cs b/src/StorageMover/generated/cmdlets/GetAzStorageMoverEndpoint_List.cs index 02197758549d..eab2a11b87f1 100644 --- a/src/StorageMover/generated/cmdlets/GetAzStorageMoverEndpoint_List.cs +++ b/src/StorageMover/generated/cmdlets/GetAzStorageMoverEndpoint_List.cs @@ -13,9 +13,10 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Cmdlets /// [OpenAPI] List=>GET:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorageMover/storageMovers/{storageMoverName}/endpoints" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzStorageMoverEndpoint_List")] - [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IEndpoint))] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IEndpoint))] [global::Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Description(@"Lists all Endpoints in a Storage Mover.")] [global::Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Generated] + [global::Microsoft.Azure.PowerShell.Cmdlets.StorageMover.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorageMover/storageMovers/{storageMoverName}/endpoints", ApiVersion = "2023-10-01")] public partial class GetAzStorageMoverEndpoint_List : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.IEventListener { @@ -152,24 +153,24 @@ public partial class GetAzStorageMoverEndpoint_List : global::System.Management. /// happens on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.IErrorResponse + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IErrorResponse /// from the remote call /// /// Determines if the rest of the onDefault method should be processed, or if the method should /// return immediately (set to true to skip further processing ) - partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// overrideOnOk will be called before the regular onOk has been processed, allowing customization of what happens /// on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IEndpointList + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IEndpointList /// from the remote call /// /// Determines if the rest of the onOk method should be processed, or if the method should return /// immediately (set to true to skip further processing ) - partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) @@ -345,12 +346,12 @@ protected override void StopProcessing() /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.IErrorResponse + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IErrorResponse /// from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { @@ -367,7 +368,7 @@ protected override void StopProcessing() if ((null == code || null == message)) { // Unrecognized Response. Create an error record based on what we have. - var ex = new Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.RestException(responseMessage, await response); WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId, ResourceGroupName=ResourceGroupName, StorageMoverName=StorageMoverName }) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } @@ -385,12 +386,12 @@ protected override void StopProcessing() /// a delegate that is called when the remote service returns 200 (OK). /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IEndpointList + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IEndpointList /// from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { diff --git a/src/StorageMover/generated/cmdlets/GetAzStorageMoverJobDefinition_Get.cs b/src/StorageMover/generated/cmdlets/GetAzStorageMoverJobDefinition_Get.cs index 8a55d39c6e8e..cc6a569b15a6 100644 --- a/src/StorageMover/generated/cmdlets/GetAzStorageMoverJobDefinition_Get.cs +++ b/src/StorageMover/generated/cmdlets/GetAzStorageMoverJobDefinition_Get.cs @@ -13,9 +13,10 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Cmdlets /// [OpenAPI] Get=>GET:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorageMover/storageMovers/{storageMoverName}/projects/{projectName}/jobDefinitions/{jobDefinitionName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzStorageMoverJobDefinition_Get")] - [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobDefinition))] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobDefinition))] [global::Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Description(@"Gets a Job Definition resource.")] [global::Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Generated] + [global::Microsoft.Azure.PowerShell.Cmdlets.StorageMover.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorageMover/storageMovers/{storageMoverName}/projects/{projectName}/jobDefinitions/{jobDefinitionName}", ApiVersion = "2023-10-01")] public partial class GetAzStorageMoverJobDefinition_Get : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.IEventListener { @@ -175,24 +176,24 @@ public partial class GetAzStorageMoverJobDefinition_Get : global::System.Managem /// happens on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.IErrorResponse + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IErrorResponse /// from the remote call /// /// Determines if the rest of the onDefault method should be processed, or if the method should /// return immediately (set to true to skip further processing ) - partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// overrideOnOk will be called before the regular onOk has been processed, allowing customization of what happens /// on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobDefinition + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobDefinition /// from the remote call /// /// Determines if the rest of the onOk method should be processed, or if the method should return /// immediately (set to true to skip further processing ) - partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) @@ -368,12 +369,12 @@ protected override void StopProcessing() /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.IErrorResponse + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IErrorResponse /// from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { @@ -390,7 +391,7 @@ protected override void StopProcessing() if ((null == code || null == message)) { // Unrecognized Response. Create an error record based on what we have. - var ex = new Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.RestException(responseMessage, await response); WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId, ResourceGroupName=ResourceGroupName, StorageMoverName=StorageMoverName, ProjectName=ProjectName, Name=Name }) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } @@ -408,12 +409,12 @@ protected override void StopProcessing() /// a delegate that is called when the remote service returns 200 (OK). /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobDefinition + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobDefinition /// from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { @@ -425,7 +426,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / application/json - // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobDefinition + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobDefinition WriteObject((await response)); } } diff --git a/src/StorageMover/generated/cmdlets/GetAzStorageMoverJobDefinition_GetViaIdentity.cs b/src/StorageMover/generated/cmdlets/GetAzStorageMoverJobDefinition_GetViaIdentity.cs index 4a9212de6f24..1dc2f053b18c 100644 --- a/src/StorageMover/generated/cmdlets/GetAzStorageMoverJobDefinition_GetViaIdentity.cs +++ b/src/StorageMover/generated/cmdlets/GetAzStorageMoverJobDefinition_GetViaIdentity.cs @@ -13,9 +13,10 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Cmdlets /// [OpenAPI] Get=>GET:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorageMover/storageMovers/{storageMoverName}/projects/{projectName}/jobDefinitions/{jobDefinitionName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzStorageMoverJobDefinition_GetViaIdentity")] - [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobDefinition))] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobDefinition))] [global::Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Description(@"Gets a Job Definition resource.")] [global::Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Generated] + [global::Microsoft.Azure.PowerShell.Cmdlets.StorageMover.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorageMover/storageMovers/{storageMoverName}/projects/{projectName}/jobDefinitions/{jobDefinitionName}", ApiVersion = "2023-10-01")] public partial class GetAzStorageMoverJobDefinition_GetViaIdentity : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.IEventListener { @@ -108,24 +109,24 @@ public partial class GetAzStorageMoverJobDefinition_GetViaIdentity : global::Sys /// happens on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.IErrorResponse + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IErrorResponse /// from the remote call /// /// Determines if the rest of the onDefault method should be processed, or if the method should /// return immediately (set to true to skip further processing ) - partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// overrideOnOk will be called before the regular onOk has been processed, allowing customization of what happens /// on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobDefinition + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobDefinition /// from the remote call /// /// Determines if the rest of the onOk method should be processed, or if the method should return /// immediately (set to true to skip further processing ) - partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) @@ -326,12 +327,12 @@ protected override void StopProcessing() /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.IErrorResponse + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IErrorResponse /// from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { @@ -348,7 +349,7 @@ protected override void StopProcessing() if ((null == code || null == message)) { // Unrecognized Response. Create an error record based on what we have. - var ex = new Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.RestException(responseMessage, await response); WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { }) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } @@ -366,12 +367,12 @@ protected override void StopProcessing() /// a delegate that is called when the remote service returns 200 (OK). /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobDefinition + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobDefinition /// from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { @@ -383,7 +384,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / application/json - // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobDefinition + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobDefinition WriteObject((await response)); } } diff --git a/src/StorageMover/generated/cmdlets/GetAzStorageMoverJobDefinition_List.cs b/src/StorageMover/generated/cmdlets/GetAzStorageMoverJobDefinition_List.cs index eb8af3eb39f0..746b8ff2af20 100644 --- a/src/StorageMover/generated/cmdlets/GetAzStorageMoverJobDefinition_List.cs +++ b/src/StorageMover/generated/cmdlets/GetAzStorageMoverJobDefinition_List.cs @@ -13,9 +13,10 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Cmdlets /// [OpenAPI] List=>GET:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorageMover/storageMovers/{storageMoverName}/projects/{projectName}/jobDefinitions" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzStorageMoverJobDefinition_List")] - [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobDefinition))] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobDefinition))] [global::Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Description(@"Lists all Job Definitions in a Project.")] [global::Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Generated] + [global::Microsoft.Azure.PowerShell.Cmdlets.StorageMover.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorageMover/storageMovers/{storageMoverName}/projects/{projectName}/jobDefinitions", ApiVersion = "2023-10-01")] public partial class GetAzStorageMoverJobDefinition_List : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.IEventListener { @@ -166,24 +167,24 @@ public partial class GetAzStorageMoverJobDefinition_List : global::System.Manage /// happens on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.IErrorResponse + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IErrorResponse /// from the remote call /// /// Determines if the rest of the onDefault method should be processed, or if the method should /// return immediately (set to true to skip further processing ) - partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// overrideOnOk will be called before the regular onOk has been processed, allowing customization of what happens /// on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobDefinitionList + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobDefinitionList /// from the remote call /// /// Determines if the rest of the onOk method should be processed, or if the method should return /// immediately (set to true to skip further processing ) - partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) @@ -359,12 +360,12 @@ protected override void StopProcessing() /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.IErrorResponse + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IErrorResponse /// from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { @@ -381,7 +382,7 @@ protected override void StopProcessing() if ((null == code || null == message)) { // Unrecognized Response. Create an error record based on what we have. - var ex = new Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.RestException(responseMessage, await response); WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId, ResourceGroupName=ResourceGroupName, StorageMoverName=StorageMoverName, ProjectName=ProjectName }) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } @@ -399,12 +400,12 @@ protected override void StopProcessing() /// a delegate that is called when the remote service returns 200 (OK). /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobDefinitionList + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobDefinitionList /// from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { diff --git a/src/StorageMover/generated/cmdlets/GetAzStorageMoverJobRun_Get.cs b/src/StorageMover/generated/cmdlets/GetAzStorageMoverJobRun_Get.cs index 77ec44a23593..f938af099028 100644 --- a/src/StorageMover/generated/cmdlets/GetAzStorageMoverJobRun_Get.cs +++ b/src/StorageMover/generated/cmdlets/GetAzStorageMoverJobRun_Get.cs @@ -13,9 +13,10 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Cmdlets /// [OpenAPI] Get=>GET:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorageMover/storageMovers/{storageMoverName}/projects/{projectName}/jobDefinitions/{jobDefinitionName}/jobRuns/{jobRunName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzStorageMoverJobRun_Get")] - [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobRun))] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobRun))] [global::Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Description(@"Gets a Job Run resource.")] [global::Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Generated] + [global::Microsoft.Azure.PowerShell.Cmdlets.StorageMover.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorageMover/storageMovers/{storageMoverName}/projects/{projectName}/jobDefinitions/{jobDefinitionName}/jobRuns/{jobRunName}", ApiVersion = "2023-10-01")] public partial class GetAzStorageMoverJobRun_Get : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.IEventListener { @@ -189,24 +190,24 @@ public partial class GetAzStorageMoverJobRun_Get : global::System.Management.Aut /// happens on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.IErrorResponse + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IErrorResponse /// from the remote call /// /// Determines if the rest of the onDefault method should be processed, or if the method should /// return immediately (set to true to skip further processing ) - partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// overrideOnOk will be called before the regular onOk has been processed, allowing customization of what happens /// on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobRun + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobRun /// from the remote call /// /// Determines if the rest of the onOk method should be processed, or if the method should return /// immediately (set to true to skip further processing ) - partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) @@ -382,12 +383,12 @@ protected override void StopProcessing() /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.IErrorResponse + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IErrorResponse /// from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { @@ -404,7 +405,7 @@ protected override void StopProcessing() if ((null == code || null == message)) { // Unrecognized Response. Create an error record based on what we have. - var ex = new Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.RestException(responseMessage, await response); WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId, ResourceGroupName=ResourceGroupName, StorageMoverName=StorageMoverName, ProjectName=ProjectName, JobDefinitionName=JobDefinitionName, Name=Name }) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } @@ -422,12 +423,12 @@ protected override void StopProcessing() /// a delegate that is called when the remote service returns 200 (OK). /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobRun + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobRun /// from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { @@ -439,7 +440,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / application/json - // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobRun + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobRun WriteObject((await response)); } } diff --git a/src/StorageMover/generated/cmdlets/GetAzStorageMoverJobRun_GetViaIdentity.cs b/src/StorageMover/generated/cmdlets/GetAzStorageMoverJobRun_GetViaIdentity.cs index a067ed216441..b9b9b1484c73 100644 --- a/src/StorageMover/generated/cmdlets/GetAzStorageMoverJobRun_GetViaIdentity.cs +++ b/src/StorageMover/generated/cmdlets/GetAzStorageMoverJobRun_GetViaIdentity.cs @@ -13,9 +13,10 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Cmdlets /// [OpenAPI] Get=>GET:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorageMover/storageMovers/{storageMoverName}/projects/{projectName}/jobDefinitions/{jobDefinitionName}/jobRuns/{jobRunName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzStorageMoverJobRun_GetViaIdentity")] - [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobRun))] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobRun))] [global::Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Description(@"Gets a Job Run resource.")] [global::Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Generated] + [global::Microsoft.Azure.PowerShell.Cmdlets.StorageMover.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorageMover/storageMovers/{storageMoverName}/projects/{projectName}/jobDefinitions/{jobDefinitionName}/jobRuns/{jobRunName}", ApiVersion = "2023-10-01")] public partial class GetAzStorageMoverJobRun_GetViaIdentity : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.IEventListener { @@ -108,24 +109,24 @@ public partial class GetAzStorageMoverJobRun_GetViaIdentity : global::System.Man /// happens on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.IErrorResponse + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IErrorResponse /// from the remote call /// /// Determines if the rest of the onDefault method should be processed, or if the method should /// return immediately (set to true to skip further processing ) - partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// overrideOnOk will be called before the regular onOk has been processed, allowing customization of what happens /// on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobRun + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobRun /// from the remote call /// /// Determines if the rest of the onOk method should be processed, or if the method should return /// immediately (set to true to skip further processing ) - partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) @@ -330,12 +331,12 @@ protected override void StopProcessing() /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.IErrorResponse + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IErrorResponse /// from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { @@ -352,7 +353,7 @@ protected override void StopProcessing() if ((null == code || null == message)) { // Unrecognized Response. Create an error record based on what we have. - var ex = new Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.RestException(responseMessage, await response); WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { }) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } @@ -370,12 +371,12 @@ protected override void StopProcessing() /// a delegate that is called when the remote service returns 200 (OK). /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobRun + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobRun /// from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { @@ -387,7 +388,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / application/json - // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobRun + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobRun WriteObject((await response)); } } diff --git a/src/StorageMover/generated/cmdlets/GetAzStorageMoverJobRun_List.cs b/src/StorageMover/generated/cmdlets/GetAzStorageMoverJobRun_List.cs index 758455211774..76c9aafa18dd 100644 --- a/src/StorageMover/generated/cmdlets/GetAzStorageMoverJobRun_List.cs +++ b/src/StorageMover/generated/cmdlets/GetAzStorageMoverJobRun_List.cs @@ -13,9 +13,10 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Cmdlets /// [OpenAPI] List=>GET:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorageMover/storageMovers/{storageMoverName}/projects/{projectName}/jobDefinitions/{jobDefinitionName}/jobRuns" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzStorageMoverJobRun_List")] - [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobRun))] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobRun))] [global::Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Description(@"Lists all Job Runs in a Job Definition.")] [global::Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Generated] + [global::Microsoft.Azure.PowerShell.Cmdlets.StorageMover.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorageMover/storageMovers/{storageMoverName}/projects/{projectName}/jobDefinitions/{jobDefinitionName}/jobRuns", ApiVersion = "2023-10-01")] public partial class GetAzStorageMoverJobRun_List : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.IEventListener { @@ -180,24 +181,24 @@ public partial class GetAzStorageMoverJobRun_List : global::System.Management.Au /// happens on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.IErrorResponse + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IErrorResponse /// from the remote call /// /// Determines if the rest of the onDefault method should be processed, or if the method should /// return immediately (set to true to skip further processing ) - partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// overrideOnOk will be called before the regular onOk has been processed, allowing customization of what happens /// on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobRunList + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobRunList /// from the remote call /// /// Determines if the rest of the onOk method should be processed, or if the method should return /// immediately (set to true to skip further processing ) - partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) @@ -373,12 +374,12 @@ protected override void StopProcessing() /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.IErrorResponse + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IErrorResponse /// from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { @@ -395,7 +396,7 @@ protected override void StopProcessing() if ((null == code || null == message)) { // Unrecognized Response. Create an error record based on what we have. - var ex = new Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.RestException(responseMessage, await response); WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId, ResourceGroupName=ResourceGroupName, StorageMoverName=StorageMoverName, ProjectName=ProjectName, JobDefinitionName=JobDefinitionName }) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } @@ -413,12 +414,12 @@ protected override void StopProcessing() /// a delegate that is called when the remote service returns 200 (OK). /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobRunList + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobRunList /// from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { diff --git a/src/StorageMover/generated/cmdlets/GetAzStorageMoverOperation_List.cs b/src/StorageMover/generated/cmdlets/GetAzStorageMoverOperation_List.cs index c138f80b0117..83a05010f904 100644 --- a/src/StorageMover/generated/cmdlets/GetAzStorageMoverOperation_List.cs +++ b/src/StorageMover/generated/cmdlets/GetAzStorageMoverOperation_List.cs @@ -14,9 +14,10 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Cmdlets /// [global::Microsoft.Azure.PowerShell.Cmdlets.StorageMover.InternalExport] [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzStorageMoverOperation_List")] - [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.IOperation))] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IOperation))] [global::Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Description(@"Lists all the supported operations for the Azure Storage Mover REST API.")] [global::Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Generated] + [global::Microsoft.Azure.PowerShell.Cmdlets.StorageMover.HttpPath(Path = "/providers/Microsoft.StorageMover/operations", ApiVersion = "2023-10-01")] public partial class GetAzStorageMoverOperation_List : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.IEventListener { @@ -107,24 +108,24 @@ public partial class GetAzStorageMoverOperation_List : global::System.Management /// happens on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.IErrorResponse + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IErrorResponse /// from the remote call /// /// Determines if the rest of the onDefault method should be processed, or if the method should /// return immediately (set to true to skip further processing ) - partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// overrideOnOk will be called before the regular onOk has been processed, allowing customization of what happens /// on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.IOperationListResult + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IOperationListResult /// from the remote call /// /// Determines if the rest of the onOk method should be processed, or if the method should return /// immediately (set to true to skip further processing ) - partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) @@ -297,12 +298,12 @@ protected override void StopProcessing() /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.IErrorResponse + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IErrorResponse /// from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { @@ -319,7 +320,7 @@ protected override void StopProcessing() if ((null == code || null == message)) { // Unrecognized Response. Create an error record based on what we have. - var ex = new Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.RestException(responseMessage, await response); WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { }) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } @@ -337,12 +338,12 @@ protected override void StopProcessing() /// a delegate that is called when the remote service returns 200 (OK). /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.IOperationListResult + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IOperationListResult /// from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { diff --git a/src/StorageMover/generated/cmdlets/GetAzStorageMoverProject_Get.cs b/src/StorageMover/generated/cmdlets/GetAzStorageMoverProject_Get.cs index 0ecdf805340e..459b68b665a7 100644 --- a/src/StorageMover/generated/cmdlets/GetAzStorageMoverProject_Get.cs +++ b/src/StorageMover/generated/cmdlets/GetAzStorageMoverProject_Get.cs @@ -13,9 +13,10 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Cmdlets /// [OpenAPI] Get=>GET:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorageMover/storageMovers/{storageMoverName}/projects/{projectName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzStorageMoverProject_Get")] - [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IProject))] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IProject))] [global::Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Description(@"Gets a Project resource.")] [global::Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Generated] + [global::Microsoft.Azure.PowerShell.Cmdlets.StorageMover.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorageMover/storageMovers/{storageMoverName}/projects/{projectName}", ApiVersion = "2023-10-01")] public partial class GetAzStorageMoverProject_Get : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.IEventListener { @@ -161,24 +162,24 @@ public partial class GetAzStorageMoverProject_Get : global::System.Management.Au /// happens on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.IErrorResponse + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IErrorResponse /// from the remote call /// /// Determines if the rest of the onDefault method should be processed, or if the method should /// return immediately (set to true to skip further processing ) - partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// overrideOnOk will be called before the regular onOk has been processed, allowing customization of what happens /// on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IProject + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IProject /// from the remote call /// /// Determines if the rest of the onOk method should be processed, or if the method should return /// immediately (set to true to skip further processing ) - partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) @@ -354,12 +355,12 @@ protected override void StopProcessing() /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.IErrorResponse + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IErrorResponse /// from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { @@ -376,7 +377,7 @@ protected override void StopProcessing() if ((null == code || null == message)) { // Unrecognized Response. Create an error record based on what we have. - var ex = new Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.RestException(responseMessage, await response); WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId, ResourceGroupName=ResourceGroupName, StorageMoverName=StorageMoverName, Name=Name }) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } @@ -394,12 +395,12 @@ protected override void StopProcessing() /// a delegate that is called when the remote service returns 200 (OK). /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IProject + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IProject /// from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { @@ -411,7 +412,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / application/json - // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IProject + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IProject WriteObject((await response)); } } diff --git a/src/StorageMover/generated/cmdlets/GetAzStorageMoverProject_GetViaIdentity.cs b/src/StorageMover/generated/cmdlets/GetAzStorageMoverProject_GetViaIdentity.cs index 4a837752c59e..c4d4d2feeca1 100644 --- a/src/StorageMover/generated/cmdlets/GetAzStorageMoverProject_GetViaIdentity.cs +++ b/src/StorageMover/generated/cmdlets/GetAzStorageMoverProject_GetViaIdentity.cs @@ -13,9 +13,10 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Cmdlets /// [OpenAPI] Get=>GET:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorageMover/storageMovers/{storageMoverName}/projects/{projectName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzStorageMoverProject_GetViaIdentity")] - [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IProject))] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IProject))] [global::Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Description(@"Gets a Project resource.")] [global::Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Generated] + [global::Microsoft.Azure.PowerShell.Cmdlets.StorageMover.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorageMover/storageMovers/{storageMoverName}/projects/{projectName}", ApiVersion = "2023-10-01")] public partial class GetAzStorageMoverProject_GetViaIdentity : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.IEventListener { @@ -108,24 +109,24 @@ public partial class GetAzStorageMoverProject_GetViaIdentity : global::System.Ma /// happens on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.IErrorResponse + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IErrorResponse /// from the remote call /// /// Determines if the rest of the onDefault method should be processed, or if the method should /// return immediately (set to true to skip further processing ) - partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// overrideOnOk will be called before the regular onOk has been processed, allowing customization of what happens /// on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IProject + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IProject /// from the remote call /// /// Determines if the rest of the onOk method should be processed, or if the method should return /// immediately (set to true to skip further processing ) - partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) @@ -322,12 +323,12 @@ protected override void StopProcessing() /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.IErrorResponse + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IErrorResponse /// from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { @@ -344,7 +345,7 @@ protected override void StopProcessing() if ((null == code || null == message)) { // Unrecognized Response. Create an error record based on what we have. - var ex = new Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.RestException(responseMessage, await response); WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { }) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } @@ -362,12 +363,12 @@ protected override void StopProcessing() /// a delegate that is called when the remote service returns 200 (OK). /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IProject + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IProject /// from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { @@ -379,7 +380,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / application/json - // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IProject + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IProject WriteObject((await response)); } } diff --git a/src/StorageMover/generated/cmdlets/GetAzStorageMoverProject_List.cs b/src/StorageMover/generated/cmdlets/GetAzStorageMoverProject_List.cs index d5a84b5facd8..1e46690f498a 100644 --- a/src/StorageMover/generated/cmdlets/GetAzStorageMoverProject_List.cs +++ b/src/StorageMover/generated/cmdlets/GetAzStorageMoverProject_List.cs @@ -13,9 +13,10 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Cmdlets /// [OpenAPI] List=>GET:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorageMover/storageMovers/{storageMoverName}/projects" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzStorageMoverProject_List")] - [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IProject))] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IProject))] [global::Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Description(@"Lists all Projects in a Storage Mover.")] [global::Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Generated] + [global::Microsoft.Azure.PowerShell.Cmdlets.StorageMover.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorageMover/storageMovers/{storageMoverName}/projects", ApiVersion = "2023-10-01")] public partial class GetAzStorageMoverProject_List : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.IEventListener { @@ -152,24 +153,24 @@ public partial class GetAzStorageMoverProject_List : global::System.Management.A /// happens on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.IErrorResponse + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IErrorResponse /// from the remote call /// /// Determines if the rest of the onDefault method should be processed, or if the method should /// return immediately (set to true to skip further processing ) - partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// overrideOnOk will be called before the regular onOk has been processed, allowing customization of what happens /// on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IProjectList + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IProjectList /// from the remote call /// /// Determines if the rest of the onOk method should be processed, or if the method should return /// immediately (set to true to skip further processing ) - partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) @@ -345,12 +346,12 @@ protected override void StopProcessing() /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.IErrorResponse + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IErrorResponse /// from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { @@ -367,7 +368,7 @@ protected override void StopProcessing() if ((null == code || null == message)) { // Unrecognized Response. Create an error record based on what we have. - var ex = new Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.RestException(responseMessage, await response); WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId, ResourceGroupName=ResourceGroupName, StorageMoverName=StorageMoverName }) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } @@ -385,12 +386,12 @@ protected override void StopProcessing() /// a delegate that is called when the remote service returns 200 (OK). /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IProjectList + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IProjectList /// from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { diff --git a/src/StorageMover/generated/cmdlets/GetAzStorageMover_Get.cs b/src/StorageMover/generated/cmdlets/GetAzStorageMover_Get.cs index d450084c952a..bbb62b6352aa 100644 --- a/src/StorageMover/generated/cmdlets/GetAzStorageMover_Get.cs +++ b/src/StorageMover/generated/cmdlets/GetAzStorageMover_Get.cs @@ -13,9 +13,10 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Cmdlets /// [OpenAPI] Get=>GET:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorageMover/storageMovers/{storageMoverName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzStorageMover_Get")] - [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IStorageMover))] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IStorageMover))] [global::Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Description(@"Gets a Storage Mover resource.")] [global::Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Generated] + [global::Microsoft.Azure.PowerShell.Cmdlets.StorageMover.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorageMover/storageMovers/{storageMoverName}", ApiVersion = "2023-10-01")] public partial class GetAzStorageMover_Get : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.IEventListener { @@ -147,24 +148,24 @@ public partial class GetAzStorageMover_Get : global::System.Management.Automatio /// happens on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.IErrorResponse + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IErrorResponse /// from the remote call /// /// Determines if the rest of the onDefault method should be processed, or if the method should /// return immediately (set to true to skip further processing ) - partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// overrideOnOk will be called before the regular onOk has been processed, allowing customization of what happens /// on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IStorageMover + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IStorageMover /// from the remote call /// /// Determines if the rest of the onOk method should be processed, or if the method should return /// immediately (set to true to skip further processing ) - partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) @@ -340,12 +341,12 @@ protected override void StopProcessing() /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.IErrorResponse + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IErrorResponse /// from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { @@ -362,7 +363,7 @@ protected override void StopProcessing() if ((null == code || null == message)) { // Unrecognized Response. Create an error record based on what we have. - var ex = new Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.RestException(responseMessage, await response); WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId, ResourceGroupName=ResourceGroupName, Name=Name }) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } @@ -380,12 +381,12 @@ protected override void StopProcessing() /// a delegate that is called when the remote service returns 200 (OK). /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IStorageMover + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IStorageMover /// from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { @@ -397,7 +398,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / application/json - // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IStorageMover + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IStorageMover WriteObject((await response)); } } diff --git a/src/StorageMover/generated/cmdlets/GetAzStorageMover_GetViaIdentity.cs b/src/StorageMover/generated/cmdlets/GetAzStorageMover_GetViaIdentity.cs index c27fef67a4bd..cc299257f289 100644 --- a/src/StorageMover/generated/cmdlets/GetAzStorageMover_GetViaIdentity.cs +++ b/src/StorageMover/generated/cmdlets/GetAzStorageMover_GetViaIdentity.cs @@ -13,9 +13,10 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Cmdlets /// [OpenAPI] Get=>GET:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorageMover/storageMovers/{storageMoverName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzStorageMover_GetViaIdentity")] - [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IStorageMover))] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IStorageMover))] [global::Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Description(@"Gets a Storage Mover resource.")] [global::Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Generated] + [global::Microsoft.Azure.PowerShell.Cmdlets.StorageMover.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorageMover/storageMovers/{storageMoverName}", ApiVersion = "2023-10-01")] public partial class GetAzStorageMover_GetViaIdentity : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.IEventListener { @@ -108,24 +109,24 @@ public partial class GetAzStorageMover_GetViaIdentity : global::System.Managemen /// happens on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.IErrorResponse + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IErrorResponse /// from the remote call /// /// Determines if the rest of the onDefault method should be processed, or if the method should /// return immediately (set to true to skip further processing ) - partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// overrideOnOk will be called before the regular onOk has been processed, allowing customization of what happens /// on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IStorageMover + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IStorageMover /// from the remote call /// /// Determines if the rest of the onOk method should be processed, or if the method should return /// immediately (set to true to skip further processing ) - partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) @@ -318,12 +319,12 @@ protected override void StopProcessing() /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.IErrorResponse + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IErrorResponse /// from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { @@ -340,7 +341,7 @@ protected override void StopProcessing() if ((null == code || null == message)) { // Unrecognized Response. Create an error record based on what we have. - var ex = new Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.RestException(responseMessage, await response); WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { }) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } @@ -358,12 +359,12 @@ protected override void StopProcessing() /// a delegate that is called when the remote service returns 200 (OK). /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IStorageMover + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IStorageMover /// from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { @@ -375,7 +376,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / application/json - // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IStorageMover + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IStorageMover WriteObject((await response)); } } diff --git a/src/StorageMover/generated/cmdlets/GetAzStorageMover_List.cs b/src/StorageMover/generated/cmdlets/GetAzStorageMover_List.cs index 2af8abad00cb..26d6b57583c9 100644 --- a/src/StorageMover/generated/cmdlets/GetAzStorageMover_List.cs +++ b/src/StorageMover/generated/cmdlets/GetAzStorageMover_List.cs @@ -13,9 +13,10 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Cmdlets /// [OpenAPI] ListBySubscription=>GET:"/subscriptions/{subscriptionId}/providers/Microsoft.StorageMover/storageMovers" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzStorageMover_List")] - [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IStorageMover))] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IStorageMover))] [global::Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Description(@"Lists all Storage Movers in a subscription.")] [global::Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Generated] + [global::Microsoft.Azure.PowerShell.Cmdlets.StorageMover.HttpPath(Path = "/subscriptions/{subscriptionId}/providers/Microsoft.StorageMover/storageMovers", ApiVersion = "2023-10-01")] public partial class GetAzStorageMover_List : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.IEventListener { @@ -124,24 +125,24 @@ public partial class GetAzStorageMover_List : global::System.Management.Automati /// happens on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.IErrorResponse + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IErrorResponse /// from the remote call /// /// Determines if the rest of the onDefault method should be processed, or if the method should /// return immediately (set to true to skip further processing ) - partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// overrideOnOk will be called before the regular onOk has been processed, allowing customization of what happens /// on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IStorageMoverList + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IStorageMoverList /// from the remote call /// /// Determines if the rest of the onOk method should be processed, or if the method should return /// immediately (set to true to skip further processing ) - partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) @@ -317,12 +318,12 @@ protected override void StopProcessing() /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.IErrorResponse + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IErrorResponse /// from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { @@ -339,7 +340,7 @@ protected override void StopProcessing() if ((null == code || null == message)) { // Unrecognized Response. Create an error record based on what we have. - var ex = new Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.RestException(responseMessage, await response); WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId }) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } @@ -357,12 +358,12 @@ protected override void StopProcessing() /// a delegate that is called when the remote service returns 200 (OK). /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IStorageMoverList + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IStorageMoverList /// from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { diff --git a/src/StorageMover/generated/cmdlets/GetAzStorageMover_List1.cs b/src/StorageMover/generated/cmdlets/GetAzStorageMover_List1.cs index 887baffab71f..e6f99b62e268 100644 --- a/src/StorageMover/generated/cmdlets/GetAzStorageMover_List1.cs +++ b/src/StorageMover/generated/cmdlets/GetAzStorageMover_List1.cs @@ -13,9 +13,10 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Cmdlets /// [OpenAPI] List=>GET:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorageMover/storageMovers" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzStorageMover_List1")] - [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IStorageMover))] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IStorageMover))] [global::Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Description(@"Lists all Storage Movers in a resource group.")] [global::Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Generated] + [global::Microsoft.Azure.PowerShell.Cmdlets.StorageMover.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorageMover/storageMovers", ApiVersion = "2023-10-01")] public partial class GetAzStorageMover_List1 : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.IEventListener { @@ -138,24 +139,24 @@ public partial class GetAzStorageMover_List1 : global::System.Management.Automat /// happens on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.IErrorResponse + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IErrorResponse /// from the remote call /// /// Determines if the rest of the onDefault method should be processed, or if the method should /// return immediately (set to true to skip further processing ) - partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// overrideOnOk will be called before the regular onOk has been processed, allowing customization of what happens /// on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IStorageMoverList + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IStorageMoverList /// from the remote call /// /// Determines if the rest of the onOk method should be processed, or if the method should return /// immediately (set to true to skip further processing ) - partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) @@ -331,12 +332,12 @@ protected override void StopProcessing() /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.IErrorResponse + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IErrorResponse /// from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { @@ -353,7 +354,7 @@ protected override void StopProcessing() if ((null == code || null == message)) { // Unrecognized Response. Create an error record based on what we have. - var ex = new Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.RestException(responseMessage, await response); WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId, ResourceGroupName=ResourceGroupName }) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } @@ -371,12 +372,12 @@ protected override void StopProcessing() /// a delegate that is called when the remote service returns 200 (OK). /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IStorageMoverList + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IStorageMoverList /// from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { diff --git a/src/StorageMover/generated/cmdlets/NewAzStorageMoverEndpoint_CreateExpanded.cs b/src/StorageMover/generated/cmdlets/NewAzStorageMoverEndpoint_CreateExpanded.cs index 242de2bd7bff..0934512279c2 100644 --- a/src/StorageMover/generated/cmdlets/NewAzStorageMoverEndpoint_CreateExpanded.cs +++ b/src/StorageMover/generated/cmdlets/NewAzStorageMoverEndpoint_CreateExpanded.cs @@ -16,9 +16,10 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Cmdlets /// [global::Microsoft.Azure.PowerShell.Cmdlets.StorageMover.InternalExport] [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.New, @"AzStorageMoverEndpoint_CreateExpanded", SupportsShouldProcess = true)] - [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IEndpoint))] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IEndpoint))] [global::Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Description(@"Creates or updates an Endpoint resource, which represents a data transfer source or destination.")] [global::Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Generated] + [global::Microsoft.Azure.PowerShell.Cmdlets.StorageMover.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorageMover/storageMovers/{storageMoverName}/endpoints/{endpointName}", ApiVersion = "2023-10-01")] public partial class NewAzStorageMoverEndpoint_CreateExpanded : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.IEventListener { @@ -39,7 +40,7 @@ public partial class NewAzStorageMoverEndpoint_CreateExpanded : global::System.M /// /// The Endpoint resource, which contains information about file sources and targets. /// - private Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IEndpoint _endpointBody = new Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.Endpoint(); + private Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IEndpoint _endpointBody = new Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.Endpoint(); /// Wait for .NET debugger to attach [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Wait for .NET debugger to attach")] @@ -110,8 +111,8 @@ public partial class NewAzStorageMoverEndpoint_CreateExpanded : global::System.M ReadOnly = false, Description = @"The resource specific properties for the Storage Mover resource.", SerializedName = @"properties", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IEndpointBaseProperties) })] - public Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IEndpointBaseProperties Property { get => _endpointBody.Property ?? null /* object */; set => _endpointBody.Property = value; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IEndpointBaseProperties) })] + public Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IEndpointBaseProperties Property { get => _endpointBody.Property ?? null /* object */; set => _endpointBody.Property = value; } /// The URI for the proxy server to use [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "The URI for the proxy server to use")] @@ -180,24 +181,24 @@ public partial class NewAzStorageMoverEndpoint_CreateExpanded : global::System.M /// happens on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.IErrorResponse + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IErrorResponse /// from the remote call /// /// Determines if the rest of the onDefault method should be processed, or if the method should /// return immediately (set to true to skip further processing ) - partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// overrideOnOk will be called before the regular onOk has been processed, allowing customization of what happens /// on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IEndpoint + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IEndpoint /// from the remote call /// /// Determines if the rest of the onOk method should be processed, or if the method should return /// immediately (set to true to skip further processing ) - partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) @@ -373,12 +374,12 @@ protected override void StopProcessing() /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.IErrorResponse + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IErrorResponse /// from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { @@ -395,7 +396,7 @@ protected override void StopProcessing() if ((null == code || null == message)) { // Unrecognized Response. Create an error record based on what we have. - var ex = new Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.RestException(responseMessage, await response); WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId, ResourceGroupName=ResourceGroupName, StorageMoverName=StorageMoverName, Name=Name, body=_endpointBody }) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } @@ -413,12 +414,12 @@ protected override void StopProcessing() /// a delegate that is called when the remote service returns 200 (OK). /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IEndpoint + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IEndpoint /// from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { @@ -430,7 +431,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / application/json - // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IEndpoint + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IEndpoint WriteObject((await response)); } } diff --git a/src/StorageMover/generated/cmdlets/NewAzStorageMoverJobDefinition_Create.cs b/src/StorageMover/generated/cmdlets/NewAzStorageMoverJobDefinition_Create.cs index d656f58ec505..d96507c0022b 100644 --- a/src/StorageMover/generated/cmdlets/NewAzStorageMoverJobDefinition_Create.cs +++ b/src/StorageMover/generated/cmdlets/NewAzStorageMoverJobDefinition_Create.cs @@ -15,9 +15,10 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Cmdlets /// [OpenAPI] CreateOrUpdate=>PUT:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorageMover/storageMovers/{storageMoverName}/projects/{projectName}/jobDefinitions/{jobDefinitionName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.New, @"AzStorageMoverJobDefinition_Create", SupportsShouldProcess = true)] - [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobDefinition))] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobDefinition))] [global::Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Description(@"Creates or updates a Job Definition resource, which contains configuration for a single unit of managed data transfer.")] [global::Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Generated] + [global::Microsoft.Azure.PowerShell.Cmdlets.StorageMover.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorageMover/storageMovers/{storageMoverName}/projects/{projectName}/jobDefinitions/{jobDefinitionName}", ApiVersion = "2023-10-01")] public partial class NewAzStorageMoverJobDefinition_Create : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.IEventListener { @@ -69,7 +70,7 @@ public partial class NewAzStorageMoverJobDefinition_Create : global::System.Mana public global::System.Management.Automation.InvocationInfo InvocationInformation { get => __invocationInfo = __invocationInfo ?? this.MyInvocation ; set { __invocationInfo = value; } } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobDefinition _jobDefinition; + private Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobDefinition _jobDefinition; /// The Job Definition resource. [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The Job Definition resource.", ValueFromPipeline = true)] @@ -78,8 +79,8 @@ public partial class NewAzStorageMoverJobDefinition_Create : global::System.Mana ReadOnly = false, Description = @"The Job Definition resource.", SerializedName = @"jobDefinition", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobDefinition) })] - public Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobDefinition JobDefinition { get => this._jobDefinition; set => this._jobDefinition = value; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobDefinition) })] + public Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobDefinition JobDefinition { get => this._jobDefinition; set => this._jobDefinition = value; } /// /// cancellation delegate. Stops the cmdlet when called. @@ -190,24 +191,24 @@ public partial class NewAzStorageMoverJobDefinition_Create : global::System.Mana /// happens on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.IErrorResponse + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IErrorResponse /// from the remote call /// /// Determines if the rest of the onDefault method should be processed, or if the method should /// return immediately (set to true to skip further processing ) - partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// overrideOnOk will be called before the regular onOk has been processed, allowing customization of what happens /// on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobDefinition + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobDefinition /// from the remote call /// /// Determines if the rest of the onOk method should be processed, or if the method should return /// immediately (set to true to skip further processing ) - partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) @@ -383,12 +384,12 @@ protected override void StopProcessing() /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.IErrorResponse + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IErrorResponse /// from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { @@ -405,7 +406,7 @@ protected override void StopProcessing() if ((null == code || null == message)) { // Unrecognized Response. Create an error record based on what we have. - var ex = new Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.RestException(responseMessage, await response); WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId, ResourceGroupName=ResourceGroupName, StorageMoverName=StorageMoverName, ProjectName=ProjectName, Name=Name, body=JobDefinition }) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } @@ -423,12 +424,12 @@ protected override void StopProcessing() /// a delegate that is called when the remote service returns 200 (OK). /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobDefinition + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobDefinition /// from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { @@ -440,7 +441,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / application/json - // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobDefinition + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobDefinition WriteObject((await response)); } } diff --git a/src/StorageMover/generated/cmdlets/NewAzStorageMoverJobDefinition_CreateExpanded.cs b/src/StorageMover/generated/cmdlets/NewAzStorageMoverJobDefinition_CreateExpanded.cs index 734cbd4170a0..dedb3a1be9ca 100644 --- a/src/StorageMover/generated/cmdlets/NewAzStorageMoverJobDefinition_CreateExpanded.cs +++ b/src/StorageMover/generated/cmdlets/NewAzStorageMoverJobDefinition_CreateExpanded.cs @@ -15,9 +15,10 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Cmdlets /// [OpenAPI] CreateOrUpdate=>PUT:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorageMover/storageMovers/{storageMoverName}/projects/{projectName}/jobDefinitions/{jobDefinitionName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.New, @"AzStorageMoverJobDefinition_CreateExpanded", SupportsShouldProcess = true)] - [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobDefinition))] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobDefinition))] [global::Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Description(@"Creates or updates a Job Definition resource, which contains configuration for a single unit of managed data transfer.")] [global::Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Generated] + [global::Microsoft.Azure.PowerShell.Cmdlets.StorageMover.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorageMover/storageMovers/{storageMoverName}/projects/{projectName}/jobDefinitions/{jobDefinitionName}", ApiVersion = "2023-10-01")] public partial class NewAzStorageMoverJobDefinition_CreateExpanded : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.IEventListener { @@ -36,7 +37,7 @@ public partial class NewAzStorageMoverJobDefinition_CreateExpanded : global::Sys private global::System.Threading.CancellationTokenSource _cancellationTokenSource = new global::System.Threading.CancellationTokenSource(); /// The Job Definition resource. - private Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobDefinition _jobDefinitionBody = new Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.JobDefinition(); + private Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobDefinition _jobDefinitionBody = new Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.JobDefinition(); /// Name of the Agent to assign for new Job Runs of this Job Definition. [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Name of the Agent to assign for new Job Runs of this Job Definition.")] @@ -258,24 +259,24 @@ public partial class NewAzStorageMoverJobDefinition_CreateExpanded : global::Sys /// happens on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.IErrorResponse + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IErrorResponse /// from the remote call /// /// Determines if the rest of the onDefault method should be processed, or if the method should /// return immediately (set to true to skip further processing ) - partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// overrideOnOk will be called before the regular onOk has been processed, allowing customization of what happens /// on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobDefinition + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobDefinition /// from the remote call /// /// Determines if the rest of the onOk method should be processed, or if the method should return /// immediately (set to true to skip further processing ) - partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) @@ -451,12 +452,12 @@ protected override void StopProcessing() /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.IErrorResponse + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IErrorResponse /// from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { @@ -473,7 +474,7 @@ protected override void StopProcessing() if ((null == code || null == message)) { // Unrecognized Response. Create an error record based on what we have. - var ex = new Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.RestException(responseMessage, await response); WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId, ResourceGroupName=ResourceGroupName, StorageMoverName=StorageMoverName, ProjectName=ProjectName, Name=Name, body=_jobDefinitionBody }) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } @@ -491,12 +492,12 @@ protected override void StopProcessing() /// a delegate that is called when the remote service returns 200 (OK). /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobDefinition + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobDefinition /// from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { @@ -508,7 +509,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / application/json - // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobDefinition + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobDefinition WriteObject((await response)); } } diff --git a/src/StorageMover/generated/cmdlets/NewAzStorageMoverProject_Create.cs b/src/StorageMover/generated/cmdlets/NewAzStorageMoverProject_Create.cs index ed811e09f79c..b067c1c43d45 100644 --- a/src/StorageMover/generated/cmdlets/NewAzStorageMoverProject_Create.cs +++ b/src/StorageMover/generated/cmdlets/NewAzStorageMoverProject_Create.cs @@ -15,9 +15,10 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Cmdlets /// [OpenAPI] CreateOrUpdate=>PUT:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorageMover/storageMovers/{storageMoverName}/projects/{projectName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.New, @"AzStorageMoverProject_Create", SupportsShouldProcess = true)] - [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IProject))] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IProject))] [global::Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Description(@"Creates or updates a Project resource, which is a logical grouping of related jobs.")] [global::Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Generated] + [global::Microsoft.Azure.PowerShell.Cmdlets.StorageMover.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorageMover/storageMovers/{storageMoverName}/projects/{projectName}", ApiVersion = "2023-10-01")] public partial class NewAzStorageMoverProject_Create : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.IEventListener { @@ -97,7 +98,7 @@ public partial class NewAzStorageMoverProject_Create : global::System.Management private Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.HttpPipeline Pipeline { get; set; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IProject _project; + private Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IProject _project; /// The Project resource. [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The Project resource.", ValueFromPipeline = true)] @@ -106,8 +107,8 @@ public partial class NewAzStorageMoverProject_Create : global::System.Management ReadOnly = false, Description = @"The Project resource.", SerializedName = @"project", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IProject) })] - public Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IProject Project { get => this._project; set => this._project = value; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IProject) })] + public Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IProject Project { get => this._project; set => this._project = value; } /// The URI for the proxy server to use [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "The URI for the proxy server to use")] @@ -176,24 +177,24 @@ public partial class NewAzStorageMoverProject_Create : global::System.Management /// happens on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.IErrorResponse + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IErrorResponse /// from the remote call /// /// Determines if the rest of the onDefault method should be processed, or if the method should /// return immediately (set to true to skip further processing ) - partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// overrideOnOk will be called before the regular onOk has been processed, allowing customization of what happens /// on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IProject + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IProject /// from the remote call /// /// Determines if the rest of the onOk method should be processed, or if the method should return /// immediately (set to true to skip further processing ) - partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) @@ -369,12 +370,12 @@ protected override void StopProcessing() /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.IErrorResponse + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IErrorResponse /// from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { @@ -391,7 +392,7 @@ protected override void StopProcessing() if ((null == code || null == message)) { // Unrecognized Response. Create an error record based on what we have. - var ex = new Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.RestException(responseMessage, await response); WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId, ResourceGroupName=ResourceGroupName, StorageMoverName=StorageMoverName, Name=Name, body=Project }) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } @@ -409,12 +410,12 @@ protected override void StopProcessing() /// a delegate that is called when the remote service returns 200 (OK). /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IProject + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IProject /// from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { @@ -426,7 +427,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / application/json - // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IProject + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IProject WriteObject((await response)); } } diff --git a/src/StorageMover/generated/cmdlets/NewAzStorageMoverProject_CreateExpanded.cs b/src/StorageMover/generated/cmdlets/NewAzStorageMoverProject_CreateExpanded.cs index 1ab78495abb8..254acca3307c 100644 --- a/src/StorageMover/generated/cmdlets/NewAzStorageMoverProject_CreateExpanded.cs +++ b/src/StorageMover/generated/cmdlets/NewAzStorageMoverProject_CreateExpanded.cs @@ -15,9 +15,10 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Cmdlets /// [OpenAPI] CreateOrUpdate=>PUT:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorageMover/storageMovers/{storageMoverName}/projects/{projectName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.New, @"AzStorageMoverProject_CreateExpanded", SupportsShouldProcess = true)] - [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IProject))] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IProject))] [global::Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Description(@"Creates or updates a Project resource, which is a logical grouping of related jobs.")] [global::Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Generated] + [global::Microsoft.Azure.PowerShell.Cmdlets.StorageMover.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorageMover/storageMovers/{storageMoverName}/projects/{projectName}", ApiVersion = "2023-10-01")] public partial class NewAzStorageMoverProject_CreateExpanded : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.IEventListener { @@ -36,7 +37,7 @@ public partial class NewAzStorageMoverProject_CreateExpanded : global::System.Ma private global::System.Threading.CancellationTokenSource _cancellationTokenSource = new global::System.Threading.CancellationTokenSource(); /// The Project resource. - private Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IProject _projectBody = new Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.Project(); + private Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IProject _projectBody = new Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.Project(); /// Wait for .NET debugger to attach [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Wait for .NET debugger to attach")] @@ -177,24 +178,24 @@ public partial class NewAzStorageMoverProject_CreateExpanded : global::System.Ma /// happens on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.IErrorResponse + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IErrorResponse /// from the remote call /// /// Determines if the rest of the onDefault method should be processed, or if the method should /// return immediately (set to true to skip further processing ) - partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// overrideOnOk will be called before the regular onOk has been processed, allowing customization of what happens /// on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IProject + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IProject /// from the remote call /// /// Determines if the rest of the onOk method should be processed, or if the method should return /// immediately (set to true to skip further processing ) - partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) @@ -370,12 +371,12 @@ protected override void StopProcessing() /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.IErrorResponse + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IErrorResponse /// from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { @@ -392,7 +393,7 @@ protected override void StopProcessing() if ((null == code || null == message)) { // Unrecognized Response. Create an error record based on what we have. - var ex = new Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.RestException(responseMessage, await response); WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId, ResourceGroupName=ResourceGroupName, StorageMoverName=StorageMoverName, Name=Name, body=_projectBody }) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } @@ -410,12 +411,12 @@ protected override void StopProcessing() /// a delegate that is called when the remote service returns 200 (OK). /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IProject + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IProject /// from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { @@ -427,7 +428,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / application/json - // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IProject + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IProject WriteObject((await response)); } } diff --git a/src/StorageMover/generated/cmdlets/NewAzStorageMover_Create.cs b/src/StorageMover/generated/cmdlets/NewAzStorageMover_Create.cs index b95a9bff5768..832a89bc9c18 100644 --- a/src/StorageMover/generated/cmdlets/NewAzStorageMover_Create.cs +++ b/src/StorageMover/generated/cmdlets/NewAzStorageMover_Create.cs @@ -13,9 +13,10 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Cmdlets /// [OpenAPI] CreateOrUpdate=>PUT:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorageMover/storageMovers/{storageMoverName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.New, @"AzStorageMover_Create", SupportsShouldProcess = true)] - [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IStorageMover))] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IStorageMover))] [global::Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Description(@"Creates or updates a top-level Storage Mover resource.")] [global::Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Generated] + [global::Microsoft.Azure.PowerShell.Cmdlets.StorageMover.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorageMover/storageMovers/{storageMoverName}", ApiVersion = "2023-10-01")] public partial class NewAzStorageMover_Create : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.IEventListener { @@ -125,7 +126,7 @@ public partial class NewAzStorageMover_Create : global::System.Management.Automa public string ResourceGroupName { get => this._resourceGroupName; set => this._resourceGroupName = value; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IStorageMover _storageMover; + private Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IStorageMover _storageMover; /// /// The Storage Mover resource, which is a container for a group of Agents, Projects, and Endpoints. @@ -136,8 +137,8 @@ public partial class NewAzStorageMover_Create : global::System.Management.Automa ReadOnly = false, Description = @"The Storage Mover resource, which is a container for a group of Agents, Projects, and Endpoints.", SerializedName = @"storageMover", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IStorageMover) })] - public Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IStorageMover StorageMover { get => this._storageMover; set => this._storageMover = value; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IStorageMover) })] + public Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IStorageMover StorageMover { get => this._storageMover; set => this._storageMover = value; } /// Backing field for property. private string _subscriptionId; @@ -162,24 +163,24 @@ public partial class NewAzStorageMover_Create : global::System.Management.Automa /// happens on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.IErrorResponse + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IErrorResponse /// from the remote call /// /// Determines if the rest of the onDefault method should be processed, or if the method should /// return immediately (set to true to skip further processing ) - partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// overrideOnOk will be called before the regular onOk has been processed, allowing customization of what happens /// on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IStorageMover + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IStorageMover /// from the remote call /// /// Determines if the rest of the onOk method should be processed, or if the method should return /// immediately (set to true to skip further processing ) - partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) @@ -355,12 +356,12 @@ protected override void StopProcessing() /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.IErrorResponse + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IErrorResponse /// from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { @@ -377,7 +378,7 @@ protected override void StopProcessing() if ((null == code || null == message)) { // Unrecognized Response. Create an error record based on what we have. - var ex = new Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.RestException(responseMessage, await response); WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId, ResourceGroupName=ResourceGroupName, Name=Name, body=StorageMover }) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } @@ -395,12 +396,12 @@ protected override void StopProcessing() /// a delegate that is called when the remote service returns 200 (OK). /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IStorageMover + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IStorageMover /// from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { @@ -412,7 +413,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / application/json - // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IStorageMover + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IStorageMover WriteObject((await response)); } } diff --git a/src/StorageMover/generated/cmdlets/NewAzStorageMover_CreateExpanded.cs b/src/StorageMover/generated/cmdlets/NewAzStorageMover_CreateExpanded.cs index 588312d4a1ea..5040cdcdd583 100644 --- a/src/StorageMover/generated/cmdlets/NewAzStorageMover_CreateExpanded.cs +++ b/src/StorageMover/generated/cmdlets/NewAzStorageMover_CreateExpanded.cs @@ -13,9 +13,10 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Cmdlets /// [OpenAPI] CreateOrUpdate=>PUT:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorageMover/storageMovers/{storageMoverName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.New, @"AzStorageMover_CreateExpanded", SupportsShouldProcess = true)] - [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IStorageMover))] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IStorageMover))] [global::Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Description(@"Creates or updates a top-level Storage Mover resource.")] [global::Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Generated] + [global::Microsoft.Azure.PowerShell.Cmdlets.StorageMover.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorageMover/storageMovers/{storageMoverName}", ApiVersion = "2023-10-01")] public partial class NewAzStorageMover_CreateExpanded : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.IEventListener { @@ -36,7 +37,7 @@ public partial class NewAzStorageMover_CreateExpanded : global::System.Managemen /// /// The Storage Mover resource, which is a container for a group of Agents, Projects, and Endpoints. /// - private Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IStorageMover _storageMoverBody = new Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.StorageMover(); + private Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IStorageMover _storageMoverBody = new Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.StorageMover(); /// Wait for .NET debugger to attach [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Wait for .NET debugger to attach")] @@ -178,32 +179,32 @@ public partial class NewAzStorageMover_CreateExpanded : global::System.Managemen ReadOnly = false, Description = @"Resource tags.", SerializedName = @"tags", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.ITrackedResourceTags) })] - public Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.ITrackedResourceTags Tag { get => _storageMoverBody.Tag ?? null /* object */; set => _storageMoverBody.Tag = value; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.ITrackedResourceTags) })] + public Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.ITrackedResourceTags Tag { get => _storageMoverBody.Tag ?? null /* object */; set => _storageMoverBody.Tag = value; } /// /// overrideOnDefault will be called before the regular onDefault has been processed, allowing customization of what /// happens on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.IErrorResponse + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IErrorResponse /// from the remote call /// /// Determines if the rest of the onDefault method should be processed, or if the method should /// return immediately (set to true to skip further processing ) - partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// overrideOnOk will be called before the regular onOk has been processed, allowing customization of what happens /// on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IStorageMover + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IStorageMover /// from the remote call /// /// Determines if the rest of the onOk method should be processed, or if the method should return /// immediately (set to true to skip further processing ) - partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) @@ -379,12 +380,12 @@ protected override void StopProcessing() /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.IErrorResponse + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IErrorResponse /// from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { @@ -401,7 +402,7 @@ protected override void StopProcessing() if ((null == code || null == message)) { // Unrecognized Response. Create an error record based on what we have. - var ex = new Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.RestException(responseMessage, await response); WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId, ResourceGroupName=ResourceGroupName, Name=Name, body=_storageMoverBody }) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } @@ -419,12 +420,12 @@ protected override void StopProcessing() /// a delegate that is called when the remote service returns 200 (OK). /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IStorageMover + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IStorageMover /// from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { @@ -436,7 +437,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / application/json - // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IStorageMover + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IStorageMover WriteObject((await response)); } } diff --git a/src/StorageMover/generated/cmdlets/RemoveAzStorageMoverAgent_Delete.cs b/src/StorageMover/generated/cmdlets/RemoveAzStorageMoverAgent_Delete.cs index 5e569949abd7..cfad943170fb 100644 --- a/src/StorageMover/generated/cmdlets/RemoveAzStorageMoverAgent_Delete.cs +++ b/src/StorageMover/generated/cmdlets/RemoveAzStorageMoverAgent_Delete.cs @@ -17,6 +17,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Cmdlets [global::System.Management.Automation.OutputType(typeof(bool))] [global::Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Description(@"Deletes an Agent resource.")] [global::Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Generated] + [global::Microsoft.Azure.PowerShell.Cmdlets.StorageMover.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorageMover/storageMovers/{storageMoverName}/agents/{agentName}", ApiVersion = "2023-10-01")] public partial class RemoveAzStorageMoverAgent_Delete : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.IEventListener { @@ -182,12 +183,12 @@ public partial class RemoveAzStorageMoverAgent_Delete : global::System.Managemen /// happens on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.IErrorResponse + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IErrorResponse /// from the remote call /// /// Determines if the rest of the onDefault method should be processed, or if the method should /// return immediately (set to true to skip further processing ) - partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// overrideOnNoContent will be called before the regular onNoContent has been processed, allowing customization of @@ -437,12 +438,12 @@ protected override void StopProcessing() /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.IErrorResponse + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IErrorResponse /// from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { @@ -459,7 +460,7 @@ protected override void StopProcessing() if ((null == code || null == message)) { // Unrecognized Response. Create an error record based on what we have. - var ex = new Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.RestException(responseMessage, await response); WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId, ResourceGroupName=ResourceGroupName, StorageMoverName=StorageMoverName, Name=Name }) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } diff --git a/src/StorageMover/generated/cmdlets/RemoveAzStorageMoverAgent_DeleteViaIdentity.cs b/src/StorageMover/generated/cmdlets/RemoveAzStorageMoverAgent_DeleteViaIdentity.cs index 7f90963af35d..2d1af6267384 100644 --- a/src/StorageMover/generated/cmdlets/RemoveAzStorageMoverAgent_DeleteViaIdentity.cs +++ b/src/StorageMover/generated/cmdlets/RemoveAzStorageMoverAgent_DeleteViaIdentity.cs @@ -17,6 +17,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Cmdlets [global::System.Management.Automation.OutputType(typeof(bool))] [global::Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Description(@"Deletes an Agent resource.")] [global::Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Generated] + [global::Microsoft.Azure.PowerShell.Cmdlets.StorageMover.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorageMover/storageMovers/{storageMoverName}/agents/{agentName}", ApiVersion = "2023-10-01")] public partial class RemoveAzStorageMoverAgent_DeleteViaIdentity : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.IEventListener { @@ -129,12 +130,12 @@ public partial class RemoveAzStorageMoverAgent_DeleteViaIdentity : global::Syste /// happens on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.IErrorResponse + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IErrorResponse /// from the remote call /// /// Determines if the rest of the onDefault method should be processed, or if the method should /// return immediately (set to true to skip further processing ) - partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// overrideOnNoContent will be called before the regular onNoContent has been processed, allowing customization of @@ -404,12 +405,12 @@ protected override void StopProcessing() /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.IErrorResponse + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IErrorResponse /// from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { @@ -426,7 +427,7 @@ protected override void StopProcessing() if ((null == code || null == message)) { // Unrecognized Response. Create an error record based on what we have. - var ex = new Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.RestException(responseMessage, await response); WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { }) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } diff --git a/src/StorageMover/generated/cmdlets/RemoveAzStorageMoverEndpoint_Delete.cs b/src/StorageMover/generated/cmdlets/RemoveAzStorageMoverEndpoint_Delete.cs index 4b0e65eb1752..78ce548a91a4 100644 --- a/src/StorageMover/generated/cmdlets/RemoveAzStorageMoverEndpoint_Delete.cs +++ b/src/StorageMover/generated/cmdlets/RemoveAzStorageMoverEndpoint_Delete.cs @@ -16,6 +16,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Cmdlets [global::System.Management.Automation.OutputType(typeof(bool))] [global::Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Description(@"Deletes an Endpoint resource.")] [global::Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Generated] + [global::Microsoft.Azure.PowerShell.Cmdlets.StorageMover.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorageMover/storageMovers/{storageMoverName}/endpoints/{endpointName}", ApiVersion = "2023-10-01")] public partial class RemoveAzStorageMoverEndpoint_Delete : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.IEventListener { @@ -181,12 +182,12 @@ public partial class RemoveAzStorageMoverEndpoint_Delete : global::System.Manage /// happens on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.IErrorResponse + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IErrorResponse /// from the remote call /// /// Determines if the rest of the onDefault method should be processed, or if the method should /// return immediately (set to true to skip further processing ) - partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// overrideOnNoContent will be called before the regular onNoContent has been processed, allowing customization of @@ -436,12 +437,12 @@ protected override void StopProcessing() /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.IErrorResponse + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IErrorResponse /// from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { @@ -458,7 +459,7 @@ protected override void StopProcessing() if ((null == code || null == message)) { // Unrecognized Response. Create an error record based on what we have. - var ex = new Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.RestException(responseMessage, await response); WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId, ResourceGroupName=ResourceGroupName, StorageMoverName=StorageMoverName, Name=Name }) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } diff --git a/src/StorageMover/generated/cmdlets/RemoveAzStorageMoverEndpoint_DeleteViaIdentity.cs b/src/StorageMover/generated/cmdlets/RemoveAzStorageMoverEndpoint_DeleteViaIdentity.cs index cd121805424c..4625f7642516 100644 --- a/src/StorageMover/generated/cmdlets/RemoveAzStorageMoverEndpoint_DeleteViaIdentity.cs +++ b/src/StorageMover/generated/cmdlets/RemoveAzStorageMoverEndpoint_DeleteViaIdentity.cs @@ -16,6 +16,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Cmdlets [global::System.Management.Automation.OutputType(typeof(bool))] [global::Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Description(@"Deletes an Endpoint resource.")] [global::Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Generated] + [global::Microsoft.Azure.PowerShell.Cmdlets.StorageMover.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorageMover/storageMovers/{storageMoverName}/endpoints/{endpointName}", ApiVersion = "2023-10-01")] public partial class RemoveAzStorageMoverEndpoint_DeleteViaIdentity : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.IEventListener { @@ -128,12 +129,12 @@ public partial class RemoveAzStorageMoverEndpoint_DeleteViaIdentity : global::Sy /// happens on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.IErrorResponse + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IErrorResponse /// from the remote call /// /// Determines if the rest of the onDefault method should be processed, or if the method should /// return immediately (set to true to skip further processing ) - partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// overrideOnNoContent will be called before the regular onNoContent has been processed, allowing customization of @@ -403,12 +404,12 @@ protected override void StopProcessing() /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.IErrorResponse + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IErrorResponse /// from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { @@ -425,7 +426,7 @@ protected override void StopProcessing() if ((null == code || null == message)) { // Unrecognized Response. Create an error record based on what we have. - var ex = new Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.RestException(responseMessage, await response); WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { }) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } diff --git a/src/StorageMover/generated/cmdlets/RemoveAzStorageMoverJobDefinition_Delete.cs b/src/StorageMover/generated/cmdlets/RemoveAzStorageMoverJobDefinition_Delete.cs index 6608037f0d7a..774054c2c748 100644 --- a/src/StorageMover/generated/cmdlets/RemoveAzStorageMoverJobDefinition_Delete.cs +++ b/src/StorageMover/generated/cmdlets/RemoveAzStorageMoverJobDefinition_Delete.cs @@ -16,6 +16,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Cmdlets [global::System.Management.Automation.OutputType(typeof(bool))] [global::Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Description(@"Deletes a Job Definition resource.")] [global::Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Generated] + [global::Microsoft.Azure.PowerShell.Cmdlets.StorageMover.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorageMover/storageMovers/{storageMoverName}/projects/{projectName}/jobDefinitions/{jobDefinitionName}", ApiVersion = "2023-10-01")] public partial class RemoveAzStorageMoverJobDefinition_Delete : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.IEventListener { @@ -195,12 +196,12 @@ public partial class RemoveAzStorageMoverJobDefinition_Delete : global::System.M /// happens on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.IErrorResponse + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IErrorResponse /// from the remote call /// /// Determines if the rest of the onDefault method should be processed, or if the method should /// return immediately (set to true to skip further processing ) - partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// overrideOnNoContent will be called before the regular onNoContent has been processed, allowing customization of @@ -451,12 +452,12 @@ protected override void StopProcessing() /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.IErrorResponse + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IErrorResponse /// from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { @@ -473,7 +474,7 @@ protected override void StopProcessing() if ((null == code || null == message)) { // Unrecognized Response. Create an error record based on what we have. - var ex = new Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.RestException(responseMessage, await response); WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId, ResourceGroupName=ResourceGroupName, StorageMoverName=StorageMoverName, ProjectName=ProjectName, Name=Name }) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } diff --git a/src/StorageMover/generated/cmdlets/RemoveAzStorageMoverJobDefinition_DeleteViaIdentity.cs b/src/StorageMover/generated/cmdlets/RemoveAzStorageMoverJobDefinition_DeleteViaIdentity.cs index 03d7b4263481..1ec4605b3393 100644 --- a/src/StorageMover/generated/cmdlets/RemoveAzStorageMoverJobDefinition_DeleteViaIdentity.cs +++ b/src/StorageMover/generated/cmdlets/RemoveAzStorageMoverJobDefinition_DeleteViaIdentity.cs @@ -16,6 +16,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Cmdlets [global::System.Management.Automation.OutputType(typeof(bool))] [global::Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Description(@"Deletes a Job Definition resource.")] [global::Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Generated] + [global::Microsoft.Azure.PowerShell.Cmdlets.StorageMover.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorageMover/storageMovers/{storageMoverName}/projects/{projectName}/jobDefinitions/{jobDefinitionName}", ApiVersion = "2023-10-01")] public partial class RemoveAzStorageMoverJobDefinition_DeleteViaIdentity : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.IEventListener { @@ -128,12 +129,12 @@ public partial class RemoveAzStorageMoverJobDefinition_DeleteViaIdentity : globa /// happens on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.IErrorResponse + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IErrorResponse /// from the remote call /// /// Determines if the rest of the onDefault method should be processed, or if the method should /// return immediately (set to true to skip further processing ) - partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// overrideOnNoContent will be called before the regular onNoContent has been processed, allowing customization of @@ -407,12 +408,12 @@ protected override void StopProcessing() /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.IErrorResponse + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IErrorResponse /// from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { @@ -429,7 +430,7 @@ protected override void StopProcessing() if ((null == code || null == message)) { // Unrecognized Response. Create an error record based on what we have. - var ex = new Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.RestException(responseMessage, await response); WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { }) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } diff --git a/src/StorageMover/generated/cmdlets/RemoveAzStorageMoverProject_Delete.cs b/src/StorageMover/generated/cmdlets/RemoveAzStorageMoverProject_Delete.cs index 4a0b2a410c8c..3dbabf94053c 100644 --- a/src/StorageMover/generated/cmdlets/RemoveAzStorageMoverProject_Delete.cs +++ b/src/StorageMover/generated/cmdlets/RemoveAzStorageMoverProject_Delete.cs @@ -16,6 +16,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Cmdlets [global::System.Management.Automation.OutputType(typeof(bool))] [global::Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Description(@"Deletes a Project resource.")] [global::Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Generated] + [global::Microsoft.Azure.PowerShell.Cmdlets.StorageMover.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorageMover/storageMovers/{storageMoverName}/projects/{projectName}", ApiVersion = "2023-10-01")] public partial class RemoveAzStorageMoverProject_Delete : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.IEventListener { @@ -181,12 +182,12 @@ public partial class RemoveAzStorageMoverProject_Delete : global::System.Managem /// happens on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.IErrorResponse + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IErrorResponse /// from the remote call /// /// Determines if the rest of the onDefault method should be processed, or if the method should /// return immediately (set to true to skip further processing ) - partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// overrideOnNoContent will be called before the regular onNoContent has been processed, allowing customization of @@ -436,12 +437,12 @@ protected override void StopProcessing() /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.IErrorResponse + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IErrorResponse /// from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { @@ -458,7 +459,7 @@ protected override void StopProcessing() if ((null == code || null == message)) { // Unrecognized Response. Create an error record based on what we have. - var ex = new Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.RestException(responseMessage, await response); WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId, ResourceGroupName=ResourceGroupName, StorageMoverName=StorageMoverName, Name=Name }) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } diff --git a/src/StorageMover/generated/cmdlets/RemoveAzStorageMoverProject_DeleteViaIdentity.cs b/src/StorageMover/generated/cmdlets/RemoveAzStorageMoverProject_DeleteViaIdentity.cs index 8cdc51a966f3..82dcca73bf4c 100644 --- a/src/StorageMover/generated/cmdlets/RemoveAzStorageMoverProject_DeleteViaIdentity.cs +++ b/src/StorageMover/generated/cmdlets/RemoveAzStorageMoverProject_DeleteViaIdentity.cs @@ -16,6 +16,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Cmdlets [global::System.Management.Automation.OutputType(typeof(bool))] [global::Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Description(@"Deletes a Project resource.")] [global::Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Generated] + [global::Microsoft.Azure.PowerShell.Cmdlets.StorageMover.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorageMover/storageMovers/{storageMoverName}/projects/{projectName}", ApiVersion = "2023-10-01")] public partial class RemoveAzStorageMoverProject_DeleteViaIdentity : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.IEventListener { @@ -128,12 +129,12 @@ public partial class RemoveAzStorageMoverProject_DeleteViaIdentity : global::Sys /// happens on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.IErrorResponse + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IErrorResponse /// from the remote call /// /// Determines if the rest of the onDefault method should be processed, or if the method should /// return immediately (set to true to skip further processing ) - partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// overrideOnNoContent will be called before the regular onNoContent has been processed, allowing customization of @@ -403,12 +404,12 @@ protected override void StopProcessing() /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.IErrorResponse + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IErrorResponse /// from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { @@ -425,7 +426,7 @@ protected override void StopProcessing() if ((null == code || null == message)) { // Unrecognized Response. Create an error record based on what we have. - var ex = new Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.RestException(responseMessage, await response); WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { }) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } diff --git a/src/StorageMover/generated/cmdlets/RemoveAzStorageMover_Delete.cs b/src/StorageMover/generated/cmdlets/RemoveAzStorageMover_Delete.cs index cfd5b86815a7..320c2ccf1bae 100644 --- a/src/StorageMover/generated/cmdlets/RemoveAzStorageMover_Delete.cs +++ b/src/StorageMover/generated/cmdlets/RemoveAzStorageMover_Delete.cs @@ -17,6 +17,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Cmdlets [global::System.Management.Automation.OutputType(typeof(bool))] [global::Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Description(@"Deletes a Storage Mover resource.")] [global::Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Generated] + [global::Microsoft.Azure.PowerShell.Cmdlets.StorageMover.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorageMover/storageMovers/{storageMoverName}", ApiVersion = "2023-10-01")] public partial class RemoveAzStorageMover_Delete : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.IEventListener { @@ -168,12 +169,12 @@ public partial class RemoveAzStorageMover_Delete : global::System.Management.Aut /// happens on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.IErrorResponse + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IErrorResponse /// from the remote call /// /// Determines if the rest of the onDefault method should be processed, or if the method should /// return immediately (set to true to skip further processing ) - partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// overrideOnNoContent will be called before the regular onNoContent has been processed, allowing customization of @@ -422,12 +423,12 @@ protected override void StopProcessing() /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.IErrorResponse + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IErrorResponse /// from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { @@ -444,7 +445,7 @@ protected override void StopProcessing() if ((null == code || null == message)) { // Unrecognized Response. Create an error record based on what we have. - var ex = new Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.RestException(responseMessage, await response); WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId, ResourceGroupName=ResourceGroupName, Name=Name }) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } diff --git a/src/StorageMover/generated/cmdlets/RemoveAzStorageMover_DeleteViaIdentity.cs b/src/StorageMover/generated/cmdlets/RemoveAzStorageMover_DeleteViaIdentity.cs index ce8eb0adb87b..b596ef2f613e 100644 --- a/src/StorageMover/generated/cmdlets/RemoveAzStorageMover_DeleteViaIdentity.cs +++ b/src/StorageMover/generated/cmdlets/RemoveAzStorageMover_DeleteViaIdentity.cs @@ -17,6 +17,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Cmdlets [global::System.Management.Automation.OutputType(typeof(bool))] [global::Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Description(@"Deletes a Storage Mover resource.")] [global::Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Generated] + [global::Microsoft.Azure.PowerShell.Cmdlets.StorageMover.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorageMover/storageMovers/{storageMoverName}", ApiVersion = "2023-10-01")] public partial class RemoveAzStorageMover_DeleteViaIdentity : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.IEventListener { @@ -129,12 +130,12 @@ public partial class RemoveAzStorageMover_DeleteViaIdentity : global::System.Man /// happens on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.IErrorResponse + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IErrorResponse /// from the remote call /// /// Determines if the rest of the onDefault method should be processed, or if the method should /// return immediately (set to true to skip further processing ) - partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// overrideOnNoContent will be called before the regular onNoContent has been processed, allowing customization of @@ -400,12 +401,12 @@ protected override void StopProcessing() /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.IErrorResponse + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IErrorResponse /// from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { @@ -422,7 +423,7 @@ protected override void StopProcessing() if ((null == code || null == message)) { // Unrecognized Response. Create an error record based on what we have. - var ex = new Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.RestException(responseMessage, await response); WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { }) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } diff --git a/src/StorageMover/generated/cmdlets/StartAzStorageMoverJobDefinition_Start.cs b/src/StorageMover/generated/cmdlets/StartAzStorageMoverJobDefinition_Start.cs index eb8c6ccfc36a..4fe5c19bff5f 100644 --- a/src/StorageMover/generated/cmdlets/StartAzStorageMoverJobDefinition_Start.cs +++ b/src/StorageMover/generated/cmdlets/StartAzStorageMoverJobDefinition_Start.cs @@ -18,6 +18,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Cmdlets [global::System.Management.Automation.OutputType(typeof(string))] [global::Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Description(@"Requests an Agent to start a new instance of this Job Definition, generating a new Job Run resource.")] [global::Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Generated] + [global::Microsoft.Azure.PowerShell.Cmdlets.StorageMover.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorageMover/storageMovers/{storageMoverName}/projects/{projectName}/jobDefinitions/{jobDefinitionName}/startJob", ApiVersion = "2023-10-01")] public partial class StartAzStorageMoverJobDefinition_Start : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.IEventListener { @@ -176,24 +177,24 @@ public partial class StartAzStorageMoverJobDefinition_Start : global::System.Man /// happens on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.IErrorResponse + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IErrorResponse /// from the remote call /// /// Determines if the rest of the onDefault method should be processed, or if the method should /// return immediately (set to true to skip further processing ) - partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// overrideOnOk will be called before the regular onOk has been processed, allowing customization of what happens /// on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobRunResourceId + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobRunResourceId /// from the remote call /// /// Determines if the rest of the onOk method should be processed, or if the method should return /// immediately (set to true to skip further processing ) - partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) @@ -369,12 +370,12 @@ protected override void StopProcessing() /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.IErrorResponse + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IErrorResponse /// from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { @@ -391,7 +392,7 @@ protected override void StopProcessing() if ((null == code || null == message)) { // Unrecognized Response. Create an error record based on what we have. - var ex = new Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.RestException(responseMessage, await response); WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId, ResourceGroupName=ResourceGroupName, StorageMoverName=StorageMoverName, ProjectName=ProjectName, JobDefinitionName=JobDefinitionName }) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } @@ -409,12 +410,12 @@ protected override void StopProcessing() /// a delegate that is called when the remote service returns 200 (OK). /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobRunResourceId + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobRunResourceId /// from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { @@ -426,7 +427,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / application/json - // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobRunResourceId + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobRunResourceId WriteObject((await response).JobRunResourceId1); } } diff --git a/src/StorageMover/generated/cmdlets/StartAzStorageMoverJobDefinition_StartViaIdentity.cs b/src/StorageMover/generated/cmdlets/StartAzStorageMoverJobDefinition_StartViaIdentity.cs index c4f9adfbe032..1b2b18ea2e13 100644 --- a/src/StorageMover/generated/cmdlets/StartAzStorageMoverJobDefinition_StartViaIdentity.cs +++ b/src/StorageMover/generated/cmdlets/StartAzStorageMoverJobDefinition_StartViaIdentity.cs @@ -18,6 +18,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Cmdlets [global::System.Management.Automation.OutputType(typeof(string))] [global::Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Description(@"Requests an Agent to start a new instance of this Job Definition, generating a new Job Run resource.")] [global::Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Generated] + [global::Microsoft.Azure.PowerShell.Cmdlets.StorageMover.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorageMover/storageMovers/{storageMoverName}/projects/{projectName}/jobDefinitions/{jobDefinitionName}/startJob", ApiVersion = "2023-10-01")] public partial class StartAzStorageMoverJobDefinition_StartViaIdentity : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.IEventListener { @@ -110,24 +111,24 @@ public partial class StartAzStorageMoverJobDefinition_StartViaIdentity : global: /// happens on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.IErrorResponse + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IErrorResponse /// from the remote call /// /// Determines if the rest of the onDefault method should be processed, or if the method should /// return immediately (set to true to skip further processing ) - partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// overrideOnOk will be called before the regular onOk has been processed, allowing customization of what happens /// on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobRunResourceId + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobRunResourceId /// from the remote call /// /// Determines if the rest of the onOk method should be processed, or if the method should return /// immediately (set to true to skip further processing ) - partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) @@ -331,12 +332,12 @@ protected override void StopProcessing() /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.IErrorResponse + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IErrorResponse /// from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { @@ -353,7 +354,7 @@ protected override void StopProcessing() if ((null == code || null == message)) { // Unrecognized Response. Create an error record based on what we have. - var ex = new Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.RestException(responseMessage, await response); WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { }) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } @@ -371,12 +372,12 @@ protected override void StopProcessing() /// a delegate that is called when the remote service returns 200 (OK). /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobRunResourceId + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobRunResourceId /// from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { @@ -388,7 +389,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / application/json - // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobRunResourceId + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobRunResourceId WriteObject((await response).JobRunResourceId1); } } diff --git a/src/StorageMover/generated/cmdlets/StopAzStorageMoverJobDefinition_Stop.cs b/src/StorageMover/generated/cmdlets/StopAzStorageMoverJobDefinition_Stop.cs index 5b3a9e7cb651..a0df038f63d4 100644 --- a/src/StorageMover/generated/cmdlets/StopAzStorageMoverJobDefinition_Stop.cs +++ b/src/StorageMover/generated/cmdlets/StopAzStorageMoverJobDefinition_Stop.cs @@ -16,6 +16,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Cmdlets [global::System.Management.Automation.OutputType(typeof(string))] [global::Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Description(@"Requests the Agent of any active instance of this Job Definition to stop.")] [global::Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Generated] + [global::Microsoft.Azure.PowerShell.Cmdlets.StorageMover.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorageMover/storageMovers/{storageMoverName}/projects/{projectName}/jobDefinitions/{jobDefinitionName}/stopJob", ApiVersion = "2023-10-01")] public partial class StopAzStorageMoverJobDefinition_Stop : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.IEventListener { @@ -174,24 +175,24 @@ public partial class StopAzStorageMoverJobDefinition_Stop : global::System.Manag /// happens on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.IErrorResponse + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IErrorResponse /// from the remote call /// /// Determines if the rest of the onDefault method should be processed, or if the method should /// return immediately (set to true to skip further processing ) - partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// overrideOnOk will be called before the regular onOk has been processed, allowing customization of what happens /// on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobRunResourceId + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobRunResourceId /// from the remote call /// /// Determines if the rest of the onOk method should be processed, or if the method should return /// immediately (set to true to skip further processing ) - partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) @@ -367,12 +368,12 @@ protected override void StopProcessing() /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.IErrorResponse + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IErrorResponse /// from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { @@ -389,7 +390,7 @@ protected override void StopProcessing() if ((null == code || null == message)) { // Unrecognized Response. Create an error record based on what we have. - var ex = new Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.RestException(responseMessage, await response); WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId, ResourceGroupName=ResourceGroupName, StorageMoverName=StorageMoverName, ProjectName=ProjectName, JobDefinitionName=JobDefinitionName }) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } @@ -407,12 +408,12 @@ protected override void StopProcessing() /// a delegate that is called when the remote service returns 200 (OK). /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobRunResourceId + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobRunResourceId /// from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { @@ -424,7 +425,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / application/json - // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobRunResourceId + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobRunResourceId WriteObject((await response).JobRunResourceId1); } } diff --git a/src/StorageMover/generated/cmdlets/StopAzStorageMoverJobDefinition_StopViaIdentity.cs b/src/StorageMover/generated/cmdlets/StopAzStorageMoverJobDefinition_StopViaIdentity.cs index 4570e5ad24cb..5404de069301 100644 --- a/src/StorageMover/generated/cmdlets/StopAzStorageMoverJobDefinition_StopViaIdentity.cs +++ b/src/StorageMover/generated/cmdlets/StopAzStorageMoverJobDefinition_StopViaIdentity.cs @@ -16,6 +16,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Cmdlets [global::System.Management.Automation.OutputType(typeof(string))] [global::Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Description(@"Requests the Agent of any active instance of this Job Definition to stop.")] [global::Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Generated] + [global::Microsoft.Azure.PowerShell.Cmdlets.StorageMover.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorageMover/storageMovers/{storageMoverName}/projects/{projectName}/jobDefinitions/{jobDefinitionName}/stopJob", ApiVersion = "2023-10-01")] public partial class StopAzStorageMoverJobDefinition_StopViaIdentity : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.IEventListener { @@ -108,24 +109,24 @@ public partial class StopAzStorageMoverJobDefinition_StopViaIdentity : global::S /// happens on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.IErrorResponse + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IErrorResponse /// from the remote call /// /// Determines if the rest of the onDefault method should be processed, or if the method should /// return immediately (set to true to skip further processing ) - partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// overrideOnOk will be called before the regular onOk has been processed, allowing customization of what happens /// on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobRunResourceId + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobRunResourceId /// from the remote call /// /// Determines if the rest of the onOk method should be processed, or if the method should return /// immediately (set to true to skip further processing ) - partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) @@ -329,12 +330,12 @@ protected override void StopProcessing() /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.IErrorResponse + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IErrorResponse /// from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { @@ -351,7 +352,7 @@ protected override void StopProcessing() if ((null == code || null == message)) { // Unrecognized Response. Create an error record based on what we have. - var ex = new Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.RestException(responseMessage, await response); WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { }) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } @@ -369,12 +370,12 @@ protected override void StopProcessing() /// a delegate that is called when the remote service returns 200 (OK). /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobRunResourceId + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobRunResourceId /// from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { @@ -386,7 +387,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / application/json - // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobRunResourceId + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobRunResourceId WriteObject((await response).JobRunResourceId1); } } diff --git a/src/StorageMover/generated/cmdlets/UpdateAzStorageMoverAgent_Update.cs b/src/StorageMover/generated/cmdlets/UpdateAzStorageMoverAgent_Update.cs index e850c059a90e..c47c4723f063 100644 --- a/src/StorageMover/generated/cmdlets/UpdateAzStorageMoverAgent_Update.cs +++ b/src/StorageMover/generated/cmdlets/UpdateAzStorageMoverAgent_Update.cs @@ -13,9 +13,10 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Cmdlets /// [OpenAPI] Update=>PATCH:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorageMover/storageMovers/{storageMoverName}/agents/{agentName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsData.Update, @"AzStorageMoverAgent_Update", SupportsShouldProcess = true)] - [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IAgent))] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IAgent))] [global::Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Description(@"Creates or updates an Agent resource.")] [global::Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Generated] + [global::Microsoft.Azure.PowerShell.Cmdlets.StorageMover.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorageMover/storageMovers/{storageMoverName}/agents/{agentName}", ApiVersion = "2023-10-01")] public partial class UpdateAzStorageMoverAgent_Update : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.IEventListener { @@ -34,7 +35,7 @@ public partial class UpdateAzStorageMoverAgent_Update : global::System.Managemen private global::System.Threading.CancellationTokenSource _cancellationTokenSource = new global::System.Threading.CancellationTokenSource(); /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IAgentUpdateParameters _agent; + private Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IAgentUpdateParameters _agent; /// The Agent resource. [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The Agent resource.", ValueFromPipeline = true)] @@ -43,8 +44,8 @@ public partial class UpdateAzStorageMoverAgent_Update : global::System.Managemen ReadOnly = false, Description = @"The Agent resource.", SerializedName = @"agent", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IAgentUpdateParameters) })] - public Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IAgentUpdateParameters Agent { get => this._agent; set => this._agent = value; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IAgentUpdateParameters) })] + public Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IAgentUpdateParameters Agent { get => this._agent; set => this._agent = value; } /// Wait for .NET debugger to attach [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Wait for .NET debugger to attach")] @@ -174,24 +175,24 @@ public partial class UpdateAzStorageMoverAgent_Update : global::System.Managemen /// happens on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.IErrorResponse + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IErrorResponse /// from the remote call /// /// Determines if the rest of the onDefault method should be processed, or if the method should /// return immediately (set to true to skip further processing ) - partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// overrideOnOk will be called before the regular onOk has been processed, allowing customization of what happens /// on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IAgent + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IAgent /// from the remote call /// /// Determines if the rest of the onOk method should be processed, or if the method should return /// immediately (set to true to skip further processing ) - partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) @@ -367,12 +368,12 @@ public UpdateAzStorageMoverAgent_Update() /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.IErrorResponse + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IErrorResponse /// from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { @@ -389,7 +390,7 @@ public UpdateAzStorageMoverAgent_Update() if ((null == code || null == message)) { // Unrecognized Response. Create an error record based on what we have. - var ex = new Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.RestException(responseMessage, await response); WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId, ResourceGroupName=ResourceGroupName, StorageMoverName=StorageMoverName, Name=Name, body=Agent }) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } @@ -407,12 +408,12 @@ public UpdateAzStorageMoverAgent_Update() /// a delegate that is called when the remote service returns 200 (OK). /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IAgent + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IAgent /// from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { @@ -424,7 +425,7 @@ public UpdateAzStorageMoverAgent_Update() return ; } // onOk - response for 200 / application/json - // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IAgent + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IAgent WriteObject((await response)); } } diff --git a/src/StorageMover/generated/cmdlets/UpdateAzStorageMoverAgent_UpdateExpanded.cs b/src/StorageMover/generated/cmdlets/UpdateAzStorageMoverAgent_UpdateExpanded.cs index ba39f0c300b7..a2da1c5203c0 100644 --- a/src/StorageMover/generated/cmdlets/UpdateAzStorageMoverAgent_UpdateExpanded.cs +++ b/src/StorageMover/generated/cmdlets/UpdateAzStorageMoverAgent_UpdateExpanded.cs @@ -13,9 +13,10 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Cmdlets /// [OpenAPI] Update=>PATCH:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorageMover/storageMovers/{storageMoverName}/agents/{agentName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsData.Update, @"AzStorageMoverAgent_UpdateExpanded", SupportsShouldProcess = true)] - [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IAgent))] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IAgent))] [global::Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Description(@"Creates or updates an Agent resource.")] [global::Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Generated] + [global::Microsoft.Azure.PowerShell.Cmdlets.StorageMover.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorageMover/storageMovers/{storageMoverName}/agents/{agentName}", ApiVersion = "2023-10-01")] public partial class UpdateAzStorageMoverAgent_UpdateExpanded : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.IEventListener { @@ -29,7 +30,7 @@ public partial class UpdateAzStorageMoverAgent_UpdateExpanded : global::System.M private string __processRecordId; /// The Agent resource. - private Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IAgentUpdateParameters _agentBody = new Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.AgentUpdateParameters(); + private Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IAgentUpdateParameters _agentBody = new Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.AgentUpdateParameters(); /// /// The for this operation. @@ -175,24 +176,24 @@ public partial class UpdateAzStorageMoverAgent_UpdateExpanded : global::System.M /// happens on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.IErrorResponse + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IErrorResponse /// from the remote call /// /// Determines if the rest of the onDefault method should be processed, or if the method should /// return immediately (set to true to skip further processing ) - partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// overrideOnOk will be called before the regular onOk has been processed, allowing customization of what happens /// on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IAgent + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IAgent /// from the remote call /// /// Determines if the rest of the onOk method should be processed, or if the method should return /// immediately (set to true to skip further processing ) - partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) @@ -368,12 +369,12 @@ public UpdateAzStorageMoverAgent_UpdateExpanded() /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.IErrorResponse + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IErrorResponse /// from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { @@ -390,7 +391,7 @@ public UpdateAzStorageMoverAgent_UpdateExpanded() if ((null == code || null == message)) { // Unrecognized Response. Create an error record based on what we have. - var ex = new Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.RestException(responseMessage, await response); WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId, ResourceGroupName=ResourceGroupName, StorageMoverName=StorageMoverName, Name=Name, body=_agentBody }) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } @@ -408,12 +409,12 @@ public UpdateAzStorageMoverAgent_UpdateExpanded() /// a delegate that is called when the remote service returns 200 (OK). /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IAgent + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IAgent /// from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { @@ -425,7 +426,7 @@ public UpdateAzStorageMoverAgent_UpdateExpanded() return ; } // onOk - response for 200 / application/json - // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IAgent + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IAgent WriteObject((await response)); } } diff --git a/src/StorageMover/generated/cmdlets/UpdateAzStorageMoverAgent_UpdateViaIdentity.cs b/src/StorageMover/generated/cmdlets/UpdateAzStorageMoverAgent_UpdateViaIdentity.cs index eeee5fe7b4bc..32ea7ff1c4d8 100644 --- a/src/StorageMover/generated/cmdlets/UpdateAzStorageMoverAgent_UpdateViaIdentity.cs +++ b/src/StorageMover/generated/cmdlets/UpdateAzStorageMoverAgent_UpdateViaIdentity.cs @@ -13,9 +13,10 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Cmdlets /// [OpenAPI] Update=>PATCH:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorageMover/storageMovers/{storageMoverName}/agents/{agentName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsData.Update, @"AzStorageMoverAgent_UpdateViaIdentity", SupportsShouldProcess = true)] - [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IAgent))] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IAgent))] [global::Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Description(@"Creates or updates an Agent resource.")] [global::Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Generated] + [global::Microsoft.Azure.PowerShell.Cmdlets.StorageMover.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorageMover/storageMovers/{storageMoverName}/agents/{agentName}", ApiVersion = "2023-10-01")] public partial class UpdateAzStorageMoverAgent_UpdateViaIdentity : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.IEventListener { @@ -34,7 +35,7 @@ public partial class UpdateAzStorageMoverAgent_UpdateViaIdentity : global::Syste private global::System.Threading.CancellationTokenSource _cancellationTokenSource = new global::System.Threading.CancellationTokenSource(); /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IAgentUpdateParameters _agent; + private Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IAgentUpdateParameters _agent; /// The Agent resource. [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The Agent resource.", ValueFromPipeline = true)] @@ -43,8 +44,8 @@ public partial class UpdateAzStorageMoverAgent_UpdateViaIdentity : global::Syste ReadOnly = false, Description = @"The Agent resource.", SerializedName = @"agent", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IAgentUpdateParameters) })] - public Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IAgentUpdateParameters Agent { get => this._agent; set => this._agent = value; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IAgentUpdateParameters) })] + public Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IAgentUpdateParameters Agent { get => this._agent; set => this._agent = value; } /// Wait for .NET debugger to attach [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Wait for .NET debugger to attach")] @@ -121,24 +122,24 @@ public partial class UpdateAzStorageMoverAgent_UpdateViaIdentity : global::Syste /// happens on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.IErrorResponse + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IErrorResponse /// from the remote call /// /// Determines if the rest of the onDefault method should be processed, or if the method should /// return immediately (set to true to skip further processing ) - partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// overrideOnOk will be called before the regular onOk has been processed, allowing customization of what happens /// on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IAgent + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IAgent /// from the remote call /// /// Determines if the rest of the onOk method should be processed, or if the method should return /// immediately (set to true to skip further processing ) - partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) @@ -338,12 +339,12 @@ public UpdateAzStorageMoverAgent_UpdateViaIdentity() /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.IErrorResponse + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IErrorResponse /// from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { @@ -360,7 +361,7 @@ public UpdateAzStorageMoverAgent_UpdateViaIdentity() if ((null == code || null == message)) { // Unrecognized Response. Create an error record based on what we have. - var ex = new Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.RestException(responseMessage, await response); WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { body=Agent }) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } @@ -378,12 +379,12 @@ public UpdateAzStorageMoverAgent_UpdateViaIdentity() /// a delegate that is called when the remote service returns 200 (OK). /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IAgent + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IAgent /// from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { @@ -395,7 +396,7 @@ public UpdateAzStorageMoverAgent_UpdateViaIdentity() return ; } // onOk - response for 200 / application/json - // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IAgent + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IAgent WriteObject((await response)); } } diff --git a/src/StorageMover/generated/cmdlets/UpdateAzStorageMoverAgent_UpdateViaIdentityExpanded.cs b/src/StorageMover/generated/cmdlets/UpdateAzStorageMoverAgent_UpdateViaIdentityExpanded.cs index 74d2583e25cf..7fe806233eee 100644 --- a/src/StorageMover/generated/cmdlets/UpdateAzStorageMoverAgent_UpdateViaIdentityExpanded.cs +++ b/src/StorageMover/generated/cmdlets/UpdateAzStorageMoverAgent_UpdateViaIdentityExpanded.cs @@ -13,9 +13,10 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Cmdlets /// [OpenAPI] Update=>PATCH:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorageMover/storageMovers/{storageMoverName}/agents/{agentName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsData.Update, @"AzStorageMoverAgent_UpdateViaIdentityExpanded", SupportsShouldProcess = true)] - [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IAgent))] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IAgent))] [global::Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Description(@"Creates or updates an Agent resource.")] [global::Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Generated] + [global::Microsoft.Azure.PowerShell.Cmdlets.StorageMover.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorageMover/storageMovers/{storageMoverName}/agents/{agentName}", ApiVersion = "2023-10-01")] public partial class UpdateAzStorageMoverAgent_UpdateViaIdentityExpanded : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.IEventListener { @@ -29,7 +30,7 @@ public partial class UpdateAzStorageMoverAgent_UpdateViaIdentityExpanded : globa private string __processRecordId; /// The Agent resource. - private Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IAgentUpdateParameters _agentBody = new Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.AgentUpdateParameters(); + private Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IAgentUpdateParameters _agentBody = new Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.AgentUpdateParameters(); /// /// The for this operation. @@ -122,24 +123,24 @@ public partial class UpdateAzStorageMoverAgent_UpdateViaIdentityExpanded : globa /// happens on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.IErrorResponse + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IErrorResponse /// from the remote call /// /// Determines if the rest of the onDefault method should be processed, or if the method should /// return immediately (set to true to skip further processing ) - partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// overrideOnOk will be called before the regular onOk has been processed, allowing customization of what happens /// on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IAgent + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IAgent /// from the remote call /// /// Determines if the rest of the onOk method should be processed, or if the method should return /// immediately (set to true to skip further processing ) - partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) @@ -339,12 +340,12 @@ public UpdateAzStorageMoverAgent_UpdateViaIdentityExpanded() /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.IErrorResponse + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IErrorResponse /// from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { @@ -361,7 +362,7 @@ public UpdateAzStorageMoverAgent_UpdateViaIdentityExpanded() if ((null == code || null == message)) { // Unrecognized Response. Create an error record based on what we have. - var ex = new Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.RestException(responseMessage, await response); WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { body=_agentBody }) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } @@ -379,12 +380,12 @@ public UpdateAzStorageMoverAgent_UpdateViaIdentityExpanded() /// a delegate that is called when the remote service returns 200 (OK). /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IAgent + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IAgent /// from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { @@ -396,7 +397,7 @@ public UpdateAzStorageMoverAgent_UpdateViaIdentityExpanded() return ; } // onOk - response for 200 / application/json - // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IAgent + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IAgent WriteObject((await response)); } } diff --git a/src/StorageMover/generated/cmdlets/UpdateAzStorageMoverEndpoint_UpdateExpanded.cs b/src/StorageMover/generated/cmdlets/UpdateAzStorageMoverEndpoint_UpdateExpanded.cs index 120eb3137ee9..ed1ee18fbb66 100644 --- a/src/StorageMover/generated/cmdlets/UpdateAzStorageMoverEndpoint_UpdateExpanded.cs +++ b/src/StorageMover/generated/cmdlets/UpdateAzStorageMoverEndpoint_UpdateExpanded.cs @@ -16,9 +16,10 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Cmdlets /// [global::Microsoft.Azure.PowerShell.Cmdlets.StorageMover.InternalExport] [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsData.Update, @"AzStorageMoverEndpoint_UpdateExpanded", SupportsShouldProcess = true)] - [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IEndpoint))] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IEndpoint))] [global::Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Description(@"Updates properties for an Endpoint resource. Properties not specified in the request body will be unchanged.")] [global::Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Generated] + [global::Microsoft.Azure.PowerShell.Cmdlets.StorageMover.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorageMover/storageMovers/{storageMoverName}/endpoints/{endpointName}", ApiVersion = "2023-10-01")] public partial class UpdateAzStorageMoverEndpoint_UpdateExpanded : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.IEventListener { @@ -37,7 +38,7 @@ public partial class UpdateAzStorageMoverEndpoint_UpdateExpanded : global::Syste private global::System.Threading.CancellationTokenSource _cancellationTokenSource = new global::System.Threading.CancellationTokenSource(); /// The Endpoint resource. - private Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IEndpointBaseUpdateParameters _endpointBody = new Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.EndpointBaseUpdateParameters(); + private Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IEndpointBaseUpdateParameters _endpointBody = new Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.EndpointBaseUpdateParameters(); /// Wait for .NET debugger to attach [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Wait for .NET debugger to attach")] @@ -110,8 +111,8 @@ public partial class UpdateAzStorageMoverEndpoint_UpdateExpanded : global::Syste ReadOnly = false, Description = @"The Endpoint resource, which contains information about file sources and targets.", SerializedName = @"properties", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IEndpointBaseUpdateProperties) })] - public Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IEndpointBaseUpdateProperties Property { get => _endpointBody.Property ?? null /* object */; set => _endpointBody.Property = value; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IEndpointBaseUpdateProperties) })] + public Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IEndpointBaseUpdateProperties Property { get => _endpointBody.Property ?? null /* object */; set => _endpointBody.Property = value; } /// The URI for the proxy server to use [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "The URI for the proxy server to use")] @@ -180,24 +181,24 @@ public partial class UpdateAzStorageMoverEndpoint_UpdateExpanded : global::Syste /// happens on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.IErrorResponse + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IErrorResponse /// from the remote call /// /// Determines if the rest of the onDefault method should be processed, or if the method should /// return immediately (set to true to skip further processing ) - partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// overrideOnOk will be called before the regular onOk has been processed, allowing customization of what happens /// on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IEndpoint + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IEndpoint /// from the remote call /// /// Determines if the rest of the onOk method should be processed, or if the method should return /// immediately (set to true to skip further processing ) - partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) @@ -373,12 +374,12 @@ public UpdateAzStorageMoverEndpoint_UpdateExpanded() /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.IErrorResponse + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IErrorResponse /// from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { @@ -395,7 +396,7 @@ public UpdateAzStorageMoverEndpoint_UpdateExpanded() if ((null == code || null == message)) { // Unrecognized Response. Create an error record based on what we have. - var ex = new Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.RestException(responseMessage, await response); WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId, ResourceGroupName=ResourceGroupName, StorageMoverName=StorageMoverName, Name=Name, body=_endpointBody }) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } @@ -413,12 +414,12 @@ public UpdateAzStorageMoverEndpoint_UpdateExpanded() /// a delegate that is called when the remote service returns 200 (OK). /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IEndpoint + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IEndpoint /// from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { @@ -430,7 +431,7 @@ public UpdateAzStorageMoverEndpoint_UpdateExpanded() return ; } // onOk - response for 200 / application/json - // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IEndpoint + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IEndpoint WriteObject((await response)); } } diff --git a/src/StorageMover/generated/cmdlets/UpdateAzStorageMoverEndpoint_UpdateViaIdentityExpanded.cs b/src/StorageMover/generated/cmdlets/UpdateAzStorageMoverEndpoint_UpdateViaIdentityExpanded.cs index 5ff8fee0e314..042a375edf6d 100644 --- a/src/StorageMover/generated/cmdlets/UpdateAzStorageMoverEndpoint_UpdateViaIdentityExpanded.cs +++ b/src/StorageMover/generated/cmdlets/UpdateAzStorageMoverEndpoint_UpdateViaIdentityExpanded.cs @@ -16,9 +16,10 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Cmdlets /// [global::Microsoft.Azure.PowerShell.Cmdlets.StorageMover.InternalExport] [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsData.Update, @"AzStorageMoverEndpoint_UpdateViaIdentityExpanded", SupportsShouldProcess = true)] - [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IEndpoint))] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IEndpoint))] [global::Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Description(@"Updates properties for an Endpoint resource. Properties not specified in the request body will be unchanged.")] [global::Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Generated] + [global::Microsoft.Azure.PowerShell.Cmdlets.StorageMover.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorageMover/storageMovers/{storageMoverName}/endpoints/{endpointName}", ApiVersion = "2023-10-01")] public partial class UpdateAzStorageMoverEndpoint_UpdateViaIdentityExpanded : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.IEventListener { @@ -37,7 +38,7 @@ public partial class UpdateAzStorageMoverEndpoint_UpdateViaIdentityExpanded : gl private global::System.Threading.CancellationTokenSource _cancellationTokenSource = new global::System.Threading.CancellationTokenSource(); /// The Endpoint resource. - private Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IEndpointBaseUpdateParameters _endpointBody = new Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.EndpointBaseUpdateParameters(); + private Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IEndpointBaseUpdateParameters _endpointBody = new Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.EndpointBaseUpdateParameters(); /// Wait for .NET debugger to attach [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Wait for .NET debugger to attach")] @@ -103,8 +104,8 @@ public partial class UpdateAzStorageMoverEndpoint_UpdateViaIdentityExpanded : gl ReadOnly = false, Description = @"The Endpoint resource, which contains information about file sources and targets.", SerializedName = @"properties", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IEndpointBaseUpdateProperties) })] - public Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IEndpointBaseUpdateProperties Property { get => _endpointBody.Property ?? null /* object */; set => _endpointBody.Property = value; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IEndpointBaseUpdateProperties) })] + public Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IEndpointBaseUpdateProperties Property { get => _endpointBody.Property ?? null /* object */; set => _endpointBody.Property = value; } /// The URI for the proxy server to use [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "The URI for the proxy server to use")] @@ -127,24 +128,24 @@ public partial class UpdateAzStorageMoverEndpoint_UpdateViaIdentityExpanded : gl /// happens on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.IErrorResponse + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IErrorResponse /// from the remote call /// /// Determines if the rest of the onDefault method should be processed, or if the method should /// return immediately (set to true to skip further processing ) - partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// overrideOnOk will be called before the regular onOk has been processed, allowing customization of what happens /// on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IEndpoint + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IEndpoint /// from the remote call /// /// Determines if the rest of the onOk method should be processed, or if the method should return /// immediately (set to true to skip further processing ) - partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) @@ -344,12 +345,12 @@ public UpdateAzStorageMoverEndpoint_UpdateViaIdentityExpanded() /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.IErrorResponse + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IErrorResponse /// from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { @@ -366,7 +367,7 @@ public UpdateAzStorageMoverEndpoint_UpdateViaIdentityExpanded() if ((null == code || null == message)) { // Unrecognized Response. Create an error record based on what we have. - var ex = new Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.RestException(responseMessage, await response); WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { body=_endpointBody }) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } @@ -384,12 +385,12 @@ public UpdateAzStorageMoverEndpoint_UpdateViaIdentityExpanded() /// a delegate that is called when the remote service returns 200 (OK). /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IEndpoint + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IEndpoint /// from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { @@ -401,7 +402,7 @@ public UpdateAzStorageMoverEndpoint_UpdateViaIdentityExpanded() return ; } // onOk - response for 200 / application/json - // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IEndpoint + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IEndpoint WriteObject((await response)); } } diff --git a/src/StorageMover/generated/cmdlets/UpdateAzStorageMoverJobDefinition_Update.cs b/src/StorageMover/generated/cmdlets/UpdateAzStorageMoverJobDefinition_Update.cs index 076a421b2ef4..ecbfacd36de3 100644 --- a/src/StorageMover/generated/cmdlets/UpdateAzStorageMoverJobDefinition_Update.cs +++ b/src/StorageMover/generated/cmdlets/UpdateAzStorageMoverJobDefinition_Update.cs @@ -15,9 +15,10 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Cmdlets /// [OpenAPI] Update=>PATCH:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorageMover/storageMovers/{storageMoverName}/projects/{projectName}/jobDefinitions/{jobDefinitionName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsData.Update, @"AzStorageMoverJobDefinition_Update", SupportsShouldProcess = true)] - [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobDefinition))] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobDefinition))] [global::Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Description(@"Updates properties for a Job Definition resource. Properties not specified in the request body will be unchanged.")] [global::Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Generated] + [global::Microsoft.Azure.PowerShell.Cmdlets.StorageMover.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorageMover/storageMovers/{storageMoverName}/projects/{projectName}/jobDefinitions/{jobDefinitionName}", ApiVersion = "2023-10-01")] public partial class UpdateAzStorageMoverJobDefinition_Update : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.IEventListener { @@ -69,7 +70,7 @@ public partial class UpdateAzStorageMoverJobDefinition_Update : global::System.M public global::System.Management.Automation.InvocationInfo InvocationInformation { get => __invocationInfo = __invocationInfo ?? this.MyInvocation ; set { __invocationInfo = value; } } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobDefinitionUpdateParameters _jobDefinition; + private Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobDefinitionUpdateParameters _jobDefinition; /// The Job Definition resource. [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The Job Definition resource.", ValueFromPipeline = true)] @@ -78,8 +79,8 @@ public partial class UpdateAzStorageMoverJobDefinition_Update : global::System.M ReadOnly = false, Description = @"The Job Definition resource.", SerializedName = @"jobDefinition", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobDefinitionUpdateParameters) })] - public Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobDefinitionUpdateParameters JobDefinition { get => this._jobDefinition; set => this._jobDefinition = value; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobDefinitionUpdateParameters) })] + public Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobDefinitionUpdateParameters JobDefinition { get => this._jobDefinition; set => this._jobDefinition = value; } /// /// cancellation delegate. Stops the cmdlet when called. @@ -190,24 +191,24 @@ public partial class UpdateAzStorageMoverJobDefinition_Update : global::System.M /// happens on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.IErrorResponse + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IErrorResponse /// from the remote call /// /// Determines if the rest of the onDefault method should be processed, or if the method should /// return immediately (set to true to skip further processing ) - partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// overrideOnOk will be called before the regular onOk has been processed, allowing customization of what happens /// on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobDefinition + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobDefinition /// from the remote call /// /// Determines if the rest of the onOk method should be processed, or if the method should return /// immediately (set to true to skip further processing ) - partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) @@ -383,12 +384,12 @@ public UpdateAzStorageMoverJobDefinition_Update() /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.IErrorResponse + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IErrorResponse /// from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { @@ -405,7 +406,7 @@ public UpdateAzStorageMoverJobDefinition_Update() if ((null == code || null == message)) { // Unrecognized Response. Create an error record based on what we have. - var ex = new Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.RestException(responseMessage, await response); WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId, ResourceGroupName=ResourceGroupName, StorageMoverName=StorageMoverName, ProjectName=ProjectName, Name=Name, body=JobDefinition }) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } @@ -423,12 +424,12 @@ public UpdateAzStorageMoverJobDefinition_Update() /// a delegate that is called when the remote service returns 200 (OK). /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobDefinition + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobDefinition /// from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { @@ -440,7 +441,7 @@ public UpdateAzStorageMoverJobDefinition_Update() return ; } // onOk - response for 200 / application/json - // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobDefinition + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobDefinition WriteObject((await response)); } } diff --git a/src/StorageMover/generated/cmdlets/UpdateAzStorageMoverJobDefinition_UpdateExpanded.cs b/src/StorageMover/generated/cmdlets/UpdateAzStorageMoverJobDefinition_UpdateExpanded.cs index 2a4b8b8db532..e4ec46e52d86 100644 --- a/src/StorageMover/generated/cmdlets/UpdateAzStorageMoverJobDefinition_UpdateExpanded.cs +++ b/src/StorageMover/generated/cmdlets/UpdateAzStorageMoverJobDefinition_UpdateExpanded.cs @@ -15,9 +15,10 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Cmdlets /// [OpenAPI] Update=>PATCH:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorageMover/storageMovers/{storageMoverName}/projects/{projectName}/jobDefinitions/{jobDefinitionName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsData.Update, @"AzStorageMoverJobDefinition_UpdateExpanded", SupportsShouldProcess = true)] - [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobDefinition))] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobDefinition))] [global::Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Description(@"Updates properties for a Job Definition resource. Properties not specified in the request body will be unchanged.")] [global::Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Generated] + [global::Microsoft.Azure.PowerShell.Cmdlets.StorageMover.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorageMover/storageMovers/{storageMoverName}/projects/{projectName}/jobDefinitions/{jobDefinitionName}", ApiVersion = "2023-10-01")] public partial class UpdateAzStorageMoverJobDefinition_UpdateExpanded : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.IEventListener { @@ -36,7 +37,7 @@ public partial class UpdateAzStorageMoverJobDefinition_UpdateExpanded : global:: private global::System.Threading.CancellationTokenSource _cancellationTokenSource = new global::System.Threading.CancellationTokenSource(); /// The Job Definition resource. - private Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobDefinitionUpdateParameters _jobDefinitionBody = new Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.JobDefinitionUpdateParameters(); + private Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobDefinitionUpdateParameters _jobDefinitionBody = new Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.JobDefinitionUpdateParameters(); /// Name of the Agent to assign for new Job Runs of this Job Definition. [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Name of the Agent to assign for new Job Runs of this Job Definition.")] @@ -214,24 +215,24 @@ public partial class UpdateAzStorageMoverJobDefinition_UpdateExpanded : global:: /// happens on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.IErrorResponse + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IErrorResponse /// from the remote call /// /// Determines if the rest of the onDefault method should be processed, or if the method should /// return immediately (set to true to skip further processing ) - partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// overrideOnOk will be called before the regular onOk has been processed, allowing customization of what happens /// on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobDefinition + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobDefinition /// from the remote call /// /// Determines if the rest of the onOk method should be processed, or if the method should return /// immediately (set to true to skip further processing ) - partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) @@ -407,12 +408,12 @@ public UpdateAzStorageMoverJobDefinition_UpdateExpanded() /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.IErrorResponse + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IErrorResponse /// from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { @@ -429,7 +430,7 @@ public UpdateAzStorageMoverJobDefinition_UpdateExpanded() if ((null == code || null == message)) { // Unrecognized Response. Create an error record based on what we have. - var ex = new Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.RestException(responseMessage, await response); WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId, ResourceGroupName=ResourceGroupName, StorageMoverName=StorageMoverName, ProjectName=ProjectName, Name=Name, body=_jobDefinitionBody }) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } @@ -447,12 +448,12 @@ public UpdateAzStorageMoverJobDefinition_UpdateExpanded() /// a delegate that is called when the remote service returns 200 (OK). /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobDefinition + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobDefinition /// from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { @@ -464,7 +465,7 @@ public UpdateAzStorageMoverJobDefinition_UpdateExpanded() return ; } // onOk - response for 200 / application/json - // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobDefinition + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobDefinition WriteObject((await response)); } } diff --git a/src/StorageMover/generated/cmdlets/UpdateAzStorageMoverJobDefinition_UpdateViaIdentity.cs b/src/StorageMover/generated/cmdlets/UpdateAzStorageMoverJobDefinition_UpdateViaIdentity.cs index 208be604e673..d43d588f739b 100644 --- a/src/StorageMover/generated/cmdlets/UpdateAzStorageMoverJobDefinition_UpdateViaIdentity.cs +++ b/src/StorageMover/generated/cmdlets/UpdateAzStorageMoverJobDefinition_UpdateViaIdentity.cs @@ -15,9 +15,10 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Cmdlets /// [OpenAPI] Update=>PATCH:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorageMover/storageMovers/{storageMoverName}/projects/{projectName}/jobDefinitions/{jobDefinitionName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsData.Update, @"AzStorageMoverJobDefinition_UpdateViaIdentity", SupportsShouldProcess = true)] - [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobDefinition))] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobDefinition))] [global::Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Description(@"Updates properties for a Job Definition resource. Properties not specified in the request body will be unchanged.")] [global::Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Generated] + [global::Microsoft.Azure.PowerShell.Cmdlets.StorageMover.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorageMover/storageMovers/{storageMoverName}/projects/{projectName}/jobDefinitions/{jobDefinitionName}", ApiVersion = "2023-10-01")] public partial class UpdateAzStorageMoverJobDefinition_UpdateViaIdentity : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.IEventListener { @@ -77,7 +78,7 @@ public partial class UpdateAzStorageMoverJobDefinition_UpdateViaIdentity : globa public global::System.Management.Automation.InvocationInfo InvocationInformation { get => __invocationInfo = __invocationInfo ?? this.MyInvocation ; set { __invocationInfo = value; } } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobDefinitionUpdateParameters _jobDefinition; + private Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobDefinitionUpdateParameters _jobDefinition; /// The Job Definition resource. [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The Job Definition resource.", ValueFromPipeline = true)] @@ -86,8 +87,8 @@ public partial class UpdateAzStorageMoverJobDefinition_UpdateViaIdentity : globa ReadOnly = false, Description = @"The Job Definition resource.", SerializedName = @"jobDefinition", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobDefinitionUpdateParameters) })] - public Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobDefinitionUpdateParameters JobDefinition { get => this._jobDefinition; set => this._jobDefinition = value; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobDefinitionUpdateParameters) })] + public Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobDefinitionUpdateParameters JobDefinition { get => this._jobDefinition; set => this._jobDefinition = value; } /// /// cancellation delegate. Stops the cmdlet when called. @@ -123,24 +124,24 @@ public partial class UpdateAzStorageMoverJobDefinition_UpdateViaIdentity : globa /// happens on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.IErrorResponse + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IErrorResponse /// from the remote call /// /// Determines if the rest of the onDefault method should be processed, or if the method should /// return immediately (set to true to skip further processing ) - partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// overrideOnOk will be called before the regular onOk has been processed, allowing customization of what happens /// on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobDefinition + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobDefinition /// from the remote call /// /// Determines if the rest of the onOk method should be processed, or if the method should return /// immediately (set to true to skip further processing ) - partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) @@ -344,12 +345,12 @@ public UpdateAzStorageMoverJobDefinition_UpdateViaIdentity() /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.IErrorResponse + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IErrorResponse /// from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { @@ -366,7 +367,7 @@ public UpdateAzStorageMoverJobDefinition_UpdateViaIdentity() if ((null == code || null == message)) { // Unrecognized Response. Create an error record based on what we have. - var ex = new Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.RestException(responseMessage, await response); WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { body=JobDefinition }) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } @@ -384,12 +385,12 @@ public UpdateAzStorageMoverJobDefinition_UpdateViaIdentity() /// a delegate that is called when the remote service returns 200 (OK). /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobDefinition + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobDefinition /// from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { @@ -401,7 +402,7 @@ public UpdateAzStorageMoverJobDefinition_UpdateViaIdentity() return ; } // onOk - response for 200 / application/json - // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobDefinition + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobDefinition WriteObject((await response)); } } diff --git a/src/StorageMover/generated/cmdlets/UpdateAzStorageMoverJobDefinition_UpdateViaIdentityExpanded.cs b/src/StorageMover/generated/cmdlets/UpdateAzStorageMoverJobDefinition_UpdateViaIdentityExpanded.cs index 60ada0b92eb8..68fa2d42a7fb 100644 --- a/src/StorageMover/generated/cmdlets/UpdateAzStorageMoverJobDefinition_UpdateViaIdentityExpanded.cs +++ b/src/StorageMover/generated/cmdlets/UpdateAzStorageMoverJobDefinition_UpdateViaIdentityExpanded.cs @@ -15,9 +15,10 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Cmdlets /// [OpenAPI] Update=>PATCH:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorageMover/storageMovers/{storageMoverName}/projects/{projectName}/jobDefinitions/{jobDefinitionName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsData.Update, @"AzStorageMoverJobDefinition_UpdateViaIdentityExpanded", SupportsShouldProcess = true)] - [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobDefinition))] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobDefinition))] [global::Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Description(@"Updates properties for a Job Definition resource. Properties not specified in the request body will be unchanged.")] [global::Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Generated] + [global::Microsoft.Azure.PowerShell.Cmdlets.StorageMover.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorageMover/storageMovers/{storageMoverName}/projects/{projectName}/jobDefinitions/{jobDefinitionName}", ApiVersion = "2023-10-01")] public partial class UpdateAzStorageMoverJobDefinition_UpdateViaIdentityExpanded : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.IEventListener { @@ -36,7 +37,7 @@ public partial class UpdateAzStorageMoverJobDefinition_UpdateViaIdentityExpanded private global::System.Threading.CancellationTokenSource _cancellationTokenSource = new global::System.Threading.CancellationTokenSource(); /// The Job Definition resource. - private Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobDefinitionUpdateParameters _jobDefinitionBody = new Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.JobDefinitionUpdateParameters(); + private Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobDefinitionUpdateParameters _jobDefinitionBody = new Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.JobDefinitionUpdateParameters(); /// Name of the Agent to assign for new Job Runs of this Job Definition. [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Name of the Agent to assign for new Job Runs of this Job Definition.")] @@ -147,24 +148,24 @@ public partial class UpdateAzStorageMoverJobDefinition_UpdateViaIdentityExpanded /// happens on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.IErrorResponse + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IErrorResponse /// from the remote call /// /// Determines if the rest of the onDefault method should be processed, or if the method should /// return immediately (set to true to skip further processing ) - partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// overrideOnOk will be called before the regular onOk has been processed, allowing customization of what happens /// on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobDefinition + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobDefinition /// from the remote call /// /// Determines if the rest of the onOk method should be processed, or if the method should return /// immediately (set to true to skip further processing ) - partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) @@ -368,12 +369,12 @@ public UpdateAzStorageMoverJobDefinition_UpdateViaIdentityExpanded() /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.IErrorResponse + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IErrorResponse /// from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { @@ -390,7 +391,7 @@ public UpdateAzStorageMoverJobDefinition_UpdateViaIdentityExpanded() if ((null == code || null == message)) { // Unrecognized Response. Create an error record based on what we have. - var ex = new Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.RestException(responseMessage, await response); WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { body=_jobDefinitionBody }) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } @@ -408,12 +409,12 @@ public UpdateAzStorageMoverJobDefinition_UpdateViaIdentityExpanded() /// a delegate that is called when the remote service returns 200 (OK). /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobDefinition + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobDefinition /// from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { @@ -425,7 +426,7 @@ public UpdateAzStorageMoverJobDefinition_UpdateViaIdentityExpanded() return ; } // onOk - response for 200 / application/json - // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobDefinition + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobDefinition WriteObject((await response)); } } diff --git a/src/StorageMover/generated/cmdlets/UpdateAzStorageMoverProject_Update.cs b/src/StorageMover/generated/cmdlets/UpdateAzStorageMoverProject_Update.cs index 83bdfd94ba25..dd475c13bf16 100644 --- a/src/StorageMover/generated/cmdlets/UpdateAzStorageMoverProject_Update.cs +++ b/src/StorageMover/generated/cmdlets/UpdateAzStorageMoverProject_Update.cs @@ -15,9 +15,10 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Cmdlets /// [OpenAPI] Update=>PATCH:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorageMover/storageMovers/{storageMoverName}/projects/{projectName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsData.Update, @"AzStorageMoverProject_Update", SupportsShouldProcess = true)] - [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IProject))] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IProject))] [global::Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Description(@"Updates properties for a Project resource. Properties not specified in the request body will be unchanged.")] [global::Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Generated] + [global::Microsoft.Azure.PowerShell.Cmdlets.StorageMover.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorageMover/storageMovers/{storageMoverName}/projects/{projectName}", ApiVersion = "2023-10-01")] public partial class UpdateAzStorageMoverProject_Update : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.IEventListener { @@ -97,7 +98,7 @@ public partial class UpdateAzStorageMoverProject_Update : global::System.Managem private Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.HttpPipeline Pipeline { get; set; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IProjectUpdateParameters _project; + private Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IProjectUpdateParameters _project; /// The Project resource. [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The Project resource.", ValueFromPipeline = true)] @@ -106,8 +107,8 @@ public partial class UpdateAzStorageMoverProject_Update : global::System.Managem ReadOnly = false, Description = @"The Project resource.", SerializedName = @"project", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IProjectUpdateParameters) })] - public Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IProjectUpdateParameters Project { get => this._project; set => this._project = value; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IProjectUpdateParameters) })] + public Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IProjectUpdateParameters Project { get => this._project; set => this._project = value; } /// The URI for the proxy server to use [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "The URI for the proxy server to use")] @@ -176,24 +177,24 @@ public partial class UpdateAzStorageMoverProject_Update : global::System.Managem /// happens on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.IErrorResponse + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IErrorResponse /// from the remote call /// /// Determines if the rest of the onDefault method should be processed, or if the method should /// return immediately (set to true to skip further processing ) - partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// overrideOnOk will be called before the regular onOk has been processed, allowing customization of what happens /// on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IProject + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IProject /// from the remote call /// /// Determines if the rest of the onOk method should be processed, or if the method should return /// immediately (set to true to skip further processing ) - partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) @@ -369,12 +370,12 @@ public UpdateAzStorageMoverProject_Update() /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.IErrorResponse + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IErrorResponse /// from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { @@ -391,7 +392,7 @@ public UpdateAzStorageMoverProject_Update() if ((null == code || null == message)) { // Unrecognized Response. Create an error record based on what we have. - var ex = new Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.RestException(responseMessage, await response); WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId, ResourceGroupName=ResourceGroupName, StorageMoverName=StorageMoverName, Name=Name, body=Project }) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } @@ -409,12 +410,12 @@ public UpdateAzStorageMoverProject_Update() /// a delegate that is called when the remote service returns 200 (OK). /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IProject + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IProject /// from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { @@ -426,7 +427,7 @@ public UpdateAzStorageMoverProject_Update() return ; } // onOk - response for 200 / application/json - // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IProject + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IProject WriteObject((await response)); } } diff --git a/src/StorageMover/generated/cmdlets/UpdateAzStorageMoverProject_UpdateExpanded.cs b/src/StorageMover/generated/cmdlets/UpdateAzStorageMoverProject_UpdateExpanded.cs index 8a569c516fc5..f0fb2aaf289d 100644 --- a/src/StorageMover/generated/cmdlets/UpdateAzStorageMoverProject_UpdateExpanded.cs +++ b/src/StorageMover/generated/cmdlets/UpdateAzStorageMoverProject_UpdateExpanded.cs @@ -15,9 +15,10 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Cmdlets /// [OpenAPI] Update=>PATCH:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorageMover/storageMovers/{storageMoverName}/projects/{projectName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsData.Update, @"AzStorageMoverProject_UpdateExpanded", SupportsShouldProcess = true)] - [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IProject))] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IProject))] [global::Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Description(@"Updates properties for a Project resource. Properties not specified in the request body will be unchanged.")] [global::Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Generated] + [global::Microsoft.Azure.PowerShell.Cmdlets.StorageMover.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorageMover/storageMovers/{storageMoverName}/projects/{projectName}", ApiVersion = "2023-10-01")] public partial class UpdateAzStorageMoverProject_UpdateExpanded : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.IEventListener { @@ -36,7 +37,7 @@ public partial class UpdateAzStorageMoverProject_UpdateExpanded : global::System private global::System.Threading.CancellationTokenSource _cancellationTokenSource = new global::System.Threading.CancellationTokenSource(); /// The Project resource. - private Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IProjectUpdateParameters _projectBody = new Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.ProjectUpdateParameters(); + private Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IProjectUpdateParameters _projectBody = new Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.ProjectUpdateParameters(); /// Wait for .NET debugger to attach [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Wait for .NET debugger to attach")] @@ -177,24 +178,24 @@ public partial class UpdateAzStorageMoverProject_UpdateExpanded : global::System /// happens on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.IErrorResponse + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IErrorResponse /// from the remote call /// /// Determines if the rest of the onDefault method should be processed, or if the method should /// return immediately (set to true to skip further processing ) - partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// overrideOnOk will be called before the regular onOk has been processed, allowing customization of what happens /// on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IProject + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IProject /// from the remote call /// /// Determines if the rest of the onOk method should be processed, or if the method should return /// immediately (set to true to skip further processing ) - partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) @@ -370,12 +371,12 @@ public UpdateAzStorageMoverProject_UpdateExpanded() /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.IErrorResponse + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IErrorResponse /// from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { @@ -392,7 +393,7 @@ public UpdateAzStorageMoverProject_UpdateExpanded() if ((null == code || null == message)) { // Unrecognized Response. Create an error record based on what we have. - var ex = new Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.RestException(responseMessage, await response); WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId, ResourceGroupName=ResourceGroupName, StorageMoverName=StorageMoverName, Name=Name, body=_projectBody }) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } @@ -410,12 +411,12 @@ public UpdateAzStorageMoverProject_UpdateExpanded() /// a delegate that is called when the remote service returns 200 (OK). /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IProject + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IProject /// from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { @@ -427,7 +428,7 @@ public UpdateAzStorageMoverProject_UpdateExpanded() return ; } // onOk - response for 200 / application/json - // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IProject + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IProject WriteObject((await response)); } } diff --git a/src/StorageMover/generated/cmdlets/UpdateAzStorageMoverProject_UpdateViaIdentity.cs b/src/StorageMover/generated/cmdlets/UpdateAzStorageMoverProject_UpdateViaIdentity.cs index 5a7a7c4135bb..433022010f7e 100644 --- a/src/StorageMover/generated/cmdlets/UpdateAzStorageMoverProject_UpdateViaIdentity.cs +++ b/src/StorageMover/generated/cmdlets/UpdateAzStorageMoverProject_UpdateViaIdentity.cs @@ -15,9 +15,10 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Cmdlets /// [OpenAPI] Update=>PATCH:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorageMover/storageMovers/{storageMoverName}/projects/{projectName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsData.Update, @"AzStorageMoverProject_UpdateViaIdentity", SupportsShouldProcess = true)] - [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IProject))] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IProject))] [global::Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Description(@"Updates properties for a Project resource. Properties not specified in the request body will be unchanged.")] [global::Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Generated] + [global::Microsoft.Azure.PowerShell.Cmdlets.StorageMover.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorageMover/storageMovers/{storageMoverName}/projects/{projectName}", ApiVersion = "2023-10-01")] public partial class UpdateAzStorageMoverProject_UpdateViaIdentity : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.IEventListener { @@ -90,7 +91,7 @@ public partial class UpdateAzStorageMoverProject_UpdateViaIdentity : global::Sys private Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.HttpPipeline Pipeline { get; set; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IProjectUpdateParameters _project; + private Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IProjectUpdateParameters _project; /// The Project resource. [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The Project resource.", ValueFromPipeline = true)] @@ -99,8 +100,8 @@ public partial class UpdateAzStorageMoverProject_UpdateViaIdentity : global::Sys ReadOnly = false, Description = @"The Project resource.", SerializedName = @"project", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IProjectUpdateParameters) })] - public Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IProjectUpdateParameters Project { get => this._project; set => this._project = value; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IProjectUpdateParameters) })] + public Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IProjectUpdateParameters Project { get => this._project; set => this._project = value; } /// The URI for the proxy server to use [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "The URI for the proxy server to use")] @@ -123,24 +124,24 @@ public partial class UpdateAzStorageMoverProject_UpdateViaIdentity : global::Sys /// happens on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.IErrorResponse + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IErrorResponse /// from the remote call /// /// Determines if the rest of the onDefault method should be processed, or if the method should /// return immediately (set to true to skip further processing ) - partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// overrideOnOk will be called before the regular onOk has been processed, allowing customization of what happens /// on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IProject + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IProject /// from the remote call /// /// Determines if the rest of the onOk method should be processed, or if the method should return /// immediately (set to true to skip further processing ) - partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) @@ -340,12 +341,12 @@ public UpdateAzStorageMoverProject_UpdateViaIdentity() /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.IErrorResponse + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IErrorResponse /// from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { @@ -362,7 +363,7 @@ public UpdateAzStorageMoverProject_UpdateViaIdentity() if ((null == code || null == message)) { // Unrecognized Response. Create an error record based on what we have. - var ex = new Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.RestException(responseMessage, await response); WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { body=Project }) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } @@ -380,12 +381,12 @@ public UpdateAzStorageMoverProject_UpdateViaIdentity() /// a delegate that is called when the remote service returns 200 (OK). /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IProject + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IProject /// from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { @@ -397,7 +398,7 @@ public UpdateAzStorageMoverProject_UpdateViaIdentity() return ; } // onOk - response for 200 / application/json - // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IProject + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IProject WriteObject((await response)); } } diff --git a/src/StorageMover/generated/cmdlets/UpdateAzStorageMoverProject_UpdateViaIdentityExpanded.cs b/src/StorageMover/generated/cmdlets/UpdateAzStorageMoverProject_UpdateViaIdentityExpanded.cs index 5667aef0475e..acbc1b153c71 100644 --- a/src/StorageMover/generated/cmdlets/UpdateAzStorageMoverProject_UpdateViaIdentityExpanded.cs +++ b/src/StorageMover/generated/cmdlets/UpdateAzStorageMoverProject_UpdateViaIdentityExpanded.cs @@ -15,9 +15,10 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Cmdlets /// [OpenAPI] Update=>PATCH:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorageMover/storageMovers/{storageMoverName}/projects/{projectName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsData.Update, @"AzStorageMoverProject_UpdateViaIdentityExpanded", SupportsShouldProcess = true)] - [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IProject))] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IProject))] [global::Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Description(@"Updates properties for a Project resource. Properties not specified in the request body will be unchanged.")] [global::Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Generated] + [global::Microsoft.Azure.PowerShell.Cmdlets.StorageMover.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorageMover/storageMovers/{storageMoverName}/projects/{projectName}", ApiVersion = "2023-10-01")] public partial class UpdateAzStorageMoverProject_UpdateViaIdentityExpanded : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.IEventListener { @@ -36,7 +37,7 @@ public partial class UpdateAzStorageMoverProject_UpdateViaIdentityExpanded : glo private global::System.Threading.CancellationTokenSource _cancellationTokenSource = new global::System.Threading.CancellationTokenSource(); /// The Project resource. - private Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IProjectUpdateParameters _projectBody = new Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.ProjectUpdateParameters(); + private Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IProjectUpdateParameters _projectBody = new Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.ProjectUpdateParameters(); /// Wait for .NET debugger to attach [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Wait for .NET debugger to attach")] @@ -124,24 +125,24 @@ public partial class UpdateAzStorageMoverProject_UpdateViaIdentityExpanded : glo /// happens on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.IErrorResponse + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IErrorResponse /// from the remote call /// /// Determines if the rest of the onDefault method should be processed, or if the method should /// return immediately (set to true to skip further processing ) - partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// overrideOnOk will be called before the regular onOk has been processed, allowing customization of what happens /// on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IProject + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IProject /// from the remote call /// /// Determines if the rest of the onOk method should be processed, or if the method should return /// immediately (set to true to skip further processing ) - partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) @@ -341,12 +342,12 @@ public UpdateAzStorageMoverProject_UpdateViaIdentityExpanded() /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.IErrorResponse + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IErrorResponse /// from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { @@ -363,7 +364,7 @@ public UpdateAzStorageMoverProject_UpdateViaIdentityExpanded() if ((null == code || null == message)) { // Unrecognized Response. Create an error record based on what we have. - var ex = new Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.RestException(responseMessage, await response); WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { body=_projectBody }) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } @@ -381,12 +382,12 @@ public UpdateAzStorageMoverProject_UpdateViaIdentityExpanded() /// a delegate that is called when the remote service returns 200 (OK). /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IProject + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IProject /// from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { @@ -398,7 +399,7 @@ public UpdateAzStorageMoverProject_UpdateViaIdentityExpanded() return ; } // onOk - response for 200 / application/json - // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IProject + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IProject WriteObject((await response)); } } diff --git a/src/StorageMover/generated/cmdlets/UpdateAzStorageMover_Update.cs b/src/StorageMover/generated/cmdlets/UpdateAzStorageMover_Update.cs index 5866783629f4..56d67aa1bdb1 100644 --- a/src/StorageMover/generated/cmdlets/UpdateAzStorageMover_Update.cs +++ b/src/StorageMover/generated/cmdlets/UpdateAzStorageMover_Update.cs @@ -15,9 +15,10 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Cmdlets /// [OpenAPI] Update=>PATCH:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorageMover/storageMovers/{storageMoverName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsData.Update, @"AzStorageMover_Update", SupportsShouldProcess = true)] - [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IStorageMover))] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IStorageMover))] [global::Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Description(@"Updates properties for a Storage Mover resource. Properties not specified in the request body will be unchanged.")] [global::Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Generated] + [global::Microsoft.Azure.PowerShell.Cmdlets.StorageMover.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorageMover/storageMovers/{storageMoverName}", ApiVersion = "2023-10-01")] public partial class UpdateAzStorageMover_Update : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.IEventListener { @@ -127,7 +128,7 @@ public partial class UpdateAzStorageMover_Update : global::System.Management.Aut public string ResourceGroupName { get => this._resourceGroupName; set => this._resourceGroupName = value; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IStorageMoverUpdateParameters _storageMover; + private Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IStorageMoverUpdateParameters _storageMover; /// The Storage Mover resource. [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The Storage Mover resource.", ValueFromPipeline = true)] @@ -136,8 +137,8 @@ public partial class UpdateAzStorageMover_Update : global::System.Management.Aut ReadOnly = false, Description = @"The Storage Mover resource.", SerializedName = @"storageMover", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IStorageMoverUpdateParameters) })] - public Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IStorageMoverUpdateParameters StorageMover { get => this._storageMover; set => this._storageMover = value; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IStorageMoverUpdateParameters) })] + public Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IStorageMoverUpdateParameters StorageMover { get => this._storageMover; set => this._storageMover = value; } /// Backing field for property. private string _subscriptionId; @@ -162,24 +163,24 @@ public partial class UpdateAzStorageMover_Update : global::System.Management.Aut /// happens on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.IErrorResponse + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IErrorResponse /// from the remote call /// /// Determines if the rest of the onDefault method should be processed, or if the method should /// return immediately (set to true to skip further processing ) - partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// overrideOnOk will be called before the regular onOk has been processed, allowing customization of what happens /// on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IStorageMover + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IStorageMover /// from the remote call /// /// Determines if the rest of the onOk method should be processed, or if the method should return /// immediately (set to true to skip further processing ) - partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) @@ -355,12 +356,12 @@ public UpdateAzStorageMover_Update() /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.IErrorResponse + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IErrorResponse /// from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { @@ -377,7 +378,7 @@ public UpdateAzStorageMover_Update() if ((null == code || null == message)) { // Unrecognized Response. Create an error record based on what we have. - var ex = new Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.RestException(responseMessage, await response); WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId, ResourceGroupName=ResourceGroupName, Name=Name, body=StorageMover }) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } @@ -395,12 +396,12 @@ public UpdateAzStorageMover_Update() /// a delegate that is called when the remote service returns 200 (OK). /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IStorageMover + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IStorageMover /// from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { @@ -412,7 +413,7 @@ public UpdateAzStorageMover_Update() return ; } // onOk - response for 200 / application/json - // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IStorageMover + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IStorageMover WriteObject((await response)); } } diff --git a/src/StorageMover/generated/cmdlets/UpdateAzStorageMover_UpdateExpanded.cs b/src/StorageMover/generated/cmdlets/UpdateAzStorageMover_UpdateExpanded.cs index 1f75b7eb2104..ca4b18aa46d4 100644 --- a/src/StorageMover/generated/cmdlets/UpdateAzStorageMover_UpdateExpanded.cs +++ b/src/StorageMover/generated/cmdlets/UpdateAzStorageMover_UpdateExpanded.cs @@ -15,9 +15,10 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Cmdlets /// [OpenAPI] Update=>PATCH:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorageMover/storageMovers/{storageMoverName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsData.Update, @"AzStorageMover_UpdateExpanded", SupportsShouldProcess = true)] - [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IStorageMover))] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IStorageMover))] [global::Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Description(@"Updates properties for a Storage Mover resource. Properties not specified in the request body will be unchanged.")] [global::Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Generated] + [global::Microsoft.Azure.PowerShell.Cmdlets.StorageMover.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorageMover/storageMovers/{storageMoverName}", ApiVersion = "2023-10-01")] public partial class UpdateAzStorageMover_UpdateExpanded : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.IEventListener { @@ -36,7 +37,7 @@ public partial class UpdateAzStorageMover_UpdateExpanded : global::System.Manage private global::System.Threading.CancellationTokenSource _cancellationTokenSource = new global::System.Threading.CancellationTokenSource(); /// The Storage Mover resource. - private Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IStorageMoverUpdateParameters _storageMoverBody = new Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.StorageMoverUpdateParameters(); + private Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IStorageMoverUpdateParameters _storageMoverBody = new Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.StorageMoverUpdateParameters(); /// Wait for .NET debugger to attach [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Wait for .NET debugger to attach")] @@ -167,32 +168,32 @@ public partial class UpdateAzStorageMover_UpdateExpanded : global::System.Manage ReadOnly = false, Description = @"Resource tags.", SerializedName = @"tags", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IStorageMoverUpdateParametersTags) })] - public Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IStorageMoverUpdateParametersTags Tag { get => _storageMoverBody.Tag ?? null /* object */; set => _storageMoverBody.Tag = value; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IStorageMoverUpdateParametersTags) })] + public Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IStorageMoverUpdateParametersTags Tag { get => _storageMoverBody.Tag ?? null /* object */; set => _storageMoverBody.Tag = value; } /// /// overrideOnDefault will be called before the regular onDefault has been processed, allowing customization of what /// happens on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.IErrorResponse + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IErrorResponse /// from the remote call /// /// Determines if the rest of the onDefault method should be processed, or if the method should /// return immediately (set to true to skip further processing ) - partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// overrideOnOk will be called before the regular onOk has been processed, allowing customization of what happens /// on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IStorageMover + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IStorageMover /// from the remote call /// /// Determines if the rest of the onOk method should be processed, or if the method should return /// immediately (set to true to skip further processing ) - partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) @@ -368,12 +369,12 @@ public UpdateAzStorageMover_UpdateExpanded() /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.IErrorResponse + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IErrorResponse /// from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { @@ -390,7 +391,7 @@ public UpdateAzStorageMover_UpdateExpanded() if ((null == code || null == message)) { // Unrecognized Response. Create an error record based on what we have. - var ex = new Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.RestException(responseMessage, await response); WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId, ResourceGroupName=ResourceGroupName, Name=Name, body=_storageMoverBody }) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } @@ -408,12 +409,12 @@ public UpdateAzStorageMover_UpdateExpanded() /// a delegate that is called when the remote service returns 200 (OK). /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IStorageMover + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IStorageMover /// from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { @@ -425,7 +426,7 @@ public UpdateAzStorageMover_UpdateExpanded() return ; } // onOk - response for 200 / application/json - // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IStorageMover + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IStorageMover WriteObject((await response)); } } diff --git a/src/StorageMover/generated/cmdlets/UpdateAzStorageMover_UpdateViaIdentity.cs b/src/StorageMover/generated/cmdlets/UpdateAzStorageMover_UpdateViaIdentity.cs index 156f5cf51f5c..047eacb3add9 100644 --- a/src/StorageMover/generated/cmdlets/UpdateAzStorageMover_UpdateViaIdentity.cs +++ b/src/StorageMover/generated/cmdlets/UpdateAzStorageMover_UpdateViaIdentity.cs @@ -15,9 +15,10 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Cmdlets /// [OpenAPI] Update=>PATCH:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorageMover/storageMovers/{storageMoverName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsData.Update, @"AzStorageMover_UpdateViaIdentity", SupportsShouldProcess = true)] - [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IStorageMover))] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IStorageMover))] [global::Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Description(@"Updates properties for a Storage Mover resource. Properties not specified in the request body will be unchanged.")] [global::Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Generated] + [global::Microsoft.Azure.PowerShell.Cmdlets.StorageMover.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorageMover/storageMovers/{storageMoverName}", ApiVersion = "2023-10-01")] public partial class UpdateAzStorageMover_UpdateViaIdentity : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.IEventListener { @@ -106,7 +107,7 @@ public partial class UpdateAzStorageMover_UpdateViaIdentity : global::System.Man public global::System.Management.Automation.SwitchParameter ProxyUseDefaultCredentials { get; set; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IStorageMoverUpdateParameters _storageMover; + private Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IStorageMoverUpdateParameters _storageMover; /// The Storage Mover resource. [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The Storage Mover resource.", ValueFromPipeline = true)] @@ -115,32 +116,32 @@ public partial class UpdateAzStorageMover_UpdateViaIdentity : global::System.Man ReadOnly = false, Description = @"The Storage Mover resource.", SerializedName = @"storageMover", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IStorageMoverUpdateParameters) })] - public Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IStorageMoverUpdateParameters StorageMover { get => this._storageMover; set => this._storageMover = value; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IStorageMoverUpdateParameters) })] + public Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IStorageMoverUpdateParameters StorageMover { get => this._storageMover; set => this._storageMover = value; } /// /// overrideOnDefault will be called before the regular onDefault has been processed, allowing customization of what /// happens on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.IErrorResponse + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IErrorResponse /// from the remote call /// /// Determines if the rest of the onDefault method should be processed, or if the method should /// return immediately (set to true to skip further processing ) - partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// overrideOnOk will be called before the regular onOk has been processed, allowing customization of what happens /// on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IStorageMover + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IStorageMover /// from the remote call /// /// Determines if the rest of the onOk method should be processed, or if the method should return /// immediately (set to true to skip further processing ) - partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) @@ -336,12 +337,12 @@ public UpdateAzStorageMover_UpdateViaIdentity() /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.IErrorResponse + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IErrorResponse /// from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { @@ -358,7 +359,7 @@ public UpdateAzStorageMover_UpdateViaIdentity() if ((null == code || null == message)) { // Unrecognized Response. Create an error record based on what we have. - var ex = new Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.RestException(responseMessage, await response); WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { body=StorageMover }) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } @@ -376,12 +377,12 @@ public UpdateAzStorageMover_UpdateViaIdentity() /// a delegate that is called when the remote service returns 200 (OK). /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IStorageMover + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IStorageMover /// from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { @@ -393,7 +394,7 @@ public UpdateAzStorageMover_UpdateViaIdentity() return ; } // onOk - response for 200 / application/json - // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IStorageMover + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IStorageMover WriteObject((await response)); } } diff --git a/src/StorageMover/generated/cmdlets/UpdateAzStorageMover_UpdateViaIdentityExpanded.cs b/src/StorageMover/generated/cmdlets/UpdateAzStorageMover_UpdateViaIdentityExpanded.cs index de33dcd4b9e9..e721582ef770 100644 --- a/src/StorageMover/generated/cmdlets/UpdateAzStorageMover_UpdateViaIdentityExpanded.cs +++ b/src/StorageMover/generated/cmdlets/UpdateAzStorageMover_UpdateViaIdentityExpanded.cs @@ -15,9 +15,10 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Cmdlets /// [OpenAPI] Update=>PATCH:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorageMover/storageMovers/{storageMoverName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsData.Update, @"AzStorageMover_UpdateViaIdentityExpanded", SupportsShouldProcess = true)] - [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IStorageMover))] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IStorageMover))] [global::Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Description(@"Updates properties for a Storage Mover resource. Properties not specified in the request body will be unchanged.")] [global::Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Generated] + [global::Microsoft.Azure.PowerShell.Cmdlets.StorageMover.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorageMover/storageMovers/{storageMoverName}", ApiVersion = "2023-10-01")] public partial class UpdateAzStorageMover_UpdateViaIdentityExpanded : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.IEventListener { @@ -36,7 +37,7 @@ public partial class UpdateAzStorageMover_UpdateViaIdentityExpanded : global::Sy private global::System.Threading.CancellationTokenSource _cancellationTokenSource = new global::System.Threading.CancellationTokenSource(); /// The Storage Mover resource. - private Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IStorageMoverUpdateParameters _storageMoverBody = new Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.StorageMoverUpdateParameters(); + private Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IStorageMoverUpdateParameters _storageMoverBody = new Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.StorageMoverUpdateParameters(); /// Wait for .NET debugger to attach [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Wait for .NET debugger to attach")] @@ -128,32 +129,32 @@ public partial class UpdateAzStorageMover_UpdateViaIdentityExpanded : global::Sy ReadOnly = false, Description = @"Resource tags.", SerializedName = @"tags", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IStorageMoverUpdateParametersTags) })] - public Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IStorageMoverUpdateParametersTags Tag { get => _storageMoverBody.Tag ?? null /* object */; set => _storageMoverBody.Tag = value; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IStorageMoverUpdateParametersTags) })] + public Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IStorageMoverUpdateParametersTags Tag { get => _storageMoverBody.Tag ?? null /* object */; set => _storageMoverBody.Tag = value; } /// /// overrideOnDefault will be called before the regular onDefault has been processed, allowing customization of what /// happens on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.IErrorResponse + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IErrorResponse /// from the remote call /// /// Determines if the rest of the onDefault method should be processed, or if the method should /// return immediately (set to true to skip further processing ) - partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// overrideOnOk will be called before the regular onOk has been processed, allowing customization of what happens /// on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IStorageMover + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IStorageMover /// from the remote call /// /// Determines if the rest of the onOk method should be processed, or if the method should return /// immediately (set to true to skip further processing ) - partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) @@ -349,12 +350,12 @@ public UpdateAzStorageMover_UpdateViaIdentityExpanded() /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.IErrorResponse + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IErrorResponse /// from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { @@ -371,7 +372,7 @@ public UpdateAzStorageMover_UpdateViaIdentityExpanded() if ((null == code || null == message)) { // Unrecognized Response. Create an error record based on what we have. - var ex = new Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.RestException(responseMessage, await response); WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { body=_storageMoverBody }) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } @@ -389,12 +390,12 @@ public UpdateAzStorageMover_UpdateViaIdentityExpanded() /// a delegate that is called when the remote service returns 200 (OK). /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IStorageMover + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IStorageMover /// from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { @@ -406,7 +407,7 @@ public UpdateAzStorageMover_UpdateViaIdentityExpanded() return ; } // onOk - response for 200 / application/json - // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IStorageMover + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IStorageMover WriteObject((await response)); } } diff --git a/src/StorageMover/generated/runtime/BuildTime/Cmdlets/ExportHelpMarkdown.cs b/src/StorageMover/generated/runtime/BuildTime/Cmdlets/ExportHelpMarkdown.cs index 5f92d743bbe3..05927db9650b 100644 --- a/src/StorageMover/generated/runtime/BuildTime/Cmdlets/ExportHelpMarkdown.cs +++ b/src/StorageMover/generated/runtime/BuildTime/Cmdlets/ExportHelpMarkdown.cs @@ -33,6 +33,9 @@ public class ExportHelpMarkdown : PSCmdlet [ValidateNotNullOrEmpty] public string ExamplesFolder { get; set; } + [Parameter()] + public SwitchParameter AddComplexInterfaceInfo { get; set; } + protected override void ProcessRecord() { try @@ -41,7 +44,7 @@ protected override void ProcessRecord() var variantGroups = FunctionInfo.Select(fi => fi.BaseObject).Cast() .Join(helpInfos, fi => fi.Name, phi => phi.CmdletName, (fi, phi) => fi.ToVariants(phi)) .Select(va => new VariantGroup(ModuleInfo.Name, va.First().CmdletName, va, String.Empty)); - WriteMarkdowns(variantGroups, ModuleInfo.ToModuleInfo(), DocsFolder, ExamplesFolder); + WriteMarkdowns(variantGroups, ModuleInfo.ToModuleInfo(), DocsFolder, ExamplesFolder, AddComplexInterfaceInfo.IsPresent); } catch (Exception ee) { diff --git a/src/StorageMover/generated/runtime/BuildTime/Cmdlets/ExportProxyCmdlet.cs b/src/StorageMover/generated/runtime/BuildTime/Cmdlets/ExportProxyCmdlet.cs index 65a84e2e1e00..0d68e2da2aeb 100644 --- a/src/StorageMover/generated/runtime/BuildTime/Cmdlets/ExportProxyCmdlet.cs +++ b/src/StorageMover/generated/runtime/BuildTime/Cmdlets/ExportProxyCmdlet.cs @@ -52,6 +52,9 @@ public class ExportProxyCmdlet : PSCmdlet [Parameter(Mandatory = true, ParameterSetName = "NoDocs")] public SwitchParameter ExcludeDocs { get; set; } + [Parameter(ParameterSetName = "Docs")] + public SwitchParameter AddComplexInterfaceInfo { get; set; } + protected override void ProcessRecord() { try @@ -163,7 +166,7 @@ protected override void ProcessRecord() var isValidProfile = !String.IsNullOrEmpty(profileName) && profileName != NoProfiles; var docsFolder = isValidProfile ? Path.Combine(DocsFolder, profileName) : DocsFolder; var examplesFolder = isValidProfile ? Path.Combine(ExamplesFolder, profileName) : ExamplesFolder; - WriteMarkdowns(variantGroupsByProfile, moduleInfo, docsFolder, examplesFolder); + WriteMarkdowns(variantGroupsByProfile, moduleInfo, docsFolder, examplesFolder, AddComplexInterfaceInfo.IsPresent); } } } diff --git a/src/StorageMover/generated/runtime/BuildTime/Cmdlets/ExportPsd1.cs b/src/StorageMover/generated/runtime/BuildTime/Cmdlets/ExportPsd1.cs index 0abd8c0d7315..7036362da053 100644 --- a/src/StorageMover/generated/runtime/BuildTime/Cmdlets/ExportPsd1.cs +++ b/src/StorageMover/generated/runtime/BuildTime/Cmdlets/ExportPsd1.cs @@ -51,7 +51,7 @@ protected override void ProcessRecord() throw new ArgumentException($"Custom folder '{CustomFolder}' does not exist"); } - string version = Convert.ToString(@"1.0.0"); + string version = Convert.ToString(@"1.1.0"); // Validate the module version should be semantic version // Following regex is official from https://semver.org/ Regex rx = new Regex(@"^(0|[1-9]\d*)\.(0|[1-9]\d*)\.(0|[1-9]\d*)(?:-((?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*)(?:\.(?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*))*))?(?:\+([0-9a-zA-Z-]+(?:\.[0-9a-zA-Z-]+)*))?$", RegexOptions.Compiled); diff --git a/src/StorageMover/generated/runtime/BuildTime/MarkdownRenderer.cs b/src/StorageMover/generated/runtime/BuildTime/MarkdownRenderer.cs index 9dc3eb44abd8..dcdd9995295f 100644 --- a/src/StorageMover/generated/runtime/BuildTime/MarkdownRenderer.cs +++ b/src/StorageMover/generated/runtime/BuildTime/MarkdownRenderer.cs @@ -14,7 +14,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.PowerShell { internal static class MarkdownRenderer { - public static void WriteMarkdowns(IEnumerable variantGroups, PsModuleHelpInfo moduleHelpInfo, string docsFolder, string examplesFolder) + public static void WriteMarkdowns(IEnumerable variantGroups, PsModuleHelpInfo moduleHelpInfo, string docsFolder, string examplesFolder, bool AddComplexInterfaceInfo = true) { Directory.CreateDirectory(docsFolder); var markdownInfos = variantGroups.Where(vg => !vg.IsInternal).Select(vg => new MarkdownHelpInfo(vg, examplesFolder)).OrderBy(mhi => mhi.CmdletName).ToArray(); @@ -69,18 +69,26 @@ public static void WriteMarkdowns(IEnumerable variantGroups, PsMod } sb.Append($"## NOTES{Environment.NewLine}{Environment.NewLine}"); - sb.Append($"ALIASES{Environment.NewLine}{Environment.NewLine}"); - foreach (var alias in markdownInfo.Aliases) + if (markdownInfo.Aliases.Any()) { - sb.Append($"{alias}{Environment.NewLine}{Environment.NewLine}"); + sb.Append($"ALIASES{Environment.NewLine}{Environment.NewLine}"); } - if (markdownInfo.ComplexInterfaceInfos.Any()) + foreach (var alias in markdownInfo.Aliases) { - sb.Append($"{ComplexParameterHeader}{Environment.NewLine}"); + sb.Append($"{alias}{Environment.NewLine}{Environment.NewLine}"); } - foreach (var complexInterfaceInfo in markdownInfo.ComplexInterfaceInfos) + + if (AddComplexInterfaceInfo) { - sb.Append($"{complexInterfaceInfo.ToNoteOutput(includeDashes: true, includeBackticks: true)}{Environment.NewLine}{Environment.NewLine}"); + if (markdownInfo.ComplexInterfaceInfos.Any()) + { + sb.Append($"{ComplexParameterHeader}{Environment.NewLine}"); + } + foreach (var complexInterfaceInfo in markdownInfo.ComplexInterfaceInfos) + { + sb.Append($"{complexInterfaceInfo.ToNoteOutput(includeDashes: true, includeBackticks: true)}{Environment.NewLine}{Environment.NewLine}"); + } + } sb.Append($"## RELATED LINKS{Environment.NewLine}{Environment.NewLine}"); diff --git a/src/StorageMover/generated/runtime/BuildTime/Models/PsProxyOutputs.cs b/src/StorageMover/generated/runtime/BuildTime/Models/PsProxyOutputs.cs index c35ae7424178..29bff0c74965 100644 --- a/src/StorageMover/generated/runtime/BuildTime/Models/PsProxyOutputs.cs +++ b/src/StorageMover/generated/runtime/BuildTime/Models/PsProxyOutputs.cs @@ -191,8 +191,15 @@ public BeginOutput(VariantGroup variantGroup) : base(variantGroup) public string GetProcessCustomAttributesAtRuntime() { - return VariantGroup.IsInternal ? "" : $@"{Indent}{Indent}$cmdInfo = Get-Command -Name $mapping[$parameterSet]{Environment.NewLine}{Indent}{Indent}[Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet)"; + return VariantGroup.IsInternal ? "" : IsAzure ? $@"{Indent}{Indent}$cmdInfo = Get-Command -Name $mapping[$parameterSet] +{Indent}{Indent}[Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) +{Indent}{Indent}if ($null -ne $MyInvocation.MyCommand -and [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets -notcontains $MyInvocation.MyCommand.Name -and [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){{ +{Indent}{Indent}{Indent}[Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.MessageAttributeHelper]::ProcessPreviewMessageAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) +{Indent}{Indent}{Indent}[Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) +{Indent}{Indent}}}" : $@"{Indent}{Indent}$cmdInfo = Get-Command -Name $mapping[$parameterSet]{Environment.NewLine}{Indent}{Indent}[Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) +{Indent}{Indent}[Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Runtime.MessageAttributeHelper]::ProcessPreviewMessageAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet)"; } + private string GetTelemetry() { if (!VariantGroup.IsInternal && IsAzure) diff --git a/src/StorageMover/generated/runtime/BuildTime/PsAttributes.cs b/src/StorageMover/generated/runtime/BuildTime/PsAttributes.cs index e67e0dbcf4a3..b15d0e573c2f 100644 --- a/src/StorageMover/generated/runtime/BuildTime/PsAttributes.cs +++ b/src/StorageMover/generated/runtime/BuildTime/PsAttributes.cs @@ -48,6 +48,13 @@ public ProfileAttribute(params string[] profiles) } } + [AttributeUsage(AttributeTargets.Class)] + public class HttpPathAttribute : Attribute + { + public string Path { get; set; } + public string ApiVersion { get; set; } + } + [AttributeUsage(AttributeTargets.Field | AttributeTargets.Property)] public class CategoryAttribute : Attribute { diff --git a/src/StorageMover/generated/runtime/MessageAttribute.cs b/src/StorageMover/generated/runtime/MessageAttribute.cs index 669ffd6fa37c..60627de09e40 100644 --- a/src/StorageMover/generated/runtime/MessageAttribute.cs +++ b/src/StorageMover/generated/runtime/MessageAttribute.cs @@ -21,7 +21,7 @@ public class GenericBreakingChangeAttribute : Attribute //The version the change is effective from, non mandatory public string DeprecateByVersion { get; } - public bool DeprecateByVersionSet { get; } = false; + public string DeprecateByAzVersion { get; } //The date on which the change comes in effect public DateTime ChangeInEfectByDate { get; } @@ -32,23 +32,18 @@ public class GenericBreakingChangeAttribute : Attribute //New way fo calling the cmdlet public string NewWay { get; set; } - public GenericBreakingChangeAttribute(string message) - { - _message = message; - } - - public GenericBreakingChangeAttribute(string message, string deprecateByVersion) + public GenericBreakingChangeAttribute(string message, string deprecateByAzVersion, string deprecateByVersion) { _message = message; + this.DeprecateByAzVersion = deprecateByAzVersion; this.DeprecateByVersion = deprecateByVersion; - this.DeprecateByVersionSet = true; } - public GenericBreakingChangeAttribute(string message, string deprecateByVersion, string changeInEfectByDate) + public GenericBreakingChangeAttribute(string message, string deprecateByAzVersion, string deprecateByVersion, string changeInEfectByDate) { _message = message; this.DeprecateByVersion = deprecateByVersion; - this.DeprecateByVersionSet = true; + this.DeprecateByAzVersion = deprecateByAzVersion; if (DateTime.TryParse(changeInEfectByDate, new CultureInfo("en-US"), DateTimeStyles.None, out DateTime result)) { @@ -86,10 +81,8 @@ public void PrintCustomAttributeInfo(Action writeOutput) writeOutput(string.Format(Resources.BreakingChangesAttributesInEffectByDateMessage, this.ChangeInEfectByDate.ToString("d"))); } - if (DeprecateByVersionSet) - { - writeOutput(string.Format(Resources.BreakingChangesAttributesInEffectByVersion, this.DeprecateByVersion)); - } + writeOutput(string.Format(Resources.BreakingChangesAttributesInEffectByAzVersion, this.DeprecateByAzVersion)); + writeOutput(string.Format(Resources.BreakingChangesAttributesInEffectByVersion, this.DeprecateByVersion)); if (OldWay != null && NewWay != null) { @@ -114,18 +107,13 @@ public class CmdletBreakingChangeAttribute : GenericBreakingChangeAttribute public string ReplacementCmdletName { get; set; } - public CmdletBreakingChangeAttribute() : - base(string.Empty) + public CmdletBreakingChangeAttribute(string deprecateByAzVersion, string deprecateByVersion) : + base(string.Empty, deprecateByAzVersion, deprecateByVersion) { } - public CmdletBreakingChangeAttribute(string deprecateByVersione) : - base(string.Empty, deprecateByVersione) - { - } - - public CmdletBreakingChangeAttribute(string deprecateByVersion, string changeInEfectByDate) : - base(string.Empty, deprecateByVersion, changeInEfectByDate) + public CmdletBreakingChangeAttribute(string deprecateByAzVersion, string deprecateByVersion, string changeInEfectByDate) : + base(string.Empty, deprecateByAzVersion, deprecateByVersion, changeInEfectByDate) { } @@ -146,20 +134,15 @@ protected override string GetAttributeSpecificMessage() public class ParameterSetBreakingChangeAttribute : GenericBreakingChangeAttribute { public string[] ChangedParameterSet { set; get; } - public ParameterSetBreakingChangeAttribute(string[] changedParameterSet) : - base(string.Empty) - { - ChangedParameterSet = changedParameterSet; - } - public ParameterSetBreakingChangeAttribute(string[] changedParameterSet, string deprecateByVersione) : - base(string.Empty, deprecateByVersione) + public ParameterSetBreakingChangeAttribute(string[] changedParameterSet, string deprecateByAzVersion, string deprecateByVersion) : + base(string.Empty, deprecateByAzVersion, deprecateByVersion) { ChangedParameterSet = changedParameterSet; } - public ParameterSetBreakingChangeAttribute(string[] changedParameterSet, string deprecateByVersion, string changeInEfectByDate) : - base(string.Empty, deprecateByVersion, changeInEfectByDate) + public ParameterSetBreakingChangeAttribute(string[] changedParameterSet, string deprecateByAzVersion, string deprecateByVersion, string changeInEfectByDate) : + base(string.Empty, deprecateByAzVersion, deprecateByVersion, changeInEfectByDate) { ChangedParameterSet = changedParameterSet; } @@ -185,6 +168,11 @@ public class PreviewMessageAttribute : Attribute { public string _message; + public DateTime EstimatedGaDate { get; } + + public bool IsEstimatedGaDateSet { get; } = false; + + public PreviewMessageAttribute() { this._message = Resources.PreviewCmdletMessage; @@ -192,12 +180,26 @@ public PreviewMessageAttribute() public PreviewMessageAttribute(string message) { - this._message = message; + this._message = string.IsNullOrEmpty(message) ? Resources.PreviewCmdletMessage : message; } - public void PrintCustomAttributeInfo(System.Management.Automation.PSCmdlet psCmdlet) + public PreviewMessageAttribute(string message, string estimatedDateOfGa) : this(message) { - psCmdlet.WriteWarning(this._message); + if (DateTime.TryParse(estimatedDateOfGa, new CultureInfo("en-US"), DateTimeStyles.None, out DateTime result)) + { + this.EstimatedGaDate = result; + this.IsEstimatedGaDateSet = true; + } + } + + public void PrintCustomAttributeInfo(Action writeOutput) + { + writeOutput(this._message); + + if (IsEstimatedGaDateSet) + { + writeOutput(string.Format(Resources.PreviewCmdletETAMessage, this.EstimatedGaDate.ToShortDateString())); + } } public virtual bool IsApplicableToInvocation(InvocationInfo invocation) @@ -219,20 +221,14 @@ public class ParameterBreakingChangeAttribute : GenericBreakingChangeAttribute public String NewParameterType { get; set; } - public ParameterBreakingChangeAttribute(string nameOfParameterChanging) : - base(string.Empty) + public ParameterBreakingChangeAttribute(string nameOfParameterChanging, string deprecateByAzVersion, string deprecateByVersion) : + base(string.Empty, deprecateByAzVersion, deprecateByVersion) { this.NameOfParameterChanging = nameOfParameterChanging; } - public ParameterBreakingChangeAttribute(string nameOfParameterChanging, string deprecateByVersion) : - base(string.Empty, deprecateByVersion) - { - this.NameOfParameterChanging = nameOfParameterChanging; - } - - public ParameterBreakingChangeAttribute(string nameOfParameterChanging, string deprecateByVersion, string changeInEfectByDate) : - base(string.Empty, deprecateByVersion, changeInEfectByDate) + public ParameterBreakingChangeAttribute(string nameOfParameterChanging, string deprecateByAzVersion, string deprecateByVersion, string changeInEfectByDate) : + base(string.Empty, deprecateByAzVersion, deprecateByVersion, changeInEfectByDate) { this.NameOfParameterChanging = nameOfParameterChanging; } @@ -298,20 +294,14 @@ public class OutputBreakingChangeAttribute : GenericBreakingChangeAttribute public string[] NewOutputProperties { get; set; } - public OutputBreakingChangeAttribute(string deprecatedCmdletOutputType) : - base(string.Empty) - { - this.DeprecatedCmdLetOutputType = deprecatedCmdletOutputType; - } - - public OutputBreakingChangeAttribute(string deprecatedCmdletOutputType, string deprecateByVersion) : - base(string.Empty, deprecateByVersion) + public OutputBreakingChangeAttribute(string deprecatedCmdletOutputType, string deprecateByAzVersion, string deprecateByVersion) : + base(string.Empty, deprecateByAzVersion, deprecateByVersion) { this.DeprecatedCmdLetOutputType = deprecatedCmdletOutputType; } - public OutputBreakingChangeAttribute(string deprecatedCmdletOutputType, string deprecateByVersion, string changeInEfectByDate) : - base(string.Empty, deprecateByVersion, changeInEfectByDate) + public OutputBreakingChangeAttribute(string deprecatedCmdletOutputType, string deprecateByAzVersion, string deprecateByVersion, string changeInEfectByDate) : + base(string.Empty, deprecateByAzVersion, deprecateByVersion, changeInEfectByDate) { this.DeprecatedCmdLetOutputType = deprecatedCmdletOutputType; } diff --git a/src/StorageMover/generated/runtime/MessageAttributeHelper.cs b/src/StorageMover/generated/runtime/MessageAttributeHelper.cs index 61400750d93d..4800303dbe16 100644 --- a/src/StorageMover/generated/runtime/MessageAttributeHelper.cs +++ b/src/StorageMover/generated/runtime/MessageAttributeHelper.cs @@ -35,7 +35,7 @@ public class MessageAttributeHelper * the boundParameterNames is a list of parameters bound to the cmdlet at runtime, * We only process the Parameter beaking change attributes attached only params listed in this list (if present) * */ - public static void ProcessCustomAttributesAtRuntime(CommandInfo commandInfo, InvocationInfo invocationInfo, String parameterSet, System.Management.Automation.PSCmdlet psCmdlet) + public static void ProcessCustomAttributesAtRuntime(CommandInfo commandInfo, InvocationInfo invocationInfo, String parameterSet, System.Management.Automation.PSCmdlet psCmdlet, bool showPreviewMessage = true) { bool supressWarningOrError = false; @@ -57,36 +57,49 @@ public static void ProcessCustomAttributesAtRuntime(CommandInfo commandInfo, Inv { psCmdlet.WriteWarning("The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription."); } + + ProcessBreakingChangeAttributesAtRuntime(commandInfo, invocationInfo, parameterSet, psCmdlet); + + } + + private static void ProcessBreakingChangeAttributesAtRuntime(CommandInfo commandInfo, InvocationInfo invocationInfo, String parameterSet, System.Management.Automation.PSCmdlet psCmdlet) + { List attributes = new List(GetAllBreakingChangeAttributesInType(commandInfo, invocationInfo, parameterSet)); StringBuilder sb = new StringBuilder(); - Action appendBreakingChangeInfo = (string s) => sb.Append(s); + Action appendAttributeMessage = (string s) => sb.Append(s); if (attributes != null && attributes.Count > 0) { - appendBreakingChangeInfo(string.Format(Resources.BreakingChangesAttributesHeaderMessage, commandInfo.Name.Split('_')[0])); + appendAttributeMessage(string.Format(Resources.BreakingChangesAttributesHeaderMessage, commandInfo.Name.Split('_')[0])); foreach (GenericBreakingChangeAttribute attribute in attributes) { - attribute.PrintCustomAttributeInfo(appendBreakingChangeInfo); + attribute.PrintCustomAttributeInfo(appendAttributeMessage); } - appendBreakingChangeInfo(string.Format(Resources.BreakingChangesAttributesFooterMessage, BREAKING_CHANGE_ATTRIBUTE_INFORMATION_LINK)); + appendAttributeMessage(string.Format(Resources.BreakingChangesAttributesFooterMessage, BREAKING_CHANGE_ATTRIBUTE_INFORMATION_LINK)); psCmdlet.WriteWarning(sb.ToString()); } + } + + public static void ProcessPreviewMessageAttributesAtRuntime(CommandInfo commandInfo, InvocationInfo invocationInfo, String parameterSet, System.Management.Automation.PSCmdlet psCmdlet) + { List previewAttributes = new List(GetAllPreviewAttributesInType(commandInfo, invocationInfo)); + StringBuilder sb = new StringBuilder(); + Action appendAttributeMessage = (string s) => sb.Append(s); if (previewAttributes != null && previewAttributes.Count > 0) { foreach (PreviewMessageAttribute attribute in previewAttributes) { - attribute.PrintCustomAttributeInfo(psCmdlet); + attribute.PrintCustomAttributeInfo(appendAttributeMessage); } + psCmdlet.WriteWarning(sb.ToString()); } } - /** * This function takes in a CommandInfo (CmdletInfo or FunctionInfo) * And returns all the deprecation attributes attached to it @@ -128,6 +141,12 @@ private static IEnumerable GetAllBreakingChangeA } return invocationInfo == null ? attributeList : attributeList.Where(e => e.GetType() == typeof(ParameterSetBreakingChangeAttribute) ? ((ParameterSetBreakingChangeAttribute)e).IsApplicableToInvocation(invocationInfo, parameterSet) : e.IsApplicableToInvocation(invocationInfo)); } + + public static bool ContainsPreviewAttribute(CommandInfo commandInfo, InvocationInfo invocationInfo) + { + return GetAllPreviewAttributesInType(commandInfo, invocationInfo)?.Count() > 0; + } + private static IEnumerable GetAllPreviewAttributesInType(CommandInfo commandInfo, InvocationInfo invocationInfo) { List attributeList = new List(); diff --git a/src/StorageMover/generated/runtime/Properties/Resources.Designer.cs b/src/StorageMover/generated/runtime/Properties/Resources.Designer.cs index c9d306b2b6b9..0578e1d124a4 100644 --- a/src/StorageMover/generated/runtime/Properties/Resources.Designer.cs +++ b/src/StorageMover/generated/runtime/Properties/Resources.Designer.cs @@ -734,7 +734,7 @@ public static string BreakingChangesAttributesInEffectByDateMessage } /// - /// Looks up a localized string similar to Note :The change is expected to take effect from the version : '{0}' + /// Looks up a localized string similar to Note :The change is expected to take effect from version : '{0}' /// ///. /// @@ -746,6 +746,19 @@ public static string BreakingChangesAttributesInEffectByVersion } } + /// + /// Looks up a localized string similar to Note :The change is expected to take effect from az version : '{0}' + /// + ///. + /// + public static string BreakingChangesAttributesInEffectByAzVersion + { + get + { + return ResourceManager.GetString("BreakingChangesAttributesInEffectByAzVersion", resourceCulture); + } + } + /// /// Looks up a localized string similar to ```powershell ///# Old @@ -3122,7 +3135,16 @@ public static string PortalInstructionsGit } /// - /// Looks up a localized string similar to This cmdlet is in preview. The functionality may not be available in the selected subscription. + /// Looks up a localized string similar to The estimated generally available date is '{0}'.. + /// + public static string PreviewCmdletETAMessage { + get { + return ResourceManager.GetString("PreviewCmdletETAMessage", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to This cmdlet is in preview. Its behavior is subject to change based on customer feedback.. /// public static string PreviewCmdletMessage { @@ -5630,4 +5652,4 @@ public static string YesHint } } } -} +} \ No newline at end of file diff --git a/src/StorageMover/generated/runtime/Properties/Resources.resx b/src/StorageMover/generated/runtime/Properties/Resources.resx index 598cd53e958a..a08a2e50172b 100644 --- a/src/StorageMover/generated/runtime/Properties/Resources.resx +++ b/src/StorageMover/generated/runtime/Properties/Resources.resx @@ -1705,7 +1705,7 @@ Use the Enable-AzureDataCollection cmdlet to turn the feature On. The cmdlet can -- The change is expected to take effect from the version : '{0}' +- The change is expected to take effect from version : '{0}' ```powershell @@ -1736,6 +1736,12 @@ The type of the parameter is changing from '{0}' to '{1}'. Note : Go to {0} for steps to suppress this breaking change warning, and other information on breaking changes in Azure PowerShell. - This cmdlet is in preview. The functionality may not be available in the selected subscription. + This cmdlet is in preview. Its behavior is subject to change based on customer feedback. + + + The estimated generally available date is '{0}'. + + + - The change is expected to take effect from Az version : '{0}' \ No newline at end of file diff --git a/src/StorageMover/help/Az.StorageMover.md b/src/StorageMover/help/Az.StorageMover.md index 55d83247320f..b96290ec156c 100644 --- a/src/StorageMover/help/Az.StorageMover.md +++ b/src/StorageMover/help/Az.StorageMover.md @@ -44,6 +44,12 @@ Creates a Nfs endpoint resource, which represents a data transfer source or dest ### [New-AzStorageMoverProject](New-AzStorageMoverProject.md) Creates or updates a Project resource, which is a logical grouping of related jobs. +### [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. @@ -88,3 +94,11 @@ Properties not specified in the request body will be unchanged. Updates properties for a Project resource. Properties not specified in the request body will be unchanged. +### [Update-AzStorageMoverSmbEndpoint](Update-AzStorageMoverSmbEndpoint.md) +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/help/Get-AzStorageMover.md b/src/StorageMover/help/Get-AzStorageMover.md index 047ff51dcb18..853ba4d09b28 100644 --- a/src/StorageMover/help/Get-AzStorageMover.md +++ b/src/StorageMover/help/Get-AzStorageMover.md @@ -223,27 +223,9 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## OUTPUTS -### Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IStorageMover +### Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IStorageMover ## 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/help/Get-AzStorageMoverAgent.md b/src/StorageMover/help/Get-AzStorageMoverAgent.md index 3e2ed3de4a30..7e7e22dc2908 100644 --- a/src/StorageMover/help/Get-AzStorageMoverAgent.md +++ b/src/StorageMover/help/Get-AzStorageMoverAgent.md @@ -202,27 +202,9 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## OUTPUTS -### Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IAgent +### Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IAgent ## 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/help/Get-AzStorageMoverEndpoint.md b/src/StorageMover/help/Get-AzStorageMoverEndpoint.md index be4d48a8afaa..b24a4b493f38 100644 --- a/src/StorageMover/help/Get-AzStorageMoverEndpoint.md +++ b/src/StorageMover/help/Get-AzStorageMoverEndpoint.md @@ -205,27 +205,9 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## OUTPUTS -### Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IEndpoint +### Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IEndpoint ## 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/help/Get-AzStorageMoverJobDefinition.md b/src/StorageMover/help/Get-AzStorageMoverJobDefinition.md index 6f5337049bd3..2974721bdf73 100644 --- a/src/StorageMover/help/Get-AzStorageMoverJobDefinition.md +++ b/src/StorageMover/help/Get-AzStorageMoverJobDefinition.md @@ -220,27 +220,9 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## OUTPUTS -### Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobDefinition +### Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobDefinition ## 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/help/Get-AzStorageMoverJobRun.md b/src/StorageMover/help/Get-AzStorageMoverJobRun.md index b2408811c133..5d468c5689f9 100644 --- a/src/StorageMover/help/Get-AzStorageMoverJobRun.md +++ b/src/StorageMover/help/Get-AzStorageMoverJobRun.md @@ -276,27 +276,9 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## OUTPUTS -### Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobRun +### Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobRun ## 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/help/Get-AzStorageMoverProject.md b/src/StorageMover/help/Get-AzStorageMoverProject.md index 7780df76a83e..56c032067bd7 100644 --- a/src/StorageMover/help/Get-AzStorageMoverProject.md +++ b/src/StorageMover/help/Get-AzStorageMoverProject.md @@ -193,27 +193,9 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## OUTPUTS -### Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IProject +### Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IProject ## 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/help/New-AzStorageMover.md b/src/StorageMover/help/New-AzStorageMover.md index 52d046607aec..b3159748e7d4 100644 --- a/src/StorageMover/help/New-AzStorageMover.md +++ b/src/StorageMover/help/New-AzStorageMover.md @@ -139,7 +139,7 @@ The Storage Mover resource, which is a container for a group of Agents, Projects To construct, see NOTES section for STORAGEMOVER properties and create a hash table. ```yaml -Type: Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IStorageMover +Type: Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IStorageMover Parameter Sets: Create Aliases: @@ -216,32 +216,13 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## INPUTS -### Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IStorageMover +### Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IStorageMover ## OUTPUTS -### Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IStorageMover +### Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IStorageMover ## 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. - - `[Description ]`: A description for the Storage Mover. - - `[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. - ## RELATED LINKS diff --git a/src/StorageMover/help/New-AzStorageMoverAzStorageContainerEndpoint.md b/src/StorageMover/help/New-AzStorageMoverAzStorageContainerEndpoint.md index 9eb2e8409ccd..597a28affc48 100644 --- a/src/StorageMover/help/New-AzStorageMoverAzStorageContainerEndpoint.md +++ b/src/StorageMover/help/New-AzStorageMoverAzStorageContainerEndpoint.md @@ -208,17 +208,15 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## INPUTS -### Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IEndpoint +### Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IEndpoint ### Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.IStorageMoverIdentity ## OUTPUTS -### Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IEndpoint +### Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IEndpoint ## NOTES -ALIASES - ## RELATED LINKS diff --git a/src/StorageMover/help/New-AzStorageMoverJobDefinition.md b/src/StorageMover/help/New-AzStorageMoverJobDefinition.md index f3eec585b537..c15a11931b4a 100644 --- a/src/StorageMover/help/New-AzStorageMoverJobDefinition.md +++ b/src/StorageMover/help/New-AzStorageMoverJobDefinition.md @@ -134,7 +134,7 @@ The Job Definition resource. To construct, see NOTES section for JOBDEFINITION properties and create a hash table. ```yaml -Type: Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobDefinition +Type: Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobDefinition Parameter Sets: Create Aliases: @@ -317,35 +317,13 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## INPUTS -### Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobDefinition +### Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobDefinition ## OUTPUTS -### Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobDefinition +### Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobDefinition ## 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. - - `[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. - - `[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. - - `[TargetSubpath ]`: The subpath to use when writing to the target Endpoint. - ## RELATED LINKS diff --git a/src/StorageMover/help/New-AzStorageMoverNfsEndpoint.md b/src/StorageMover/help/New-AzStorageMoverNfsEndpoint.md index 8e46f6be4537..81836d3dec9a 100644 --- a/src/StorageMover/help/New-AzStorageMoverNfsEndpoint.md +++ b/src/StorageMover/help/New-AzStorageMoverNfsEndpoint.md @@ -222,17 +222,15 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## INPUTS -### Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IEndpoint +### Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IEndpoint ### Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.IStorageMoverIdentity ## OUTPUTS -### Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IEndpoint +### Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IEndpoint ## NOTES -ALIASES - ## RELATED LINKS diff --git a/src/StorageMover/help/New-AzStorageMoverProject.md b/src/StorageMover/help/New-AzStorageMoverProject.md index c4826e8632a6..77bb729d3e3b 100644 --- a/src/StorageMover/help/New-AzStorageMoverProject.md +++ b/src/StorageMover/help/New-AzStorageMoverProject.md @@ -106,7 +106,7 @@ The Project resource. To construct, see NOTES section for PROJECT properties and create a hash table. ```yaml -Type: Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IProject +Type: Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IProject Parameter Sets: Create Aliases: @@ -199,29 +199,13 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## INPUTS -### Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IProject +### Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IProject ## OUTPUTS -### Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IProject +### Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IProject ## 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. - - `[Description ]`: A description for the Project. - - `[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. - ## RELATED LINKS diff --git a/src/StorageMover/help/New-AzStorageMoverSmbEndpoint.md b/src/StorageMover/help/New-AzStorageMoverSmbEndpoint.md new file mode 100644 index 000000000000..3d256ac5a302 --- /dev/null +++ b/src/StorageMover/help/New-AzStorageMoverSmbEndpoint.md @@ -0,0 +1,259 @@ +--- +external help file: +Module Name: Az.StorageMover +online version: https://learn.microsoft.com/powershell/module/az.storagemover/new-azstoragemoversmbendpoint +schema: 2.0.0 +--- + +# New-AzStorageMoverSmbEndpoint + +## SYNOPSIS +Creates an SMB endpoint resource, which represents a data transfer source or destination. + +## SYNTAX + +``` +New-AzStorageMoverSmbEndpoint -Name -ResourceGroupName -StorageMoverName + -Host -ShareName [-SubscriptionId ] [-CredentialsPasswordUri ] + [-CredentialsUsernameUri ] [-Description ] [-DefaultProfile ] [-Confirm] [-WhatIf] + [] +``` + +## DESCRIPTION +Creates an SMB endpoint resource, which represents a data transfer source or destination. + +## EXAMPLES + +### Example 1: Create a SMB endpoint +```powershell +New-AzStorageMoverSmbEndpoint -Name "myendpoint" -ResourceGroupName "myresourcegroup" -StorageMoverName "mystoragemover" -Host "10.0.0.1" -ShareName "testshare" -CredentialsUsernameUri "https://examples-azureKeyVault.vault.azure.net/secrets/username1" -CredentialsPasswordUri "https://examples-azureKeyVault.vault.azure.net/secrets/password1" +``` + +```output +Id : /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myresourcegroup/providers/Microsoft.StorageMover/storageMovers/mystoragemover/endpoints/myendpoint +Name : myendpoint +Property : { + "endpointType": "SmbMount", + "provisioningState": "Succeeded", + "credentials": { + "type": "AzureKeyVaultSmb", + "usernameUri": "https://examples-azureKeyVault.vault.azure.net/secrets/username1", + "passwordUri": "https://examples-azureKeyVault.vault.azure.net/secrets/password1" + }, + "host": "10.0.0.1", + "shareName": "testshare" + } +SystemDataCreatedAt : 6/27/2023 4:30:50 AM +SystemDataCreatedBy : 00000000-0000-0000-0000-000000000000 +SystemDataCreatedByType : Application +SystemDataLastModifiedAt : 7/13/2023 8:19:34 AM +SystemDataLastModifiedBy : 00000000-0000-0000-0000-000000000000 +SystemDataLastModifiedByType : Application +Type : microsoft.storagemover/storagemovers/endpoints +``` + +This command creates a SMB endpoint for a Storage mover named "mystoragemover". + +## PARAMETERS + +### -CredentialsPasswordUri +The secret URI which stores the password. +Use empty string to clean-up existing value. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -CredentialsUsernameUri +The secret URI which stores the username. +Use empty string to clean-up existing value. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -DefaultProfile +The credentials, account, tenant, and subscription used for communication with Azure. + +```yaml +Type: System.Management.Automation.PSObject +Parameter Sets: (All) +Aliases: AzureRMContext, AzureCredential + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Description +A description for the endpoint. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Host +The host name or IP address of the server exporting the file system. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Name +The name of the endpoint resource. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: EndpointName + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -ResourceGroupName +The name of the resource group. +The name is case insensitive. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -ShareName +The name of the SMB share being exported from the server + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -StorageMoverName +The name of the Storage Mover resource. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -SubscriptionId +The ID of the target subscription. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: (Get-AzContext).Subscription.Id +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Confirm +Prompts you for confirmation before running the cmdlet. + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: cf + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -WhatIf +Shows what would happen if the cmdlet runs. +The cmdlet is not run. + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: wi + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### CommonParameters +This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). + +## INPUTS + +### Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IEndpoint + +### Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.IStorageMoverIdentity + +## OUTPUTS + +### Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IEndpoint + +## NOTES + +## RELATED LINKS + diff --git a/src/StorageMover/help/New-AzStorageMoverSmbFileShareEndpoint.md b/src/StorageMover/help/New-AzStorageMoverSmbFileShareEndpoint.md new file mode 100644 index 000000000000..b07651abcd4b --- /dev/null +++ b/src/StorageMover/help/New-AzStorageMoverSmbFileShareEndpoint.md @@ -0,0 +1,222 @@ +--- +external help file: +Module Name: Az.StorageMover +online version: https://learn.microsoft.com/powershell/module/az.storagemover/new-azstoragemoversmbfileshareendpoint +schema: 2.0.0 +--- + +# New-AzStorageMoverSmbFileShareEndpoint + +## SYNOPSIS +Creates a Smb file share endpoint resource, which represents a data transfer source or destination. + +## SYNTAX + +``` +New-AzStorageMoverSmbFileShareEndpoint -Name -ResourceGroupName -StorageMoverName + -FileShareName -StorageAccountResourceId [-SubscriptionId ] [-Description ] + [-DefaultProfile ] [-Confirm] [-WhatIf] [] +``` + +## DESCRIPTION +Creates a Smb file share endpoint resource, which represents a data transfer source or destination. + +## EXAMPLES + +### 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" +``` + +```output +Id : /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myresourcegroup/providers/Microsoft.StorageMover/storageMovers/mystoragemover/endpoints/myendpoint +Name : myendpoint +Property : { + "endpointType": "AzureStorageSmbFileShare", + "description": "New smb file share endpoint", + "provisioningState": "Succeeded", + "storageAccountResourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myresourcegroup/providers/Microsoft.Storage/storageAccounts/myaccount", + "fileShareName": "testfs" + } +SystemDataCreatedAt : 6/27/2023 4:30:13 AM +SystemDataCreatedBy :00000000-0000-0000-0000-000000000000 +SystemDataCreatedByType : Application +SystemDataLastModifiedAt : 7/13/2023 7:21:21 AM +SystemDataLastModifiedBy : 00000000-0000-0000-0000-000000000000 +SystemDataLastModifiedByType : Application +Type : microsoft.storagemover/storagemovers/endpoints +``` + +This command creats a Smb file share endpoint + +## PARAMETERS + +### -DefaultProfile +The credentials, account, tenant, and subscription used for communication with Azure. + +```yaml +Type: System.Management.Automation.PSObject +Parameter Sets: (All) +Aliases: AzureRMContext, AzureCredential + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Description +A description for the endpoint. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -FileShareName +The name of the Azure Storage file share. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Name +The name of the endpoint resource. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: EndpointName + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -ResourceGroupName +The name of the resource group. +The name is case insensitive. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -StorageAccountResourceId +The Azure Resource ID of the storage account that is the target destination. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -StorageMoverName +The name of the Storage Mover resource. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -SubscriptionId +The ID of the target subscription. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: (Get-AzContext).Subscription.Id +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Confirm +Prompts you for confirmation before running the cmdlet. + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: cf + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -WhatIf +Shows what would happen if the cmdlet runs. +The cmdlet is not run. + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: wi + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### CommonParameters +This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). + +## INPUTS + +### Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IEndpoint + +### Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.IStorageMoverIdentity + +## OUTPUTS + +### Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IEndpoint + +## NOTES + +## RELATED LINKS + diff --git a/src/StorageMover/help/Remove-AzStorageMover.md b/src/StorageMover/help/Remove-AzStorageMover.md index 72f64b656600..c9fde436a739 100644 --- a/src/StorageMover/help/Remove-AzStorageMover.md +++ b/src/StorageMover/help/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/help/Remove-AzStorageMoverEndpoint.md b/src/StorageMover/help/Remove-AzStorageMoverEndpoint.md index d109114ad5bd..0cfccc20af17 100644 --- a/src/StorageMover/help/Remove-AzStorageMoverEndpoint.md +++ b/src/StorageMover/help/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/help/Remove-AzStorageMoverJobDefinition.md b/src/StorageMover/help/Remove-AzStorageMoverJobDefinition.md index d0629986876b..8e92f1776869 100644 --- a/src/StorageMover/help/Remove-AzStorageMoverJobDefinition.md +++ b/src/StorageMover/help/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/help/Remove-AzStorageMoverProject.md b/src/StorageMover/help/Remove-AzStorageMoverProject.md index c045a6b45b54..06fef09dac97 100644 --- a/src/StorageMover/help/Remove-AzStorageMoverProject.md +++ b/src/StorageMover/help/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/help/Start-AzStorageMoverJobDefinition.md b/src/StorageMover/help/Start-AzStorageMoverJobDefinition.md index 102795062bd8..e11228593968 100644 --- a/src/StorageMover/help/Start-AzStorageMoverJobDefinition.md +++ b/src/StorageMover/help/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/help/Stop-AzStorageMoverJobDefinition.md b/src/StorageMover/help/Stop-AzStorageMoverJobDefinition.md index a84618431fe0..32f41d7ac826 100644 --- a/src/StorageMover/help/Stop-AzStorageMoverJobDefinition.md +++ b/src/StorageMover/help/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/help/Unregister-AzStorageMoverAgent.md b/src/StorageMover/help/Unregister-AzStorageMoverAgent.md index 9923ad0d53ce..336dac67d104 100644 --- a/src/StorageMover/help/Unregister-AzStorageMoverAgent.md +++ b/src/StorageMover/help/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/help/Update-AzStorageMover.md b/src/StorageMover/help/Update-AzStorageMover.md index 79b9de58f678..7a1dfeb5f9ce 100644 --- a/src/StorageMover/help/Update-AzStorageMover.md +++ b/src/StorageMover/help/Update-AzStorageMover.md @@ -153,7 +153,7 @@ The Storage Mover resource. To construct, see NOTES section for STORAGEMOVER properties and create a hash table. ```yaml -Type: Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IStorageMoverUpdateParameters +Type: Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IStorageMoverUpdateParameters Parameter Sets: Update, UpdateViaIdentity Aliases: @@ -230,38 +230,15 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## INPUTS -### Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IStorageMoverUpdateParameters +### Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IStorageMoverUpdateParameters ### Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.IStorageMoverIdentity ## OUTPUTS -### Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IStorageMover +### Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IStorageMover ## 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/help/Update-AzStorageMoverAgent.md b/src/StorageMover/help/Update-AzStorageMoverAgent.md index 92ee7fe15d34..67bccfb7ee1c 100644 --- a/src/StorageMover/help/Update-AzStorageMoverAgent.md +++ b/src/StorageMover/help/Update-AzStorageMoverAgent.md @@ -82,7 +82,7 @@ The Agent resource. To construct, see NOTES section for AGENT properties and create a hash table. ```yaml -Type: Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IAgentUpdateParameters +Type: Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IAgentUpdateParameters Parameter Sets: Update, UpdateViaIdentity Aliases: @@ -237,36 +237,15 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## INPUTS -### Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IAgentUpdateParameters +### Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IAgentUpdateParameters ### Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.IStorageMoverIdentity ## OUTPUTS -### Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IAgent +### Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IAgent ## 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/help/Update-AzStorageMoverAzStorageContainerEndpoint.md b/src/StorageMover/help/Update-AzStorageMoverAzStorageContainerEndpoint.md index 310df18657d3..8b7dae9399f6 100644 --- a/src/StorageMover/help/Update-AzStorageMoverAzStorageContainerEndpoint.md +++ b/src/StorageMover/help/Update-AzStorageMoverAzStorageContainerEndpoint.md @@ -207,27 +207,9 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## OUTPUTS -### Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IEndpoint +### Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IEndpoint ## 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/help/Update-AzStorageMoverJobDefinition.md b/src/StorageMover/help/Update-AzStorageMoverJobDefinition.md index 584c0291d737..fc41332c5ae8 100644 --- a/src/StorageMover/help/Update-AzStorageMoverJobDefinition.md +++ b/src/StorageMover/help/Update-AzStorageMoverJobDefinition.md @@ -164,7 +164,7 @@ The Job Definition resource. To construct, see NOTES section for JOBDEFINITION properties and create a hash table. ```yaml -Type: Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobDefinitionUpdateParameters +Type: Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobDefinitionUpdateParameters Parameter Sets: Update, UpdateViaIdentity Aliases: @@ -287,38 +287,15 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## INPUTS -### Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobDefinitionUpdateParameters +### Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobDefinitionUpdateParameters ### Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.IStorageMoverIdentity ## OUTPUTS -### Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobDefinition +### Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IJobDefinition ## 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/help/Update-AzStorageMoverNfsEndpoint.md b/src/StorageMover/help/Update-AzStorageMoverNfsEndpoint.md index 17ceaed645ca..6e4d985c71fe 100644 --- a/src/StorageMover/help/Update-AzStorageMoverNfsEndpoint.md +++ b/src/StorageMover/help/Update-AzStorageMoverNfsEndpoint.md @@ -207,27 +207,9 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## OUTPUTS -### Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IEndpoint +### Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IEndpoint ## 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/help/Update-AzStorageMoverProject.md b/src/StorageMover/help/Update-AzStorageMoverProject.md index 483e0ce38fd5..e71f63b0655e 100644 --- a/src/StorageMover/help/Update-AzStorageMoverProject.md +++ b/src/StorageMover/help/Update-AzStorageMoverProject.md @@ -135,7 +135,7 @@ The Project resource. To construct, see NOTES section for PROJECT properties and create a hash table. ```yaml -Type: Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IProjectUpdateParameters +Type: Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IProjectUpdateParameters Parameter Sets: Update, UpdateViaIdentity Aliases: @@ -228,36 +228,15 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## INPUTS -### Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IProjectUpdateParameters +### Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IProjectUpdateParameters ### Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.IStorageMoverIdentity ## OUTPUTS -### Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IProject +### Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IProject ## 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/help/Update-AzStorageMoverSmbEndpoint.md b/src/StorageMover/help/Update-AzStorageMoverSmbEndpoint.md new file mode 100644 index 000000000000..4655025fb0b7 --- /dev/null +++ b/src/StorageMover/help/Update-AzStorageMoverSmbEndpoint.md @@ -0,0 +1,284 @@ +--- +external help file: +Module Name: Az.StorageMover +online version: https://learn.microsoft.com/powershell/module/az.storagemover/update-azstoragemoversmbendpoint +schema: 2.0.0 +--- + +# Update-AzStorageMoverSmbEndpoint + +## SYNOPSIS +Updates properties for a SMB endpoint resource. +Properties not specified in the request body will be unchanged. + +## SYNTAX + +### UpdateExpanded (Default) +``` +Update-AzStorageMoverSmbEndpoint -Name -ResourceGroupName -StorageMoverName + [-SubscriptionId ] [-CredentialsPasswordUri ] [-CredentialsUsernameUri ] + [-Description ] [-DefaultProfile ] [-Confirm] [-WhatIf] [] +``` + +### UpdateViaIdentityExpanded +``` +Update-AzStorageMoverSmbEndpoint -InputObject [-CredentialsPasswordUri ] + [-CredentialsUsernameUri ] [-Description ] [-DefaultProfile ] [-Confirm] [-WhatIf] + [] +``` + +## DESCRIPTION +Updates properties for a SMB endpoint resource. +Properties not specified in the request body will be unchanged. + +## EXAMPLES + +### Example 1: Update a SMB endpoint +```powershell +Update-AzStorageMoverSmbEndpoint -Name "myendpoint" -ResourceGroupName "myresourcegroup" -StorageMoverName "mystoragemover" -CredentialsUsernameUri "https://examples-azureKeyVault.vault.azure.net/secrets/username2" -CredentialsPasswordUri "https://examples-azureKeyVault.vault.azure.net/secrets/password2" -Description "update endpoint" +``` + +```output +Id : /subscriptions/00000000-0000-0000-0000-000000000000e/resourceGroups/myresourcegroup/providers/Microsoft.StorageMover/storageMovers/mystoragemover/endpoints/myendpoint +Name : myendpoint +Property : { + "endpointType": "SmbMount", + "description": "update endpoint", + "provisioningState": "Succeeded", + "credentials": { + "type": "AzureKeyVaultSmb", + "usernameUri": "https://examples-azureKeyVault.vault.azure.net/secrets/username2", + "passwordUri": "https://examples-azureKeyVault.vault.azure.net/secrets/password2" + }, + "host": "10.0.0.1", + "shareName": "testshare" + } +SystemDataCreatedAt : 6/27/2023 4:30:50 AM +SystemDataCreatedBy : 00000000-0000-0000-0000-000000000000 +SystemDataCreatedByType : Application +SystemDataLastModifiedAt : 7/13/2023 8:26:34 AM +SystemDataLastModifiedBy : 00000000-0000-0000-0000-000000000000 +SystemDataLastModifiedByType : Application +Type : microsoft.storagemover/storagemovers/endpoints +``` + +This command updates the description, credential username, and credential password of a SMB endpoint by manual inputs. + +### Example 2: Update a SMB endpoint by pipeline +```powershell +Get-AzStorageMoverEndpoint -ResourceGroupName "myresourcegroup" -StorageMoverName "mystoragemover" -Name "myendpoint" | Update-AzStorageMoverSmbEndpoint -CredentialsPasswordUri "" -CredentialsUsernameUri "" -Description "update endpoint again" +``` + +```output +Id : /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myresourcegorup/providers/Microsoft.StorageMover/storageMovers/mystoragemover/endpoints/myendpoint +Name : myendpoint +Property : { + "endpointType": "SmbMount", + "description": "update endpoint again", + "provisioningState": "Succeeded", + "credentials": { + "type": "AzureKeyVaultSmb", + "usernameUri": "", + "passwordUri": "" + }, + "host": "10.0.0.1", + "shareName": "testshare" + } +SystemDataCreatedAt : 6/27/2023 4:30:50 AM +SystemDataCreatedBy : 00000000-0000-0000-0000-000000000000 +SystemDataCreatedByType : Application +SystemDataLastModifiedAt : 7/13/2023 8:29:10 AM +SystemDataLastModifiedBy : 00000000-0000-0000-0000-000000000000 +SystemDataLastModifiedByType : Application +Type : microsoft.storagemover/storagemovers/endpoints +``` + +This command updates the description and clears the credential username and password of a SMB endpoint by pipeline. + +## PARAMETERS + +### -CredentialsPasswordUri +The secret URI which stores the password. +Use empty string to clean-up existing value. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -CredentialsUsernameUri +The secret URI which stores the username. +Use empty string to clean-up existing value. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -DefaultProfile +The credentials, account, tenant, and subscription used for communication with Azure. + +```yaml +Type: System.Management.Automation.PSObject +Parameter Sets: (All) +Aliases: AzureRMContext, AzureCredential + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Description +A description for the endpoint. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -InputObject +Identity Parameter +To construct, see NOTES section for INPUTOBJECT properties and create a hash table. + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.IStorageMoverIdentity +Parameter Sets: UpdateViaIdentityExpanded +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: True (ByValue) +Accept wildcard characters: False +``` + +### -Name +The name of the endpoint resource. + +```yaml +Type: System.String +Parameter Sets: UpdateExpanded +Aliases: EndpointName + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -ResourceGroupName +The name of the resource group. +The name is case insensitive. + +```yaml +Type: System.String +Parameter Sets: UpdateExpanded +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -StorageMoverName +The name of the Storage Mover resource. + +```yaml +Type: System.String +Parameter Sets: UpdateExpanded +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -SubscriptionId +The ID of the target subscription. + +```yaml +Type: System.String +Parameter Sets: UpdateExpanded +Aliases: + +Required: False +Position: Named +Default value: (Get-AzContext).Subscription.Id +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Confirm +Prompts you for confirmation before running the cmdlet. + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: cf + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -WhatIf +Shows what would happen if the cmdlet runs. +The cmdlet is not run. + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: wi + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### CommonParameters +This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). + +## INPUTS + +### Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.IStorageMoverIdentity + +## OUTPUTS + +### Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IEndpoint + +## NOTES + +## RELATED LINKS + diff --git a/src/StorageMover/help/Update-AzStorageMoverSmbFileShareEndpoint.md b/src/StorageMover/help/Update-AzStorageMoverSmbFileShareEndpoint.md new file mode 100644 index 000000000000..272c281d671b --- /dev/null +++ b/src/StorageMover/help/Update-AzStorageMoverSmbFileShareEndpoint.md @@ -0,0 +1,241 @@ +--- +external help file: +Module Name: Az.StorageMover +online version: https://learn.microsoft.com/powershell/module/az.storagemover/update-azstoragemoversmbfileshareendpoint +schema: 2.0.0 +--- + +# Update-AzStorageMoverSmbFileShareEndpoint + +## SYNOPSIS +Updates properties for a SMB file share endpoint resource. +Properties not specified in the request body will be unchanged. + +## SYNTAX + +### UpdateExpanded (Default) +``` +Update-AzStorageMoverSmbFileShareEndpoint -Name -ResourceGroupName + -StorageMoverName [-SubscriptionId ] [-Description ] [-DefaultProfile ] + [-Confirm] [-WhatIf] [] +``` + +### UpdateViaIdentityExpanded +``` +Update-AzStorageMoverSmbFileShareEndpoint -InputObject [-Description ] + [-DefaultProfile ] [-Confirm] [-WhatIf] [] +``` + +## DESCRIPTION +Updates properties for a SMB file share endpoint resource. +Properties not specified in the request body will be unchanged. + +## EXAMPLES + +### Example 1: Update a Smb file share endpoint +```powershell +Update-AzStorageMoverSmbFileShareEndpoint -Name "myendpoint" -ResourceGroupName "myresourcegroup" -StorageMoverName "mystoragemover" -Description "updated endpoint" +``` + +```output +Id : /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myresourcegroup/providers/Microsoft.StorageMover/storageMovers/mystoragemover/endpoints/myendpoint +Name : myendpoint +Property : { + "endpointType": "AzureStorageSmbFileShare", + "description": "updated endpoint", + "provisioningState": "Succeeded", + "storageAccountResourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myresourcegroup/providers/Microsoft.Storage/storageAccounts/myaccount", + "fileShareName": "testfs" + } +SystemDataCreatedAt : 6/27/2023 4:30:13 AM +SystemDataCreatedBy : 00000000-0000-0000-0000-000000000000 +SystemDataCreatedByType : Application +SystemDataLastModifiedAt : 7/13/2023 7:25:59 AM +SystemDataLastModifiedBy : 00000000-0000-0000-0000-000000000000 +SystemDataLastModifiedByType : Application +Type : microsoft.storagemover/storagemovers/endpoints +``` + +This command updates a Smb file share enpdoint's description by manual inputs. + +### 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" +``` + +```output +Id : /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myresourcegroup/providers/Microsoft.StorageMover/storageMovers/mystoragemover/endpoints/myendpoint +Name : myendpoint +Property : { + "endpointType": "AzureStorageSmbFileShare", + "description": "updated endpoint again", + "provisioningState": "Succeeded", + "storageAccountResourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myresourcegorup/providers/Microsoft.Storage/storageAccounts/myaccount", + "fileShareName": "testfs" + } +SystemDataCreatedAt : 6/27/2023 4:30:13 AM +SystemDataCreatedBy : 00000000-0000-0000-0000-000000000000 +SystemDataCreatedByType : Application +SystemDataLastModifiedAt : 7/13/2023 8:21:51 AM +SystemDataLastModifiedBy : 00000000-0000-0000-0000-000000000000 +SystemDataLastModifiedByType : Application +Type : microsoft.storagemover/storagemovers/endpoints +``` + +This command updates a Smb file share endpoint's description by pipeline + +## PARAMETERS + +### -DefaultProfile +The credentials, account, tenant, and subscription used for communication with Azure. + +```yaml +Type: System.Management.Automation.PSObject +Parameter Sets: (All) +Aliases: AzureRMContext, AzureCredential + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Description +A description for the endpoint. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -InputObject +Identity Parameter +To construct, see NOTES section for INPUTOBJECT properties and create a hash table. + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.IStorageMoverIdentity +Parameter Sets: UpdateViaIdentityExpanded +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: True (ByValue) +Accept wildcard characters: False +``` + +### -Name +The name of the endpoint resource. + +```yaml +Type: System.String +Parameter Sets: UpdateExpanded +Aliases: EndpointName + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -ResourceGroupName +The name of the resource group. +The name is case insensitive. + +```yaml +Type: System.String +Parameter Sets: UpdateExpanded +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -StorageMoverName +The name of the Storage Mover resource. + +```yaml +Type: System.String +Parameter Sets: UpdateExpanded +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -SubscriptionId +The ID of the target subscription. + +```yaml +Type: System.String +Parameter Sets: UpdateExpanded +Aliases: + +Required: False +Position: Named +Default value: (Get-AzContext).Subscription.Id +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Confirm +Prompts you for confirmation before running the cmdlet. + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: cf + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -WhatIf +Shows what would happen if the cmdlet runs. +The cmdlet is not run. + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: wi + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### CommonParameters +This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). + +## INPUTS + +### Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.IStorageMoverIdentity + +## OUTPUTS + +### Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IEndpoint + +## NOTES + +## RELATED LINKS + diff --git a/src/StorageMover/internal/Get-AzStorageMoverOperation.ps1 b/src/StorageMover/internal/Get-AzStorageMoverOperation.ps1 index d54a5f31e55e..023ee37dc200 100644 --- a/src/StorageMover/internal/Get-AzStorageMoverOperation.ps1 +++ b/src/StorageMover/internal/Get-AzStorageMoverOperation.ps1 @@ -25,12 +25,12 @@ Lists all the supported operations for the Azure Storage Mover REST API. {{ Add code here }} .Outputs -Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.IOperation +Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IOperation .Link https://learn.microsoft.com/powershell/module/az.storagemover/get-azstoragemoveroperation #> function Get-AzStorageMoverOperation { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.IOperation])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IOperation])] [CmdletBinding(DefaultParameterSetName='List', PositionalBinding=$false)] param( [Parameter()] diff --git a/src/StorageMover/internal/New-AzStorageMoverEndpoint.ps1 b/src/StorageMover/internal/New-AzStorageMoverEndpoint.ps1 index 457a48d2cbff..bc0f1a0aa01e 100644 --- a/src/StorageMover/internal/New-AzStorageMoverEndpoint.ps1 +++ b/src/StorageMover/internal/New-AzStorageMoverEndpoint.ps1 @@ -25,7 +25,7 @@ Creates or updates an Endpoint resource, which represents a data transfer source {{ Add code here }} .Outputs -Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IEndpoint +Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IEndpoint .Notes COMPLEX PARAMETER PROPERTIES @@ -38,7 +38,7 @@ PROPERTY : The resource specific properties for the Sto https://learn.microsoft.com/powershell/module/az.storagemover/new-azstoragemoverendpoint #> function New-AzStorageMoverEndpoint { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IEndpoint])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IEndpoint])] [CmdletBinding(DefaultParameterSetName='CreateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param( [Parameter(Mandatory)] @@ -70,7 +70,7 @@ param( [Parameter(Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IEndpointBaseProperties] + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IEndpointBaseProperties] # The resource specific properties for the Storage Mover resource. # To construct, see NOTES section for PROPERTY properties and create a hash table. ${Property}, diff --git a/src/StorageMover/internal/ProxyCmdletDefinitions.ps1 b/src/StorageMover/internal/ProxyCmdletDefinitions.ps1 index fce61b7ce606..20e178a4b316 100644 --- a/src/StorageMover/internal/ProxyCmdletDefinitions.ps1 +++ b/src/StorageMover/internal/ProxyCmdletDefinitions.ps1 @@ -25,12 +25,12 @@ Lists all the supported operations for the Azure Storage Mover REST API. {{ Add code here }} .Outputs -Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.IOperation +Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IOperation .Link https://learn.microsoft.com/powershell/module/az.storagemover/get-azstoragemoveroperation #> function Get-AzStorageMoverOperation { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20.IOperation])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api30.IOperation])] [CmdletBinding(DefaultParameterSetName='List', PositionalBinding=$false)] param( [Parameter()] @@ -135,7 +135,7 @@ Creates or updates an Endpoint resource, which represents a data transfer source {{ Add code here }} .Outputs -Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IEndpoint +Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IEndpoint .Notes COMPLEX PARAMETER PROPERTIES @@ -148,7 +148,7 @@ PROPERTY : The resource specific properties for the Sto https://learn.microsoft.com/powershell/module/az.storagemover/new-azstoragemoverendpoint #> function New-AzStorageMoverEndpoint { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IEndpoint])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IEndpoint])] [CmdletBinding(DefaultParameterSetName='CreateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param( [Parameter(Mandatory)] @@ -180,7 +180,7 @@ param( [Parameter(Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IEndpointBaseProperties] + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IEndpointBaseProperties] # The resource specific properties for the Storage Mover resource. # To construct, see NOTES section for PROPERTY properties and create a hash table. ${Property}, @@ -652,7 +652,7 @@ Properties not specified in the request body will be unchanged. .Inputs Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.IStorageMoverIdentity .Outputs -Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IEndpoint +Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IEndpoint .Notes COMPLEX PARAMETER PROPERTIES @@ -670,12 +670,13 @@ INPUTOBJECT : Identity Parameter [SubscriptionId ]: The ID of the target subscription. PROPERTY : The Endpoint resource, which contains information about file sources and targets. + EndpointType : The Endpoint resource type. [Description ]: A description for the Endpoint. .Link https://learn.microsoft.com/powershell/module/az.storagemover/update-azstoragemoverendpoint #> function Update-AzStorageMoverEndpoint { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IEndpoint])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IEndpoint])] [CmdletBinding(DefaultParameterSetName='UpdateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param( [Parameter(ParameterSetName='UpdateExpanded', Mandatory)] @@ -714,7 +715,7 @@ param( [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IEndpointBaseUpdateProperties] + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IEndpointBaseUpdateProperties] # The Endpoint resource, which contains information about file sources and targets. # To construct, see NOTES section for PROPERTY properties and create a hash table. ${Property}, diff --git a/src/StorageMover/internal/Update-AzStorageMoverEndpoint.ps1 b/src/StorageMover/internal/Update-AzStorageMoverEndpoint.ps1 index ee3d6bf13eff..8d84db4286b2 100644 --- a/src/StorageMover/internal/Update-AzStorageMoverEndpoint.ps1 +++ b/src/StorageMover/internal/Update-AzStorageMoverEndpoint.ps1 @@ -29,7 +29,7 @@ Properties not specified in the request body will be unchanged. .Inputs Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.IStorageMoverIdentity .Outputs -Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IEndpoint +Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IEndpoint .Notes COMPLEX PARAMETER PROPERTIES @@ -47,12 +47,13 @@ INPUTOBJECT : Identity Parameter [SubscriptionId ]: The ID of the target subscription. PROPERTY : The Endpoint resource, which contains information about file sources and targets. + EndpointType : The Endpoint resource type. [Description ]: A description for the Endpoint. .Link https://learn.microsoft.com/powershell/module/az.storagemover/update-azstoragemoverendpoint #> function Update-AzStorageMoverEndpoint { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IEndpoint])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IEndpoint])] [CmdletBinding(DefaultParameterSetName='UpdateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param( [Parameter(ParameterSetName='UpdateExpanded', Mandatory)] @@ -91,7 +92,7 @@ param( [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IEndpointBaseUpdateProperties] + [Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20231001.IEndpointBaseUpdateProperties] # The Endpoint resource, which contains information about file sources and targets. # To construct, see NOTES section for PROPERTY properties and create a hash table. ${Property}, diff --git a/src/StorageMover/test/Get-AzStorageMover.Recording.json b/src/StorageMover/test/Get-AzStorageMover.Recording.json index 15f43e229886..44c51a7add5a 100644 --- a/src/StorageMover/test/Get-AzStorageMover.Recording.json +++ b/src/StorageMover/test/Get-AzStorageMover.Recording.json @@ -1,17 +1,17 @@ { - "Get-AzStorageMover+[NoContext]+List+$GET+https://management.azure.com/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/providers/Microsoft.StorageMover/storageMovers?api-version=2023-03-01+1": { + "Get-AzStorageMover+[NoContext]+List+$GET+https://management.azure.com/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/providers/Microsoft.StorageMover/storageMovers?api-version=2023-10-01+1": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/providers/Microsoft.StorageMover/storageMovers?api-version=2023-03-01", + "RequestUri": "https://management.azure.com/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/providers/Microsoft.StorageMover/storageMovers?api-version=2023-10-01", "Content": null, "isContentBase64": false, "Headers": { "x-ms-unique-id": [ "7" ], - "x-ms-client-request-id": [ "b9f0bdc2-0b99-4849-a50d-dfb0cceb86c6" ], + "x-ms-client-request-id": [ "400a84c1-4cee-40b5-a085-f892edbbf97a" ], "CommandName": [ "Get-AzStorageMover" ], "FullCommandName": [ "Get-AzStorageMover_List" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v8.0.0", "PSVersion/v7.2.5", "Az.StorageMover/0.1.0" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.2.12", "Az.StorageMover/1.0.1" ], "Authorization": [ "[Filtered]" ] }, "ContentHeaders": { @@ -22,37 +22,37 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "x-ms-original-request-ids": [ "4bf8bf5d-a87a-45d0-bad1-5121e45910b3", "c3aeedaf-331d-488a-ad56-a4f9baee7ec9" ], - "x-ms-ratelimit-remaining-subscription-reads": [ "11991" ], - "x-ms-request-id": [ "3021b289-fb77-4068-92b1-a92b8eb12d7c" ], - "x-ms-correlation-request-id": [ "3021b289-fb77-4068-92b1-a92b8eb12d7c" ], - "x-ms-routing-request-id": [ "SOUTHEASTASIA:20220802T053553Z:3021b289-fb77-4068-92b1-a92b8eb12d7c" ], + "x-ms-original-request-ids": [ "dbc0ebb7-bd19-4449-b9b3-fd421e9fa6fc", "3cf2f5bc-e825-4d8e-af11-9f20ec105ffd", "bde18c61-782d-45b1-a326-e17b902602a6", "e48d13ef-c9d3-4723-a7fd-c64c16bf9704", "bb0d5253-94f5-4a4d-b5a6-de1856a01a44", "e9765564-a696-4eab-8067-1dd93094b3ab" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11999" ], + "x-ms-request-id": [ "53187059-dfa2-4922-9144-753757ad7987" ], + "x-ms-correlation-request-id": [ "53187059-dfa2-4922-9144-753757ad7987" ], + "x-ms-routing-request-id": [ "EASTUS2EUAP:20230721T042902Z:53187059-dfa2-4922-9144-753757ad7987" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "X-Content-Type-Options": [ "nosniff" ], - "Date": [ "Tue, 02 Aug 2022 05:35:53 GMT" ] + "Date": [ "Fri, 21 Jul 2023 04:29:02 GMT" ] }, "ContentHeaders": { "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ], - "Content-Length": [ "12608" ] + "Content-Length": [ "16113" ] }, - "Content": "{\"value\":[{\"id\":\"/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/yifanstoragemover/providers/microsoft.storagemover/storagemovers/yifanTestStorageMover\",\"name\":\"yifanTestStorageMover\",\"type\":\"microsoft.storagemover/storagemovers\",\"location\":\"eastus2euap\",\"systemData\":{\"createdBy\":\"yifanzhang@microsoft.com\",\"createdByType\":\"User\",\"createdAt\":\"2022-07-14T03:19:21.8846673Z\",\"lastModifiedBy\":\"yifanzhang@microsoft.com\",\"lastModifiedByType\":\"User\",\"lastModifiedAt\":\"2022-07-21T01:50:16.3872981Z\"},\"properties\":{\"description\":\"my storage mover\",\"provisioningState\":\"Succeeded\"}},{\"id\":\"/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/yifanStorageMover/providers/Microsoft.StorageMover/storageMovers/testStorageMover1\",\"name\":\"testStorageMover1\",\"type\":\"microsoft.storagemover/storagemovers\",\"location\":\"eastus2euap\",\"tags\":{\"tag\":\"value1\"},\"systemData\":{\"createdBy\":\"yifanzhang@microsoft.com\",\"createdByType\":\"User\",\"createdAt\":\"2022-07-14T03:23:59.7326804Z\",\"lastModifiedBy\":\"yifanzhang@microsoft.com\",\"lastModifiedByType\":\"User\",\"lastModifiedAt\":\"2022-07-14T04:09:42.3942461Z\"},\"properties\":{\"provisioningState\":\"Succeeded\",\"description\":\"updated description for storage mover\"}},{\"id\":\"/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/weitry/providers/microsoft.storagemover/storagemovers/weitest\",\"name\":\"weitest\",\"type\":\"microsoft.storagemover/storagemovers\",\"location\":\"eastus2euap\",\"tags\":{\"tag2\":\"value2\",\"tag1\":\"value1\"},\"systemData\":{\"createdBy\":\"weiwei@microsoft.com\",\"createdByType\":\"User\",\"createdAt\":\"2022-07-15T09:25:59.6874394Z\",\"lastModifiedBy\":\"a000255f-5f09-45e0-a970-9d9ed9cc6453\",\"lastModifiedByType\":\"Application\",\"lastModifiedAt\":\"2022-07-15T09:42:28.57775Z\"},\"properties\":{\"description\":\"StorageMover description1\",\"provisioningState\":\"Succeeded\"}},{\"id\":\"/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/yifanstoragemover/providers/Microsoft.StorageMover/storageMovers/testsm2\",\"name\":\"testsm2\",\"type\":\"microsoft.storagemover/storagemovers\",\"location\":\"eastus2euap\",\"systemData\":{\"createdBy\":\"yifanzhang@microsoft.com\",\"createdByType\":\"User\",\"createdAt\":\"2022-07-18T07:21:10.3975176Z\",\"lastModifiedBy\":\"yifanzhang@microsoft.com\",\"lastModifiedByType\":\"User\",\"lastModifiedAt\":\"2022-07-18T07:21:10.3975176Z\"},\"properties\":{\"description\":\"initial\",\"provisioningState\":\"Succeeded\"}},{\"id\":\"/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/yifanstoragemover/providers/Microsoft.StorageMover/storageMovers/newsasdada\",\"name\":\"newsasdada\",\"type\":\"microsoft.storagemover/storagemovers\",\"location\":\"eastus2euap\",\"systemData\":{\"createdBy\":\"yifanzhang@microsoft.com\",\"createdByType\":\"User\",\"createdAt\":\"2022-07-18T07:43:48.7118033Z\",\"lastModifiedBy\":\"yifanzhang@microsoft.com\",\"lastModifiedByType\":\"User\",\"lastModifiedAt\":\"2022-07-18T07:43:48.7118033Z\"},\"properties\":{\"description\":\"asdadasd\",\"provisioningState\":\"Succeeded\"}},{\"id\":\"/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/yifanStoragemover/providers/Microsoft.StorageMover/storageMovers/yifanteststoragemover2\",\"name\":\"yifanteststoragemover2\",\"type\":\"microsoft.storagemover/storagemovers\",\"location\":\"eastus2euap\",\"systemData\":{\"createdBy\":\"yifanzhang@microsoft.com\",\"createdByType\":\"User\",\"createdAt\":\"2022-07-26T05:49:02.2044827Z\",\"lastModifiedBy\":\"yifanzhang@microsoft.com\",\"lastModifiedByType\":\"User\",\"lastModifiedAt\":\"2022-07-26T05:49:02.2044827Z\"},\"properties\":{\"provisioningState\":\"Succeeded\"}},{\"id\":\"/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/yifanStoragemover/providers/Microsoft.StorageMover/storageMovers/yifanteststoragemover3\",\"name\":\"yifanteststoragemover3\",\"type\":\"microsoft.storagemover/storagemovers\",\"location\":\"eastus2euap\",\"systemData\":{\"createdBy\":\"yifanzhang@microsoft.com\",\"createdByType\":\"User\",\"createdAt\":\"2022-07-26T07:10:48.0758138Z\",\"lastModifiedBy\":\"yifanzhang@microsoft.com\",\"lastModifiedByType\":\"User\",\"lastModifiedAt\":\"2022-07-26T07:10:48.0758138Z\"},\"properties\":{\"provisioningState\":\"Succeeded\"}},{\"id\":\"/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/testStorageMover/providers/Microsoft.StorageMover/storageMovers/testStorageMover2\",\"name\":\"testStorageMover2\",\"type\":\"microsoft.storagemover/storagemovers\",\"location\":\"eastus2euap\",\"systemData\":{\"createdBy\":\"a000255f-5f09-45e0-a970-9d9ed9cc6453\",\"createdByType\":\"Application\",\"createdAt\":\"2022-08-02T03:32:45.1059642Z\",\"lastModifiedBy\":\"yifanzhang@microsoft.com\",\"lastModifiedByType\":\"User\",\"lastModifiedAt\":\"2022-08-02T05:32:24.1521278Z\"},\"properties\":{\"description\":\"my storage mover\",\"provisioningState\":\"Succeeded\"}},{\"id\":\"/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/testStorageMover/providers/Microsoft.StorageMover/storageMovers/testStoMover16flk3awb\",\"name\":\"testStoMover16flk3awb\",\"type\":\"microsoft.storagemover/storagemovers\",\"location\":\"eastus2euap\",\"tags\":{\"tag2\":\"value2\",\"tag1\":\"value1\"},\"systemData\":{\"createdBy\":\"a000255f-5f09-45e0-a970-9d9ed9cc6453\",\"createdByType\":\"Application\",\"createdAt\":\"2022-08-02T03:47:39.995801Z\",\"lastModifiedBy\":\"a000255f-5f09-45e0-a970-9d9ed9cc6453\",\"lastModifiedByType\":\"Application\",\"lastModifiedAt\":\"2022-08-02T03:47:39.995801Z\"},\"properties\":{\"description\":\"initial test SM description\",\"provisioningState\":\"Succeeded\"}},{\"id\":\"/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/testStorageMover/providers/Microsoft.StorageMover/storageMovers/testStoMover1w3s1oi5y\",\"name\":\"testStoMover1w3s1oi5y\",\"type\":\"microsoft.storagemover/storagemovers\",\"location\":\"eastus2euap\",\"tags\":{\"tag1\":\"value1\",\"tag2\":\"value2\"},\"systemData\":{\"createdBy\":\"a000255f-5f09-45e0-a970-9d9ed9cc6453\",\"createdByType\":\"Application\",\"createdAt\":\"2022-08-02T03:50:29.6732748Z\",\"lastModifiedBy\":\"a000255f-5f09-45e0-a970-9d9ed9cc6453\",\"lastModifiedByType\":\"Application\",\"lastModifiedAt\":\"2022-08-02T03:50:29.6732748Z\"},\"properties\":{\"description\":\"initial test SM description\",\"provisioningState\":\"Succeeded\"}},{\"id\":\"/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/testStorageMover/providers/Microsoft.StorageMover/storageMovers/testStoMover14mkhzf8x\",\"name\":\"testStoMover14mkhzf8x\",\"type\":\"microsoft.storagemover/storagemovers\",\"location\":\"eastus2euap\",\"tags\":{\"tag1\":\"value1\",\"tag2\":\"value2\"},\"systemData\":{\"createdBy\":\"a000255f-5f09-45e0-a970-9d9ed9cc6453\",\"createdByType\":\"Application\",\"createdAt\":\"2022-08-02T03:51:41.6781714Z\",\"lastModifiedBy\":\"a000255f-5f09-45e0-a970-9d9ed9cc6453\",\"lastModifiedByType\":\"Application\",\"lastModifiedAt\":\"2022-08-02T03:51:41.6781714Z\"},\"properties\":{\"description\":\"initial test SM description\",\"provisioningState\":\"Succeeded\"}},{\"id\":\"/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/testStorageMover/providers/Microsoft.StorageMover/storageMovers/testStoMover24mkhzf8x\",\"name\":\"testStoMover24mkhzf8x\",\"type\":\"microsoft.storagemover/storagemovers\",\"location\":\"eastus2euap\",\"systemData\":{\"createdBy\":\"a000255f-5f09-45e0-a970-9d9ed9cc6453\",\"createdByType\":\"Application\",\"createdAt\":\"2022-08-02T03:53:17.1076925Z\",\"lastModifiedBy\":\"a000255f-5f09-45e0-a970-9d9ed9cc6453\",\"lastModifiedByType\":\"Application\",\"lastModifiedAt\":\"2022-08-02T03:53:17.1076925Z\"},\"properties\":{\"description\":\"test Storage mover description\",\"provisioningState\":\"Succeeded\"}},{\"id\":\"/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/testStorageMover/providers/Microsoft.StorageMover/storageMovers/testStorageMoverk3pmhtl9\",\"name\":\"testStorageMoverk3pmhtl9\",\"type\":\"microsoft.storagemover/storagemovers\",\"location\":\"eastus2euap\",\"systemData\":{\"createdBy\":\"a000255f-5f09-45e0-a970-9d9ed9cc6453\",\"createdByType\":\"Application\",\"createdAt\":\"2022-08-02T03:54:10.890512Z\",\"lastModifiedBy\":\"a000255f-5f09-45e0-a970-9d9ed9cc6453\",\"lastModifiedByType\":\"Application\",\"lastModifiedAt\":\"2022-08-02T05:20:35.0358092Z\"},\"properties\":{\"description\":\"update storage mover description\",\"provisioningState\":\"Succeeded\"}},{\"id\":\"/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/testStorageMover/providers/Microsoft.StorageMover/storageMovers/testStoMover17ubswd3o\",\"name\":\"testStoMover17ubswd3o\",\"type\":\"microsoft.storagemover/storagemovers\",\"location\":\"eastus2euap\",\"tags\":{\"tag1\":\"value1\",\"tag2\":\"value2\"},\"systemData\":{\"createdBy\":\"a000255f-5f09-45e0-a970-9d9ed9cc6453\",\"createdByType\":\"Application\",\"createdAt\":\"2022-08-02T03:59:47.4339851Z\",\"lastModifiedBy\":\"a000255f-5f09-45e0-a970-9d9ed9cc6453\",\"lastModifiedByType\":\"Application\",\"lastModifiedAt\":\"2022-08-02T03:59:47.4339851Z\"},\"properties\":{\"description\":\"initial test SM description\",\"provisioningState\":\"Succeeded\"}},{\"id\":\"/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/testStorageMover/providers/Microsoft.StorageMover/storageMovers/testStoMover27ubswd3o\",\"name\":\"testStoMover27ubswd3o\",\"type\":\"microsoft.storagemover/storagemovers\",\"location\":\"eastus2euap\",\"systemData\":{\"createdBy\":\"a000255f-5f09-45e0-a970-9d9ed9cc6453\",\"createdByType\":\"Application\",\"createdAt\":\"2022-08-02T04:00:52.450009Z\",\"lastModifiedBy\":\"a000255f-5f09-45e0-a970-9d9ed9cc6453\",\"lastModifiedByType\":\"Application\",\"lastModifiedAt\":\"2022-08-02T04:00:52.450009Z\"},\"properties\":{\"description\":\"test Storage mover description\",\"provisioningState\":\"Succeeded\"}},{\"id\":\"/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/testStorageMover/providers/Microsoft.StorageMover/storageMovers/testStoMover1kdmxy397\",\"name\":\"testStoMover1kdmxy397\",\"type\":\"microsoft.storagemover/storagemovers\",\"location\":\"eastus2euap\",\"tags\":{\"tag2\":\"value2\",\"tag1\":\"value1\"},\"systemData\":{\"createdBy\":\"a000255f-5f09-45e0-a970-9d9ed9cc6453\",\"createdByType\":\"Application\",\"createdAt\":\"2022-08-02T05:04:47.1466802Z\",\"lastModifiedBy\":\"a000255f-5f09-45e0-a970-9d9ed9cc6453\",\"lastModifiedByType\":\"Application\",\"lastModifiedAt\":\"2022-08-02T05:04:47.1466802Z\"},\"properties\":{\"description\":\"initial test SM description\",\"provisioningState\":\"Succeeded\"}},{\"id\":\"/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/testStorageMover/providers/Microsoft.StorageMover/storageMovers/testStoMover1ed31jkfu\",\"name\":\"testStoMover1ed31jkfu\",\"type\":\"microsoft.storagemover/storagemovers\",\"location\":\"eastus2euap\",\"tags\":{\"tag2\":\"value2\",\"tag1\":\"value1\"},\"systemData\":{\"createdBy\":\"a000255f-5f09-45e0-a970-9d9ed9cc6453\",\"createdByType\":\"Application\",\"createdAt\":\"2022-08-02T05:13:10.5459273Z\",\"lastModifiedBy\":\"a000255f-5f09-45e0-a970-9d9ed9cc6453\",\"lastModifiedByType\":\"Application\",\"lastModifiedAt\":\"2022-08-02T05:13:10.5459273Z\"},\"properties\":{\"description\":\"initial test SM description\",\"provisioningState\":\"Succeeded\"}},{\"id\":\"/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/testStorageMover/providers/Microsoft.StorageMover/storageMovers/testStoMover1gmrj5zbv\",\"name\":\"testStoMover1gmrj5zbv\",\"type\":\"microsoft.storagemover/storagemovers\",\"location\":\"eastus2euap\",\"tags\":{\"tag2\":\"value2\",\"tag1\":\"value1\"},\"systemData\":{\"createdBy\":\"a000255f-5f09-45e0-a970-9d9ed9cc6453\",\"createdByType\":\"Application\",\"createdAt\":\"2022-08-02T05:18:39.0410044Z\",\"lastModifiedBy\":\"a000255f-5f09-45e0-a970-9d9ed9cc6453\",\"lastModifiedByType\":\"Application\",\"lastModifiedAt\":\"2022-08-02T05:18:39.0410044Z\"},\"properties\":{\"description\":\"initial test SM description\",\"provisioningState\":\"Succeeded\"}},{\"id\":\"/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/testStorageMover/providers/Microsoft.StorageMover/storageMovers/testStoMover1e2q3kd7l\",\"name\":\"testStoMover1e2q3kd7l\",\"type\":\"microsoft.storagemover/storagemovers\",\"location\":\"eastus2euap\",\"tags\":{\"tag1\":\"value1\",\"tag2\":\"value2\"},\"systemData\":{\"createdBy\":\"a000255f-5f09-45e0-a970-9d9ed9cc6453\",\"createdByType\":\"Application\",\"createdAt\":\"2022-08-02T05:23:05.6611261Z\",\"lastModifiedBy\":\"a000255f-5f09-45e0-a970-9d9ed9cc6453\",\"lastModifiedByType\":\"Application\",\"lastModifiedAt\":\"2022-08-02T05:23:05.6611261Z\"},\"properties\":{\"description\":\"initial test SM description\",\"provisioningState\":\"Succeeded\"}},{\"id\":\"/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/testStorageMover/providers/Microsoft.StorageMover/storageMovers/testStoMover14068b735\",\"name\":\"testStoMover14068b735\",\"type\":\"microsoft.storagemover/storagemovers\",\"location\":\"eastus2euap\",\"tags\":{\"tag2\":\"value2\",\"tag1\":\"value1\"},\"systemData\":{\"createdBy\":\"a000255f-5f09-45e0-a970-9d9ed9cc6453\",\"createdByType\":\"Application\",\"createdAt\":\"2022-08-02T05:35:00.045492Z\",\"lastModifiedBy\":\"a000255f-5f09-45e0-a970-9d9ed9cc6453\",\"lastModifiedByType\":\"Application\",\"lastModifiedAt\":\"2022-08-02T05:35:00.045492Z\"},\"properties\":{\"description\":\"initial test SM description\",\"provisioningState\":\"Succeeded\"}}]}", + "Content": "{\"value\":[{\"id\":\"/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/weitry/providers/microsoft.storagemover/storagemovers/weitest\",\"name\":\"weitest\",\"type\":\"microsoft.storagemover/storagemovers\",\"location\":\"eastus2euap\",\"tags\":{\"tag2\":\"value2\",\"tag1\":\"value1\"},\"systemData\":{\"createdBy\":\"weiwei@microsoft.com\",\"createdByType\":\"User\",\"createdAt\":\"2022-07-15T09:25:59.6874394Z\",\"lastModifiedBy\":\"a000255f-5f09-45e0-a970-9d9ed9cc6453\",\"lastModifiedByType\":\"Application\",\"lastModifiedAt\":\"2022-07-15T09:42:28.57775Z\"},\"properties\":{\"description\":\"StorageMover description1\",\"provisioningState\":\"Succeeded\"}},{\"id\":\"/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/yifanz1/providers/Microsoft.StorageMover/storageMovers/testsm1\",\"name\":\"testsm1\",\"type\":\"microsoft.storagemover/storagemovers\",\"location\":\"eastus2euap\",\"systemData\":{\"createdBy\":\"a000255f-5f09-45e0-a970-9d9ed9cc6453\",\"createdByType\":\"Application\",\"createdAt\":\"2023-02-13T03:02:51.5234202Z\",\"lastModifiedBy\":\"a000255f-5f09-45e0-a970-9d9ed9cc6453\",\"lastModifiedByType\":\"Application\",\"lastModifiedAt\":\"2023-03-01T03:13:51.9404795Z\"},\"properties\":{\"provisioningState\":\"Succeeded\",\"description\":\"update\"}},{\"id\":\"/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/teststomover/providers/Microsoft.StorageMover/storageMovers/tsm11\",\"name\":\"tsm11\",\"type\":\"microsoft.storagemover/storagemovers\",\"location\":\"eastus2euap\",\"systemData\":{\"createdBy\":\"a000255f-5f09-45e0-a970-9d9ed9cc6453\",\"createdByType\":\"Application\",\"createdAt\":\"2023-02-13T05:17:35.9408954Z\",\"lastModifiedBy\":\"a000255f-5f09-45e0-a970-9d9ed9cc6453\",\"lastModifiedByType\":\"Application\",\"lastModifiedAt\":\"2023-02-13T05:17:35.9408954Z\"},\"properties\":{\"provisioningState\":\"Succeeded\"}},{\"id\":\"/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/teststomover/providers/Microsoft.StorageMover/storageMovers/tsm12\",\"name\":\"tsm12\",\"type\":\"microsoft.storagemover/storagemovers\",\"location\":\"eastus2euap\",\"systemData\":{\"createdBy\":\"a000255f-5f09-45e0-a970-9d9ed9cc6453\",\"createdByType\":\"Application\",\"createdAt\":\"2023-02-13T05:17:54.018922Z\",\"lastModifiedBy\":\"a000255f-5f09-45e0-a970-9d9ed9cc6453\",\"lastModifiedByType\":\"Application\",\"lastModifiedAt\":\"2023-02-13T05:17:54.018922Z\"},\"properties\":{\"provisioningState\":\"Succeeded\"}},{\"id\":\"/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/teststomover/providers/Microsoft.StorageMover/storageMovers/testsm1\",\"name\":\"testsm1\",\"type\":\"microsoft.storagemover/storagemovers\",\"location\":\"eastus2euap\",\"systemData\":{\"createdBy\":\"a000255f-5f09-45e0-a970-9d9ed9cc6453\",\"createdByType\":\"Application\",\"createdAt\":\"2023-03-01T08:19:03.3105576Z\",\"lastModifiedBy\":\"a000255f-5f09-45e0-a970-9d9ed9cc6453\",\"lastModifiedByType\":\"Application\",\"lastModifiedAt\":\"2023-03-01T08:19:03.3105576Z\"},\"properties\":{\"provisioningState\":\"Succeeded\"}},{\"id\":\"/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/teststomover/providers/Microsoft.StorageMover/storageMovers/testsm-2151\",\"name\":\"testsm-2151\",\"type\":\"microsoft.storagemover/storagemovers\",\"location\":\"eastus2euap\",\"tags\":{\"tag3\":\"val3\"},\"systemData\":{\"createdBy\":\"a000255f-5f09-45e0-a970-9d9ed9cc6453\",\"createdByType\":\"Application\",\"createdAt\":\"2023-03-02T00:58:01.3731929Z\",\"lastModifiedBy\":\"a000255f-5f09-45e0-a970-9d9ed9cc6453\",\"lastModifiedByType\":\"Application\",\"lastModifiedAt\":\"2023-03-02T00:58:17.9674027Z\"},\"properties\":{\"provisioningState\":\"Failed\",\"description\":\"This is an updated storage mover\"}},{\"id\":\"/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/teststomover/providers/Microsoft.StorageMover/storageMovers/testsm-6277\",\"name\":\"testsm-6277\",\"type\":\"microsoft.storagemover/storagemovers\",\"location\":\"eastus2euap\",\"tags\":{\"tag3\":\"val3\"},\"systemData\":{\"createdBy\":\"a000255f-5f09-45e0-a970-9d9ed9cc6453\",\"createdByType\":\"Application\",\"createdAt\":\"2023-03-02T04:16:50.6533232Z\",\"lastModifiedBy\":\"a000255f-5f09-45e0-a970-9d9ed9cc6453\",\"lastModifiedByType\":\"Application\",\"lastModifiedAt\":\"2023-03-02T04:17:22.0916922Z\"},\"properties\":{\"provisioningState\":\"Failed\",\"description\":\"This is an updated storage mover\"}},{\"id\":\"/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/teststomover/providers/Microsoft.StorageMover/storageMovers/testsm-9230\",\"name\":\"testsm-9230\",\"type\":\"microsoft.storagemover/storagemovers\",\"location\":\"eastus2euap\",\"tags\":{\"tag3\":\"val3\"},\"systemData\":{\"createdBy\":\"a000255f-5f09-45e0-a970-9d9ed9cc6453\",\"createdByType\":\"Application\",\"createdAt\":\"2023-03-02T04:18:24.7102272Z\",\"lastModifiedBy\":\"a000255f-5f09-45e0-a970-9d9ed9cc6453\",\"lastModifiedByType\":\"Application\",\"lastModifiedAt\":\"2023-03-02T04:18:51.7880384Z\"},\"properties\":{\"provisioningState\":\"Failed\",\"description\":\"This is an updated storage mover\"}},{\"id\":\"/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/teststomover/providers/Microsoft.StorageMover/storageMovers/testsm-8912\",\"name\":\"testsm-8912\",\"type\":\"microsoft.storagemover/storagemovers\",\"location\":\"eastus2euap\",\"tags\":{\"tag3\":\"val3\"},\"systemData\":{\"createdBy\":\"a000255f-5f09-45e0-a970-9d9ed9cc6453\",\"createdByType\":\"Application\",\"createdAt\":\"2023-03-02T04:21:52.668034Z\",\"lastModifiedBy\":\"a000255f-5f09-45e0-a970-9d9ed9cc6453\",\"lastModifiedByType\":\"Application\",\"lastModifiedAt\":\"2023-03-02T04:22:20.7306177Z\"},\"properties\":{\"provisioningState\":\"Failed\",\"description\":\"This is an updated storage mover\"}},{\"id\":\"/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/teststomover/providers/Microsoft.StorageMover/storageMovers/testsm-9106\",\"name\":\"testsm-9106\",\"type\":\"microsoft.storagemover/storagemovers\",\"location\":\"eastus2euap\",\"tags\":{\"tag3\":\"val3\"},\"systemData\":{\"createdBy\":\"a000255f-5f09-45e0-a970-9d9ed9cc6453\",\"createdByType\":\"Application\",\"createdAt\":\"2023-03-02T04:25:17.1630512Z\",\"lastModifiedBy\":\"a000255f-5f09-45e0-a970-9d9ed9cc6453\",\"lastModifiedByType\":\"Application\",\"lastModifiedAt\":\"2023-03-02T04:25:33.1169852Z\"},\"properties\":{\"provisioningState\":\"Failed\",\"description\":\"This is an updated storage mover\"}},{\"id\":\"/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/teststomover/providers/Microsoft.StorageMover/storageMovers/testsm-2126\",\"name\":\"testsm-2126\",\"type\":\"microsoft.storagemover/storagemovers\",\"location\":\"eastus2euap\",\"tags\":{},\"systemData\":{\"createdBy\":\"a000255f-5f09-45e0-a970-9d9ed9cc6453\",\"createdByType\":\"Application\",\"createdAt\":\"2023-03-02T05:08:11.6441609Z\",\"lastModifiedBy\":\"a000255f-5f09-45e0-a970-9d9ed9cc6453\",\"lastModifiedByType\":\"Application\",\"lastModifiedAt\":\"2023-03-02T05:08:11.6441609Z\"},\"properties\":{\"provisioningState\":\"Succeeded\"}},{\"id\":\"/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/teststomover/providers/Microsoft.StorageMover/storageMovers/testsm-5024\",\"name\":\"testsm-5024\",\"type\":\"microsoft.storagemover/storagemovers\",\"location\":\"eastus2euap\",\"tags\":{},\"systemData\":{\"createdBy\":\"a000255f-5f09-45e0-a970-9d9ed9cc6453\",\"createdByType\":\"Application\",\"createdAt\":\"2023-03-02T05:09:24.5052364Z\",\"lastModifiedBy\":\"a000255f-5f09-45e0-a970-9d9ed9cc6453\",\"lastModifiedByType\":\"Application\",\"lastModifiedAt\":\"2023-03-02T05:09:32.3021265Z\"},\"properties\":{\"provisioningState\":\"Failed\",\"description\":\"This is an updated storage mover\"}},{\"id\":\"/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/teststomover/providers/Microsoft.StorageMover/storageMovers/testsm-1689\",\"name\":\"testsm-1689\",\"type\":\"microsoft.storagemover/storagemovers\",\"location\":\"eastus2euap\",\"tags\":{\"tag3\":\"val3\"},\"systemData\":{\"createdBy\":\"a000255f-5f09-45e0-a970-9d9ed9cc6453\",\"createdByType\":\"Application\",\"createdAt\":\"2023-03-02T05:09:58.2510585Z\",\"lastModifiedBy\":\"a000255f-5f09-45e0-a970-9d9ed9cc6453\",\"lastModifiedByType\":\"Application\",\"lastModifiedAt\":\"2023-03-02T05:10:14.1277098Z\"},\"properties\":{\"provisioningState\":\"Failed\",\"description\":\"This is an updated storage mover\"}},{\"id\":\"/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/yifanz1/providers/Microsoft.StorageMover/storageMovers/testsm111\",\"name\":\"testsm111\",\"type\":\"microsoft.storagemover/storagemovers\",\"location\":\"eastus2euap\",\"systemData\":{\"createdBy\":\"a000255f-5f09-45e0-a970-9d9ed9cc6453\",\"createdByType\":\"Application\",\"createdAt\":\"2023-07-20T08:40:08.494388Z\",\"lastModifiedBy\":\"a000255f-5f09-45e0-a970-9d9ed9cc6453\",\"lastModifiedByType\":\"Application\",\"lastModifiedAt\":\"2023-07-20T08:40:08.494388Z\"},\"properties\":{\"provisioningState\":\"Succeeded\"}},{\"id\":\"/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/teststoragemover/providers/Microsoft.StorageMover/storageMovers/testmoverpreview1\",\"name\":\"testmoverpreview1\",\"type\":\"microsoft.storagemover/storagemovers\",\"location\":\"eastus2euap\",\"systemData\":{\"createdBy\":\"a000255f-5f09-45e0-a970-9d9ed9cc6453\",\"createdByType\":\"Application\",\"createdAt\":\"2023-07-20T08:55:45.2922024Z\",\"lastModifiedBy\":\"a000255f-5f09-45e0-a970-9d9ed9cc6453\",\"lastModifiedByType\":\"Application\",\"lastModifiedAt\":\"2023-07-20T08:55:45.2922024Z\"},\"properties\":{\"provisioningState\":\"Succeeded\"}},{\"id\":\"/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/teststoragemover/providers/Microsoft.StorageMover/storageMovers/testStoMover1ua3b5imx\",\"name\":\"testStoMover1ua3b5imx\",\"type\":\"microsoft.storagemover/storagemovers\",\"location\":\"eastus2euap\",\"tags\":{\"tag1\":\"value1\",\"tag2\":\"value2\"},\"systemData\":{\"createdBy\":\"a000255f-5f09-45e0-a970-9d9ed9cc6453\",\"createdByType\":\"Application\",\"createdAt\":\"2023-07-21T02:24:17.5717036Z\",\"lastModifiedBy\":\"a000255f-5f09-45e0-a970-9d9ed9cc6453\",\"lastModifiedByType\":\"Application\",\"lastModifiedAt\":\"2023-07-21T02:24:17.5717036Z\"},\"properties\":{\"description\":\"initial test SM description\",\"provisioningState\":\"Succeeded\"}},{\"id\":\"/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/teststoragemover/providers/Microsoft.StorageMover/storageMovers/testStoMover2ua3b5imx\",\"name\":\"testStoMover2ua3b5imx\",\"type\":\"microsoft.storagemover/storagemovers\",\"location\":\"eastus2euap\",\"systemData\":{\"createdBy\":\"a000255f-5f09-45e0-a970-9d9ed9cc6453\",\"createdByType\":\"Application\",\"createdAt\":\"2023-07-21T02:25:10.1355738Z\",\"lastModifiedBy\":\"a000255f-5f09-45e0-a970-9d9ed9cc6453\",\"lastModifiedByType\":\"Application\",\"lastModifiedAt\":\"2023-07-21T02:25:10.1355738Z\"},\"properties\":{\"description\":\"test Storage mover description\",\"provisioningState\":\"Succeeded\"}},{\"id\":\"/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/teststoragemover/providers/Microsoft.StorageMover/storageMovers/testStorageMoverk3pmhtl9\",\"name\":\"testStorageMoverk3pmhtl9\",\"type\":\"microsoft.storagemover/storagemovers\",\"location\":\"eastus2euap\",\"systemData\":{\"createdBy\":\"a000255f-5f09-45e0-a970-9d9ed9cc6453\",\"createdByType\":\"Application\",\"createdAt\":\"2023-07-21T02:26:40.450455Z\",\"lastModifiedBy\":\"a000255f-5f09-45e0-a970-9d9ed9cc6453\",\"lastModifiedByType\":\"Application\",\"lastModifiedAt\":\"2023-07-21T04:08:31.7726536Z\"},\"properties\":{\"description\":\"update storage mover description\",\"provisioningState\":\"Succeeded\"}},{\"id\":\"/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/teststoragemover/providers/Microsoft.StorageMover/storageMovers/testStoMover131q7xr6m\",\"name\":\"testStoMover131q7xr6m\",\"type\":\"microsoft.storagemover/storagemovers\",\"location\":\"eastus2euap\",\"tags\":{\"tag1\":\"value1\",\"tag2\":\"value2\"},\"systemData\":{\"createdBy\":\"a000255f-5f09-45e0-a970-9d9ed9cc6453\",\"createdByType\":\"Application\",\"createdAt\":\"2023-07-21T03:08:35.8449113Z\",\"lastModifiedBy\":\"a000255f-5f09-45e0-a970-9d9ed9cc6453\",\"lastModifiedByType\":\"Application\",\"lastModifiedAt\":\"2023-07-21T03:08:35.8449113Z\"},\"properties\":{\"description\":\"initial test SM description\",\"provisioningState\":\"Succeeded\"}},{\"id\":\"/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/teststoragemover/providers/Microsoft.StorageMover/storageMovers/testStoMover231q7xr6m\",\"name\":\"testStoMover231q7xr6m\",\"type\":\"microsoft.storagemover/storagemovers\",\"location\":\"eastus2euap\",\"systemData\":{\"createdBy\":\"a000255f-5f09-45e0-a970-9d9ed9cc6453\",\"createdByType\":\"Application\",\"createdAt\":\"2023-07-21T03:11:44.8485215Z\",\"lastModifiedBy\":\"a000255f-5f09-45e0-a970-9d9ed9cc6453\",\"lastModifiedByType\":\"Application\",\"lastModifiedAt\":\"2023-07-21T03:11:44.8485215Z\"},\"properties\":{\"description\":\"test Storage mover description\",\"provisioningState\":\"Succeeded\"}},{\"id\":\"/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/teststoragemover/providers/Microsoft.StorageMover/storageMovers/testStoMover1dy0z54nl\",\"name\":\"testStoMover1dy0z54nl\",\"type\":\"microsoft.storagemover/storagemovers\",\"location\":\"eastus2euap\",\"tags\":{\"tag2\":\"value2\",\"tag1\":\"value1\"},\"systemData\":{\"createdBy\":\"a000255f-5f09-45e0-a970-9d9ed9cc6453\",\"createdByType\":\"Application\",\"createdAt\":\"2023-07-21T04:02:11.7243529Z\",\"lastModifiedBy\":\"a000255f-5f09-45e0-a970-9d9ed9cc6453\",\"lastModifiedByType\":\"Application\",\"lastModifiedAt\":\"2023-07-21T04:02:11.7243529Z\"},\"properties\":{\"description\":\"initial test SM description\",\"provisioningState\":\"Succeeded\"}},{\"id\":\"/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/teststoragemover/providers/Microsoft.StorageMover/storageMovers/testStoMover2dy0z54nl\",\"name\":\"testStoMover2dy0z54nl\",\"type\":\"microsoft.storagemover/storagemovers\",\"location\":\"eastus2euap\",\"systemData\":{\"createdBy\":\"a000255f-5f09-45e0-a970-9d9ed9cc6453\",\"createdByType\":\"Application\",\"createdAt\":\"2023-07-21T04:03:01.7246815Z\",\"lastModifiedBy\":\"a000255f-5f09-45e0-a970-9d9ed9cc6453\",\"lastModifiedByType\":\"Application\",\"lastModifiedAt\":\"2023-07-21T04:03:01.7246815Z\"},\"properties\":{\"description\":\"test Storage mover description\",\"provisioningState\":\"Succeeded\"}},{\"id\":\"/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/teststoragemover/providers/Microsoft.StorageMover/storageMovers/testStoMover18p9yh1t3\",\"name\":\"testStoMover18p9yh1t3\",\"type\":\"microsoft.storagemover/storagemovers\",\"location\":\"eastus2euap\",\"tags\":{\"tag1\":\"value1\",\"tag2\":\"value2\"},\"systemData\":{\"createdBy\":\"a000255f-5f09-45e0-a970-9d9ed9cc6453\",\"createdByType\":\"Application\",\"createdAt\":\"2023-07-21T04:06:02.5185405Z\",\"lastModifiedBy\":\"a000255f-5f09-45e0-a970-9d9ed9cc6453\",\"lastModifiedByType\":\"Application\",\"lastModifiedAt\":\"2023-07-21T04:06:02.5185405Z\"},\"properties\":{\"description\":\"initial test SM description\",\"provisioningState\":\"Succeeded\"}},{\"id\":\"/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/teststoragemover/providers/Microsoft.StorageMover/storageMovers/testStoMover28p9yh1t3\",\"name\":\"testStoMover28p9yh1t3\",\"type\":\"microsoft.storagemover/storagemovers\",\"location\":\"eastus2euap\",\"systemData\":{\"createdBy\":\"a000255f-5f09-45e0-a970-9d9ed9cc6453\",\"createdByType\":\"Application\",\"createdAt\":\"2023-07-21T04:06:53.6537273Z\",\"lastModifiedBy\":\"a000255f-5f09-45e0-a970-9d9ed9cc6453\",\"lastModifiedByType\":\"Application\",\"lastModifiedAt\":\"2023-07-21T04:06:53.6537273Z\"},\"properties\":{\"description\":\"test Storage mover description\",\"provisioningState\":\"Succeeded\"}},{\"id\":\"/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/teststoragemover/providers/Microsoft.StorageMover/storageMovers/testStoMover1hc715gxy\",\"name\":\"testStoMover1hc715gxy\",\"type\":\"microsoft.storagemover/storagemovers\",\"location\":\"eastus2euap\",\"tags\":{\"tag1\":\"value1\",\"tag2\":\"value2\"},\"systemData\":{\"createdBy\":\"a000255f-5f09-45e0-a970-9d9ed9cc6453\",\"createdByType\":\"Application\",\"createdAt\":\"2023-07-21T04:28:26.1244125Z\",\"lastModifiedBy\":\"a000255f-5f09-45e0-a970-9d9ed9cc6453\",\"lastModifiedByType\":\"Application\",\"lastModifiedAt\":\"2023-07-21T04:28:26.1244125Z\"},\"properties\":{\"description\":\"initial test SM description\",\"provisioningState\":\"Succeeded\"}},{\"id\":\"/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/yifanz1/providers/Microsoft.StorageMover/storageMovers/testpreviewsm1\",\"name\":\"testpreviewsm1\",\"type\":\"microsoft.storagemover/storagemovers\",\"location\":\"eastus2euap\",\"systemData\":{\"createdBy\":\"a000255f-5f09-45e0-a970-9d9ed9cc6453\",\"createdByType\":\"Application\",\"createdAt\":\"2023-06-02T03:09:13.6262983Z\",\"lastModifiedBy\":\"a000255f-5f09-45e0-a970-9d9ed9cc6453\",\"lastModifiedByType\":\"Application\",\"lastModifiedAt\":\"2023-06-02T03:09:13.6262983Z\"},\"properties\":{\"provisioningState\":\"Succeeded\"}}]}", "isContentBase64": false } }, - "Get-AzStorageMover+[NoContext]+Get+$GET+https://management.azure.com/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/testStorageMover/providers/Microsoft.StorageMover/storageMovers/testStoMover14068b735?api-version=2023-03-01+1": { + "Get-AzStorageMover+[NoContext]+Get+$GET+https://management.azure.com/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/teststoragemover/providers/Microsoft.StorageMover/storageMovers/testStoMover1hc715gxy?api-version=2023-10-01+1": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/testStorageMover/providers/Microsoft.StorageMover/storageMovers/testStoMover14068b735?api-version=2023-03-01", + "RequestUri": "https://management.azure.com/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/teststoragemover/providers/Microsoft.StorageMover/storageMovers/testStoMover1hc715gxy?api-version=2023-10-01", "Content": null, "isContentBase64": false, "Headers": { "x-ms-unique-id": [ "8" ], - "x-ms-client-request-id": [ "9b4535f4-f98f-4250-bd2d-ab0f52cc16b8" ], + "x-ms-client-request-id": [ "8a143a80-a06f-4cfc-a8dc-d3c3bbe8069c" ], "CommandName": [ "Get-AzStorageMover" ], "FullCommandName": [ "Get-AzStorageMover_Get" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v8.0.0", "PSVersion/v7.2.5", "Az.StorageMover/0.1.0" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.2.12", "Az.StorageMover/1.0.1" ], "Authorization": [ "[Filtered]" ] }, "ContentHeaders": { @@ -63,38 +63,38 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "ETag": [ "\"0000bfe6-0000-3400-0000-62e8b7840000\"" ], - "x-ms-ratelimit-remaining-subscription-reads": [ "11990" ], + "ETag": [ "\"05006413-0000-3400-0000-64ba096a0000\"" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11998" ], "x-ms-providerhub-traffic": [ "True" ], - "x-ms-request-id": [ "8e7bfdf9-565f-4779-8013-7a7ab340fa32" ], - "x-ms-correlation-request-id": [ "757ed13b-917f-4f26-a98d-24551039b80f" ], - "x-ms-routing-request-id": [ "SOUTHEASTASIA:20220802T053554Z:757ed13b-917f-4f26-a98d-24551039b80f" ], + "x-ms-request-id": [ "f8dd8862-693c-4b93-a6a3-f0d5282db8bf" ], + "x-ms-correlation-request-id": [ "23e32b05-f0de-4b79-8248-647e1edf5830" ], + "x-ms-routing-request-id": [ "EASTUS2EUAP:20230721T042902Z:23e32b05-f0de-4b79-8248-647e1edf5830" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "X-Content-Type-Options": [ "nosniff" ], - "Date": [ "Tue, 02 Aug 2022 05:35:54 GMT" ] + "Date": [ "Fri, 21 Jul 2023 04:29:02 GMT" ] }, "ContentHeaders": { - "Content-Length": [ "671" ], + "Content-Length": [ "673" ], "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"id\":\"/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/testStorageMover/providers/Microsoft.StorageMover/storageMovers/testStoMover14068b735\",\"name\":\"testStoMover14068b735\",\"type\":\"microsoft.storagemover/storagemovers\",\"location\":\"eastus2euap\",\"tags\":{\"tag2\":\"value2\",\"tag1\":\"value1\"},\"systemData\":{\"createdBy\":\"a000255f-5f09-45e0-a970-9d9ed9cc6453\",\"createdByType\":\"Application\",\"createdAt\":\"2022-08-02T05:35:00.045492Z\",\"lastModifiedBy\":\"a000255f-5f09-45e0-a970-9d9ed9cc6453\",\"lastModifiedByType\":\"Application\",\"lastModifiedAt\":\"2022-08-02T05:35:00.045492Z\"},\"properties\":{\"description\":\"initial test SM description\",\"provisioningState\":\"Succeeded\"}}", + "Content": "{\"id\":\"/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/teststoragemover/providers/Microsoft.StorageMover/storageMovers/testStoMover1hc715gxy\",\"name\":\"testStoMover1hc715gxy\",\"type\":\"microsoft.storagemover/storagemovers\",\"location\":\"eastus2euap\",\"tags\":{\"tag1\":\"value1\",\"tag2\":\"value2\"},\"systemData\":{\"createdBy\":\"a000255f-5f09-45e0-a970-9d9ed9cc6453\",\"createdByType\":\"Application\",\"createdAt\":\"2023-07-21T04:28:26.1244125Z\",\"lastModifiedBy\":\"a000255f-5f09-45e0-a970-9d9ed9cc6453\",\"lastModifiedByType\":\"Application\",\"lastModifiedAt\":\"2023-07-21T04:28:26.1244125Z\"},\"properties\":{\"description\":\"initial test SM description\",\"provisioningState\":\"Succeeded\"}}", "isContentBase64": false } }, - "Get-AzStorageMover+[NoContext]+List1+$GET+https://management.azure.com/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/testStorageMover/providers/Microsoft.StorageMover/storageMovers?api-version=2023-03-01+1": { + "Get-AzStorageMover+[NoContext]+List1+$GET+https://management.azure.com/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/teststoragemover/providers/Microsoft.StorageMover/storageMovers?api-version=2023-10-01+1": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/testStorageMover/providers/Microsoft.StorageMover/storageMovers?api-version=2023-03-01", + "RequestUri": "https://management.azure.com/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/teststoragemover/providers/Microsoft.StorageMover/storageMovers?api-version=2023-10-01", "Content": null, "isContentBase64": false, "Headers": { "x-ms-unique-id": [ "9" ], - "x-ms-client-request-id": [ "934dfc13-7a9a-4226-a88b-0929a2d7879b" ], + "x-ms-client-request-id": [ "ce480b53-e588-4902-983a-20f19f78ed7a" ], "CommandName": [ "Get-AzStorageMover" ], "FullCommandName": [ "Get-AzStorageMover_List1" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v8.0.0", "PSVersion/v7.2.5", "Az.StorageMover/0.1.0" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.2.12", "Az.StorageMover/1.0.1" ], "Authorization": [ "[Filtered]" ] }, "ContentHeaders": { @@ -105,21 +105,21 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "x-ms-original-request-ids": [ "989ae59e-ed20-4161-862e-273f8c7a42af", "a09c8d8c-fb16-4e31-9dfc-7a1b8ef4068f" ], - "x-ms-ratelimit-remaining-subscription-reads": [ "11989" ], - "x-ms-request-id": [ "1c705a5e-e0b8-4809-9c23-34a1fe2ef4d3" ], - "x-ms-correlation-request-id": [ "1c705a5e-e0b8-4809-9c23-34a1fe2ef4d3" ], - "x-ms-routing-request-id": [ "SOUTHEASTASIA:20220802T053555Z:1c705a5e-e0b8-4809-9c23-34a1fe2ef4d3" ], + "x-ms-original-request-ids": [ "89c4cb89-fded-427d-807e-c1a7c4843d8d", "7de6fe4e-6771-4693-860a-7b03723384df", "9a23a9ce-4683-4efe-9b96-87713dc57103", "481a11d5-af67-428e-928f-86c6c50f77e3", "5890a0ce-8add-4c2b-b752-cbb507cee9d6", "c41b4521-a49a-4081-ad3d-23169ab529ed" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11997" ], + "x-ms-request-id": [ "00689775-6260-41b9-94e9-84fd91619236" ], + "x-ms-correlation-request-id": [ "00689775-6260-41b9-94e9-84fd91619236" ], + "x-ms-routing-request-id": [ "EASTUS2EUAP:20230721T042903Z:00689775-6260-41b9-94e9-84fd91619236" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "X-Content-Type-Options": [ "nosniff" ], - "Date": [ "Tue, 02 Aug 2022 05:35:54 GMT" ] + "Date": [ "Fri, 21 Jul 2023 04:29:03 GMT" ] }, "ContentHeaders": { "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ], - "Content-Length": [ "8581" ] + "Content-Length": [ "7149" ] }, - "Content": "{\"value\":[{\"id\":\"/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/testStorageMover/providers/Microsoft.StorageMover/storageMovers/testStorageMover2\",\"name\":\"testStorageMover2\",\"type\":\"microsoft.storagemover/storagemovers\",\"location\":\"eastus2euap\",\"systemData\":{\"createdBy\":\"a000255f-5f09-45e0-a970-9d9ed9cc6453\",\"createdByType\":\"Application\",\"createdAt\":\"2022-08-02T03:32:45.1059642Z\",\"lastModifiedBy\":\"yifanzhang@microsoft.com\",\"lastModifiedByType\":\"User\",\"lastModifiedAt\":\"2022-08-02T05:32:24.1521278Z\"},\"properties\":{\"description\":\"my storage mover\",\"provisioningState\":\"Succeeded\"}},{\"id\":\"/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/testStorageMover/providers/Microsoft.StorageMover/storageMovers/testStoMover16flk3awb\",\"name\":\"testStoMover16flk3awb\",\"type\":\"microsoft.storagemover/storagemovers\",\"location\":\"eastus2euap\",\"tags\":{\"tag2\":\"value2\",\"tag1\":\"value1\"},\"systemData\":{\"createdBy\":\"a000255f-5f09-45e0-a970-9d9ed9cc6453\",\"createdByType\":\"Application\",\"createdAt\":\"2022-08-02T03:47:39.995801Z\",\"lastModifiedBy\":\"a000255f-5f09-45e0-a970-9d9ed9cc6453\",\"lastModifiedByType\":\"Application\",\"lastModifiedAt\":\"2022-08-02T03:47:39.995801Z\"},\"properties\":{\"description\":\"initial test SM description\",\"provisioningState\":\"Succeeded\"}},{\"id\":\"/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/testStorageMover/providers/Microsoft.StorageMover/storageMovers/testStoMover1w3s1oi5y\",\"name\":\"testStoMover1w3s1oi5y\",\"type\":\"microsoft.storagemover/storagemovers\",\"location\":\"eastus2euap\",\"tags\":{\"tag1\":\"value1\",\"tag2\":\"value2\"},\"systemData\":{\"createdBy\":\"a000255f-5f09-45e0-a970-9d9ed9cc6453\",\"createdByType\":\"Application\",\"createdAt\":\"2022-08-02T03:50:29.6732748Z\",\"lastModifiedBy\":\"a000255f-5f09-45e0-a970-9d9ed9cc6453\",\"lastModifiedByType\":\"Application\",\"lastModifiedAt\":\"2022-08-02T03:50:29.6732748Z\"},\"properties\":{\"description\":\"initial test SM description\",\"provisioningState\":\"Succeeded\"}},{\"id\":\"/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/testStorageMover/providers/Microsoft.StorageMover/storageMovers/testStoMover14mkhzf8x\",\"name\":\"testStoMover14mkhzf8x\",\"type\":\"microsoft.storagemover/storagemovers\",\"location\":\"eastus2euap\",\"tags\":{\"tag1\":\"value1\",\"tag2\":\"value2\"},\"systemData\":{\"createdBy\":\"a000255f-5f09-45e0-a970-9d9ed9cc6453\",\"createdByType\":\"Application\",\"createdAt\":\"2022-08-02T03:51:41.6781714Z\",\"lastModifiedBy\":\"a000255f-5f09-45e0-a970-9d9ed9cc6453\",\"lastModifiedByType\":\"Application\",\"lastModifiedAt\":\"2022-08-02T03:51:41.6781714Z\"},\"properties\":{\"description\":\"initial test SM description\",\"provisioningState\":\"Succeeded\"}},{\"id\":\"/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/testStorageMover/providers/Microsoft.StorageMover/storageMovers/testStoMover24mkhzf8x\",\"name\":\"testStoMover24mkhzf8x\",\"type\":\"microsoft.storagemover/storagemovers\",\"location\":\"eastus2euap\",\"systemData\":{\"createdBy\":\"a000255f-5f09-45e0-a970-9d9ed9cc6453\",\"createdByType\":\"Application\",\"createdAt\":\"2022-08-02T03:53:17.1076925Z\",\"lastModifiedBy\":\"a000255f-5f09-45e0-a970-9d9ed9cc6453\",\"lastModifiedByType\":\"Application\",\"lastModifiedAt\":\"2022-08-02T03:53:17.1076925Z\"},\"properties\":{\"description\":\"test Storage mover description\",\"provisioningState\":\"Succeeded\"}},{\"id\":\"/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/testStorageMover/providers/Microsoft.StorageMover/storageMovers/testStorageMoverk3pmhtl9\",\"name\":\"testStorageMoverk3pmhtl9\",\"type\":\"microsoft.storagemover/storagemovers\",\"location\":\"eastus2euap\",\"systemData\":{\"createdBy\":\"a000255f-5f09-45e0-a970-9d9ed9cc6453\",\"createdByType\":\"Application\",\"createdAt\":\"2022-08-02T03:54:10.890512Z\",\"lastModifiedBy\":\"a000255f-5f09-45e0-a970-9d9ed9cc6453\",\"lastModifiedByType\":\"Application\",\"lastModifiedAt\":\"2022-08-02T05:20:35.0358092Z\"},\"properties\":{\"description\":\"update storage mover description\",\"provisioningState\":\"Succeeded\"}},{\"id\":\"/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/testStorageMover/providers/Microsoft.StorageMover/storageMovers/testStoMover17ubswd3o\",\"name\":\"testStoMover17ubswd3o\",\"type\":\"microsoft.storagemover/storagemovers\",\"location\":\"eastus2euap\",\"tags\":{\"tag1\":\"value1\",\"tag2\":\"value2\"},\"systemData\":{\"createdBy\":\"a000255f-5f09-45e0-a970-9d9ed9cc6453\",\"createdByType\":\"Application\",\"createdAt\":\"2022-08-02T03:59:47.4339851Z\",\"lastModifiedBy\":\"a000255f-5f09-45e0-a970-9d9ed9cc6453\",\"lastModifiedByType\":\"Application\",\"lastModifiedAt\":\"2022-08-02T03:59:47.4339851Z\"},\"properties\":{\"description\":\"initial test SM description\",\"provisioningState\":\"Succeeded\"}},{\"id\":\"/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/testStorageMover/providers/Microsoft.StorageMover/storageMovers/testStoMover27ubswd3o\",\"name\":\"testStoMover27ubswd3o\",\"type\":\"microsoft.storagemover/storagemovers\",\"location\":\"eastus2euap\",\"systemData\":{\"createdBy\":\"a000255f-5f09-45e0-a970-9d9ed9cc6453\",\"createdByType\":\"Application\",\"createdAt\":\"2022-08-02T04:00:52.450009Z\",\"lastModifiedBy\":\"a000255f-5f09-45e0-a970-9d9ed9cc6453\",\"lastModifiedByType\":\"Application\",\"lastModifiedAt\":\"2022-08-02T04:00:52.450009Z\"},\"properties\":{\"description\":\"test Storage mover description\",\"provisioningState\":\"Succeeded\"}},{\"id\":\"/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/testStorageMover/providers/Microsoft.StorageMover/storageMovers/testStoMover1kdmxy397\",\"name\":\"testStoMover1kdmxy397\",\"type\":\"microsoft.storagemover/storagemovers\",\"location\":\"eastus2euap\",\"tags\":{\"tag2\":\"value2\",\"tag1\":\"value1\"},\"systemData\":{\"createdBy\":\"a000255f-5f09-45e0-a970-9d9ed9cc6453\",\"createdByType\":\"Application\",\"createdAt\":\"2022-08-02T05:04:47.1466802Z\",\"lastModifiedBy\":\"a000255f-5f09-45e0-a970-9d9ed9cc6453\",\"lastModifiedByType\":\"Application\",\"lastModifiedAt\":\"2022-08-02T05:04:47.1466802Z\"},\"properties\":{\"description\":\"initial test SM description\",\"provisioningState\":\"Succeeded\"}},{\"id\":\"/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/testStorageMover/providers/Microsoft.StorageMover/storageMovers/testStoMover1ed31jkfu\",\"name\":\"testStoMover1ed31jkfu\",\"type\":\"microsoft.storagemover/storagemovers\",\"location\":\"eastus2euap\",\"tags\":{\"tag2\":\"value2\",\"tag1\":\"value1\"},\"systemData\":{\"createdBy\":\"a000255f-5f09-45e0-a970-9d9ed9cc6453\",\"createdByType\":\"Application\",\"createdAt\":\"2022-08-02T05:13:10.5459273Z\",\"lastModifiedBy\":\"a000255f-5f09-45e0-a970-9d9ed9cc6453\",\"lastModifiedByType\":\"Application\",\"lastModifiedAt\":\"2022-08-02T05:13:10.5459273Z\"},\"properties\":{\"description\":\"initial test SM description\",\"provisioningState\":\"Succeeded\"}},{\"id\":\"/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/testStorageMover/providers/Microsoft.StorageMover/storageMovers/testStoMover1gmrj5zbv\",\"name\":\"testStoMover1gmrj5zbv\",\"type\":\"microsoft.storagemover/storagemovers\",\"location\":\"eastus2euap\",\"tags\":{\"tag2\":\"value2\",\"tag1\":\"value1\"},\"systemData\":{\"createdBy\":\"a000255f-5f09-45e0-a970-9d9ed9cc6453\",\"createdByType\":\"Application\",\"createdAt\":\"2022-08-02T05:18:39.0410044Z\",\"lastModifiedBy\":\"a000255f-5f09-45e0-a970-9d9ed9cc6453\",\"lastModifiedByType\":\"Application\",\"lastModifiedAt\":\"2022-08-02T05:18:39.0410044Z\"},\"properties\":{\"description\":\"initial test SM description\",\"provisioningState\":\"Succeeded\"}},{\"id\":\"/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/testStorageMover/providers/Microsoft.StorageMover/storageMovers/testStoMover1e2q3kd7l\",\"name\":\"testStoMover1e2q3kd7l\",\"type\":\"microsoft.storagemover/storagemovers\",\"location\":\"eastus2euap\",\"tags\":{\"tag1\":\"value1\",\"tag2\":\"value2\"},\"systemData\":{\"createdBy\":\"a000255f-5f09-45e0-a970-9d9ed9cc6453\",\"createdByType\":\"Application\",\"createdAt\":\"2022-08-02T05:23:05.6611261Z\",\"lastModifiedBy\":\"a000255f-5f09-45e0-a970-9d9ed9cc6453\",\"lastModifiedByType\":\"Application\",\"lastModifiedAt\":\"2022-08-02T05:23:05.6611261Z\"},\"properties\":{\"description\":\"initial test SM description\",\"provisioningState\":\"Succeeded\"}},{\"id\":\"/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/testStorageMover/providers/Microsoft.StorageMover/storageMovers/testStoMover14068b735\",\"name\":\"testStoMover14068b735\",\"type\":\"microsoft.storagemover/storagemovers\",\"location\":\"eastus2euap\",\"tags\":{\"tag2\":\"value2\",\"tag1\":\"value1\"},\"systemData\":{\"createdBy\":\"a000255f-5f09-45e0-a970-9d9ed9cc6453\",\"createdByType\":\"Application\",\"createdAt\":\"2022-08-02T05:35:00.045492Z\",\"lastModifiedBy\":\"a000255f-5f09-45e0-a970-9d9ed9cc6453\",\"lastModifiedByType\":\"Application\",\"lastModifiedAt\":\"2022-08-02T05:35:00.045492Z\"},\"properties\":{\"description\":\"initial test SM description\",\"provisioningState\":\"Succeeded\"}}]}", + "Content": "{\"value\":[{\"id\":\"/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/teststoragemover/providers/Microsoft.StorageMover/storageMovers/testmoverpreview1\",\"name\":\"testmoverpreview1\",\"type\":\"microsoft.storagemover/storagemovers\",\"location\":\"eastus2euap\",\"systemData\":{\"createdBy\":\"a000255f-5f09-45e0-a970-9d9ed9cc6453\",\"createdByType\":\"Application\",\"createdAt\":\"2023-07-20T08:55:45.2922024Z\",\"lastModifiedBy\":\"a000255f-5f09-45e0-a970-9d9ed9cc6453\",\"lastModifiedByType\":\"Application\",\"lastModifiedAt\":\"2023-07-20T08:55:45.2922024Z\"},\"properties\":{\"provisioningState\":\"Succeeded\"}},{\"id\":\"/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/teststoragemover/providers/Microsoft.StorageMover/storageMovers/testStoMover1ua3b5imx\",\"name\":\"testStoMover1ua3b5imx\",\"type\":\"microsoft.storagemover/storagemovers\",\"location\":\"eastus2euap\",\"tags\":{\"tag1\":\"value1\",\"tag2\":\"value2\"},\"systemData\":{\"createdBy\":\"a000255f-5f09-45e0-a970-9d9ed9cc6453\",\"createdByType\":\"Application\",\"createdAt\":\"2023-07-21T02:24:17.5717036Z\",\"lastModifiedBy\":\"a000255f-5f09-45e0-a970-9d9ed9cc6453\",\"lastModifiedByType\":\"Application\",\"lastModifiedAt\":\"2023-07-21T02:24:17.5717036Z\"},\"properties\":{\"description\":\"initial test SM description\",\"provisioningState\":\"Succeeded\"}},{\"id\":\"/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/teststoragemover/providers/Microsoft.StorageMover/storageMovers/testStoMover2ua3b5imx\",\"name\":\"testStoMover2ua3b5imx\",\"type\":\"microsoft.storagemover/storagemovers\",\"location\":\"eastus2euap\",\"systemData\":{\"createdBy\":\"a000255f-5f09-45e0-a970-9d9ed9cc6453\",\"createdByType\":\"Application\",\"createdAt\":\"2023-07-21T02:25:10.1355738Z\",\"lastModifiedBy\":\"a000255f-5f09-45e0-a970-9d9ed9cc6453\",\"lastModifiedByType\":\"Application\",\"lastModifiedAt\":\"2023-07-21T02:25:10.1355738Z\"},\"properties\":{\"description\":\"test Storage mover description\",\"provisioningState\":\"Succeeded\"}},{\"id\":\"/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/teststoragemover/providers/Microsoft.StorageMover/storageMovers/testStorageMoverk3pmhtl9\",\"name\":\"testStorageMoverk3pmhtl9\",\"type\":\"microsoft.storagemover/storagemovers\",\"location\":\"eastus2euap\",\"systemData\":{\"createdBy\":\"a000255f-5f09-45e0-a970-9d9ed9cc6453\",\"createdByType\":\"Application\",\"createdAt\":\"2023-07-21T02:26:40.450455Z\",\"lastModifiedBy\":\"a000255f-5f09-45e0-a970-9d9ed9cc6453\",\"lastModifiedByType\":\"Application\",\"lastModifiedAt\":\"2023-07-21T04:08:31.7726536Z\"},\"properties\":{\"description\":\"update storage mover description\",\"provisioningState\":\"Succeeded\"}},{\"id\":\"/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/teststoragemover/providers/Microsoft.StorageMover/storageMovers/testStoMover131q7xr6m\",\"name\":\"testStoMover131q7xr6m\",\"type\":\"microsoft.storagemover/storagemovers\",\"location\":\"eastus2euap\",\"tags\":{\"tag1\":\"value1\",\"tag2\":\"value2\"},\"systemData\":{\"createdBy\":\"a000255f-5f09-45e0-a970-9d9ed9cc6453\",\"createdByType\":\"Application\",\"createdAt\":\"2023-07-21T03:08:35.8449113Z\",\"lastModifiedBy\":\"a000255f-5f09-45e0-a970-9d9ed9cc6453\",\"lastModifiedByType\":\"Application\",\"lastModifiedAt\":\"2023-07-21T03:08:35.8449113Z\"},\"properties\":{\"description\":\"initial test SM description\",\"provisioningState\":\"Succeeded\"}},{\"id\":\"/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/teststoragemover/providers/Microsoft.StorageMover/storageMovers/testStoMover231q7xr6m\",\"name\":\"testStoMover231q7xr6m\",\"type\":\"microsoft.storagemover/storagemovers\",\"location\":\"eastus2euap\",\"systemData\":{\"createdBy\":\"a000255f-5f09-45e0-a970-9d9ed9cc6453\",\"createdByType\":\"Application\",\"createdAt\":\"2023-07-21T03:11:44.8485215Z\",\"lastModifiedBy\":\"a000255f-5f09-45e0-a970-9d9ed9cc6453\",\"lastModifiedByType\":\"Application\",\"lastModifiedAt\":\"2023-07-21T03:11:44.8485215Z\"},\"properties\":{\"description\":\"test Storage mover description\",\"provisioningState\":\"Succeeded\"}},{\"id\":\"/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/teststoragemover/providers/Microsoft.StorageMover/storageMovers/testStoMover1dy0z54nl\",\"name\":\"testStoMover1dy0z54nl\",\"type\":\"microsoft.storagemover/storagemovers\",\"location\":\"eastus2euap\",\"tags\":{\"tag2\":\"value2\",\"tag1\":\"value1\"},\"systemData\":{\"createdBy\":\"a000255f-5f09-45e0-a970-9d9ed9cc6453\",\"createdByType\":\"Application\",\"createdAt\":\"2023-07-21T04:02:11.7243529Z\",\"lastModifiedBy\":\"a000255f-5f09-45e0-a970-9d9ed9cc6453\",\"lastModifiedByType\":\"Application\",\"lastModifiedAt\":\"2023-07-21T04:02:11.7243529Z\"},\"properties\":{\"description\":\"initial test SM description\",\"provisioningState\":\"Succeeded\"}},{\"id\":\"/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/teststoragemover/providers/Microsoft.StorageMover/storageMovers/testStoMover2dy0z54nl\",\"name\":\"testStoMover2dy0z54nl\",\"type\":\"microsoft.storagemover/storagemovers\",\"location\":\"eastus2euap\",\"systemData\":{\"createdBy\":\"a000255f-5f09-45e0-a970-9d9ed9cc6453\",\"createdByType\":\"Application\",\"createdAt\":\"2023-07-21T04:03:01.7246815Z\",\"lastModifiedBy\":\"a000255f-5f09-45e0-a970-9d9ed9cc6453\",\"lastModifiedByType\":\"Application\",\"lastModifiedAt\":\"2023-07-21T04:03:01.7246815Z\"},\"properties\":{\"description\":\"test Storage mover description\",\"provisioningState\":\"Succeeded\"}},{\"id\":\"/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/teststoragemover/providers/Microsoft.StorageMover/storageMovers/testStoMover18p9yh1t3\",\"name\":\"testStoMover18p9yh1t3\",\"type\":\"microsoft.storagemover/storagemovers\",\"location\":\"eastus2euap\",\"tags\":{\"tag1\":\"value1\",\"tag2\":\"value2\"},\"systemData\":{\"createdBy\":\"a000255f-5f09-45e0-a970-9d9ed9cc6453\",\"createdByType\":\"Application\",\"createdAt\":\"2023-07-21T04:06:02.5185405Z\",\"lastModifiedBy\":\"a000255f-5f09-45e0-a970-9d9ed9cc6453\",\"lastModifiedByType\":\"Application\",\"lastModifiedAt\":\"2023-07-21T04:06:02.5185405Z\"},\"properties\":{\"description\":\"initial test SM description\",\"provisioningState\":\"Succeeded\"}},{\"id\":\"/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/teststoragemover/providers/Microsoft.StorageMover/storageMovers/testStoMover28p9yh1t3\",\"name\":\"testStoMover28p9yh1t3\",\"type\":\"microsoft.storagemover/storagemovers\",\"location\":\"eastus2euap\",\"systemData\":{\"createdBy\":\"a000255f-5f09-45e0-a970-9d9ed9cc6453\",\"createdByType\":\"Application\",\"createdAt\":\"2023-07-21T04:06:53.6537273Z\",\"lastModifiedBy\":\"a000255f-5f09-45e0-a970-9d9ed9cc6453\",\"lastModifiedByType\":\"Application\",\"lastModifiedAt\":\"2023-07-21T04:06:53.6537273Z\"},\"properties\":{\"description\":\"test Storage mover description\",\"provisioningState\":\"Succeeded\"}},{\"id\":\"/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/teststoragemover/providers/Microsoft.StorageMover/storageMovers/testStoMover1hc715gxy\",\"name\":\"testStoMover1hc715gxy\",\"type\":\"microsoft.storagemover/storagemovers\",\"location\":\"eastus2euap\",\"tags\":{\"tag1\":\"value1\",\"tag2\":\"value2\"},\"systemData\":{\"createdBy\":\"a000255f-5f09-45e0-a970-9d9ed9cc6453\",\"createdByType\":\"Application\",\"createdAt\":\"2023-07-21T04:28:26.1244125Z\",\"lastModifiedBy\":\"a000255f-5f09-45e0-a970-9d9ed9cc6453\",\"lastModifiedByType\":\"Application\",\"lastModifiedAt\":\"2023-07-21T04:28:26.1244125Z\"},\"properties\":{\"description\":\"initial test SM description\",\"provisioningState\":\"Succeeded\"}}]}", "isContentBase64": false } } diff --git a/src/StorageMover/test/Get-AzStorageMoverAgent.Recording.json b/src/StorageMover/test/Get-AzStorageMoverAgent.Recording.json index 0faf4f7bedfc..9430ce359b45 100644 --- a/src/StorageMover/test/Get-AzStorageMoverAgent.Recording.json +++ b/src/StorageMover/test/Get-AzStorageMoverAgent.Recording.json @@ -1,17 +1,17 @@ { - "Get-AzStorageMoverAgent+[NoContext]+List+$GET+https://management.azure.com/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/testStorageMover/providers/Microsoft.StorageMover/storageMovers/testStorageMover2/agents?api-version=2023-03-01+1": { + "Get-AzStorageMoverAgent+[NoContext]+List+$GET+https://management.azure.com/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/teststoragemover/providers/Microsoft.StorageMover/storageMovers/testmoverpreview1/agents?api-version=2023-10-01+1": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/testStorageMover/providers/Microsoft.StorageMover/storageMovers/testStorageMover2/agents?api-version=2023-03-01", + "RequestUri": "https://management.azure.com/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/teststoragemover/providers/Microsoft.StorageMover/storageMovers/testmoverpreview1/agents?api-version=2023-10-01", "Content": null, "isContentBase64": false, "Headers": { "x-ms-unique-id": [ "10" ], - "x-ms-client-request-id": [ "3afa8659-e17c-40bd-8fca-379b64ebc95a" ], + "x-ms-client-request-id": [ "2f51c836-4ccd-4830-ac69-1f1d2cc5f6f9" ], "CommandName": [ "Get-AzStorageMoverAgent" ], "FullCommandName": [ "Get-AzStorageMoverAgent_List" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v8.0.0", "PSVersion/v7.2.5", "Az.StorageMover/0.1.0" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.2.12", "Az.StorageMover/1.0.1" ], "Authorization": [ "[Filtered]" ] }, "ContentHeaders": { @@ -22,37 +22,38 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "x-ms-ratelimit-remaining-subscription-reads": [ "11988" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11996" ], "x-ms-providerhub-traffic": [ "True" ], - "x-ms-request-id": [ "fe2f20ca-f3fb-4f35-af47-8d11ed2fca97" ], - "x-ms-correlation-request-id": [ "f5afa14f-8b2b-4c3d-9d1e-481f88fdc915" ], - "x-ms-routing-request-id": [ "SOUTHEASTASIA:20220802T053556Z:f5afa14f-8b2b-4c3d-9d1e-481f88fdc915" ], + "mise-correlation-id": [ "3a8e8ced-8c92-4439-bbfe-737600db477c" ], + "x-ms-request-id": [ "7e973aeb-b290-47bd-9bb2-7d227bd2354a" ], + "x-ms-correlation-request-id": [ "c920a8ec-2d08-4334-84a7-fba8cd7b4007" ], + "x-ms-routing-request-id": [ "EASTUS2EUAP:20230721T042904Z:c920a8ec-2d08-4334-84a7-fba8cd7b4007" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "X-Content-Type-Options": [ "nosniff" ], - "Date": [ "Tue, 02 Aug 2022 05:35:55 GMT" ] + "Date": [ "Fri, 21 Jul 2023 04:29:04 GMT" ] }, "ContentHeaders": { - "Content-Length": [ "782" ], + "Content-Length": [ "965" ], "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"value\":[{\"id\":\"/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/testStorageMover/providers/microsoft.storagemover/storagemovers/testStorageMover2/agents/testagent7\",\"name\":\"testagent7\",\"type\":\"microsoft.storagemover/storagemovers/agents\",\"systemData\":{\"createdBy\":\"yifanzhang@microsoft.com\",\"createdByType\":\"User\",\"createdAt\":\"2022-08-02T05:33:50.3980764Z\",\"lastModifiedBy\":\"yifanzhang@microsoft.com\",\"lastModifiedByType\":\"User\",\"lastModifiedAt\":\"2022-08-02T05:33:50.3980764Z\"},\"properties\":{\"arcResourceId\":\"/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/testStorageMover/providers/Microsoft.HybridCompute/machines/testagent7\",\"arcVmUuid\":\"c5c14b03-1e1d-0f42-9792-2fc3aa1c9b4b\",\"agentStatus\":\"Registering\",\"provisioningState\":\"Succeeded\"}}]}", + "Content": "{\"value\":[{\"id\":\"/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/teststoragemover/providers/Microsoft.StorageMover/storageMovers/testmoverpreview1/agents/testagent1\",\"name\":\"testagent1\",\"type\":\"microsoft.storagemover/storagemovers/agents\",\"systemData\":{\"createdBy\":\"yifanzhang@microsoft.com\",\"createdByType\":\"User\",\"createdAt\":\"2023-07-21T04:27:22.5834022Z\",\"lastModifiedBy\":\"aed824f0-6446-4ef9-9e17-98b0157c09dc\",\"lastModifiedByType\":\"Application\",\"lastModifiedAt\":\"2023-07-21T04:28:43.6811524Z\"},\"properties\":{\"agentVersion\":\"1.1.256_amd64\",\"arcResourceId\":\"/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/teststoragemover/providers/Microsoft.HybridCompute/machines/testagent1\",\"arcVmUuid\":\"c026168f-4f75-c847-aa19-2dfc4185d74e\",\"localIPAddress\":\"10.172.2.82\",\"memoryInMB\":3370,\"numberOfCores\":1,\"uptimeInSeconds\":358,\"lastStatusUpdate\":\"2023-07-21T04:28:39.250573Z\",\"agentStatus\":\"Online\",\"provisioningState\":\"Succeeded\"}}]}", "isContentBase64": false } }, - "Get-AzStorageMoverAgent+[NoContext]+Get+$GET+https://management.azure.com/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/testStorageMover/providers/Microsoft.StorageMover/storageMovers/testStorageMover2/agents/testagent7?api-version=2023-03-01+1": { + "Get-AzStorageMoverAgent+[NoContext]+Get+$GET+https://management.azure.com/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/teststoragemover/providers/Microsoft.StorageMover/storageMovers/testmoverpreview1/agents/testagent1?api-version=2023-10-01+1": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/testStorageMover/providers/Microsoft.StorageMover/storageMovers/testStorageMover2/agents/testagent7?api-version=2023-03-01", + "RequestUri": "https://management.azure.com/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/teststoragemover/providers/Microsoft.StorageMover/storageMovers/testmoverpreview1/agents/testagent1?api-version=2023-10-01", "Content": null, "isContentBase64": false, "Headers": { "x-ms-unique-id": [ "11" ], - "x-ms-client-request-id": [ "6b72f01c-d1a1-41cc-a886-407752a15f9b" ], + "x-ms-client-request-id": [ "5288f8cb-2242-4ad3-ac47-dedeeb6ba44f" ], "CommandName": [ "Get-AzStorageMoverAgent" ], "FullCommandName": [ "Get-AzStorageMoverAgent_Get" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v8.0.0", "PSVersion/v7.2.5", "Az.StorageMover/0.1.0" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.2.12", "Az.StorageMover/1.0.1" ], "Authorization": [ "[Filtered]" ] }, "ContentHeaders": { @@ -63,22 +64,23 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "ETag": [ "\"01008587-0000-3400-0000-62e8b73e0000\"" ], - "x-ms-ratelimit-remaining-subscription-reads": [ "11987" ], + "ETag": [ "\"1d00dc04-0000-3400-0000-64ba097b0000\"" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11995" ], "x-ms-providerhub-traffic": [ "True" ], - "x-ms-request-id": [ "6ef1177a-a4cf-4fbd-82e3-4b21902a54fd" ], - "x-ms-correlation-request-id": [ "59310b3c-c56b-4eb2-8874-a7b657499c2c" ], - "x-ms-routing-request-id": [ "SOUTHEASTASIA:20220802T053556Z:59310b3c-c56b-4eb2-8874-a7b657499c2c" ], + "mise-correlation-id": [ "e840f5f2-571c-4ab4-b305-c64a1f20870e" ], + "x-ms-request-id": [ "0ad5b187-7448-4b07-bf32-5dc99da9ed94" ], + "x-ms-correlation-request-id": [ "be1b9ba5-f1f8-4d3a-8b06-b2aa89b3f060" ], + "x-ms-routing-request-id": [ "EASTUS2EUAP:20230721T042905Z:be1b9ba5-f1f8-4d3a-8b06-b2aa89b3f060" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "X-Content-Type-Options": [ "nosniff" ], - "Date": [ "Tue, 02 Aug 2022 05:35:56 GMT" ] + "Date": [ "Fri, 21 Jul 2023 04:29:04 GMT" ] }, "ContentHeaders": { - "Content-Length": [ "770" ], + "Content-Length": [ "953" ], "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"id\":\"/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/testStorageMover/providers/microsoft.storagemover/storagemovers/testStorageMover2/agents/testagent7\",\"name\":\"testagent7\",\"type\":\"microsoft.storagemover/storagemovers/agents\",\"systemData\":{\"createdBy\":\"yifanzhang@microsoft.com\",\"createdByType\":\"User\",\"createdAt\":\"2022-08-02T05:33:50.3980764Z\",\"lastModifiedBy\":\"yifanzhang@microsoft.com\",\"lastModifiedByType\":\"User\",\"lastModifiedAt\":\"2022-08-02T05:33:50.3980764Z\"},\"properties\":{\"arcResourceId\":\"/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/testStorageMover/providers/Microsoft.HybridCompute/machines/testagent7\",\"arcVmUuid\":\"c5c14b03-1e1d-0f42-9792-2fc3aa1c9b4b\",\"agentStatus\":\"Registering\",\"provisioningState\":\"Succeeded\"}}", + "Content": "{\"id\":\"/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/teststoragemover/providers/Microsoft.StorageMover/storageMovers/testmoverpreview1/agents/testagent1\",\"name\":\"testagent1\",\"type\":\"microsoft.storagemover/storagemovers/agents\",\"systemData\":{\"createdBy\":\"yifanzhang@microsoft.com\",\"createdByType\":\"User\",\"createdAt\":\"2023-07-21T04:27:22.5834022Z\",\"lastModifiedBy\":\"aed824f0-6446-4ef9-9e17-98b0157c09dc\",\"lastModifiedByType\":\"Application\",\"lastModifiedAt\":\"2023-07-21T04:28:43.6811524Z\"},\"properties\":{\"agentVersion\":\"1.1.256_amd64\",\"arcResourceId\":\"/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/teststoragemover/providers/Microsoft.HybridCompute/machines/testagent1\",\"arcVmUuid\":\"c026168f-4f75-c847-aa19-2dfc4185d74e\",\"localIPAddress\":\"10.172.2.82\",\"memoryInMB\":3370,\"numberOfCores\":1,\"uptimeInSeconds\":358,\"lastStatusUpdate\":\"2023-07-21T04:28:39.250573Z\",\"agentStatus\":\"Online\",\"provisioningState\":\"Succeeded\"}}", "isContentBase64": false } } diff --git a/src/StorageMover/test/Get-AzStorageMoverEndpoint.Recording.json b/src/StorageMover/test/Get-AzStorageMoverEndpoint.Recording.json index 4559efb97332..efe41efbc50f 100644 --- a/src/StorageMover/test/Get-AzStorageMoverEndpoint.Recording.json +++ b/src/StorageMover/test/Get-AzStorageMoverEndpoint.Recording.json @@ -1,17 +1,17 @@ { - "Get-AzStorageMoverEndpoint+[NoContext]+List+$GET+https://management.azure.com/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/testStorageMover/providers/Microsoft.StorageMover/storageMovers/testStorageMover2/endpoints?api-version=2023-03-01+1": { + "Get-AzStorageMoverEndpoint+[NoContext]+List+$GET+https://management.azure.com/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/teststoragemover/providers/Microsoft.StorageMover/storageMovers/testmoverpreview1/endpoints?api-version=2023-10-01+1": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/testStorageMover/providers/Microsoft.StorageMover/storageMovers/testStorageMover2/endpoints?api-version=2023-03-01", + "RequestUri": "https://management.azure.com/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/teststoragemover/providers/Microsoft.StorageMover/storageMovers/testmoverpreview1/endpoints?api-version=2023-10-01", "Content": null, "isContentBase64": false, "Headers": { "x-ms-unique-id": [ "12" ], - "x-ms-client-request-id": [ "507984a2-0902-47f1-a019-ea7c5093d77a" ], + "x-ms-client-request-id": [ "0dfe365b-8728-4152-b119-9cbf5874a7b8" ], "CommandName": [ "Get-AzStorageMoverEndpoint" ], "FullCommandName": [ "Get-AzStorageMoverEndpoint_List" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v8.0.0", "PSVersion/v7.2.5", "Az.StorageMover/0.1.0" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.2.12", "Az.StorageMover/1.0.1" ], "Authorization": [ "[Filtered]" ] }, "ContentHeaders": { @@ -22,37 +22,37 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "x-ms-ratelimit-remaining-subscription-reads": [ "11986" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11994" ], "x-ms-providerhub-traffic": [ "True" ], - "x-ms-request-id": [ "f008ba22-cdf6-482a-8c36-d570647bd452" ], - "x-ms-correlation-request-id": [ "5c342072-7865-4aed-9bd6-9bf7bf111572" ], - "x-ms-routing-request-id": [ "SOUTHEASTASIA:20220802T053558Z:5c342072-7865-4aed-9bd6-9bf7bf111572" ], + "x-ms-request-id": [ "2f44f24f-780a-439f-b6ab-2e653c8ba2c4" ], + "x-ms-correlation-request-id": [ "3319864d-ec81-4de4-bf64-0e33b18014c5" ], + "x-ms-routing-request-id": [ "EASTUS2EUAP:20230721T042906Z:3319864d-ec81-4de4-bf64-0e33b18014c5" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "X-Content-Type-Options": [ "nosniff" ], - "Date": [ "Tue, 02 Aug 2022 05:35:57 GMT" ] + "Date": [ "Fri, 21 Jul 2023 04:29:05 GMT" ] }, "ContentHeaders": { - "Content-Length": [ "26236" ], + "Content-Length": [ "7723" ], "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"value\":[{\"id\":\"/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/testStorageMover/providers/Microsoft.StorageMover/storageMovers/testStorageMover2/endpoints/containerEndpoint16xhw43q\",\"name\":\"containerEndpoint16xhw43q\",\"type\":\"microsoft.storagemover/storagemovers/endpoints\",\"systemData\":{\"createdBy\":\"yifanzhang@microsoft.com\",\"createdByType\":\"User\",\"createdAt\":\"2022-07-21T04:15:33.1208441Z\",\"lastModifiedBy\":\"yifanzhang@microsoft.com\",\"lastModifiedByType\":\"User\",\"lastModifiedAt\":\"2022-07-21T04:15:33.1208441Z\"},\"properties\":{\"endpointType\":\"AzureStorageBlobContainer\",\"storageAccountResourceId\":\"/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/testStorageMover/providers/Microsoft.Storage/storageAccounts/storacc16xhw43q\",\"blobContainerName\":\"container16xhw43q\",\"provisioningState\":\"Succeeded\"}},{\"id\":\"/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/testStorageMover/providers/Microsoft.StorageMover/storageMovers/testStorageMover2/endpoints/nfsEndpoint16xhw43q\",\"name\":\"nfsEndpoint16xhw43q\",\"type\":\"microsoft.storagemover/storagemovers/endpoints\",\"systemData\":{\"createdBy\":\"yifanzhang@microsoft.com\",\"createdByType\":\"User\",\"createdAt\":\"2022-07-21T04:15:34.2770927Z\",\"lastModifiedBy\":\"yifanzhang@microsoft.com\",\"lastModifiedByType\":\"User\",\"lastModifiedAt\":\"2022-07-21T04:15:34.2770927Z\"},\"properties\":{\"endpointType\":\"NfsMount\",\"host\":\"10.0.0.1\",\"export\":\"/\",\"provisioningState\":\"Succeeded\"}},{\"id\":\"/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/testStorageMover/providers/Microsoft.StorageMover/storageMovers/testStorageMover2/endpoints/containerEndpointd4ckuns0\",\"name\":\"containerEndpointd4ckuns0\",\"type\":\"microsoft.storagemover/storagemovers/endpoints\",\"systemData\":{\"createdBy\":\"yifanzhang@microsoft.com\",\"createdByType\":\"User\",\"createdAt\":\"2022-07-21T06:04:37.0397408Z\",\"lastModifiedBy\":\"yifanzhang@microsoft.com\",\"lastModifiedByType\":\"User\",\"lastModifiedAt\":\"2022-07-21T06:04:37.0397408Z\"},\"properties\":{\"endpointType\":\"AzureStorageBlobContainer\",\"storageAccountResourceId\":\"/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/testStorageMover/providers/Microsoft.Storage/storageAccounts/storaccd4ckuns0\",\"blobContainerName\":\"containerd4ckuns0\",\"provisioningState\":\"Succeeded\"}},{\"id\":\"/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/testStorageMover/providers/Microsoft.StorageMover/storageMovers/testStorageMover2/endpoints/nfsEndpointd4ckuns0\",\"name\":\"nfsEndpointd4ckuns0\",\"type\":\"microsoft.storagemover/storagemovers/endpoints\",\"systemData\":{\"createdBy\":\"yifanzhang@microsoft.com\",\"createdByType\":\"User\",\"createdAt\":\"2022-07-21T06:04:37.9303822Z\",\"lastModifiedBy\":\"yifanzhang@microsoft.com\",\"lastModifiedByType\":\"User\",\"lastModifiedAt\":\"2022-07-21T06:04:37.9303822Z\"},\"properties\":{\"endpointType\":\"NfsMount\",\"host\":\"10.0.0.1\",\"export\":\"/\",\"provisioningState\":\"Succeeded\"}},{\"id\":\"/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/testStorageMover/providers/Microsoft.StorageMover/storageMovers/testStorageMover2/endpoints/containerEndpointekahpyf0\",\"name\":\"containerEndpointekahpyf0\",\"type\":\"microsoft.storagemover/storagemovers/endpoints\",\"systemData\":{\"createdBy\":\"yifanzhang@microsoft.com\",\"createdByType\":\"User\",\"createdAt\":\"2022-07-21T08:38:35.9591801Z\",\"lastModifiedBy\":\"yifanzhang@microsoft.com\",\"lastModifiedByType\":\"User\",\"lastModifiedAt\":\"2022-07-21T08:38:35.9591801Z\"},\"properties\":{\"endpointType\":\"AzureStorageBlobContainer\",\"storageAccountResourceId\":\"/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/testStorageMover/providers/Microsoft.Storage/storageAccounts/storaccekahpyf0\",\"blobContainerName\":\"containerekahpyf0\",\"provisioningState\":\"Succeeded\"}},{\"id\":\"/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/testStorageMover/providers/Microsoft.StorageMover/storageMovers/testStorageMover2/endpoints/containerEndpointe7649hsm\",\"name\":\"containerEndpointe7649hsm\",\"type\":\"microsoft.storagemover/storagemovers/endpoints\",\"systemData\":{\"createdBy\":\"yifanzhang@microsoft.com\",\"createdByType\":\"User\",\"createdAt\":\"2022-07-22T04:42:48.5543251Z\",\"lastModifiedBy\":\"yifanzhang@microsoft.com\",\"lastModifiedByType\":\"User\",\"lastModifiedAt\":\"2022-07-22T04:42:48.5543251Z\"},\"properties\":{\"endpointType\":\"AzureStorageBlobContainer\",\"storageAccountResourceId\":\"/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/testStorageMover/providers/Microsoft.Storage/storageAccounts/storacce7649hsm\",\"blobContainerName\":\"containere7649hsm\",\"provisioningState\":\"Succeeded\"}},{\"id\":\"/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/testStorageMover/providers/Microsoft.StorageMover/storageMovers/testStorageMover2/endpoints/nfsEndpointe7649hsm\",\"name\":\"nfsEndpointe7649hsm\",\"type\":\"microsoft.storagemover/storagemovers/endpoints\",\"systemData\":{\"createdBy\":\"yifanzhang@microsoft.com\",\"createdByType\":\"User\",\"createdAt\":\"2022-07-22T04:42:49.2574679Z\",\"lastModifiedBy\":\"yifanzhang@microsoft.com\",\"lastModifiedByType\":\"User\",\"lastModifiedAt\":\"2022-07-22T04:42:49.2574679Z\"},\"properties\":{\"endpointType\":\"NfsMount\",\"host\":\"10.0.0.1\",\"export\":\"/\",\"provisioningState\":\"Succeeded\"}},{\"id\":\"/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/testStorageMover/providers/Microsoft.StorageMover/storageMovers/testStorageMover2/endpoints/containerEndpoint0qnj1h4d\",\"name\":\"containerEndpoint0qnj1h4d\",\"type\":\"microsoft.storagemover/storagemovers/endpoints\",\"systemData\":{\"createdBy\":\"yifanzhang@microsoft.com\",\"createdByType\":\"User\",\"createdAt\":\"2022-07-22T04:50:02.3844728Z\",\"lastModifiedBy\":\"yifanzhang@microsoft.com\",\"lastModifiedByType\":\"User\",\"lastModifiedAt\":\"2022-07-22T04:50:02.3844728Z\"},\"properties\":{\"endpointType\":\"AzureStorageBlobContainer\",\"storageAccountResourceId\":\"/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/testStorageMover/providers/Microsoft.Storage/storageAccounts/storacc0qnj1h4d\",\"blobContainerName\":\"container0qnj1h4d\",\"provisioningState\":\"Succeeded\"}},{\"id\":\"/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/testStorageMover/providers/Microsoft.StorageMover/storageMovers/testStorageMover2/endpoints/nfsEndpoint0qnj1h4d\",\"name\":\"nfsEndpoint0qnj1h4d\",\"type\":\"microsoft.storagemover/storagemovers/endpoints\",\"systemData\":{\"createdBy\":\"yifanzhang@microsoft.com\",\"createdByType\":\"User\",\"createdAt\":\"2022-07-22T04:50:02.9157549Z\",\"lastModifiedBy\":\"yifanzhang@microsoft.com\",\"lastModifiedByType\":\"User\",\"lastModifiedAt\":\"2022-07-22T04:50:02.9157549Z\"},\"properties\":{\"endpointType\":\"NfsMount\",\"host\":\"10.0.0.1\",\"export\":\"/\",\"provisioningState\":\"Succeeded\"}},{\"id\":\"/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/testStorageMover/providers/Microsoft.StorageMover/storageMovers/testStorageMover2/endpoints/containerEndpointe4oarfyp\",\"name\":\"containerEndpointe4oarfyp\",\"type\":\"microsoft.storagemover/storagemovers/endpoints\",\"systemData\":{\"createdBy\":\"yifanzhang@microsoft.com\",\"createdByType\":\"User\",\"createdAt\":\"2022-07-22T05:28:13.1208995Z\",\"lastModifiedBy\":\"yifanzhang@microsoft.com\",\"lastModifiedByType\":\"User\",\"lastModifiedAt\":\"2022-07-22T05:28:13.1208995Z\"},\"properties\":{\"endpointType\":\"AzureStorageBlobContainer\",\"storageAccountResourceId\":\"/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/testStorageMover/providers/Microsoft.Storage/storageAccounts/storacce4oarfyp\",\"blobContainerName\":\"containere4oarfyp\",\"provisioningState\":\"Succeeded\"}},{\"id\":\"/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/testStorageMover/providers/Microsoft.StorageMover/storageMovers/testStorageMover2/endpoints/nfsEndpointe4oarfyp\",\"name\":\"nfsEndpointe4oarfyp\",\"type\":\"microsoft.storagemover/storagemovers/endpoints\",\"systemData\":{\"createdBy\":\"yifanzhang@microsoft.com\",\"createdByType\":\"User\",\"createdAt\":\"2022-07-22T05:28:13.7615224Z\",\"lastModifiedBy\":\"yifanzhang@microsoft.com\",\"lastModifiedByType\":\"User\",\"lastModifiedAt\":\"2022-07-22T05:28:13.7615224Z\"},\"properties\":{\"endpointType\":\"NfsMount\",\"host\":\"10.0.0.1\",\"export\":\"/\",\"provisioningState\":\"Succeeded\"}},{\"id\":\"/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/testStorageMover/providers/Microsoft.StorageMover/storageMovers/testStorageMover2/endpoints/containerEndpoint0426e89i\",\"name\":\"containerEndpoint0426e89i\",\"type\":\"microsoft.storagemover/storagemovers/endpoints\",\"systemData\":{\"createdBy\":\"yifanzhang@microsoft.com\",\"createdByType\":\"User\",\"createdAt\":\"2022-07-22T05:31:23.4645384Z\",\"lastModifiedBy\":\"yifanzhang@microsoft.com\",\"lastModifiedByType\":\"User\",\"lastModifiedAt\":\"2022-07-22T05:31:23.4645384Z\"},\"properties\":{\"endpointType\":\"AzureStorageBlobContainer\",\"storageAccountResourceId\":\"/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/testStorageMover/providers/Microsoft.Storage/storageAccounts/storacc0426e89i\",\"blobContainerName\":\"container0426e89i\",\"provisioningState\":\"Succeeded\"}},{\"id\":\"/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/testStorageMover/providers/Microsoft.StorageMover/storageMovers/testStorageMover2/endpoints/nfsEndpoint0426e89i\",\"name\":\"nfsEndpoint0426e89i\",\"type\":\"microsoft.storagemover/storagemovers/endpoints\",\"systemData\":{\"createdBy\":\"yifanzhang@microsoft.com\",\"createdByType\":\"User\",\"createdAt\":\"2022-07-22T05:31:24.0114172Z\",\"lastModifiedBy\":\"yifanzhang@microsoft.com\",\"lastModifiedByType\":\"User\",\"lastModifiedAt\":\"2022-07-22T05:31:24.0114172Z\"},\"properties\":{\"endpointType\":\"NfsMount\",\"host\":\"10.0.0.1\",\"export\":\"/\",\"provisioningState\":\"Succeeded\"}},{\"id\":\"/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/testStorageMover/providers/Microsoft.StorageMover/storageMovers/testStorageMover2/endpoints/containerEndpointx08itkwr\",\"name\":\"containerEndpointx08itkwr\",\"type\":\"microsoft.storagemover/storagemovers/endpoints\",\"systemData\":{\"createdBy\":\"a000255f-5f09-45e0-a970-9d9ed9cc6453\",\"createdByType\":\"Application\",\"createdAt\":\"2022-07-29T09:10:01.0053212Z\",\"lastModifiedBy\":\"a000255f-5f09-45e0-a970-9d9ed9cc6453\",\"lastModifiedByType\":\"Application\",\"lastModifiedAt\":\"2022-07-29T09:10:01.0053212Z\"},\"properties\":{\"endpointType\":\"AzureStorageBlobContainer\",\"storageAccountResourceId\":\"/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/testStorageMover/providers/Microsoft.Storage/storageAccounts/storaccx08itkwr\",\"blobContainerName\":\"containerx08itkwr\",\"provisioningState\":\"Succeeded\"}},{\"id\":\"/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/testStorageMover/providers/Microsoft.StorageMover/storageMovers/testStorageMover2/endpoints/nfsEndpointx08itkwr\",\"name\":\"nfsEndpointx08itkwr\",\"type\":\"microsoft.storagemover/storagemovers/endpoints\",\"systemData\":{\"createdBy\":\"a000255f-5f09-45e0-a970-9d9ed9cc6453\",\"createdByType\":\"Application\",\"createdAt\":\"2022-07-29T09:10:02.4116078Z\",\"lastModifiedBy\":\"a000255f-5f09-45e0-a970-9d9ed9cc6453\",\"lastModifiedByType\":\"Application\",\"lastModifiedAt\":\"2022-07-29T09:10:02.4116078Z\"},\"properties\":{\"endpointType\":\"NfsMount\",\"host\":\"10.0.0.1\",\"export\":\"/\",\"provisioningState\":\"Succeeded\"}},{\"id\":\"/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/testStorageMover/providers/Microsoft.StorageMover/storageMovers/testStorageMover2/endpoints/containerEndpointovndwe1k\",\"name\":\"containerEndpointovndwe1k\",\"type\":\"microsoft.storagemover/storagemovers/endpoints\",\"systemData\":{\"createdBy\":\"a000255f-5f09-45e0-a970-9d9ed9cc6453\",\"createdByType\":\"Application\",\"createdAt\":\"2022-08-02T03:13:41.3463791Z\",\"lastModifiedBy\":\"a000255f-5f09-45e0-a970-9d9ed9cc6453\",\"lastModifiedByType\":\"Application\",\"lastModifiedAt\":\"2022-08-02T03:13:41.3463791Z\"},\"properties\":{\"endpointType\":\"AzureStorageBlobContainer\",\"storageAccountResourceId\":\"/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/testStorageMover/providers/Microsoft.Storage/storageAccounts/storaccovndwe1k\",\"blobContainerName\":\"containerovndwe1k\",\"provisioningState\":\"Succeeded\"}},{\"id\":\"/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/testStorageMover/providers/Microsoft.StorageMover/storageMovers/testStorageMover2/endpoints/nfsEndpointovndwe1k\",\"name\":\"nfsEndpointovndwe1k\",\"type\":\"microsoft.storagemover/storagemovers/endpoints\",\"systemData\":{\"createdBy\":\"a000255f-5f09-45e0-a970-9d9ed9cc6453\",\"createdByType\":\"Application\",\"createdAt\":\"2022-08-02T03:13:42.690141Z\",\"lastModifiedBy\":\"a000255f-5f09-45e0-a970-9d9ed9cc6453\",\"lastModifiedByType\":\"Application\",\"lastModifiedAt\":\"2022-08-02T03:13:42.690141Z\"},\"properties\":{\"endpointType\":\"NfsMount\",\"host\":\"10.0.0.1\",\"export\":\"/\",\"provisioningState\":\"Succeeded\"}},{\"id\":\"/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/testStorageMover/providers/Microsoft.StorageMover/storageMovers/testStorageMover2/endpoints/containerEndpoint24cd0vxj\",\"name\":\"containerEndpoint24cd0vxj\",\"type\":\"microsoft.storagemover/storagemovers/endpoints\",\"systemData\":{\"createdBy\":\"a000255f-5f09-45e0-a970-9d9ed9cc6453\",\"createdByType\":\"Application\",\"createdAt\":\"2022-08-02T03:25:56.4232481Z\",\"lastModifiedBy\":\"a000255f-5f09-45e0-a970-9d9ed9cc6453\",\"lastModifiedByType\":\"Application\",\"lastModifiedAt\":\"2022-08-02T03:25:56.4232481Z\"},\"properties\":{\"endpointType\":\"AzureStorageBlobContainer\",\"storageAccountResourceId\":\"/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/testStorageMover/providers/Microsoft.Storage/storageAccounts/storacc24cd0vxj\",\"blobContainerName\":\"container24cd0vxj\",\"provisioningState\":\"Succeeded\"}},{\"id\":\"/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/testStorageMover/providers/Microsoft.StorageMover/storageMovers/testStorageMover2/endpoints/nfsEndpoint24cd0vxj\",\"name\":\"nfsEndpoint24cd0vxj\",\"type\":\"microsoft.storagemover/storagemovers/endpoints\",\"systemData\":{\"createdBy\":\"a000255f-5f09-45e0-a970-9d9ed9cc6453\",\"createdByType\":\"Application\",\"createdAt\":\"2022-08-02T03:25:58.1576375Z\",\"lastModifiedBy\":\"a000255f-5f09-45e0-a970-9d9ed9cc6453\",\"lastModifiedByType\":\"Application\",\"lastModifiedAt\":\"2022-08-02T03:25:58.1576375Z\"},\"properties\":{\"endpointType\":\"NfsMount\",\"host\":\"10.0.0.1\",\"export\":\"/\",\"provisioningState\":\"Succeeded\"}},{\"id\":\"/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/testStorageMover/providers/Microsoft.StorageMover/storageMovers/testStorageMover2/endpoints/containerEndpoint6flk3awb\",\"name\":\"containerEndpoint6flk3awb\",\"type\":\"microsoft.storagemover/storagemovers/endpoints\",\"systemData\":{\"createdBy\":\"a000255f-5f09-45e0-a970-9d9ed9cc6453\",\"createdByType\":\"Application\",\"createdAt\":\"2022-08-02T03:48:23.9807477Z\",\"lastModifiedBy\":\"a000255f-5f09-45e0-a970-9d9ed9cc6453\",\"lastModifiedByType\":\"Application\",\"lastModifiedAt\":\"2022-08-02T03:48:23.9807477Z\"},\"properties\":{\"endpointType\":\"AzureStorageBlobContainer\",\"storageAccountResourceId\":\"/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/testStorageMover/providers/Microsoft.Storage/storageAccounts/storacc6flk3awb\",\"blobContainerName\":\"container6flk3awb\",\"provisioningState\":\"Succeeded\"}},{\"id\":\"/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/testStorageMover/providers/Microsoft.StorageMover/storageMovers/testStorageMover2/endpoints/nfsEndpoint6flk3awb\",\"name\":\"nfsEndpoint6flk3awb\",\"type\":\"microsoft.storagemover/storagemovers/endpoints\",\"systemData\":{\"createdBy\":\"a000255f-5f09-45e0-a970-9d9ed9cc6453\",\"createdByType\":\"Application\",\"createdAt\":\"2022-08-02T03:48:25.5589776Z\",\"lastModifiedBy\":\"a000255f-5f09-45e0-a970-9d9ed9cc6453\",\"lastModifiedByType\":\"Application\",\"lastModifiedAt\":\"2022-08-02T03:48:25.5589776Z\"},\"properties\":{\"endpointType\":\"NfsMount\",\"host\":\"10.0.0.1\",\"export\":\"/\",\"provisioningState\":\"Succeeded\"}},{\"id\":\"/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/testStorageMover/providers/Microsoft.StorageMover/storageMovers/testStorageMover2/endpoints/containerEndpoint4mkhzf8x\",\"name\":\"containerEndpoint4mkhzf8x\",\"type\":\"microsoft.storagemover/storagemovers/endpoints\",\"systemData\":{\"createdBy\":\"a000255f-5f09-45e0-a970-9d9ed9cc6453\",\"createdByType\":\"Application\",\"createdAt\":\"2022-08-02T03:52:20.6782549Z\",\"lastModifiedBy\":\"a000255f-5f09-45e0-a970-9d9ed9cc6453\",\"lastModifiedByType\":\"Application\",\"lastModifiedAt\":\"2022-08-02T03:52:20.6782549Z\"},\"properties\":{\"endpointType\":\"AzureStorageBlobContainer\",\"storageAccountResourceId\":\"/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/testStorageMover/providers/Microsoft.Storage/storageAccounts/storacc4mkhzf8x\",\"blobContainerName\":\"container4mkhzf8x\",\"provisioningState\":\"Succeeded\"}},{\"id\":\"/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/testStorageMover/providers/Microsoft.StorageMover/storageMovers/testStorageMover2/endpoints/nfsEndpoint4mkhzf8x\",\"name\":\"nfsEndpoint4mkhzf8x\",\"type\":\"microsoft.storagemover/storagemovers/endpoints\",\"systemData\":{\"createdBy\":\"a000255f-5f09-45e0-a970-9d9ed9cc6453\",\"createdByType\":\"Application\",\"createdAt\":\"2022-08-02T03:52:22.2095136Z\",\"lastModifiedBy\":\"a000255f-5f09-45e0-a970-9d9ed9cc6453\",\"lastModifiedByType\":\"Application\",\"lastModifiedAt\":\"2022-08-02T03:52:22.2095136Z\"},\"properties\":{\"endpointType\":\"NfsMount\",\"host\":\"10.0.0.1\",\"export\":\"/\",\"provisioningState\":\"Succeeded\"}},{\"id\":\"/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/testStorageMover/providers/Microsoft.StorageMover/storageMovers/testStorageMover2/endpoints/containerEndpoint7ubswd3o\",\"name\":\"containerEndpoint7ubswd3o\",\"type\":\"microsoft.storagemover/storagemovers/endpoints\",\"systemData\":{\"createdBy\":\"a000255f-5f09-45e0-a970-9d9ed9cc6453\",\"createdByType\":\"Application\",\"createdAt\":\"2022-08-02T04:00:26.1686023Z\",\"lastModifiedBy\":\"a000255f-5f09-45e0-a970-9d9ed9cc6453\",\"lastModifiedByType\":\"Application\",\"lastModifiedAt\":\"2022-08-02T04:00:26.1686023Z\"},\"properties\":{\"endpointType\":\"AzureStorageBlobContainer\",\"storageAccountResourceId\":\"/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/testStorageMover/providers/Microsoft.Storage/storageAccounts/storacc7ubswd3o\",\"blobContainerName\":\"container7ubswd3o\",\"provisioningState\":\"Succeeded\"}},{\"id\":\"/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/testStorageMover/providers/Microsoft.StorageMover/storageMovers/testStorageMover2/endpoints/nfsEndpoint7ubswd3o\",\"name\":\"nfsEndpoint7ubswd3o\",\"type\":\"microsoft.storagemover/storagemovers/endpoints\",\"systemData\":{\"createdBy\":\"a000255f-5f09-45e0-a970-9d9ed9cc6453\",\"createdByType\":\"Application\",\"createdAt\":\"2022-08-02T04:00:27.7311133Z\",\"lastModifiedBy\":\"a000255f-5f09-45e0-a970-9d9ed9cc6453\",\"lastModifiedByType\":\"Application\",\"lastModifiedAt\":\"2022-08-02T04:00:27.7311133Z\"},\"properties\":{\"endpointType\":\"NfsMount\",\"host\":\"10.0.0.1\",\"export\":\"/\",\"provisioningState\":\"Succeeded\"}},{\"id\":\"/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/testStorageMover/providers/Microsoft.StorageMover/storageMovers/testStorageMover2/endpoints/containerEndpointkdmxy397\",\"name\":\"containerEndpointkdmxy397\",\"type\":\"microsoft.storagemover/storagemovers/endpoints\",\"systemData\":{\"createdBy\":\"a000255f-5f09-45e0-a970-9d9ed9cc6453\",\"createdByType\":\"Application\",\"createdAt\":\"2022-08-02T05:05:29.8969253Z\",\"lastModifiedBy\":\"a000255f-5f09-45e0-a970-9d9ed9cc6453\",\"lastModifiedByType\":\"Application\",\"lastModifiedAt\":\"2022-08-02T05:05:29.8969253Z\"},\"properties\":{\"endpointType\":\"AzureStorageBlobContainer\",\"storageAccountResourceId\":\"/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/testStorageMover/providers/Microsoft.Storage/storageAccounts/storacckdmxy397\",\"blobContainerName\":\"containerkdmxy397\",\"provisioningState\":\"Succeeded\"}},{\"id\":\"/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/testStorageMover/providers/Microsoft.StorageMover/storageMovers/testStorageMover2/endpoints/nfsEndpointkdmxy397\",\"name\":\"nfsEndpointkdmxy397\",\"type\":\"microsoft.storagemover/storagemovers/endpoints\",\"systemData\":{\"createdBy\":\"a000255f-5f09-45e0-a970-9d9ed9cc6453\",\"createdByType\":\"Application\",\"createdAt\":\"2022-08-02T05:05:31.4906861Z\",\"lastModifiedBy\":\"a000255f-5f09-45e0-a970-9d9ed9cc6453\",\"lastModifiedByType\":\"Application\",\"lastModifiedAt\":\"2022-08-02T05:05:31.4906861Z\"},\"properties\":{\"endpointType\":\"NfsMount\",\"host\":\"10.0.0.1\",\"export\":\"/\",\"provisioningState\":\"Succeeded\"}},{\"id\":\"/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/testStorageMover/providers/Microsoft.StorageMover/storageMovers/testStorageMover2/endpoints/containerEndpointed31jkfu\",\"name\":\"containerEndpointed31jkfu\",\"type\":\"microsoft.storagemover/storagemovers/endpoints\",\"systemData\":{\"createdBy\":\"a000255f-5f09-45e0-a970-9d9ed9cc6453\",\"createdByType\":\"Application\",\"createdAt\":\"2022-08-02T05:13:48.7490416Z\",\"lastModifiedBy\":\"a000255f-5f09-45e0-a970-9d9ed9cc6453\",\"lastModifiedByType\":\"Application\",\"lastModifiedAt\":\"2022-08-02T05:13:48.7490416Z\"},\"properties\":{\"endpointType\":\"AzureStorageBlobContainer\",\"storageAccountResourceId\":\"/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/testStorageMover/providers/Microsoft.Storage/storageAccounts/storacced31jkfu\",\"blobContainerName\":\"containered31jkfu\",\"provisioningState\":\"Succeeded\"}},{\"id\":\"/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/testStorageMover/providers/Microsoft.StorageMover/storageMovers/testStorageMover2/endpoints/nfsEndpointed31jkfu\",\"name\":\"nfsEndpointed31jkfu\",\"type\":\"microsoft.storagemover/storagemovers/endpoints\",\"systemData\":{\"createdBy\":\"a000255f-5f09-45e0-a970-9d9ed9cc6453\",\"createdByType\":\"Application\",\"createdAt\":\"2022-08-02T05:13:50.5303188Z\",\"lastModifiedBy\":\"a000255f-5f09-45e0-a970-9d9ed9cc6453\",\"lastModifiedByType\":\"Application\",\"lastModifiedAt\":\"2022-08-02T05:13:50.5303188Z\"},\"properties\":{\"endpointType\":\"NfsMount\",\"host\":\"10.0.0.1\",\"export\":\"/\",\"provisioningState\":\"Succeeded\"}},{\"id\":\"/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/testStorageMover/providers/Microsoft.StorageMover/storageMovers/testStorageMover2/endpoints/containerEndpointgmrj5zbv\",\"name\":\"containerEndpointgmrj5zbv\",\"type\":\"microsoft.storagemover/storagemovers/endpoints\",\"systemData\":{\"createdBy\":\"a000255f-5f09-45e0-a970-9d9ed9cc6453\",\"createdByType\":\"Application\",\"createdAt\":\"2022-08-02T05:19:21.8537954Z\",\"lastModifiedBy\":\"a000255f-5f09-45e0-a970-9d9ed9cc6453\",\"lastModifiedByType\":\"Application\",\"lastModifiedAt\":\"2022-08-02T05:19:21.8537954Z\"},\"properties\":{\"endpointType\":\"AzureStorageBlobContainer\",\"storageAccountResourceId\":\"/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/testStorageMover/providers/Microsoft.Storage/storageAccounts/storaccgmrj5zbv\",\"blobContainerName\":\"containergmrj5zbv\",\"provisioningState\":\"Succeeded\"}},{\"id\":\"/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/testStorageMover/providers/Microsoft.StorageMover/storageMovers/testStorageMover2/endpoints/nfsEndpointgmrj5zbv\",\"name\":\"nfsEndpointgmrj5zbv\",\"type\":\"microsoft.storagemover/storagemovers/endpoints\",\"systemData\":{\"createdBy\":\"a000255f-5f09-45e0-a970-9d9ed9cc6453\",\"createdByType\":\"Application\",\"createdAt\":\"2022-08-02T05:19:23.338158Z\",\"lastModifiedBy\":\"a000255f-5f09-45e0-a970-9d9ed9cc6453\",\"lastModifiedByType\":\"Application\",\"lastModifiedAt\":\"2022-08-02T05:19:23.338158Z\"},\"properties\":{\"endpointType\":\"NfsMount\",\"host\":\"10.0.0.1\",\"export\":\"/\",\"provisioningState\":\"Succeeded\"}},{\"id\":\"/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/testStorageMover/providers/Microsoft.StorageMover/storageMovers/testStorageMover2/endpoints/containerEndpointe2q3kd7l\",\"name\":\"containerEndpointe2q3kd7l\",\"type\":\"microsoft.storagemover/storagemovers/endpoints\",\"systemData\":{\"createdBy\":\"a000255f-5f09-45e0-a970-9d9ed9cc6453\",\"createdByType\":\"Application\",\"createdAt\":\"2022-08-02T05:23:43.9738784Z\",\"lastModifiedBy\":\"a000255f-5f09-45e0-a970-9d9ed9cc6453\",\"lastModifiedByType\":\"Application\",\"lastModifiedAt\":\"2022-08-02T05:23:43.9738784Z\"},\"properties\":{\"endpointType\":\"AzureStorageBlobContainer\",\"storageAccountResourceId\":\"/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/testStorageMover/providers/Microsoft.Storage/storageAccounts/storacce2q3kd7l\",\"blobContainerName\":\"containere2q3kd7l\",\"provisioningState\":\"Succeeded\"}},{\"id\":\"/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/testStorageMover/providers/Microsoft.StorageMover/storageMovers/testStorageMover2/endpoints/nfsEndpointe2q3kd7l\",\"name\":\"nfsEndpointe2q3kd7l\",\"type\":\"microsoft.storagemover/storagemovers/endpoints\",\"systemData\":{\"createdBy\":\"a000255f-5f09-45e0-a970-9d9ed9cc6453\",\"createdByType\":\"Application\",\"createdAt\":\"2022-08-02T05:23:45.8644898Z\",\"lastModifiedBy\":\"a000255f-5f09-45e0-a970-9d9ed9cc6453\",\"lastModifiedByType\":\"Application\",\"lastModifiedAt\":\"2022-08-02T05:23:45.8644898Z\"},\"properties\":{\"endpointType\":\"NfsMount\",\"host\":\"10.0.0.1\",\"export\":\"/\",\"provisioningState\":\"Succeeded\"}},{\"id\":\"/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/testStorageMover/providers/Microsoft.StorageMover/storageMovers/testStorageMover2/endpoints/containerEndpoint4068b735\",\"name\":\"containerEndpoint4068b735\",\"type\":\"microsoft.storagemover/storagemovers/endpoints\",\"systemData\":{\"createdBy\":\"a000255f-5f09-45e0-a970-9d9ed9cc6453\",\"createdByType\":\"Application\",\"createdAt\":\"2022-08-02T05:35:43.5299027Z\",\"lastModifiedBy\":\"a000255f-5f09-45e0-a970-9d9ed9cc6453\",\"lastModifiedByType\":\"Application\",\"lastModifiedAt\":\"2022-08-02T05:35:43.5299027Z\"},\"properties\":{\"endpointType\":\"AzureStorageBlobContainer\",\"storageAccountResourceId\":\"/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/testStorageMover/providers/Microsoft.Storage/storageAccounts/storacc4068b735\",\"blobContainerName\":\"container4068b735\",\"provisioningState\":\"Succeeded\"}},{\"id\":\"/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/testStorageMover/providers/Microsoft.StorageMover/storageMovers/testStorageMover2/endpoints/nfsEndpoint4068b735\",\"name\":\"nfsEndpoint4068b735\",\"type\":\"microsoft.storagemover/storagemovers/endpoints\",\"systemData\":{\"createdBy\":\"a000255f-5f09-45e0-a970-9d9ed9cc6453\",\"createdByType\":\"Application\",\"createdAt\":\"2022-08-02T05:35:45.1079755Z\",\"lastModifiedBy\":\"a000255f-5f09-45e0-a970-9d9ed9cc6453\",\"lastModifiedByType\":\"Application\",\"lastModifiedAt\":\"2022-08-02T05:35:45.1079755Z\"},\"properties\":{\"endpointType\":\"NfsMount\",\"host\":\"10.0.0.1\",\"export\":\"/\",\"provisioningState\":\"Succeeded\"}}]}", + "Content": "{\"value\":[{\"id\":\"/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/teststoragemover/providers/Microsoft.StorageMover/storageMovers/testmoverpreview1/endpoints/containerEndpointua3b5imx\",\"name\":\"containerEndpointua3b5imx\",\"type\":\"microsoft.storagemover/storagemovers/endpoints\",\"systemData\":{\"createdBy\":\"a000255f-5f09-45e0-a970-9d9ed9cc6453\",\"createdByType\":\"Application\",\"createdAt\":\"2023-07-21T02:24:47.8776138Z\",\"lastModifiedBy\":\"a000255f-5f09-45e0-a970-9d9ed9cc6453\",\"lastModifiedByType\":\"Application\",\"lastModifiedAt\":\"2023-07-21T02:24:47.8776138Z\"},\"properties\":{\"storageAccountResourceId\":\"/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/teststoragemover/providers/Microsoft.Storage/storageAccounts/storaccua3b5imx\",\"blobContainerName\":\"containerua3b5imx\",\"endpointType\":\"AzureStorageBlobContainer\",\"provisioningState\":\"Succeeded\"}},{\"id\":\"/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/teststoragemover/providers/Microsoft.StorageMover/storageMovers/testmoverpreview1/endpoints/nfsEndpointua3b5imx\",\"name\":\"nfsEndpointua3b5imx\",\"type\":\"microsoft.storagemover/storagemovers/endpoints\",\"systemData\":{\"createdBy\":\"a000255f-5f09-45e0-a970-9d9ed9cc6453\",\"createdByType\":\"Application\",\"createdAt\":\"2023-07-21T02:24:49.2526299Z\",\"lastModifiedBy\":\"a000255f-5f09-45e0-a970-9d9ed9cc6453\",\"lastModifiedByType\":\"Application\",\"lastModifiedAt\":\"2023-07-21T02:24:49.2526299Z\"},\"properties\":{\"host\":\"10.0.0.1\",\"nfsVersion\":\"NFSauto\",\"export\":\"/\",\"endpointType\":\"NfsMount\",\"provisioningState\":\"Succeeded\"}},{\"id\":\"/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/teststoragemover/providers/Microsoft.StorageMover/storageMovers/testmoverpreview1/endpoints/containerEndpoint31q7xr6m\",\"name\":\"containerEndpoint31q7xr6m\",\"type\":\"microsoft.storagemover/storagemovers/endpoints\",\"systemData\":{\"createdBy\":\"a000255f-5f09-45e0-a970-9d9ed9cc6453\",\"createdByType\":\"Application\",\"createdAt\":\"2023-07-21T03:09:06.7521896Z\",\"lastModifiedBy\":\"a000255f-5f09-45e0-a970-9d9ed9cc6453\",\"lastModifiedByType\":\"Application\",\"lastModifiedAt\":\"2023-07-21T03:09:06.7521896Z\"},\"properties\":{\"storageAccountResourceId\":\"/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/teststoragemover/providers/Microsoft.Storage/storageAccounts/storacc31q7xr6m\",\"blobContainerName\":\"container31q7xr6m\",\"endpointType\":\"AzureStorageBlobContainer\",\"provisioningState\":\"Succeeded\"}},{\"id\":\"/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/teststoragemover/providers/Microsoft.StorageMover/storageMovers/testmoverpreview1/endpoints/nfsEndpoint31q7xr6m\",\"name\":\"nfsEndpoint31q7xr6m\",\"type\":\"microsoft.storagemover/storagemovers/endpoints\",\"systemData\":{\"createdBy\":\"a000255f-5f09-45e0-a970-9d9ed9cc6453\",\"createdByType\":\"Application\",\"createdAt\":\"2023-07-21T03:09:07.908458Z\",\"lastModifiedBy\":\"a000255f-5f09-45e0-a970-9d9ed9cc6453\",\"lastModifiedByType\":\"Application\",\"lastModifiedAt\":\"2023-07-21T03:09:07.908458Z\"},\"properties\":{\"host\":\"10.0.0.1\",\"nfsVersion\":\"NFSauto\",\"export\":\"/\",\"endpointType\":\"NfsMount\",\"provisioningState\":\"Succeeded\"}},{\"id\":\"/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/teststoragemover/providers/Microsoft.StorageMover/storageMovers/testmoverpreview1/endpoints/containerEndpointdy0z54nl\",\"name\":\"containerEndpointdy0z54nl\",\"type\":\"microsoft.storagemover/storagemovers/endpoints\",\"systemData\":{\"createdBy\":\"a000255f-5f09-45e0-a970-9d9ed9cc6453\",\"createdByType\":\"Application\",\"createdAt\":\"2023-07-21T04:02:41.5998671Z\",\"lastModifiedBy\":\"a000255f-5f09-45e0-a970-9d9ed9cc6453\",\"lastModifiedByType\":\"Application\",\"lastModifiedAt\":\"2023-07-21T04:02:41.5998671Z\"},\"properties\":{\"storageAccountResourceId\":\"/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/teststoragemover/providers/Microsoft.Storage/storageAccounts/storaccdy0z54nl\",\"blobContainerName\":\"containerdy0z54nl\",\"endpointType\":\"AzureStorageBlobContainer\",\"provisioningState\":\"Succeeded\"}},{\"id\":\"/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/teststoragemover/providers/Microsoft.StorageMover/storageMovers/testmoverpreview1/endpoints/nfsEndpointdy0z54nl\",\"name\":\"nfsEndpointdy0z54nl\",\"type\":\"microsoft.storagemover/storagemovers/endpoints\",\"systemData\":{\"createdBy\":\"a000255f-5f09-45e0-a970-9d9ed9cc6453\",\"createdByType\":\"Application\",\"createdAt\":\"2023-07-21T04:02:42.6154831Z\",\"lastModifiedBy\":\"a000255f-5f09-45e0-a970-9d9ed9cc6453\",\"lastModifiedByType\":\"Application\",\"lastModifiedAt\":\"2023-07-21T04:02:42.6154831Z\"},\"properties\":{\"host\":\"10.0.0.1\",\"nfsVersion\":\"NFSauto\",\"export\":\"/\",\"endpointType\":\"NfsMount\",\"provisioningState\":\"Succeeded\"}},{\"id\":\"/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/teststoragemover/providers/Microsoft.StorageMover/storageMovers/testmoverpreview1/endpoints/containerEndpoint8p9yh1t3\",\"name\":\"containerEndpoint8p9yh1t3\",\"type\":\"microsoft.storagemover/storagemovers/endpoints\",\"systemData\":{\"createdBy\":\"a000255f-5f09-45e0-a970-9d9ed9cc6453\",\"createdByType\":\"Application\",\"createdAt\":\"2023-07-21T04:06:35.06982Z\",\"lastModifiedBy\":\"a000255f-5f09-45e0-a970-9d9ed9cc6453\",\"lastModifiedByType\":\"Application\",\"lastModifiedAt\":\"2023-07-21T04:06:35.06982Z\"},\"properties\":{\"storageAccountResourceId\":\"/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/teststoragemover/providers/Microsoft.Storage/storageAccounts/storacc8p9yh1t3\",\"blobContainerName\":\"container8p9yh1t3\",\"endpointType\":\"AzureStorageBlobContainer\",\"provisioningState\":\"Succeeded\"}},{\"id\":\"/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/teststoragemover/providers/Microsoft.StorageMover/storageMovers/testmoverpreview1/endpoints/nfsEndpoint8p9yh1t3\",\"name\":\"nfsEndpoint8p9yh1t3\",\"type\":\"microsoft.storagemover/storagemovers/endpoints\",\"systemData\":{\"createdBy\":\"a000255f-5f09-45e0-a970-9d9ed9cc6453\",\"createdByType\":\"Application\",\"createdAt\":\"2023-07-21T04:06:36.0072585Z\",\"lastModifiedBy\":\"a000255f-5f09-45e0-a970-9d9ed9cc6453\",\"lastModifiedByType\":\"Application\",\"lastModifiedAt\":\"2023-07-21T04:06:36.0072585Z\"},\"properties\":{\"host\":\"10.0.0.1\",\"nfsVersion\":\"NFSauto\",\"export\":\"/\",\"endpointType\":\"NfsMount\",\"provisioningState\":\"Succeeded\"}},{\"id\":\"/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/teststoragemover/providers/Microsoft.StorageMover/storageMovers/testmoverpreview1/endpoints/containerEndpointhc715gxy\",\"name\":\"containerEndpointhc715gxy\",\"type\":\"microsoft.storagemover/storagemovers/endpoints\",\"systemData\":{\"createdBy\":\"a000255f-5f09-45e0-a970-9d9ed9cc6453\",\"createdByType\":\"Application\",\"createdAt\":\"2023-07-21T04:28:55.890165Z\",\"lastModifiedBy\":\"a000255f-5f09-45e0-a970-9d9ed9cc6453\",\"lastModifiedByType\":\"Application\",\"lastModifiedAt\":\"2023-07-21T04:28:55.890165Z\"},\"properties\":{\"storageAccountResourceId\":\"/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/teststoragemover/providers/Microsoft.Storage/storageAccounts/storacchc715gxy\",\"blobContainerName\":\"containerhc715gxy\",\"endpointType\":\"AzureStorageBlobContainer\",\"provisioningState\":\"Succeeded\"}},{\"id\":\"/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/teststoragemover/providers/Microsoft.StorageMover/storageMovers/testmoverpreview1/endpoints/nfsEndpointhc715gxy\",\"name\":\"nfsEndpointhc715gxy\",\"type\":\"microsoft.storagemover/storagemovers/endpoints\",\"systemData\":{\"createdBy\":\"a000255f-5f09-45e0-a970-9d9ed9cc6453\",\"createdByType\":\"Application\",\"createdAt\":\"2023-07-21T04:28:56.9288302Z\",\"lastModifiedBy\":\"a000255f-5f09-45e0-a970-9d9ed9cc6453\",\"lastModifiedByType\":\"Application\",\"lastModifiedAt\":\"2023-07-21T04:28:56.9288302Z\"},\"properties\":{\"host\":\"10.0.0.1\",\"nfsVersion\":\"NFSauto\",\"export\":\"/\",\"endpointType\":\"NfsMount\",\"provisioningState\":\"Succeeded\"}}]}", "isContentBase64": false } }, - "Get-AzStorageMoverEndpoint+[NoContext]+Get+$GET+https://management.azure.com/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/testStorageMover/providers/Microsoft.StorageMover/storageMovers/testStorageMover2/endpoints/containerEndpoint4068b735?api-version=2023-03-01+1": { + "Get-AzStorageMoverEndpoint+[NoContext]+Get+$GET+https://management.azure.com/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/teststoragemover/providers/Microsoft.StorageMover/storageMovers/testmoverpreview1/endpoints/containerEndpointhc715gxy?api-version=2023-10-01+1": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/testStorageMover/providers/Microsoft.StorageMover/storageMovers/testStorageMover2/endpoints/containerEndpoint4068b735?api-version=2023-03-01", + "RequestUri": "https://management.azure.com/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/teststoragemover/providers/Microsoft.StorageMover/storageMovers/testmoverpreview1/endpoints/containerEndpointhc715gxy?api-version=2023-10-01", "Content": null, "isContentBase64": false, "Headers": { "x-ms-unique-id": [ "13" ], - "x-ms-client-request-id": [ "5f0e0c5a-8682-4844-8eaa-a5c129bd76b1" ], + "x-ms-client-request-id": [ "99466488-54bb-4555-9eae-a171d418f323" ], "CommandName": [ "Get-AzStorageMoverEndpoint" ], "FullCommandName": [ "Get-AzStorageMoverEndpoint_Get" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v8.0.0", "PSVersion/v7.2.5", "Az.StorageMover/0.1.0" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.2.12", "Az.StorageMover/1.0.1" ], "Authorization": [ "[Filtered]" ] }, "ContentHeaders": { @@ -63,38 +63,38 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "ETag": [ "\"000064e5-0000-3400-0000-62e8b7b00000\"" ], - "x-ms-ratelimit-remaining-subscription-reads": [ "11985" ], + "ETag": [ "\"2d011648-0000-3400-0000-64ba09880000\"" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11993" ], "x-ms-providerhub-traffic": [ "True" ], - "x-ms-request-id": [ "e7b55d4d-2390-4965-b0cc-397a60d1f07f" ], - "x-ms-correlation-request-id": [ "2f9d8e1f-f758-418b-b17d-917700897b5d" ], - "x-ms-routing-request-id": [ "SOUTHEASTASIA:20220802T053558Z:2f9d8e1f-f758-418b-b17d-917700897b5d" ], + "x-ms-request-id": [ "eb4eb549-9c3f-408f-8fac-2485b63db04f" ], + "x-ms-correlation-request-id": [ "791d581e-d660-4518-9c93-4cca8dedc217" ], + "x-ms-routing-request-id": [ "EASTUS2EUAP:20230721T042907Z:791d581e-d660-4518-9c93-4cca8dedc217" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "X-Content-Type-Options": [ "nosniff" ], - "Date": [ "Tue, 02 Aug 2022 05:35:58 GMT" ] + "Date": [ "Fri, 21 Jul 2023 04:29:06 GMT" ] }, "ContentHeaders": { - "Content-Length": [ "865" ], + "Content-Length": [ "863" ], "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"id\":\"/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/testStorageMover/providers/Microsoft.StorageMover/storageMovers/testStorageMover2/endpoints/containerEndpoint4068b735\",\"name\":\"containerEndpoint4068b735\",\"type\":\"microsoft.storagemover/storagemovers/endpoints\",\"systemData\":{\"createdBy\":\"a000255f-5f09-45e0-a970-9d9ed9cc6453\",\"createdByType\":\"Application\",\"createdAt\":\"2022-08-02T05:35:43.5299027Z\",\"lastModifiedBy\":\"a000255f-5f09-45e0-a970-9d9ed9cc6453\",\"lastModifiedByType\":\"Application\",\"lastModifiedAt\":\"2022-08-02T05:35:43.5299027Z\"},\"properties\":{\"endpointType\":\"AzureStorageBlobContainer\",\"storageAccountResourceId\":\"/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/testStorageMover/providers/Microsoft.Storage/storageAccounts/storacc4068b735\",\"blobContainerName\":\"container4068b735\",\"provisioningState\":\"Succeeded\"}}", + "Content": "{\"id\":\"/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/teststoragemover/providers/Microsoft.StorageMover/storageMovers/testmoverpreview1/endpoints/containerEndpointhc715gxy\",\"name\":\"containerEndpointhc715gxy\",\"type\":\"microsoft.storagemover/storagemovers/endpoints\",\"systemData\":{\"createdBy\":\"a000255f-5f09-45e0-a970-9d9ed9cc6453\",\"createdByType\":\"Application\",\"createdAt\":\"2023-07-21T04:28:55.890165Z\",\"lastModifiedBy\":\"a000255f-5f09-45e0-a970-9d9ed9cc6453\",\"lastModifiedByType\":\"Application\",\"lastModifiedAt\":\"2023-07-21T04:28:55.890165Z\"},\"properties\":{\"storageAccountResourceId\":\"/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/teststoragemover/providers/Microsoft.Storage/storageAccounts/storacchc715gxy\",\"blobContainerName\":\"containerhc715gxy\",\"endpointType\":\"AzureStorageBlobContainer\",\"provisioningState\":\"Succeeded\"}}", "isContentBase64": false } }, - "Get-AzStorageMoverEndpoint+[NoContext]+Get+$GET+https://management.azure.com/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/testStorageMover/providers/Microsoft.StorageMover/storageMovers/testStorageMover2/endpoints/nfsEndpoint4068b735?api-version=2023-03-01+2": { + "Get-AzStorageMoverEndpoint+[NoContext]+Get+$GET+https://management.azure.com/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/teststoragemover/providers/Microsoft.StorageMover/storageMovers/testmoverpreview1/endpoints/nfsEndpointhc715gxy?api-version=2023-10-01+2": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/testStorageMover/providers/Microsoft.StorageMover/storageMovers/testStorageMover2/endpoints/nfsEndpoint4068b735?api-version=2023-03-01", + "RequestUri": "https://management.azure.com/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/teststoragemover/providers/Microsoft.StorageMover/storageMovers/testmoverpreview1/endpoints/nfsEndpointhc715gxy?api-version=2023-10-01", "Content": null, "isContentBase64": false, "Headers": { "x-ms-unique-id": [ "14" ], - "x-ms-client-request-id": [ "1c258e81-1a1d-41e6-9a5b-e4f6aba126c0" ], + "x-ms-client-request-id": [ "3abf75f3-74ef-4039-8e8f-3142d499aabf" ], "CommandName": [ "Get-AzStorageMoverEndpoint" ], "FullCommandName": [ "Get-AzStorageMoverEndpoint_Get" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v8.0.0", "PSVersion/v7.2.5", "Az.StorageMover/0.1.0" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.2.12", "Az.StorageMover/1.0.1" ], "Authorization": [ "[Filtered]" ] }, "ContentHeaders": { @@ -105,22 +105,22 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "ETag": [ "\"000065e5-0000-3400-0000-62e8b7b10000\"" ], - "x-ms-ratelimit-remaining-subscription-reads": [ "11984" ], + "ETag": [ "\"2d011848-0000-3400-0000-64ba09890000\"" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11992" ], "x-ms-providerhub-traffic": [ "True" ], - "x-ms-request-id": [ "4c69381d-f614-4dea-92d7-632f733a9a69" ], - "x-ms-correlation-request-id": [ "f1d35854-a490-4310-9768-79b018644204" ], - "x-ms-routing-request-id": [ "SOUTHEASTASIA:20220802T053559Z:f1d35854-a490-4310-9768-79b018644204" ], + "x-ms-request-id": [ "00216443-4b55-4c5f-946b-d92e0c1b9a22" ], + "x-ms-correlation-request-id": [ "a3d6a397-4bfe-4709-99a4-b5617b64a056" ], + "x-ms-routing-request-id": [ "EASTUS2EUAP:20230721T042907Z:a3d6a397-4bfe-4709-99a4-b5617b64a056" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "X-Content-Type-Options": [ "nosniff" ], - "Date": [ "Tue, 02 Aug 2022 05:35:59 GMT" ] + "Date": [ "Fri, 21 Jul 2023 04:29:07 GMT" ] }, "ContentHeaders": { - "Content-Length": [ "654" ], + "Content-Length": [ "677" ], "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"id\":\"/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/testStorageMover/providers/Microsoft.StorageMover/storageMovers/testStorageMover2/endpoints/nfsEndpoint4068b735\",\"name\":\"nfsEndpoint4068b735\",\"type\":\"microsoft.storagemover/storagemovers/endpoints\",\"systemData\":{\"createdBy\":\"a000255f-5f09-45e0-a970-9d9ed9cc6453\",\"createdByType\":\"Application\",\"createdAt\":\"2022-08-02T05:35:45.1079755Z\",\"lastModifiedBy\":\"a000255f-5f09-45e0-a970-9d9ed9cc6453\",\"lastModifiedByType\":\"Application\",\"lastModifiedAt\":\"2022-08-02T05:35:45.1079755Z\"},\"properties\":{\"endpointType\":\"NfsMount\",\"host\":\"10.0.0.1\",\"export\":\"/\",\"provisioningState\":\"Succeeded\"}}", + "Content": "{\"id\":\"/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/teststoragemover/providers/Microsoft.StorageMover/storageMovers/testmoverpreview1/endpoints/nfsEndpointhc715gxy\",\"name\":\"nfsEndpointhc715gxy\",\"type\":\"microsoft.storagemover/storagemovers/endpoints\",\"systemData\":{\"createdBy\":\"a000255f-5f09-45e0-a970-9d9ed9cc6453\",\"createdByType\":\"Application\",\"createdAt\":\"2023-07-21T04:28:56.9288302Z\",\"lastModifiedBy\":\"a000255f-5f09-45e0-a970-9d9ed9cc6453\",\"lastModifiedByType\":\"Application\",\"lastModifiedAt\":\"2023-07-21T04:28:56.9288302Z\"},\"properties\":{\"host\":\"10.0.0.1\",\"nfsVersion\":\"NFSauto\",\"export\":\"/\",\"endpointType\":\"NfsMount\",\"provisioningState\":\"Succeeded\"}}", "isContentBase64": false } } diff --git a/src/StorageMover/test/Get-AzStorageMoverJobDefinition.Recording.json b/src/StorageMover/test/Get-AzStorageMoverJobDefinition.Recording.json index fde18d441678..c5315c37fe14 100644 --- a/src/StorageMover/test/Get-AzStorageMoverJobDefinition.Recording.json +++ b/src/StorageMover/test/Get-AzStorageMoverJobDefinition.Recording.json @@ -1,17 +1,17 @@ { - "Get-AzStorageMoverJobDefinition+[NoContext]+List+$GET+https://management.azure.com/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/testStorageMover/providers/Microsoft.StorageMover/storageMovers/testStorageMover2/projects/testProject4068b735/jobDefinitions?api-version=2023-03-01+1": { + "Get-AzStorageMoverJobDefinition+[NoContext]+List+$GET+https://management.azure.com/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/teststoragemover/providers/Microsoft.StorageMover/storageMovers/testmoverpreview1/projects/testProjecthc715gxy/jobDefinitions?api-version=2023-10-01+1": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/testStorageMover/providers/Microsoft.StorageMover/storageMovers/testStorageMover2/projects/testProject4068b735/jobDefinitions?api-version=2023-03-01", + "RequestUri": "https://management.azure.com/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/teststoragemover/providers/Microsoft.StorageMover/storageMovers/testmoverpreview1/projects/testProjecthc715gxy/jobDefinitions?api-version=2023-10-01", "Content": null, "isContentBase64": false, "Headers": { "x-ms-unique-id": [ "15" ], - "x-ms-client-request-id": [ "387e33a7-26dc-4cd5-99ad-c7288f244004" ], + "x-ms-client-request-id": [ "0ca8f1ad-9880-4414-825b-7f83948333c9" ], "CommandName": [ "Get-AzStorageMoverJobDefinition" ], "FullCommandName": [ "Get-AzStorageMoverJobDefinition_List" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v8.0.0", "PSVersion/v7.2.5", "Az.StorageMover/0.1.0" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.2.12", "Az.StorageMover/1.0.1" ], "Authorization": [ "[Filtered]" ] }, "ContentHeaders": { @@ -22,37 +22,37 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "x-ms-ratelimit-remaining-subscription-reads": [ "11983" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11991" ], "x-ms-providerhub-traffic": [ "True" ], - "x-ms-request-id": [ "569a2793-1594-4682-8a6c-98dd750927ac" ], - "x-ms-correlation-request-id": [ "ac0493f4-d4fb-486b-8d66-252667cbec82" ], - "x-ms-routing-request-id": [ "SOUTHEASTASIA:20220802T053601Z:ac0493f4-d4fb-486b-8d66-252667cbec82" ], + "x-ms-request-id": [ "2a383de6-5b37-41b0-8bfd-b9d220936d20" ], + "x-ms-correlation-request-id": [ "81726266-1484-4eea-b8cc-df7b6ddd9b17" ], + "x-ms-routing-request-id": [ "EASTUS2EUAP:20230721T042908Z:81726266-1484-4eea-b8cc-df7b6ddd9b17" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "X-Content-Type-Options": [ "nosniff" ], - "Date": [ "Tue, 02 Aug 2022 05:36:00 GMT" ] + "Date": [ "Fri, 21 Jul 2023 04:29:07 GMT" ] }, "ContentHeaders": { - "Content-Length": [ "772" ], + "Content-Length": [ "1365" ], "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"value\":[{\"id\":\"/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/testStorageMover/providers/Microsoft.StorageMover/storageMovers/testStorageMover2/projects/testProject4068b735/jobDefinitions/testJob4068b735\",\"name\":\"testJob4068b735\",\"type\":\"microsoft.storagemover/storagemovers/projects/jobdefinitions\",\"systemData\":{\"createdBy\":\"a000255f-5f09-45e0-a970-9d9ed9cc6453\",\"createdByType\":\"Application\",\"createdAt\":\"2022-08-02T05:35:50.5298749Z\",\"lastModifiedBy\":\"a000255f-5f09-45e0-a970-9d9ed9cc6453\",\"lastModifiedByType\":\"Application\",\"lastModifiedAt\":\"2022-08-02T05:35:50.5298749Z\"},\"properties\":{\"copyMode\":\"Additive\",\"sourceName\":\"nfsEndpoint4068b735\",\"targetName\":\"containerEndpoint4068b735\",\"agentName\":\"testagent7\",\"provisioningState\":\"Succeeded\"}}]}", + "Content": "{\"value\":[{\"id\":\"/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/teststoragemover/providers/Microsoft.StorageMover/storageMovers/testmoverpreview1/projects/testProjecthc715gxy/jobDefinitions/testJobhc715gxy\",\"name\":\"testJobhc715gxy\",\"type\":\"microsoft.storagemover/storagemovers/projects/jobdefinitions\",\"systemData\":{\"createdBy\":\"a000255f-5f09-45e0-a970-9d9ed9cc6453\",\"createdByType\":\"Application\",\"createdAt\":\"2023-07-21T04:28:59.9756967Z\",\"lastModifiedBy\":\"a000255f-5f09-45e0-a970-9d9ed9cc6453\",\"lastModifiedByType\":\"Application\",\"lastModifiedAt\":\"2023-07-21T04:28:59.9756967Z\"},\"properties\":{\"copyMode\":\"Additive\",\"sourceName\":\"nfsEndpointhc715gxy\",\"sourceResourceId\":\"/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/teststoragemover/providers/Microsoft.StorageMover/storageMovers/testmoverpreview1/endpoints/nfsEndpointhc715gxy\",\"targetName\":\"containerEndpointhc715gxy\",\"targetResourceId\":\"/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/teststoragemover/providers/Microsoft.StorageMover/storageMovers/testmoverpreview1/endpoints/containerEndpointhc715gxy\",\"agentName\":\"testagent1\",\"agentResourceId\":\"/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/teststoragemover/providers/Microsoft.StorageMover/storageMovers/testmoverpreview1/agents/testagent1\",\"provisioningState\":\"Succeeded\"}}]}", "isContentBase64": false } }, - "Get-AzStorageMoverJobDefinition+[NoContext]+Get+$GET+https://management.azure.com/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/testStorageMover/providers/Microsoft.StorageMover/storageMovers/testStorageMover2/projects/testProject4068b735/jobDefinitions/testJob4068b735?api-version=2023-03-01+1": { + "Get-AzStorageMoverJobDefinition+[NoContext]+Get+$GET+https://management.azure.com/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/teststoragemover/providers/Microsoft.StorageMover/storageMovers/testmoverpreview1/projects/testProjecthc715gxy/jobDefinitions/testJobhc715gxy?api-version=2023-10-01+1": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/testStorageMover/providers/Microsoft.StorageMover/storageMovers/testStorageMover2/projects/testProject4068b735/jobDefinitions/testJob4068b735?api-version=2023-03-01", + "RequestUri": "https://management.azure.com/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/teststoragemover/providers/Microsoft.StorageMover/storageMovers/testmoverpreview1/projects/testProjecthc715gxy/jobDefinitions/testJobhc715gxy?api-version=2023-10-01", "Content": null, "isContentBase64": false, "Headers": { "x-ms-unique-id": [ "16" ], - "x-ms-client-request-id": [ "d8a4c75a-591a-4b9f-b685-46bfa0478066" ], + "x-ms-client-request-id": [ "318fa52d-8b21-4e00-b01f-8ce827d7eefd" ], "CommandName": [ "Get-AzStorageMoverJobDefinition" ], "FullCommandName": [ "Get-AzStorageMoverJobDefinition_Get" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v8.0.0", "PSVersion/v7.2.5", "Az.StorageMover/0.1.0" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.2.12", "Az.StorageMover/1.0.1" ], "Authorization": [ "[Filtered]" ] }, "ContentHeaders": { @@ -63,22 +63,22 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "ETag": [ "\"00004e9e-0000-3400-0000-62e8b7b70000\"" ], - "x-ms-ratelimit-remaining-subscription-reads": [ "11982" ], + "ETag": [ "\"0100622c-0000-3400-0000-64ba098c0000\"" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11990" ], "x-ms-providerhub-traffic": [ "True" ], - "x-ms-request-id": [ "39bb4298-78a4-46b0-95c4-b472ab293cd6" ], - "x-ms-correlation-request-id": [ "f8820085-1b72-4f2b-aaea-cd2c15d52ce4" ], - "x-ms-routing-request-id": [ "SOUTHEASTASIA:20220802T053602Z:f8820085-1b72-4f2b-aaea-cd2c15d52ce4" ], + "x-ms-request-id": [ "c774bb66-04c7-41aa-a8f5-3ded791010c2" ], + "x-ms-correlation-request-id": [ "80ec3de1-5e46-444a-946a-688fff5435e3" ], + "x-ms-routing-request-id": [ "EASTUS2EUAP:20230721T042909Z:80ec3de1-5e46-444a-946a-688fff5435e3" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "X-Content-Type-Options": [ "nosniff" ], - "Date": [ "Tue, 02 Aug 2022 05:36:01 GMT" ] + "Date": [ "Fri, 21 Jul 2023 04:29:09 GMT" ] }, "ContentHeaders": { - "Content-Length": [ "760" ], + "Content-Length": [ "1353" ], "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"id\":\"/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/testStorageMover/providers/Microsoft.StorageMover/storageMovers/testStorageMover2/projects/testProject4068b735/jobDefinitions/testJob4068b735\",\"name\":\"testJob4068b735\",\"type\":\"microsoft.storagemover/storagemovers/projects/jobdefinitions\",\"systemData\":{\"createdBy\":\"a000255f-5f09-45e0-a970-9d9ed9cc6453\",\"createdByType\":\"Application\",\"createdAt\":\"2022-08-02T05:35:50.5298749Z\",\"lastModifiedBy\":\"a000255f-5f09-45e0-a970-9d9ed9cc6453\",\"lastModifiedByType\":\"Application\",\"lastModifiedAt\":\"2022-08-02T05:35:50.5298749Z\"},\"properties\":{\"copyMode\":\"Additive\",\"sourceName\":\"nfsEndpoint4068b735\",\"targetName\":\"containerEndpoint4068b735\",\"agentName\":\"testagent7\",\"provisioningState\":\"Succeeded\"}}", + "Content": "{\"id\":\"/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/teststoragemover/providers/Microsoft.StorageMover/storageMovers/testmoverpreview1/projects/testProjecthc715gxy/jobDefinitions/testJobhc715gxy\",\"name\":\"testJobhc715gxy\",\"type\":\"microsoft.storagemover/storagemovers/projects/jobdefinitions\",\"systemData\":{\"createdBy\":\"a000255f-5f09-45e0-a970-9d9ed9cc6453\",\"createdByType\":\"Application\",\"createdAt\":\"2023-07-21T04:28:59.9756967Z\",\"lastModifiedBy\":\"a000255f-5f09-45e0-a970-9d9ed9cc6453\",\"lastModifiedByType\":\"Application\",\"lastModifiedAt\":\"2023-07-21T04:28:59.9756967Z\"},\"properties\":{\"copyMode\":\"Additive\",\"sourceName\":\"nfsEndpointhc715gxy\",\"sourceResourceId\":\"/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/teststoragemover/providers/Microsoft.StorageMover/storageMovers/testmoverpreview1/endpoints/nfsEndpointhc715gxy\",\"targetName\":\"containerEndpointhc715gxy\",\"targetResourceId\":\"/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/teststoragemover/providers/Microsoft.StorageMover/storageMovers/testmoverpreview1/endpoints/containerEndpointhc715gxy\",\"agentName\":\"testagent1\",\"agentResourceId\":\"/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/teststoragemover/providers/Microsoft.StorageMover/storageMovers/testmoverpreview1/agents/testagent1\",\"provisioningState\":\"Succeeded\"}}", "isContentBase64": false } } diff --git a/src/StorageMover/test/Get-AzStorageMoverJobRun.Recording.json b/src/StorageMover/test/Get-AzStorageMoverJobRun.Recording.json index 600268c49ee9..a2d2c479fe26 100644 --- a/src/StorageMover/test/Get-AzStorageMoverJobRun.Recording.json +++ b/src/StorageMover/test/Get-AzStorageMoverJobRun.Recording.json @@ -1,17 +1,17 @@ { - "Get-AzStorageMoverJobRun+[NoContext]+[NoScenario]+$POST+https://management.azure.com/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/testStorageMover/providers/Microsoft.StorageMover/storageMovers/testStorageMover2/projects/testProject4068b735/jobDefinitions/testJob4068b735/startJob?api-version=2023-03-01+1": { + "Get-AzStorageMoverJobRun+[NoContext]+Get/List JobRun, Start/Stop JobDefinition+$POST+https://management.azure.com/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/teststoragemover/providers/Microsoft.StorageMover/storageMovers/testmoverpreview1/projects/testProjecthc715gxy/jobDefinitions/testJobhc715gxy/startJob?api-version=2023-10-01+1": { "Request": { "Method": "POST", - "RequestUri": "https://management.azure.com/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/testStorageMover/providers/Microsoft.StorageMover/storageMovers/testStorageMover2/projects/testProject4068b735/jobDefinitions/testJob4068b735/startJob?api-version=2023-03-01", + "RequestUri": "https://management.azure.com/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/teststoragemover/providers/Microsoft.StorageMover/storageMovers/testmoverpreview1/projects/testProjecthc715gxy/jobDefinitions/testJobhc715gxy/startJob?api-version=2023-10-01", "Content": null, "isContentBase64": false, "Headers": { "x-ms-unique-id": [ "17" ], - "x-ms-client-request-id": [ "e95958a1-4ddf-4e98-bd21-f544683228fe" ], + "x-ms-client-request-id": [ "787dab9a-c8bf-4a79-9ac9-b8af7c276487" ], "CommandName": [ "Start-AzStorageMoverJobDefinition" ], "FullCommandName": [ "Start-AzStorageMoverJobDefinition_Start" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v8.0.0", "PSVersion/v7.2.5", "Az.StorageMover/0.1.0" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.2.12", "Az.StorageMover/1.0.1" ], "Authorization": [ "[Filtered]" ] }, "ContentHeaders": { @@ -24,36 +24,36 @@ "Pragma": [ "no-cache" ], "x-ms-ratelimit-remaining-subscription-writes": [ "1199" ], "x-ms-providerhub-traffic": [ "True" ], - "mise-correlation-id": [ "0e866925-3fda-4c3e-b012-427b86a35429" ], - "x-ms-request-id": [ "4f2d11cc-ccba-441e-a8b2-853d4fedf99d" ], - "x-ms-correlation-request-id": [ "de82e3e0-46c5-4163-9669-cb88994d58d3" ], - "x-ms-routing-request-id": [ "SOUTHEASTASIA:20220802T053603Z:de82e3e0-46c5-4163-9669-cb88994d58d3" ], + "mise-correlation-id": [ "767ca076-60ed-4a5f-acf2-e26d9fd39454" ], + "x-ms-request-id": [ "e938ed41-0e04-4dcd-adcf-6c6a86d0de21" ], + "x-ms-correlation-request-id": [ "b3565859-4f88-44e3-bf5d-b1eb30b8c38e" ], + "x-ms-routing-request-id": [ "EASTUS2EUAP:20230721T042911Z:b3565859-4f88-44e3-bf5d-b1eb30b8c38e" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "X-Content-Type-Options": [ "nosniff" ], - "Date": [ "Tue, 02 Aug 2022 05:36:03 GMT" ] + "Date": [ "Fri, 21 Jul 2023 04:29:11 GMT" ] }, "ContentHeaders": { "Content-Length": [ "276" ], "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"jobRunResourceId\":\"/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/testStorageMover/providers/Microsoft.StorageMover/storageMovers/testStorageMover2/projects/testProject4068b735/jobDefinitions/testJob4068b735/jobRuns/f909f4b3-699c-46f2-a06c-d402080f42dc\"}", + "Content": "{\"jobRunResourceId\":\"/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/teststoragemover/providers/Microsoft.StorageMover/storageMovers/testmoverpreview1/projects/testProjecthc715gxy/jobDefinitions/testJobhc715gxy/jobRuns/0ce4bf6c-4d67-4351-a663-b576830de65c\"}", "isContentBase64": false } }, - "Get-AzStorageMoverJobRun+[NoContext]+List+$GET+https://management.azure.com/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/testStorageMover/providers/Microsoft.StorageMover/storageMovers/testStorageMover2/projects/testProject4068b735/jobDefinitions/testJob4068b735/jobRuns?api-version=2023-03-01+1": { + "Get-AzStorageMoverJobRun+[NoContext]+Get/List JobRun, Start/Stop JobDefinition+$GET+https://management.azure.com/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/teststoragemover/providers/Microsoft.StorageMover/storageMovers/testmoverpreview1/projects/testProjecthc715gxy/jobDefinitions/testJobhc715gxy/jobRuns?api-version=2023-10-01+2": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/testStorageMover/providers/Microsoft.StorageMover/storageMovers/testStorageMover2/projects/testProject4068b735/jobDefinitions/testJob4068b735/jobRuns?api-version=2023-03-01", + "RequestUri": "https://management.azure.com/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/teststoragemover/providers/Microsoft.StorageMover/storageMovers/testmoverpreview1/projects/testProjecthc715gxy/jobDefinitions/testJobhc715gxy/jobRuns?api-version=2023-10-01", "Content": null, "isContentBase64": false, "Headers": { "x-ms-unique-id": [ "18" ], - "x-ms-client-request-id": [ "1fb9e904-3d94-4971-9ccc-b9d17a9093d0" ], + "x-ms-client-request-id": [ "0e687fd3-5e70-43a3-bfbd-ad4246024937" ], "CommandName": [ "Get-AzStorageMoverJobRun" ], "FullCommandName": [ "Get-AzStorageMoverJobRun_List" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v8.0.0", "PSVersion/v7.2.5", "Az.StorageMover/0.1.0" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.2.12", "Az.StorageMover/1.0.1" ], "Authorization": [ "[Filtered]" ] }, "ContentHeaders": { @@ -64,37 +64,37 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "x-ms-ratelimit-remaining-subscription-reads": [ "11981" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11989" ], "x-ms-providerhub-traffic": [ "True" ], - "x-ms-request-id": [ "ce5f9dc0-2443-4b6a-a3c3-5632b8966013" ], - "x-ms-correlation-request-id": [ "0af90e33-9804-40a0-8e99-f2e3b45153c4" ], - "x-ms-routing-request-id": [ "SOUTHEASTASIA:20220802T053604Z:0af90e33-9804-40a0-8e99-f2e3b45153c4" ], + "x-ms-request-id": [ "41633edf-f876-499f-9e67-b012aa6336fe" ], + "x-ms-correlation-request-id": [ "828d2711-aaab-4cd6-9c9c-d4f85f813913" ], + "x-ms-routing-request-id": [ "EASTUS2EUAP:20230721T042912Z:828d2711-aaab-4cd6-9c9c-d4f85f813913" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "X-Content-Type-Options": [ "nosniff" ], - "Date": [ "Tue, 02 Aug 2022 05:36:04 GMT" ] + "Date": [ "Fri, 21 Jul 2023 04:29:12 GMT" ] }, "ContentHeaders": { - "Content-Length": [ "2379" ], + "Content-Length": [ "3150" ], "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"value\":[{\"id\":\"/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/testStorageMover/providers/Microsoft.StorageMover/storageMovers/testStorageMover2/projects/testProject4068b735/jobDefinitions/testJob4068b735/jobRuns/f909f4b3-699c-46f2-a06c-d402080f42dc\",\"name\":\"f909f4b3-699c-46f2-a06c-d402080f42dc\",\"type\":\"microsoft.storagemover/storagemovers/projects/jobdefinitions/jobruns\",\"systemData\":{\"createdBy\":\"aed824f0-6446-4ef9-9e17-98b0157c09dc\",\"createdByType\":\"Application\",\"createdAt\":\"2022-08-02T05:36:03.24361Z\",\"lastModifiedBy\":\"aed824f0-6446-4ef9-9e17-98b0157c09dc\",\"lastModifiedByType\":\"Application\",\"lastModifiedAt\":\"2022-08-02T05:36:03.24361Z\"},\"properties\":{\"status\":\"Queued\",\"agentName\":\"testagent7\",\"agentResourceId\":\"/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/testStorageMover/providers/microsoft.storagemover/storagemovers/testStorageMover2/agents/testagent7\",\"lastStatusUpdate\":\"2022-08-02T05:36:03.2458907Z\",\"sourceName\":\"nfsEndpoint4068b735\",\"sourceResourceId\":\"/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/testStorageMover/providers/Microsoft.StorageMover/storageMovers/testStorageMover2/endpoints/nfsEndpoint4068b735\",\"sourceProperties\":{\"host\":\"10.0.0.1\",\"nfsVersion\":\"NFSauto\",\"export\":\"/\",\"endpointType\":\"NfsMount\"},\"targetName\":\"containerEndpoint4068b735\",\"targetResourceId\":\"/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/testStorageMover/providers/Microsoft.StorageMover/storageMovers/testStorageMover2/endpoints/containerEndpoint4068b735\",\"targetProperties\":{\"storageAccountResourceId\":\"/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/testStorageMover/providers/Microsoft.Storage/storageAccounts/storacc4068b735\",\"blobContainerName\":\"container4068b735\",\"endpointType\":\"AzureStorageBlobContainer\"},\"jobDefinitionProperties\":{\"copyMode\":\"Additive\",\"sourceName\":\"nfsEndpoint4068b735\",\"targetName\":\"containerEndpoint4068b735\",\"latestJobRunName\":\"f909f4b3-699c-46f2-a06c-d402080f42dc\",\"latestJobRunResourceId\":\"/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/testStorageMover/providers/Microsoft.StorageMover/storageMovers/testStorageMover2/projects/testProject4068b735/jobDefinitions/testJob4068b735/jobRuns/f909f4b3-699c-46f2-a06c-d402080f42dc\",\"latestJobRunStatus\":\"Queued\",\"agentName\":\"testagent7\"},\"provisioningState\":\"Succeeded\"}}]}", + "Content": "{\"value\":[{\"id\":\"/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/teststoragemover/providers/Microsoft.StorageMover/storageMovers/testmoverpreview1/projects/testProjecthc715gxy/jobDefinitions/testJobhc715gxy/jobRuns/0ce4bf6c-4d67-4351-a663-b576830de65c\",\"name\":\"0ce4bf6c-4d67-4351-a663-b576830de65c\",\"type\":\"microsoft.storagemover/storagemovers/projects/jobdefinitions/jobruns\",\"systemData\":{\"createdBy\":\"aed824f0-6446-4ef9-9e17-98b0157c09dc\",\"createdByType\":\"Application\",\"createdAt\":\"2023-07-21T04:29:11.5452602Z\",\"lastModifiedBy\":\"aed824f0-6446-4ef9-9e17-98b0157c09dc\",\"lastModifiedByType\":\"Application\",\"lastModifiedAt\":\"2023-07-21T04:29:11.5452602Z\"},\"properties\":{\"status\":\"Queued\",\"agentName\":\"testagent1\",\"agentResourceId\":\"/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/teststoragemover/providers/Microsoft.StorageMover/storageMovers/testmoverpreview1/agents/testagent1\",\"lastStatusUpdate\":\"2023-07-21T04:29:11.4731344Z\",\"sourceName\":\"nfsEndpointhc715gxy\",\"sourceResourceId\":\"/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/teststoragemover/providers/Microsoft.StorageMover/storageMovers/testmoverpreview1/endpoints/nfsEndpointhc715gxy\",\"sourceProperties\":{\"host\":\"10.0.0.1\",\"nfsVersion\":\"NFSauto\",\"export\":\"/\",\"endpointType\":\"NfsMount\",\"provisioningState\":\"Succeeded\"},\"targetName\":\"containerEndpointhc715gxy\",\"targetResourceId\":\"/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/teststoragemover/providers/Microsoft.StorageMover/storageMovers/testmoverpreview1/endpoints/containerEndpointhc715gxy\",\"targetProperties\":{\"storageAccountResourceId\":\"/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/teststoragemover/providers/Microsoft.Storage/storageAccounts/storacchc715gxy\",\"blobContainerName\":\"containerhc715gxy\",\"endpointType\":\"AzureStorageBlobContainer\",\"provisioningState\":\"Succeeded\"},\"jobDefinitionProperties\":{\"copyMode\":\"Additive\",\"sourceName\":\"nfsEndpointhc715gxy\",\"sourceResourceId\":\"/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/teststoragemover/providers/Microsoft.StorageMover/storageMovers/testmoverpreview1/endpoints/nfsEndpointhc715gxy\",\"targetName\":\"containerEndpointhc715gxy\",\"targetResourceId\":\"/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/teststoragemover/providers/Microsoft.StorageMover/storageMovers/testmoverpreview1/endpoints/containerEndpointhc715gxy\",\"latestJobRunName\":\"0ce4bf6c-4d67-4351-a663-b576830de65c\",\"latestJobRunResourceId\":\"/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/teststoragemover/providers/Microsoft.StorageMover/storageMovers/testmoverpreview1/projects/testProjecthc715gxy/jobDefinitions/testJobhc715gxy/jobRuns/0ce4bf6c-4d67-4351-a663-b576830de65c\",\"latestJobRunStatus\":\"Queued\",\"agentName\":\"testagent1\",\"agentResourceId\":\"/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/teststoragemover/providers/Microsoft.StorageMover/storageMovers/testmoverpreview1/agents/testagent1\",\"internalMetadata\":{\"jobDefinitionId\":\"27b8fd2d-4364-4c6d-a488-8eb3b268f134\"},\"provisioningState\":\"Succeeded\"},\"provisioningState\":\"Succeeded\"}}]}", "isContentBase64": false } }, - "Get-AzStorageMoverJobRun+[NoContext]+Get+$GET+https://management.azure.com/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/testStorageMover/providers/Microsoft.StorageMover/storageMovers/testStorageMover2/projects/testProject4068b735/jobDefinitions/testJob4068b735/jobRuns/f909f4b3-699c-46f2-a06c-d402080f42dc?api-version=2023-03-01+1": { + "Get-AzStorageMoverJobRun+[NoContext]+Get/List JobRun, Start/Stop JobDefinition+$GET+https://management.azure.com/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/teststoragemover/providers/Microsoft.StorageMover/storageMovers/testmoverpreview1/projects/testProjecthc715gxy/jobDefinitions/testJobhc715gxy/jobRuns/0ce4bf6c-4d67-4351-a663-b576830de65c?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/testStorageMover2/projects/testProject4068b735/jobDefinitions/testJob4068b735/jobRuns/f909f4b3-699c-46f2-a06c-d402080f42dc?api-version=2023-03-01", + "RequestUri": "https://management.azure.com/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/teststoragemover/providers/Microsoft.StorageMover/storageMovers/testmoverpreview1/projects/testProjecthc715gxy/jobDefinitions/testJobhc715gxy/jobRuns/0ce4bf6c-4d67-4351-a663-b576830de65c?api-version=2023-10-01", "Content": null, "isContentBase64": false, "Headers": { "x-ms-unique-id": [ "19" ], - "x-ms-client-request-id": [ "df7d6857-7be9-4789-b54d-0e188fb7f611" ], + "x-ms-client-request-id": [ "c5c0ab5b-c613-43c7-96fd-c82bb1d72979" ], "CommandName": [ "Get-AzStorageMoverJobRun" ], "FullCommandName": [ "Get-AzStorageMoverJobRun_Get" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v8.0.0", "PSVersion/v7.2.5", "Az.StorageMover/0.1.0" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.2.12", "Az.StorageMover/1.0.1" ], "Authorization": [ "[Filtered]" ] }, "ContentHeaders": { @@ -105,22 +105,64 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "ETag": [ "\"0000519e-0000-3400-0000-62e8b7c30000\"" ], - "x-ms-ratelimit-remaining-subscription-reads": [ "11980" ], + "ETag": [ "\"bc02111f-0000-3400-0000-64ba09970000\"" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11988" ], "x-ms-providerhub-traffic": [ "True" ], - "x-ms-request-id": [ "28e319fc-6405-49a1-b7f0-16889e33f188" ], - "x-ms-correlation-request-id": [ "14533a81-3bda-49ab-8155-88dc9902234a" ], - "x-ms-routing-request-id": [ "SOUTHEASTASIA:20220802T053606Z:14533a81-3bda-49ab-8155-88dc9902234a" ], + "x-ms-request-id": [ "5c71b29c-e3cb-4f66-ab97-95623407e055" ], + "x-ms-correlation-request-id": [ "b6cf9488-8dc7-4f91-ae9a-22908f26ae89" ], + "x-ms-routing-request-id": [ "EASTUS2EUAP:20230721T042913Z:b6cf9488-8dc7-4f91-ae9a-22908f26ae89" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "X-Content-Type-Options": [ "nosniff" ], - "Date": [ "Tue, 02 Aug 2022 05:36:05 GMT" ] + "Date": [ "Fri, 21 Jul 2023 04:29:12 GMT" ] }, "ContentHeaders": { - "Content-Length": [ "2367" ], + "Content-Length": [ "3138" ], "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"id\":\"/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/testStorageMover/providers/Microsoft.StorageMover/storageMovers/testStorageMover2/projects/testProject4068b735/jobDefinitions/testJob4068b735/jobRuns/f909f4b3-699c-46f2-a06c-d402080f42dc\",\"name\":\"f909f4b3-699c-46f2-a06c-d402080f42dc\",\"type\":\"microsoft.storagemover/storagemovers/projects/jobdefinitions/jobruns\",\"systemData\":{\"createdBy\":\"aed824f0-6446-4ef9-9e17-98b0157c09dc\",\"createdByType\":\"Application\",\"createdAt\":\"2022-08-02T05:36:03.24361Z\",\"lastModifiedBy\":\"aed824f0-6446-4ef9-9e17-98b0157c09dc\",\"lastModifiedByType\":\"Application\",\"lastModifiedAt\":\"2022-08-02T05:36:03.24361Z\"},\"properties\":{\"status\":\"Queued\",\"agentName\":\"testagent7\",\"agentResourceId\":\"/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/testStorageMover/providers/microsoft.storagemover/storagemovers/testStorageMover2/agents/testagent7\",\"lastStatusUpdate\":\"2022-08-02T05:36:03.2458907Z\",\"sourceName\":\"nfsEndpoint4068b735\",\"sourceResourceId\":\"/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/testStorageMover/providers/Microsoft.StorageMover/storageMovers/testStorageMover2/endpoints/nfsEndpoint4068b735\",\"sourceProperties\":{\"host\":\"10.0.0.1\",\"nfsVersion\":\"NFSauto\",\"export\":\"/\",\"endpointType\":\"NfsMount\"},\"targetName\":\"containerEndpoint4068b735\",\"targetResourceId\":\"/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/testStorageMover/providers/Microsoft.StorageMover/storageMovers/testStorageMover2/endpoints/containerEndpoint4068b735\",\"targetProperties\":{\"storageAccountResourceId\":\"/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/testStorageMover/providers/Microsoft.Storage/storageAccounts/storacc4068b735\",\"blobContainerName\":\"container4068b735\",\"endpointType\":\"AzureStorageBlobContainer\"},\"jobDefinitionProperties\":{\"copyMode\":\"Additive\",\"sourceName\":\"nfsEndpoint4068b735\",\"targetName\":\"containerEndpoint4068b735\",\"latestJobRunName\":\"f909f4b3-699c-46f2-a06c-d402080f42dc\",\"latestJobRunResourceId\":\"/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/testStorageMover/providers/Microsoft.StorageMover/storageMovers/testStorageMover2/projects/testProject4068b735/jobDefinitions/testJob4068b735/jobRuns/f909f4b3-699c-46f2-a06c-d402080f42dc\",\"latestJobRunStatus\":\"Queued\",\"agentName\":\"testagent7\"},\"provisioningState\":\"Succeeded\"}}", + "Content": "{\"id\":\"/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/teststoragemover/providers/Microsoft.StorageMover/storageMovers/testmoverpreview1/projects/testProjecthc715gxy/jobDefinitions/testJobhc715gxy/jobRuns/0ce4bf6c-4d67-4351-a663-b576830de65c\",\"name\":\"0ce4bf6c-4d67-4351-a663-b576830de65c\",\"type\":\"microsoft.storagemover/storagemovers/projects/jobdefinitions/jobruns\",\"systemData\":{\"createdBy\":\"aed824f0-6446-4ef9-9e17-98b0157c09dc\",\"createdByType\":\"Application\",\"createdAt\":\"2023-07-21T04:29:11.5452602Z\",\"lastModifiedBy\":\"aed824f0-6446-4ef9-9e17-98b0157c09dc\",\"lastModifiedByType\":\"Application\",\"lastModifiedAt\":\"2023-07-21T04:29:11.5452602Z\"},\"properties\":{\"status\":\"Queued\",\"agentName\":\"testagent1\",\"agentResourceId\":\"/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/teststoragemover/providers/Microsoft.StorageMover/storageMovers/testmoverpreview1/agents/testagent1\",\"lastStatusUpdate\":\"2023-07-21T04:29:11.4731344Z\",\"sourceName\":\"nfsEndpointhc715gxy\",\"sourceResourceId\":\"/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/teststoragemover/providers/Microsoft.StorageMover/storageMovers/testmoverpreview1/endpoints/nfsEndpointhc715gxy\",\"sourceProperties\":{\"host\":\"10.0.0.1\",\"nfsVersion\":\"NFSauto\",\"export\":\"/\",\"endpointType\":\"NfsMount\",\"provisioningState\":\"Succeeded\"},\"targetName\":\"containerEndpointhc715gxy\",\"targetResourceId\":\"/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/teststoragemover/providers/Microsoft.StorageMover/storageMovers/testmoverpreview1/endpoints/containerEndpointhc715gxy\",\"targetProperties\":{\"storageAccountResourceId\":\"/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/teststoragemover/providers/Microsoft.Storage/storageAccounts/storacchc715gxy\",\"blobContainerName\":\"containerhc715gxy\",\"endpointType\":\"AzureStorageBlobContainer\",\"provisioningState\":\"Succeeded\"},\"jobDefinitionProperties\":{\"copyMode\":\"Additive\",\"sourceName\":\"nfsEndpointhc715gxy\",\"sourceResourceId\":\"/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/teststoragemover/providers/Microsoft.StorageMover/storageMovers/testmoverpreview1/endpoints/nfsEndpointhc715gxy\",\"targetName\":\"containerEndpointhc715gxy\",\"targetResourceId\":\"/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/teststoragemover/providers/Microsoft.StorageMover/storageMovers/testmoverpreview1/endpoints/containerEndpointhc715gxy\",\"latestJobRunName\":\"0ce4bf6c-4d67-4351-a663-b576830de65c\",\"latestJobRunResourceId\":\"/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/teststoragemover/providers/Microsoft.StorageMover/storageMovers/testmoverpreview1/projects/testProjecthc715gxy/jobDefinitions/testJobhc715gxy/jobRuns/0ce4bf6c-4d67-4351-a663-b576830de65c\",\"latestJobRunStatus\":\"Queued\",\"agentName\":\"testagent1\",\"agentResourceId\":\"/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/teststoragemover/providers/Microsoft.StorageMover/storageMovers/testmoverpreview1/agents/testagent1\",\"internalMetadata\":{\"jobDefinitionId\":\"27b8fd2d-4364-4c6d-a488-8eb3b268f134\"},\"provisioningState\":\"Succeeded\"},\"provisioningState\":\"Succeeded\"}}", + "isContentBase64": false + } + }, + "Get-AzStorageMoverJobRun+[NoContext]+Get/List JobRun, Start/Stop JobDefinition+$POST+https://management.azure.com/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/teststoragemover/providers/Microsoft.StorageMover/storageMovers/testmoverpreview1/projects/testProjecthc715gxy/jobDefinitions/testJobhc715gxy/stopJob?api-version=2023-10-01+4": { + "Request": { + "Method": "POST", + "RequestUri": "https://management.azure.com/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/teststoragemover/providers/Microsoft.StorageMover/storageMovers/testmoverpreview1/projects/testProjecthc715gxy/jobDefinitions/testJobhc715gxy/stopJob?api-version=2023-10-01", + "Content": null, + "isContentBase64": false, + "Headers": { + "x-ms-unique-id": [ "20" ], + "x-ms-client-request-id": [ "dddbe8b1-119c-4c0f-81f5-9a18ff144987" ], + "CommandName": [ "Stop-AzStorageMoverJobDefinition" ], + "FullCommandName": [ "Stop-AzStorageMoverJobDefinition_Stop" ], + "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" ], + "x-ms-ratelimit-remaining-subscription-writes": [ "1198" ], + "x-ms-providerhub-traffic": [ "True" ], + "mise-correlation-id": [ "78f654b0-0c31-4c3d-96be-e8df6c29ecbb" ], + "x-ms-request-id": [ "88f3fa26-f84a-422c-b7d1-54c7747f4b7b" ], + "x-ms-correlation-request-id": [ "72e7c002-7dd1-4a4c-9980-53e537183f8b" ], + "x-ms-routing-request-id": [ "EASTUS2EUAP:20230721T042914Z:72e7c002-7dd1-4a4c-9980-53e537183f8b" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Fri, 21 Jul 2023 04:29:13 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "276" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"jobRunResourceId\":\"/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/teststoragemover/providers/Microsoft.StorageMover/storageMovers/testmoverpreview1/projects/testProjecthc715gxy/jobDefinitions/testJobhc715gxy/jobRuns/0ce4bf6c-4d67-4351-a663-b576830de65c\"}", "isContentBase64": false } } diff --git a/src/StorageMover/test/Get-AzStorageMoverJobRun.Tests.ps1 b/src/StorageMover/test/Get-AzStorageMoverJobRun.Tests.ps1 index fd1cf40b3f7a..dd6c5ed5dce8 100644 --- a/src/StorageMover/test/Get-AzStorageMoverJobRun.Tests.ps1 +++ b/src/StorageMover/test/Get-AzStorageMoverJobRun.Tests.ps1 @@ -15,21 +15,18 @@ if(($null -eq $TestName) -or ($TestName -contains 'Get-AzStorageMoverJobRun')) } Describe 'Get-AzStorageMoverJobRun' { - BeforeAll { + It 'Get/List JobRun, Start/Stop JobDefinition' { $job = Start-AzStorageMoverJobDefinition -JobDefinitionName $env.JobDefinitionName -ProjectName $env.ProjectName -ResourceGroupName $env.ResourceGroupName -StorageMoverName $env.StorageMoverNameWithAgent - } - - It 'List' { + $job | Should -Not -Be $null $jobRunList = Get-AzStorageMoverJobRun -JobDefinitionName $env.JobDefinitionName -ResourceGroupName $env.ResourceGroupName -StorageMoverName $env.StorageMoverNameWithAgent -ProjectName $env.ProjectName $jobRunList.Count | Should -BeGreaterOrEqual 1 - } - - It 'Get' { $jobRunName = $job.Split("/")[-1] $jobRun = Get-AzStorageMoverJobRun -Name $jobRunName -JobDefinitionName $env.JobDefinitionName -ResourceGroupName $env.ResourceGroupName -StorageMoverName $env.StorageMoverNameWithAgent -ProjectName $env.ProjectName $jobRun.AgentName | Should -Be $env.AgentName $jobRun.SourceName | Should -Be $env.NfsEndpointName $jobRun.TargetName | Should -Be $env.ContainerEndpointName $jobRun.Name | SHould -Be $jobRunName + $job = Stop-AzStorageMoverJobDefinition -JobDefinitionName $env.JobDefinitionName -ProjectName $env.ProjectName -ResourceGroupName $env.ResourceGroupName -StorageMoverName $env.StorageMoverNameWithAgent + $job | Should -Not -Be $null } } diff --git a/src/StorageMover/test/Get-AzStorageMoverProject.Recording.json b/src/StorageMover/test/Get-AzStorageMoverProject.Recording.json index 285e6d3ce2f9..fd141894af93 100644 --- a/src/StorageMover/test/Get-AzStorageMoverProject.Recording.json +++ b/src/StorageMover/test/Get-AzStorageMoverProject.Recording.json @@ -1,17 +1,17 @@ { - "Get-AzStorageMoverProject+[NoContext]+List+$GET+https://management.azure.com/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/testStorageMover/providers/Microsoft.StorageMover/storageMovers/testStoMover14068b735/projects?api-version=2023-03-01+1": { + "Get-AzStorageMoverProject+[NoContext]+List+$GET+https://management.azure.com/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/teststoragemover/providers/Microsoft.StorageMover/storageMovers/testStoMover1hc715gxy/projects?api-version=2023-10-01+1": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/testStorageMover/providers/Microsoft.StorageMover/storageMovers/testStoMover14068b735/projects?api-version=2023-03-01", + "RequestUri": "https://management.azure.com/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/teststoragemover/providers/Microsoft.StorageMover/storageMovers/testStoMover1hc715gxy/projects?api-version=2023-10-01", "Content": null, "isContentBase64": false, "Headers": { - "x-ms-unique-id": [ "20" ], - "x-ms-client-request-id": [ "ebb028a3-c14c-4a17-9221-465e42a8d500" ], + "x-ms-unique-id": [ "21" ], + "x-ms-client-request-id": [ "544d936d-71c3-4aaa-9942-266cf666b884" ], "CommandName": [ "Get-AzStorageMoverProject" ], "FullCommandName": [ "Get-AzStorageMoverProject_List" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v8.0.0", "PSVersion/v7.2.5", "Az.StorageMover/0.1.0" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.2.12", "Az.StorageMover/1.0.1" ], "Authorization": [ "[Filtered]" ] }, "ContentHeaders": { @@ -22,37 +22,37 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "x-ms-ratelimit-remaining-subscription-reads": [ "11979" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11987" ], "x-ms-providerhub-traffic": [ "True" ], - "x-ms-request-id": [ "74e0e4c0-ea2e-450a-9aa1-cbd4afb4369e" ], - "x-ms-correlation-request-id": [ "895f41a5-8dec-4344-a0f9-6a9f845f1efd" ], - "x-ms-routing-request-id": [ "SOUTHEASTASIA:20220802T053607Z:895f41a5-8dec-4344-a0f9-6a9f845f1efd" ], + "x-ms-request-id": [ "bd6057e9-d81e-439f-b59a-33f5cdd9862a" ], + "x-ms-correlation-request-id": [ "7934946a-9469-4446-bef7-62a8adc65568" ], + "x-ms-routing-request-id": [ "EASTUS2EUAP:20230721T042915Z:7934946a-9469-4446-bef7-62a8adc65568" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "X-Content-Type-Options": [ "nosniff" ], - "Date": [ "Tue, 02 Aug 2022 05:36:06 GMT" ] + "Date": [ "Fri, 21 Jul 2023 04:29:14 GMT" ] }, "ContentHeaders": { "Content-Length": [ "611" ], "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"value\":[{\"id\":\"/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/testStorageMover/providers/Microsoft.StorageMover/storageMovers/testStoMover14068b735/projects/testProject4068b735\",\"name\":\"testProject4068b735\",\"type\":\"microsoft.storagemover/storagemovers/projects\",\"systemData\":{\"createdBy\":\"a000255f-5f09-45e0-a970-9d9ed9cc6453\",\"createdByType\":\"Application\",\"createdAt\":\"2022-08-02T05:35:47.0611007Z\",\"lastModifiedBy\":\"a000255f-5f09-45e0-a970-9d9ed9cc6453\",\"lastModifiedByType\":\"Application\",\"lastModifiedAt\":\"2022-08-02T05:35:47.0611007Z\"},\"properties\":{\"provisioningState\":\"Succeeded\"}}]}", + "Content": "{\"value\":[{\"id\":\"/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/teststoragemover/providers/Microsoft.StorageMover/storageMovers/testStoMover1hc715gxy/projects/testProjecthc715gxy\",\"name\":\"testProjecthc715gxy\",\"type\":\"microsoft.storagemover/storagemovers/projects\",\"systemData\":{\"createdBy\":\"a000255f-5f09-45e0-a970-9d9ed9cc6453\",\"createdByType\":\"Application\",\"createdAt\":\"2023-07-21T04:28:58.1006856Z\",\"lastModifiedBy\":\"a000255f-5f09-45e0-a970-9d9ed9cc6453\",\"lastModifiedByType\":\"Application\",\"lastModifiedAt\":\"2023-07-21T04:28:58.1006856Z\"},\"properties\":{\"provisioningState\":\"Succeeded\"}}]}", "isContentBase64": false } }, - "Get-AzStorageMoverProject+[NoContext]+Get+$GET+https://management.azure.com/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/testStorageMover/providers/Microsoft.StorageMover/storageMovers/testStoMover14068b735/projects/testProject4068b735?api-version=2023-03-01+1": { + "Get-AzStorageMoverProject+[NoContext]+Get+$GET+https://management.azure.com/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/teststoragemover/providers/Microsoft.StorageMover/storageMovers/testStoMover1hc715gxy/projects/testProjecthc715gxy?api-version=2023-10-01+1": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/testStorageMover/providers/Microsoft.StorageMover/storageMovers/testStoMover14068b735/projects/testProject4068b735?api-version=2023-03-01", + "RequestUri": "https://management.azure.com/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/teststoragemover/providers/Microsoft.StorageMover/storageMovers/testStoMover1hc715gxy/projects/testProjecthc715gxy?api-version=2023-10-01", "Content": null, "isContentBase64": false, "Headers": { - "x-ms-unique-id": [ "21" ], - "x-ms-client-request-id": [ "380f90fd-214e-4e1e-9da6-d140577f9609" ], + "x-ms-unique-id": [ "22" ], + "x-ms-client-request-id": [ "f136bfe8-9f75-49a8-9027-166b45e799f8" ], "CommandName": [ "Get-AzStorageMoverProject" ], "FullCommandName": [ "Get-AzStorageMoverProject_Get" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v8.0.0", "PSVersion/v7.2.5", "Az.StorageMover/0.1.0" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.2.12", "Az.StorageMover/1.0.1" ], "Authorization": [ "[Filtered]" ] }, "ContentHeaders": { @@ -63,22 +63,22 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "ETag": [ "\"00002d08-0000-3400-0000-62e8b7b30000\"" ], - "x-ms-ratelimit-remaining-subscription-reads": [ "11978" ], + "ETag": [ "\"2d01e702-0000-3400-0000-64ba098a0000\"" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11986" ], "x-ms-providerhub-traffic": [ "True" ], - "x-ms-request-id": [ "f96bd3e5-8938-4fe4-b930-1648e4e7df0d" ], - "x-ms-correlation-request-id": [ "e970be2c-38b6-4e19-8525-66871c1564db" ], - "x-ms-routing-request-id": [ "SOUTHEASTASIA:20220802T053608Z:e970be2c-38b6-4e19-8525-66871c1564db" ], + "x-ms-request-id": [ "87e8c09d-065e-4e1c-8d28-5f8b30b11f74" ], + "x-ms-correlation-request-id": [ "644576fb-02a4-46e0-a84f-724ae283c157" ], + "x-ms-routing-request-id": [ "EASTUS2EUAP:20230721T042916Z:644576fb-02a4-46e0-a84f-724ae283c157" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "X-Content-Type-Options": [ "nosniff" ], - "Date": [ "Tue, 02 Aug 2022 05:36:07 GMT" ] + "Date": [ "Fri, 21 Jul 2023 04:29:16 GMT" ] }, "ContentHeaders": { "Content-Length": [ "599" ], "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"id\":\"/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/testStorageMover/providers/Microsoft.StorageMover/storageMovers/testStoMover14068b735/projects/testProject4068b735\",\"name\":\"testProject4068b735\",\"type\":\"microsoft.storagemover/storagemovers/projects\",\"systemData\":{\"createdBy\":\"a000255f-5f09-45e0-a970-9d9ed9cc6453\",\"createdByType\":\"Application\",\"createdAt\":\"2022-08-02T05:35:47.0611007Z\",\"lastModifiedBy\":\"a000255f-5f09-45e0-a970-9d9ed9cc6453\",\"lastModifiedByType\":\"Application\",\"lastModifiedAt\":\"2022-08-02T05:35:47.0611007Z\"},\"properties\":{\"provisioningState\":\"Succeeded\"}}", + "Content": "{\"id\":\"/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/teststoragemover/providers/Microsoft.StorageMover/storageMovers/testStoMover1hc715gxy/projects/testProjecthc715gxy\",\"name\":\"testProjecthc715gxy\",\"type\":\"microsoft.storagemover/storagemovers/projects\",\"systemData\":{\"createdBy\":\"a000255f-5f09-45e0-a970-9d9ed9cc6453\",\"createdByType\":\"Application\",\"createdAt\":\"2023-07-21T04:28:58.1006856Z\",\"lastModifiedBy\":\"a000255f-5f09-45e0-a970-9d9ed9cc6453\",\"lastModifiedByType\":\"Application\",\"lastModifiedAt\":\"2023-07-21T04:28:58.1006856Z\"},\"properties\":{\"provisioningState\":\"Succeeded\"}}", "isContentBase64": false } } diff --git a/src/StorageMover/test/New-AzStorageMover.Recording.json b/src/StorageMover/test/New-AzStorageMover.Recording.json index 5a8a4f0a1689..2e8b8bf7d829 100644 --- a/src/StorageMover/test/New-AzStorageMover.Recording.json +++ b/src/StorageMover/test/New-AzStorageMover.Recording.json @@ -1,8 +1,8 @@ { - "New-AzStorageMover+[NoContext]+CreateExpanded+$PUT+https://management.azure.com/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/testStorageMover/providers/Microsoft.StorageMover/storageMovers/testStoMover24068b735?api-version=2023-03-01+1": { + "New-AzStorageMover+[NoContext]+CreateExpanded+$PUT+https://management.azure.com/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/teststoragemover/providers/Microsoft.StorageMover/storageMovers/testStoMover2hc715gxy?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/testStoMover24068b735?api-version=2023-03-01", + "RequestUri": "https://management.azure.com/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/teststoragemover/providers/Microsoft.StorageMover/storageMovers/testStoMover2hc715gxy?api-version=2023-10-01", "Content": "{\r\n \"location\": \"eastus2euap\",\r\n \"properties\": {\r\n \"description\": \"test Storage mover description\"\r\n }\r\n}", "isContentBase64": false, "Headers": { @@ -17,39 +17,39 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "ETag": [ "\"0000c0e6-0000-3400-0000-62e8b7cd0000\"" ], - "x-ms-ratelimit-remaining-subscription-writes": [ "1187" ], + "ETag": [ "\"05009313-0000-3400-0000-64ba099d0000\"" ], + "x-ms-ratelimit-remaining-subscription-writes": [ "1193" ], "x-ms-providerhub-traffic": [ "True" ], - "mise-correlation-id": [ "81dc273d-d74a-4dd2-bc0f-d154c6509598" ], - "x-ms-request-id": [ "f403fb94-70eb-41a7-9c3c-59e81cee13cd" ], - "x-ms-correlation-request-id": [ "17d42d02-3f5e-47c2-9376-7d7b81ddf96b" ], - "x-ms-routing-request-id": [ "SOUTHEASTASIA:20220802T053615Z:17d42d02-3f5e-47c2-9376-7d7b81ddf96b" ], + "mise-correlation-id": [ "589ceb37-58e5-4baa-bd41-61465f7ffeca" ], + "x-ms-request-id": [ "a0279961-458f-4488-bb61-02aa82da194f" ], + "x-ms-correlation-request-id": [ "80fa95ef-825a-4124-984f-2c14b38fcc22" ], + "x-ms-routing-request-id": [ "EASTUS2EUAP:20230721T042917Z:80fa95ef-825a-4124-984f-2c14b38fcc22" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "X-Content-Type-Options": [ "nosniff" ], - "Date": [ "Tue, 02 Aug 2022 05:36:14 GMT" ] + "Date": [ "Fri, 21 Jul 2023 04:29:17 GMT" ] }, "ContentHeaders": { "Content-Length": [ "635" ], "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"id\":\"/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/testStorageMover/providers/Microsoft.StorageMover/storageMovers/testStoMover24068b735\",\"name\":\"testStoMover24068b735\",\"type\":\"microsoft.storagemover/storagemovers\",\"location\":\"eastus2euap\",\"systemData\":{\"createdBy\":\"a000255f-5f09-45e0-a970-9d9ed9cc6453\",\"createdByType\":\"Application\",\"createdAt\":\"2022-08-02T05:36:13.4517203Z\",\"lastModifiedBy\":\"a000255f-5f09-45e0-a970-9d9ed9cc6453\",\"lastModifiedByType\":\"Application\",\"lastModifiedAt\":\"2022-08-02T05:36:13.4517203Z\"},\"properties\":{\"description\":\"test Storage mover description\",\"provisioningState\":\"Succeeded\"}}", + "Content": "{\"id\":\"/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/teststoragemover/providers/Microsoft.StorageMover/storageMovers/testStoMover2hc715gxy\",\"name\":\"testStoMover2hc715gxy\",\"type\":\"microsoft.storagemover/storagemovers\",\"location\":\"eastus2euap\",\"systemData\":{\"createdBy\":\"a000255f-5f09-45e0-a970-9d9ed9cc6453\",\"createdByType\":\"Application\",\"createdAt\":\"2023-07-21T04:29:17.1789008Z\",\"lastModifiedBy\":\"a000255f-5f09-45e0-a970-9d9ed9cc6453\",\"lastModifiedByType\":\"Application\",\"lastModifiedAt\":\"2023-07-21T04:29:17.1789008Z\"},\"properties\":{\"description\":\"test Storage mover description\",\"provisioningState\":\"Succeeded\"}}", "isContentBase64": false } }, - "New-AzStorageMover+[NoContext]+CreateExpanded+$GET+https://management.azure.com/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/testStorageMover/providers/Microsoft.StorageMover/storageMovers/testStoMover24068b735?api-version=2023-03-01+2": { + "New-AzStorageMover+[NoContext]+CreateExpanded+$GET+https://management.azure.com/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/teststoragemover/providers/Microsoft.StorageMover/storageMovers/testStoMover2hc715gxy?api-version=2023-10-01+2": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/testStorageMover/providers/Microsoft.StorageMover/storageMovers/testStoMover24068b735?api-version=2023-03-01", + "RequestUri": "https://management.azure.com/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/teststoragemover/providers/Microsoft.StorageMover/storageMovers/testStoMover2hc715gxy?api-version=2023-10-01", "Content": null, "isContentBase64": false, "Headers": { - "x-ms-unique-id": [ "23" ], - "x-ms-client-request-id": [ "bdbac51e-9757-4422-b6d5-3c659dbbcc0e" ], + "x-ms-unique-id": [ "24" ], + "x-ms-client-request-id": [ "65df269e-08b0-4b9c-b1db-f6eb96d89c09" ], "CommandName": [ "Get-AzStorageMover" ], "FullCommandName": [ "Get-AzStorageMover_Get" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v8.0.0", "PSVersion/v7.2.5", "Az.StorageMover/0.1.0" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.2.12", "Az.StorageMover/1.0.1" ], "Authorization": [ "[Filtered]" ] }, "ContentHeaders": { @@ -60,22 +60,22 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "ETag": [ "\"0000c0e6-0000-3400-0000-62e8b7cd0000\"" ], - "x-ms-ratelimit-remaining-subscription-reads": [ "11977" ], + "ETag": [ "\"05009313-0000-3400-0000-64ba099d0000\"" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11985" ], "x-ms-providerhub-traffic": [ "True" ], - "x-ms-request-id": [ "27e1af9d-a824-4dcf-98ea-5d5594c845c7" ], - "x-ms-correlation-request-id": [ "bc4a4aec-70fc-4df6-be89-d78c10218239" ], - "x-ms-routing-request-id": [ "SOUTHEASTASIA:20220802T053616Z:bc4a4aec-70fc-4df6-be89-d78c10218239" ], + "x-ms-request-id": [ "5e31606c-79b1-4335-ba20-a6b9885ad771" ], + "x-ms-correlation-request-id": [ "df90428d-0b0a-4ef0-badd-bfa19926074d" ], + "x-ms-routing-request-id": [ "EASTUS2EUAP:20230721T042918Z:df90428d-0b0a-4ef0-badd-bfa19926074d" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "X-Content-Type-Options": [ "nosniff" ], - "Date": [ "Tue, 02 Aug 2022 05:36:15 GMT" ] + "Date": [ "Fri, 21 Jul 2023 04:29:18 GMT" ] }, "ContentHeaders": { "Content-Length": [ "635" ], "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"id\":\"/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/testStorageMover/providers/Microsoft.StorageMover/storageMovers/testStoMover24068b735\",\"name\":\"testStoMover24068b735\",\"type\":\"microsoft.storagemover/storagemovers\",\"location\":\"eastus2euap\",\"systemData\":{\"createdBy\":\"a000255f-5f09-45e0-a970-9d9ed9cc6453\",\"createdByType\":\"Application\",\"createdAt\":\"2022-08-02T05:36:13.4517203Z\",\"lastModifiedBy\":\"a000255f-5f09-45e0-a970-9d9ed9cc6453\",\"lastModifiedByType\":\"Application\",\"lastModifiedAt\":\"2022-08-02T05:36:13.4517203Z\"},\"properties\":{\"description\":\"test Storage mover description\",\"provisioningState\":\"Succeeded\"}}", + "Content": "{\"id\":\"/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/teststoragemover/providers/Microsoft.StorageMover/storageMovers/testStoMover2hc715gxy\",\"name\":\"testStoMover2hc715gxy\",\"type\":\"microsoft.storagemover/storagemovers\",\"location\":\"eastus2euap\",\"systemData\":{\"createdBy\":\"a000255f-5f09-45e0-a970-9d9ed9cc6453\",\"createdByType\":\"Application\",\"createdAt\":\"2023-07-21T04:29:17.1789008Z\",\"lastModifiedBy\":\"a000255f-5f09-45e0-a970-9d9ed9cc6453\",\"lastModifiedByType\":\"Application\",\"lastModifiedAt\":\"2023-07-21T04:29:17.1789008Z\"},\"properties\":{\"description\":\"test Storage mover description\",\"provisioningState\":\"Succeeded\"}}", "isContentBase64": false } } diff --git a/src/StorageMover/test/New-AzStorageMoverAzStorageContainerEndpoint.Recording.json b/src/StorageMover/test/New-AzStorageMoverAzStorageContainerEndpoint.Recording.json index 2acfe5c9ab22..669ae245e2ed 100644 --- a/src/StorageMover/test/New-AzStorageMoverAzStorageContainerEndpoint.Recording.json +++ b/src/StorageMover/test/New-AzStorageMoverAzStorageContainerEndpoint.Recording.json @@ -1,9 +1,9 @@ { - "New-AzStorageMoverAzStorageContainerEndpoint+[NoContext]+CreateExpanded+$PUT+https://management.azure.com/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/testStorageMover/providers/Microsoft.StorageMover/storageMovers/testStoMover14068b735/endpoints/containerEndpoint14068b735?api-version=2023-03-01+1": { + "New-AzStorageMoverAzStorageContainerEndpoint+[NoContext]+CreateExpanded+$PUT+https://management.azure.com/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/teststoragemover/providers/Microsoft.StorageMover/storageMovers/testStoMover1hc715gxy/endpoints/containerEndpoint1hc715gxy?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/testStoMover14068b735/endpoints/containerEndpoint14068b735?api-version=2023-03-01", - "Content": "{\r\n \"properties\": {\r\n \"endpointType\": \"AzureStorageBlobContainer\",\r\n \"storageAccountResourceId\": \"/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/testStorageMover/providers/Microsoft.Storage/storageAccounts/storacc4068b735\",\r\n \"blobContainerName\": \"container4068b735\"\r\n }\r\n}", + "RequestUri": "https://management.azure.com/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/teststoragemover/providers/Microsoft.StorageMover/storageMovers/testStoMover1hc715gxy/endpoints/containerEndpoint1hc715gxy?api-version=2023-10-01", + "Content": "{\r\n \"properties\": {\r\n \"endpointType\": \"AzureStorageBlobContainer\",\r\n \"storageAccountResourceId\": \"/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/teststoragemover/providers/Microsoft.Storage/storageAccounts/storacchc715gxy\",\r\n \"blobContainerName\": \"containerhc715gxy\"\r\n }\r\n}", "isContentBase64": false, "Headers": { }, @@ -17,39 +17,39 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "ETag": [ "\"000066e5-0000-3400-0000-62e8b7d20000\"" ], - "x-ms-ratelimit-remaining-subscription-writes": [ "1186" ], + "ETag": [ "\"2d011b48-0000-3400-0000-64ba099f0000\"" ], + "x-ms-ratelimit-remaining-subscription-writes": [ "1192" ], "x-ms-providerhub-traffic": [ "True" ], - "mise-correlation-id": [ "87c21b4b-515a-4159-aaa5-8e2d088e11f1" ], - "x-ms-request-id": [ "48a552e5-c345-4b9c-b456-f7477e0fbb3c" ], - "x-ms-correlation-request-id": [ "0f13fac6-1abc-4055-8d44-e61f9c088e12" ], - "x-ms-routing-request-id": [ "SOUTHEASTASIA:20220802T053618Z:0f13fac6-1abc-4055-8d44-e61f9c088e12" ], + "mise-correlation-id": [ "cd38ba65-cd8a-4982-9e33-01923791ad73" ], + "x-ms-request-id": [ "0220c9d7-d732-4e45-9b16-ace9b1fec267" ], + "x-ms-correlation-request-id": [ "56510a5f-dfc5-4786-9aac-4ddf55e3183b" ], + "x-ms-routing-request-id": [ "EASTUS2EUAP:20230721T042919Z:56510a5f-dfc5-4786-9aac-4ddf55e3183b" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "X-Content-Type-Options": [ "nosniff" ], - "Date": [ "Tue, 02 Aug 2022 05:36:17 GMT" ] + "Date": [ "Fri, 21 Jul 2023 04:29:19 GMT" ] }, "ContentHeaders": { - "Content-Length": [ "869" ], + "Content-Length": [ "871" ], "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"id\":\"/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/testStorageMover/providers/Microsoft.StorageMover/storageMovers/testStoMover14068b735/endpoints/containerEndpoint14068b735\",\"name\":\"containerEndpoint14068b735\",\"type\":\"microsoft.storagemover/storagemovers/endpoints\",\"systemData\":{\"createdBy\":\"a000255f-5f09-45e0-a970-9d9ed9cc6453\",\"createdByType\":\"Application\",\"createdAt\":\"2022-08-02T05:36:17.654842Z\",\"lastModifiedBy\":\"a000255f-5f09-45e0-a970-9d9ed9cc6453\",\"lastModifiedByType\":\"Application\",\"lastModifiedAt\":\"2022-08-02T05:36:17.654842Z\"},\"properties\":{\"endpointType\":\"AzureStorageBlobContainer\",\"storageAccountResourceId\":\"/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/testStorageMover/providers/Microsoft.Storage/storageAccounts/storacc4068b735\",\"blobContainerName\":\"container4068b735\",\"provisioningState\":\"Succeeded\"}}", + "Content": "{\"id\":\"/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/teststoragemover/providers/Microsoft.StorageMover/storageMovers/testStoMover1hc715gxy/endpoints/containerEndpoint1hc715gxy\",\"name\":\"containerEndpoint1hc715gxy\",\"type\":\"microsoft.storagemover/storagemovers/endpoints\",\"systemData\":{\"createdBy\":\"a000255f-5f09-45e0-a970-9d9ed9cc6453\",\"createdByType\":\"Application\",\"createdAt\":\"2023-07-21T04:29:19.2413935Z\",\"lastModifiedBy\":\"a000255f-5f09-45e0-a970-9d9ed9cc6453\",\"lastModifiedByType\":\"Application\",\"lastModifiedAt\":\"2023-07-21T04:29:19.2413935Z\"},\"properties\":{\"storageAccountResourceId\":\"/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/teststoragemover/providers/Microsoft.Storage/storageAccounts/storacchc715gxy\",\"blobContainerName\":\"containerhc715gxy\",\"endpointType\":\"AzureStorageBlobContainer\",\"provisioningState\":\"Succeeded\"}}", "isContentBase64": false } }, - "New-AzStorageMoverAzStorageContainerEndpoint+[NoContext]+CreateExpanded+$GET+https://management.azure.com/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/testStorageMover/providers/Microsoft.StorageMover/storageMovers/testStoMover14068b735/endpoints/containerEndpoint14068b735?api-version=2023-03-01+2": { + "New-AzStorageMoverAzStorageContainerEndpoint+[NoContext]+CreateExpanded+$GET+https://management.azure.com/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/teststoragemover/providers/Microsoft.StorageMover/storageMovers/testStoMover1hc715gxy/endpoints/containerEndpoint1hc715gxy?api-version=2023-10-01+2": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/testStorageMover/providers/Microsoft.StorageMover/storageMovers/testStoMover14068b735/endpoints/containerEndpoint14068b735?api-version=2023-03-01", + "RequestUri": "https://management.azure.com/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/teststoragemover/providers/Microsoft.StorageMover/storageMovers/testStoMover1hc715gxy/endpoints/containerEndpoint1hc715gxy?api-version=2023-10-01", "Content": null, "isContentBase64": false, "Headers": { - "x-ms-unique-id": [ "25" ], - "x-ms-client-request-id": [ "4451902c-d23a-4b46-b14e-a5d995ec4463" ], + "x-ms-unique-id": [ "26" ], + "x-ms-client-request-id": [ "01f509ad-3739-47e7-ad15-fc53c4f0b6d5" ], "CommandName": [ "Get-AzStorageMoverEndpoint" ], "FullCommandName": [ "Get-AzStorageMoverEndpoint_Get" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v8.0.0", "PSVersion/v7.2.5", "Az.StorageMover/0.1.0" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.2.12", "Az.StorageMover/1.0.1" ], "Authorization": [ "[Filtered]" ] }, "ContentHeaders": { @@ -60,22 +60,22 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "ETag": [ "\"000066e5-0000-3400-0000-62e8b7d20000\"" ], - "x-ms-ratelimit-remaining-subscription-reads": [ "11976" ], + "ETag": [ "\"2d011b48-0000-3400-0000-64ba099f0000\"" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11984" ], "x-ms-providerhub-traffic": [ "True" ], - "x-ms-request-id": [ "06616a77-571c-4af2-a456-971d0ae4a4af" ], - "x-ms-correlation-request-id": [ "3695abbb-4769-4fd7-a5db-74c0589adde8" ], - "x-ms-routing-request-id": [ "SOUTHEASTASIA:20220802T053619Z:3695abbb-4769-4fd7-a5db-74c0589adde8" ], + "x-ms-request-id": [ "e9dd17e6-734b-4b04-bccc-cea3fa9976c7" ], + "x-ms-correlation-request-id": [ "07513c12-83bf-4ac5-8c72-61e2e4b159ec" ], + "x-ms-routing-request-id": [ "EASTUS2EUAP:20230721T042920Z:07513c12-83bf-4ac5-8c72-61e2e4b159ec" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "X-Content-Type-Options": [ "nosniff" ], - "Date": [ "Tue, 02 Aug 2022 05:36:18 GMT" ] + "Date": [ "Fri, 21 Jul 2023 04:29:20 GMT" ] }, "ContentHeaders": { - "Content-Length": [ "869" ], + "Content-Length": [ "871" ], "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"id\":\"/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/testStorageMover/providers/Microsoft.StorageMover/storageMovers/testStoMover14068b735/endpoints/containerEndpoint14068b735\",\"name\":\"containerEndpoint14068b735\",\"type\":\"microsoft.storagemover/storagemovers/endpoints\",\"systemData\":{\"createdBy\":\"a000255f-5f09-45e0-a970-9d9ed9cc6453\",\"createdByType\":\"Application\",\"createdAt\":\"2022-08-02T05:36:17.654842Z\",\"lastModifiedBy\":\"a000255f-5f09-45e0-a970-9d9ed9cc6453\",\"lastModifiedByType\":\"Application\",\"lastModifiedAt\":\"2022-08-02T05:36:17.654842Z\"},\"properties\":{\"endpointType\":\"AzureStorageBlobContainer\",\"storageAccountResourceId\":\"/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/testStorageMover/providers/Microsoft.Storage/storageAccounts/storacc4068b735\",\"blobContainerName\":\"container4068b735\",\"provisioningState\":\"Succeeded\"}}", + "Content": "{\"id\":\"/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/teststoragemover/providers/Microsoft.StorageMover/storageMovers/testStoMover1hc715gxy/endpoints/containerEndpoint1hc715gxy\",\"name\":\"containerEndpoint1hc715gxy\",\"type\":\"microsoft.storagemover/storagemovers/endpoints\",\"systemData\":{\"createdBy\":\"a000255f-5f09-45e0-a970-9d9ed9cc6453\",\"createdByType\":\"Application\",\"createdAt\":\"2023-07-21T04:29:19.2413935Z\",\"lastModifiedBy\":\"a000255f-5f09-45e0-a970-9d9ed9cc6453\",\"lastModifiedByType\":\"Application\",\"lastModifiedAt\":\"2023-07-21T04:29:19.2413935Z\"},\"properties\":{\"storageAccountResourceId\":\"/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/teststoragemover/providers/Microsoft.Storage/storageAccounts/storacchc715gxy\",\"blobContainerName\":\"containerhc715gxy\",\"endpointType\":\"AzureStorageBlobContainer\",\"provisioningState\":\"Succeeded\"}}", "isContentBase64": false } } diff --git a/src/StorageMover/test/New-AzStorageMoverJobDefinition.Recording.json b/src/StorageMover/test/New-AzStorageMoverJobDefinition.Recording.json index 6b65f86c9192..aed884a227ca 100644 --- a/src/StorageMover/test/New-AzStorageMoverJobDefinition.Recording.json +++ b/src/StorageMover/test/New-AzStorageMoverJobDefinition.Recording.json @@ -1,9 +1,9 @@ { - "New-AzStorageMoverJobDefinition+[NoContext]+CreateExpanded+$PUT+https://management.azure.com/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/testStorageMover/providers/Microsoft.StorageMover/storageMovers/testStorageMover2/projects/testProject4068b735/jobDefinitions/testJob14068b735?api-version=2023-03-01+1": { + "New-AzStorageMoverJobDefinition+[NoContext]+CreateExpanded+$PUT+https://management.azure.com/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/teststoragemover/providers/Microsoft.StorageMover/storageMovers/testmoverpreview1/projects/testProjecthc715gxy/jobDefinitions/testJob1hc715gxy?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/testStorageMover2/projects/testProject4068b735/jobDefinitions/testJob14068b735?api-version=2023-03-01", - "Content": "{\r\n \"properties\": {\r\n \"copyMode\": \"Additive\",\r\n \"sourceName\": \"nfsEndpoint4068b735\",\r\n \"targetName\": \"containerEndpoint4068b735\",\r\n \"agentName\": \"testagent7\"\r\n }\r\n}", + "RequestUri": "https://management.azure.com/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/teststoragemover/providers/Microsoft.StorageMover/storageMovers/testmoverpreview1/projects/testProjecthc715gxy/jobDefinitions/testJob1hc715gxy?api-version=2023-10-01", + "Content": "{\r\n \"properties\": {\r\n \"copyMode\": \"Additive\",\r\n \"sourceName\": \"nfsEndpointhc715gxy\",\r\n \"targetName\": \"containerEndpointhc715gxy\",\r\n \"agentName\": \"testagent1\"\r\n }\r\n}", "isContentBase64": false, "Headers": { }, @@ -17,39 +17,39 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "ETag": [ "\"0000539e-0000-3400-0000-62e8b7d50000\"" ], - "x-ms-ratelimit-remaining-subscription-writes": [ "1185" ], + "ETag": [ "\"0100652c-0000-3400-0000-64ba09a50000\"" ], + "x-ms-ratelimit-remaining-subscription-writes": [ "1189" ], "x-ms-providerhub-traffic": [ "True" ], - "mise-correlation-id": [ "2a415104-a224-4b8c-8fc6-070e7775b8d5" ], - "x-ms-request-id": [ "dd82ef76-31e9-43d8-b945-4929c2a47e1e" ], - "x-ms-correlation-request-id": [ "c9965b3e-c7e5-4e61-b189-6d753b729a71" ], - "x-ms-routing-request-id": [ "SOUTHEASTASIA:20220802T053621Z:c9965b3e-c7e5-4e61-b189-6d753b729a71" ], + "mise-correlation-id": [ "9846e47b-346f-45e7-bb19-7ba54368d2ff" ], + "x-ms-request-id": [ "5c994744-d17d-46a1-9465-4fa93138468c" ], + "x-ms-correlation-request-id": [ "7e572499-2e12-4bbe-abfd-ecacff3667d9" ], + "x-ms-routing-request-id": [ "EASTUS2EUAP:20230721T042925Z:7e572499-2e12-4bbe-abfd-ecacff3667d9" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "X-Content-Type-Options": [ "nosniff" ], - "Date": [ "Tue, 02 Aug 2022 05:36:20 GMT" ] + "Date": [ "Fri, 21 Jul 2023 04:29:25 GMT" ] }, "ContentHeaders": { - "Content-Length": [ "762" ], + "Content-Length": [ "1355" ], "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"id\":\"/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/testStorageMover/providers/Microsoft.StorageMover/storageMovers/testStorageMover2/projects/testProject4068b735/jobDefinitions/testJob14068b735\",\"name\":\"testJob14068b735\",\"type\":\"microsoft.storagemover/storagemovers/projects/jobdefinitions\",\"systemData\":{\"createdBy\":\"a000255f-5f09-45e0-a970-9d9ed9cc6453\",\"createdByType\":\"Application\",\"createdAt\":\"2022-08-02T05:36:20.8267391Z\",\"lastModifiedBy\":\"a000255f-5f09-45e0-a970-9d9ed9cc6453\",\"lastModifiedByType\":\"Application\",\"lastModifiedAt\":\"2022-08-02T05:36:20.8267391Z\"},\"properties\":{\"copyMode\":\"Additive\",\"sourceName\":\"nfsEndpoint4068b735\",\"targetName\":\"containerEndpoint4068b735\",\"agentName\":\"testagent7\",\"provisioningState\":\"Succeeded\"}}", + "Content": "{\"id\":\"/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/teststoragemover/providers/Microsoft.StorageMover/storageMovers/testmoverpreview1/projects/testProjecthc715gxy/jobDefinitions/testJob1hc715gxy\",\"name\":\"testJob1hc715gxy\",\"type\":\"microsoft.storagemover/storagemovers/projects/jobdefinitions\",\"systemData\":{\"createdBy\":\"a000255f-5f09-45e0-a970-9d9ed9cc6453\",\"createdByType\":\"Application\",\"createdAt\":\"2023-07-21T04:29:25.5078323Z\",\"lastModifiedBy\":\"a000255f-5f09-45e0-a970-9d9ed9cc6453\",\"lastModifiedByType\":\"Application\",\"lastModifiedAt\":\"2023-07-21T04:29:25.5078323Z\"},\"properties\":{\"copyMode\":\"Additive\",\"sourceName\":\"nfsEndpointhc715gxy\",\"sourceResourceId\":\"/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/teststoragemover/providers/Microsoft.StorageMover/storageMovers/testmoverpreview1/endpoints/nfsEndpointhc715gxy\",\"targetName\":\"containerEndpointhc715gxy\",\"targetResourceId\":\"/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/teststoragemover/providers/Microsoft.StorageMover/storageMovers/testmoverpreview1/endpoints/containerEndpointhc715gxy\",\"agentName\":\"testagent1\",\"agentResourceId\":\"/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/teststoragemover/providers/Microsoft.StorageMover/storageMovers/testmoverpreview1/agents/testagent1\",\"provisioningState\":\"Succeeded\"}}", "isContentBase64": false } }, - "New-AzStorageMoverJobDefinition+[NoContext]+CreateExpanded+$GET+https://management.azure.com/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/testStorageMover/providers/Microsoft.StorageMover/storageMovers/testStorageMover2/projects/testProject4068b735/jobDefinitions/testJob14068b735?api-version=2023-03-01+2": { + "New-AzStorageMoverJobDefinition+[NoContext]+CreateExpanded+$GET+https://management.azure.com/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/teststoragemover/providers/Microsoft.StorageMover/storageMovers/testmoverpreview1/projects/testProjecthc715gxy/jobDefinitions/testJob1hc715gxy?api-version=2023-10-01+2": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/testStorageMover/providers/Microsoft.StorageMover/storageMovers/testStorageMover2/projects/testProject4068b735/jobDefinitions/testJob14068b735?api-version=2023-03-01", + "RequestUri": "https://management.azure.com/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/teststoragemover/providers/Microsoft.StorageMover/storageMovers/testmoverpreview1/projects/testProjecthc715gxy/jobDefinitions/testJob1hc715gxy?api-version=2023-10-01", "Content": null, "isContentBase64": false, "Headers": { - "x-ms-unique-id": [ "27" ], - "x-ms-client-request-id": [ "d7f3910d-441c-4eed-8c85-475e501b3d1e" ], + "x-ms-unique-id": [ "32" ], + "x-ms-client-request-id": [ "a4248f1b-8b99-41f1-81d4-9932c5fdc9ab" ], "CommandName": [ "Get-AzStorageMoverJobDefinition" ], "FullCommandName": [ "Get-AzStorageMoverJobDefinition_Get" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v8.0.0", "PSVersion/v7.2.5", "Az.StorageMover/0.1.0" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.2.12", "Az.StorageMover/1.0.1" ], "Authorization": [ "[Filtered]" ] }, "ContentHeaders": { @@ -60,22 +60,22 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "ETag": [ "\"0000539e-0000-3400-0000-62e8b7d50000\"" ], - "x-ms-ratelimit-remaining-subscription-reads": [ "11975" ], + "ETag": [ "\"0100652c-0000-3400-0000-64ba09a50000\"" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11981" ], "x-ms-providerhub-traffic": [ "True" ], - "x-ms-request-id": [ "52ab6c70-6fe0-43d6-b977-48ddea400ce6" ], - "x-ms-correlation-request-id": [ "7e37a537-3b0a-4329-85fb-aaf284b62651" ], - "x-ms-routing-request-id": [ "SOUTHEASTASIA:20220802T053622Z:7e37a537-3b0a-4329-85fb-aaf284b62651" ], + "x-ms-request-id": [ "594a5133-862e-43ee-a50a-9ec414188683" ], + "x-ms-correlation-request-id": [ "5d778015-5787-448b-887e-ce39d63339ed" ], + "x-ms-routing-request-id": [ "EASTUS2EUAP:20230721T042926Z:5d778015-5787-448b-887e-ce39d63339ed" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "X-Content-Type-Options": [ "nosniff" ], - "Date": [ "Tue, 02 Aug 2022 05:36:21 GMT" ] + "Date": [ "Fri, 21 Jul 2023 04:29:26 GMT" ] }, "ContentHeaders": { - "Content-Length": [ "762" ], + "Content-Length": [ "1355" ], "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"id\":\"/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/testStorageMover/providers/Microsoft.StorageMover/storageMovers/testStorageMover2/projects/testProject4068b735/jobDefinitions/testJob14068b735\",\"name\":\"testJob14068b735\",\"type\":\"microsoft.storagemover/storagemovers/projects/jobdefinitions\",\"systemData\":{\"createdBy\":\"a000255f-5f09-45e0-a970-9d9ed9cc6453\",\"createdByType\":\"Application\",\"createdAt\":\"2022-08-02T05:36:20.8267391Z\",\"lastModifiedBy\":\"a000255f-5f09-45e0-a970-9d9ed9cc6453\",\"lastModifiedByType\":\"Application\",\"lastModifiedAt\":\"2022-08-02T05:36:20.8267391Z\"},\"properties\":{\"copyMode\":\"Additive\",\"sourceName\":\"nfsEndpoint4068b735\",\"targetName\":\"containerEndpoint4068b735\",\"agentName\":\"testagent7\",\"provisioningState\":\"Succeeded\"}}", + "Content": "{\"id\":\"/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/teststoragemover/providers/Microsoft.StorageMover/storageMovers/testmoverpreview1/projects/testProjecthc715gxy/jobDefinitions/testJob1hc715gxy\",\"name\":\"testJob1hc715gxy\",\"type\":\"microsoft.storagemover/storagemovers/projects/jobdefinitions\",\"systemData\":{\"createdBy\":\"a000255f-5f09-45e0-a970-9d9ed9cc6453\",\"createdByType\":\"Application\",\"createdAt\":\"2023-07-21T04:29:25.5078323Z\",\"lastModifiedBy\":\"a000255f-5f09-45e0-a970-9d9ed9cc6453\",\"lastModifiedByType\":\"Application\",\"lastModifiedAt\":\"2023-07-21T04:29:25.5078323Z\"},\"properties\":{\"copyMode\":\"Additive\",\"sourceName\":\"nfsEndpointhc715gxy\",\"sourceResourceId\":\"/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/teststoragemover/providers/Microsoft.StorageMover/storageMovers/testmoverpreview1/endpoints/nfsEndpointhc715gxy\",\"targetName\":\"containerEndpointhc715gxy\",\"targetResourceId\":\"/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/teststoragemover/providers/Microsoft.StorageMover/storageMovers/testmoverpreview1/endpoints/containerEndpointhc715gxy\",\"agentName\":\"testagent1\",\"agentResourceId\":\"/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/teststoragemover/providers/Microsoft.StorageMover/storageMovers/testmoverpreview1/agents/testagent1\",\"provisioningState\":\"Succeeded\"}}", "isContentBase64": false } } diff --git a/src/StorageMover/test/New-AzStorageMoverNfsEndpoint.Recording.json b/src/StorageMover/test/New-AzStorageMoverNfsEndpoint.Recording.json index 0c12c5080045..da6879d9188f 100644 --- a/src/StorageMover/test/New-AzStorageMoverNfsEndpoint.Recording.json +++ b/src/StorageMover/test/New-AzStorageMoverNfsEndpoint.Recording.json @@ -1,8 +1,8 @@ { - "New-AzStorageMoverNfsEndpoint+[NoContext]+CreateExpanded+$PUT+https://management.azure.com/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/testStorageMover/providers/Microsoft.StorageMover/storageMovers/testStoMover14068b735/endpoints/testNfsEndpoint4068b735?api-version=2023-03-01+1": { + "New-AzStorageMoverNfsEndpoint+[NoContext]+CreateExpanded+$PUT+https://management.azure.com/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/teststoragemover/providers/Microsoft.StorageMover/storageMovers/testStoMover1hc715gxy/endpoints/testNfsEndpointhc715gxy?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/testStoMover14068b735/endpoints/testNfsEndpoint4068b735?api-version=2023-03-01", + "RequestUri": "https://management.azure.com/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/teststoragemover/providers/Microsoft.StorageMover/storageMovers/testStoMover1hc715gxy/endpoints/testNfsEndpointhc715gxy?api-version=2023-10-01", "Content": "{\r\n \"properties\": {\r\n \"endpointType\": \"NfsMount\",\r\n \"description\": \"Nfs endpoint description\",\r\n \"host\": \"10.0.0.1\",\r\n \"nfsVersion\": \"NFSv3\",\r\n \"export\": \"/\"\r\n }\r\n}", "isContentBase64": false, "Headers": { @@ -17,39 +17,39 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "ETag": [ "\"000067e5-0000-3400-0000-62e8b7d80000\"" ], - "x-ms-ratelimit-remaining-subscription-writes": [ "1184" ], + "ETag": [ "\"2d011f48-0000-3400-0000-64ba09a70000\"" ], + "x-ms-ratelimit-remaining-subscription-writes": [ "1188" ], "x-ms-providerhub-traffic": [ "True" ], - "mise-correlation-id": [ "0f097023-9df4-4f06-930e-aa6e6fbae550" ], - "x-ms-request-id": [ "040f727a-340e-449c-a825-0d6e6a3c50f7" ], - "x-ms-correlation-request-id": [ "dc70fb2a-88bb-4e31-bf4e-aaf3b887841a" ], - "x-ms-routing-request-id": [ "SOUTHEASTASIA:20220802T053624Z:dc70fb2a-88bb-4e31-bf4e-aaf3b887841a" ], + "mise-correlation-id": [ "98eedf8f-0238-40ca-a8eb-8a56535800f8" ], + "x-ms-request-id": [ "78c1b1fb-7e50-4e20-a45c-d0884c7f2c4b" ], + "x-ms-correlation-request-id": [ "bef658ae-f58b-437d-8238-0fffd621189d" ], + "x-ms-routing-request-id": [ "EASTUS2EUAP:20230721T042927Z:bef658ae-f58b-437d-8238-0fffd621189d" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "X-Content-Type-Options": [ "nosniff" ], - "Date": [ "Tue, 02 Aug 2022 05:36:23 GMT" ] + "Date": [ "Fri, 21 Jul 2023 04:29:27 GMT" ] }, "ContentHeaders": { "Content-Length": [ "728" ], "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"id\":\"/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/testStorageMover/providers/Microsoft.StorageMover/storageMovers/testStoMover14068b735/endpoints/testNfsEndpoint4068b735\",\"name\":\"testNfsEndpoint4068b735\",\"type\":\"microsoft.storagemover/storagemovers/endpoints\",\"systemData\":{\"createdBy\":\"a000255f-5f09-45e0-a970-9d9ed9cc6453\",\"createdByType\":\"Application\",\"createdAt\":\"2022-08-02T05:36:23.5767645Z\",\"lastModifiedBy\":\"a000255f-5f09-45e0-a970-9d9ed9cc6453\",\"lastModifiedByType\":\"Application\",\"lastModifiedAt\":\"2022-08-02T05:36:23.5767645Z\"},\"properties\":{\"endpointType\":\"NfsMount\",\"description\":\"Nfs endpoint description\",\"host\":\"10.0.0.1\",\"nfsVersion\":\"NFSv3\",\"export\":\"/\",\"provisioningState\":\"Succeeded\"}}", + "Content": "{\"id\":\"/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/teststoragemover/providers/Microsoft.StorageMover/storageMovers/testStoMover1hc715gxy/endpoints/testNfsEndpointhc715gxy\",\"name\":\"testNfsEndpointhc715gxy\",\"type\":\"microsoft.storagemover/storagemovers/endpoints\",\"systemData\":{\"createdBy\":\"a000255f-5f09-45e0-a970-9d9ed9cc6453\",\"createdByType\":\"Application\",\"createdAt\":\"2023-07-21T04:29:27.7109424Z\",\"lastModifiedBy\":\"a000255f-5f09-45e0-a970-9d9ed9cc6453\",\"lastModifiedByType\":\"Application\",\"lastModifiedAt\":\"2023-07-21T04:29:27.7109424Z\"},\"properties\":{\"host\":\"10.0.0.1\",\"nfsVersion\":\"NFSv3\",\"export\":\"/\",\"endpointType\":\"NfsMount\",\"description\":\"Nfs endpoint description\",\"provisioningState\":\"Succeeded\"}}", "isContentBase64": false } }, - "New-AzStorageMoverNfsEndpoint+[NoContext]+CreateExpanded+$GET+https://management.azure.com/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/testStorageMover/providers/Microsoft.StorageMover/storageMovers/testStoMover14068b735/endpoints/testNfsEndpoint4068b735?api-version=2023-03-01+2": { + "New-AzStorageMoverNfsEndpoint+[NoContext]+CreateExpanded+$GET+https://management.azure.com/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/teststoragemover/providers/Microsoft.StorageMover/storageMovers/testStoMover1hc715gxy/endpoints/testNfsEndpointhc715gxy?api-version=2023-10-01+2": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/testStorageMover/providers/Microsoft.StorageMover/storageMovers/testStoMover14068b735/endpoints/testNfsEndpoint4068b735?api-version=2023-03-01", + "RequestUri": "https://management.azure.com/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/teststoragemover/providers/Microsoft.StorageMover/storageMovers/testStoMover1hc715gxy/endpoints/testNfsEndpointhc715gxy?api-version=2023-10-01", "Content": null, "isContentBase64": false, "Headers": { - "x-ms-unique-id": [ "29" ], - "x-ms-client-request-id": [ "6771c302-6063-464f-8543-2802cd8948df" ], + "x-ms-unique-id": [ "34" ], + "x-ms-client-request-id": [ "39437a5f-6755-476c-93ee-5ea2ad57bc95" ], "CommandName": [ "Get-AzStorageMoverEndpoint" ], "FullCommandName": [ "Get-AzStorageMoverEndpoint_Get" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v8.0.0", "PSVersion/v7.2.5", "Az.StorageMover/0.1.0" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.2.12", "Az.StorageMover/1.0.1" ], "Authorization": [ "[Filtered]" ] }, "ContentHeaders": { @@ -60,22 +60,22 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "ETag": [ "\"000067e5-0000-3400-0000-62e8b7d80000\"" ], - "x-ms-ratelimit-remaining-subscription-reads": [ "11974" ], + "ETag": [ "\"2d011f48-0000-3400-0000-64ba09a70000\"" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11980" ], "x-ms-providerhub-traffic": [ "True" ], - "x-ms-request-id": [ "04d4713e-479f-40b0-b8cd-550b091029da" ], - "x-ms-correlation-request-id": [ "8aa3b8ea-21c5-4fbb-98a4-f8b0212ab6e2" ], - "x-ms-routing-request-id": [ "SOUTHEASTASIA:20220802T053625Z:8aa3b8ea-21c5-4fbb-98a4-f8b0212ab6e2" ], + "x-ms-request-id": [ "dca3b533-6a00-402f-acb6-6edc6f80dedd" ], + "x-ms-correlation-request-id": [ "d24fe97d-c63b-48c7-a544-84a5b1f47e8e" ], + "x-ms-routing-request-id": [ "EASTUS2EUAP:20230721T042928Z:d24fe97d-c63b-48c7-a544-84a5b1f47e8e" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "X-Content-Type-Options": [ "nosniff" ], - "Date": [ "Tue, 02 Aug 2022 05:36:24 GMT" ] + "Date": [ "Fri, 21 Jul 2023 04:29:27 GMT" ] }, "ContentHeaders": { "Content-Length": [ "728" ], "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"id\":\"/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/testStorageMover/providers/Microsoft.StorageMover/storageMovers/testStoMover14068b735/endpoints/testNfsEndpoint4068b735\",\"name\":\"testNfsEndpoint4068b735\",\"type\":\"microsoft.storagemover/storagemovers/endpoints\",\"systemData\":{\"createdBy\":\"a000255f-5f09-45e0-a970-9d9ed9cc6453\",\"createdByType\":\"Application\",\"createdAt\":\"2022-08-02T05:36:23.5767645Z\",\"lastModifiedBy\":\"a000255f-5f09-45e0-a970-9d9ed9cc6453\",\"lastModifiedByType\":\"Application\",\"lastModifiedAt\":\"2022-08-02T05:36:23.5767645Z\"},\"properties\":{\"endpointType\":\"NfsMount\",\"description\":\"Nfs endpoint description\",\"host\":\"10.0.0.1\",\"nfsVersion\":\"NFSv3\",\"export\":\"/\",\"provisioningState\":\"Succeeded\"}}", + "Content": "{\"id\":\"/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/teststoragemover/providers/Microsoft.StorageMover/storageMovers/testStoMover1hc715gxy/endpoints/testNfsEndpointhc715gxy\",\"name\":\"testNfsEndpointhc715gxy\",\"type\":\"microsoft.storagemover/storagemovers/endpoints\",\"systemData\":{\"createdBy\":\"a000255f-5f09-45e0-a970-9d9ed9cc6453\",\"createdByType\":\"Application\",\"createdAt\":\"2023-07-21T04:29:27.7109424Z\",\"lastModifiedBy\":\"a000255f-5f09-45e0-a970-9d9ed9cc6453\",\"lastModifiedByType\":\"Application\",\"lastModifiedAt\":\"2023-07-21T04:29:27.7109424Z\"},\"properties\":{\"host\":\"10.0.0.1\",\"nfsVersion\":\"NFSv3\",\"export\":\"/\",\"endpointType\":\"NfsMount\",\"description\":\"Nfs endpoint description\",\"provisioningState\":\"Succeeded\"}}", "isContentBase64": false } } diff --git a/src/StorageMover/test/New-AzStorageMoverProject.Recording.json b/src/StorageMover/test/New-AzStorageMoverProject.Recording.json index cabf26871fb4..7166fe89f717 100644 --- a/src/StorageMover/test/New-AzStorageMoverProject.Recording.json +++ b/src/StorageMover/test/New-AzStorageMoverProject.Recording.json @@ -1,8 +1,8 @@ { - "New-AzStorageMoverProject+[NoContext]+CreateExpanded+$PUT+https://management.azure.com/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/testStorageMover/providers/Microsoft.StorageMover/storageMovers/testStoMover14068b735/projects/testProject4068b735?api-version=2023-03-01+1": { + "New-AzStorageMoverProject+[NoContext]+CreateExpanded+$PUT+https://management.azure.com/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/teststoragemover/providers/Microsoft.StorageMover/storageMovers/testStoMover1hc715gxy/projects/testProjecthc715gxy?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/testStoMover14068b735/projects/testProject4068b735?api-version=2023-03-01", + "RequestUri": "https://management.azure.com/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/teststoragemover/providers/Microsoft.StorageMover/storageMovers/testStoMover1hc715gxy/projects/testProjecthc715gxy?api-version=2023-10-01", "Content": "{\r\n \"properties\": {\r\n \"description\": \"test project description\"\r\n }\r\n}", "isContentBase64": false, "Headers": { @@ -17,39 +17,39 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "ETag": [ "\"00002f08-0000-3400-0000-62e8b7da0000\"" ], - "x-ms-ratelimit-remaining-subscription-writes": [ "1183" ], + "ETag": [ "\"2d01ea02-0000-3400-0000-64ba09a90000\"" ], + "x-ms-ratelimit-remaining-subscription-writes": [ "1187" ], "x-ms-providerhub-traffic": [ "True" ], - "mise-correlation-id": [ "b78bf01e-41df-4811-9b1f-fb9fe880972f" ], - "x-ms-request-id": [ "1e992e0c-9bad-4572-ae36-0a5186b3347c" ], - "x-ms-correlation-request-id": [ "50a0f62f-4e5a-4b42-9515-50d9e2bcae5a" ], - "x-ms-routing-request-id": [ "SOUTHEASTASIA:20220802T053626Z:50a0f62f-4e5a-4b42-9515-50d9e2bcae5a" ], + "mise-correlation-id": [ "35830e65-e633-4911-a33f-dc7af35e734b" ], + "x-ms-request-id": [ "39a7ceb2-78ac-4c01-b03d-176adf28c0e5" ], + "x-ms-correlation-request-id": [ "a8fd9d27-9e5d-41b4-8cb3-7a48a48c1c02" ], + "x-ms-routing-request-id": [ "EASTUS2EUAP:20230721T042929Z:a8fd9d27-9e5d-41b4-8cb3-7a48a48c1c02" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "X-Content-Type-Options": [ "nosniff" ], - "Date": [ "Tue, 02 Aug 2022 05:36:25 GMT" ] + "Date": [ "Fri, 21 Jul 2023 04:29:28 GMT" ] }, "ContentHeaders": { - "Content-Length": [ "639" ], + "Content-Length": [ "640" ], "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"id\":\"/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/testStorageMover/providers/Microsoft.StorageMover/storageMovers/testStoMover14068b735/projects/testProject4068b735\",\"name\":\"testProject4068b735\",\"type\":\"microsoft.storagemover/storagemovers/projects\",\"systemData\":{\"createdBy\":\"a000255f-5f09-45e0-a970-9d9ed9cc6453\",\"createdByType\":\"Application\",\"createdAt\":\"2022-08-02T05:35:47.0611007Z\",\"lastModifiedBy\":\"a000255f-5f09-45e0-a970-9d9ed9cc6453\",\"lastModifiedByType\":\"Application\",\"lastModifiedAt\":\"2022-08-02T05:36:26.092361Z\"},\"properties\":{\"provisioningState\":\"Succeeded\",\"description\":\"test project description\"}}", + "Content": "{\"id\":\"/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/teststoragemover/providers/Microsoft.StorageMover/storageMovers/testStoMover1hc715gxy/projects/testProjecthc715gxy\",\"name\":\"testProjecthc715gxy\",\"type\":\"microsoft.storagemover/storagemovers/projects\",\"systemData\":{\"createdBy\":\"a000255f-5f09-45e0-a970-9d9ed9cc6453\",\"createdByType\":\"Application\",\"createdAt\":\"2023-07-21T04:28:58.1006856Z\",\"lastModifiedBy\":\"a000255f-5f09-45e0-a970-9d9ed9cc6453\",\"lastModifiedByType\":\"Application\",\"lastModifiedAt\":\"2023-07-21T04:29:29.4609543Z\"},\"properties\":{\"provisioningState\":\"Succeeded\",\"description\":\"test project description\"}}", "isContentBase64": false } }, - "New-AzStorageMoverProject+[NoContext]+CreateExpanded+$GET+https://management.azure.com/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/testStorageMover/providers/Microsoft.StorageMover/storageMovers/testStoMover14068b735/projects/testProject4068b735?api-version=2023-03-01+2": { + "New-AzStorageMoverProject+[NoContext]+CreateExpanded+$GET+https://management.azure.com/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/teststoragemover/providers/Microsoft.StorageMover/storageMovers/testStoMover1hc715gxy/projects/testProjecthc715gxy?api-version=2023-10-01+2": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/testStorageMover/providers/Microsoft.StorageMover/storageMovers/testStoMover14068b735/projects/testProject4068b735?api-version=2023-03-01", + "RequestUri": "https://management.azure.com/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/teststoragemover/providers/Microsoft.StorageMover/storageMovers/testStoMover1hc715gxy/projects/testProjecthc715gxy?api-version=2023-10-01", "Content": null, "isContentBase64": false, "Headers": { - "x-ms-unique-id": [ "31" ], - "x-ms-client-request-id": [ "9eed5764-b76f-4766-b964-06c0e61add18" ], + "x-ms-unique-id": [ "36" ], + "x-ms-client-request-id": [ "0c849d23-9577-4eb6-a54c-beb4328da3e5" ], "CommandName": [ "Get-AzStorageMoverProject" ], "FullCommandName": [ "Get-AzStorageMoverProject_Get" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v8.0.0", "PSVersion/v7.2.5", "Az.StorageMover/0.1.0" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.2.12", "Az.StorageMover/1.0.1" ], "Authorization": [ "[Filtered]" ] }, "ContentHeaders": { @@ -60,22 +60,22 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "ETag": [ "\"00002f08-0000-3400-0000-62e8b7da0000\"" ], - "x-ms-ratelimit-remaining-subscription-reads": [ "11973" ], + "ETag": [ "\"2d01ea02-0000-3400-0000-64ba09a90000\"" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11979" ], "x-ms-providerhub-traffic": [ "True" ], - "x-ms-request-id": [ "483c1a6b-70dc-49a3-90cd-d69b0140c86b" ], - "x-ms-correlation-request-id": [ "8e085b06-f710-4b3c-b0e3-d82231f76da8" ], - "x-ms-routing-request-id": [ "SOUTHEASTASIA:20220802T053627Z:8e085b06-f710-4b3c-b0e3-d82231f76da8" ], + "x-ms-request-id": [ "3913393b-3f76-4232-87a3-a45d2a5078e7" ], + "x-ms-correlation-request-id": [ "873d7805-2981-47e2-ac44-f4bc744ac6ad" ], + "x-ms-routing-request-id": [ "EASTUS2EUAP:20230721T042930Z:873d7805-2981-47e2-ac44-f4bc744ac6ad" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "X-Content-Type-Options": [ "nosniff" ], - "Date": [ "Tue, 02 Aug 2022 05:36:26 GMT" ] + "Date": [ "Fri, 21 Jul 2023 04:29:29 GMT" ] }, "ContentHeaders": { - "Content-Length": [ "639" ], + "Content-Length": [ "640" ], "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"id\":\"/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/testStorageMover/providers/Microsoft.StorageMover/storageMovers/testStoMover14068b735/projects/testProject4068b735\",\"name\":\"testProject4068b735\",\"type\":\"microsoft.storagemover/storagemovers/projects\",\"systemData\":{\"createdBy\":\"a000255f-5f09-45e0-a970-9d9ed9cc6453\",\"createdByType\":\"Application\",\"createdAt\":\"2022-08-02T05:35:47.0611007Z\",\"lastModifiedBy\":\"a000255f-5f09-45e0-a970-9d9ed9cc6453\",\"lastModifiedByType\":\"Application\",\"lastModifiedAt\":\"2022-08-02T05:36:26.092361Z\"},\"properties\":{\"provisioningState\":\"Succeeded\",\"description\":\"test project description\"}}", + "Content": "{\"id\":\"/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/teststoragemover/providers/Microsoft.StorageMover/storageMovers/testStoMover1hc715gxy/projects/testProjecthc715gxy\",\"name\":\"testProjecthc715gxy\",\"type\":\"microsoft.storagemover/storagemovers/projects\",\"systemData\":{\"createdBy\":\"a000255f-5f09-45e0-a970-9d9ed9cc6453\",\"createdByType\":\"Application\",\"createdAt\":\"2023-07-21T04:28:58.1006856Z\",\"lastModifiedBy\":\"a000255f-5f09-45e0-a970-9d9ed9cc6453\",\"lastModifiedByType\":\"Application\",\"lastModifiedAt\":\"2023-07-21T04:29:29.4609543Z\"},\"properties\":{\"provisioningState\":\"Succeeded\",\"description\":\"test project description\"}}", "isContentBase64": false } } diff --git a/src/StorageMover/test/New-AzStorageMoverSmbEndpoint.Recording.json b/src/StorageMover/test/New-AzStorageMoverSmbEndpoint.Recording.json new file mode 100644 index 000000000000..d6216b76071e --- /dev/null +++ b/src/StorageMover/test/New-AzStorageMoverSmbEndpoint.Recording.json @@ -0,0 +1,200 @@ +{ + "New/Update-AzStorageMoverSmbEndpoint+[NoContext]+Create and update+$PUT+https://management.azure.com/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/teststoragemover/providers/Microsoft.StorageMover/storageMovers/testStoMover1hc715gxy/endpoints/testsmbendpoint1hc715gxy?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/testsmbendpoint1hc715gxy?api-version=2023-10-01", + "Content": "{\r\n \"properties\": {\r\n \"endpointType\": \"SmbMount\",\r\n \"description\": \"new smb endpoint\",\r\n \"credentials\": {\r\n \"type\": \"AzureKeyVaultSmb\",\r\n \"usernameUri\": \"https://examples-azureKeyVault.vault.azure.net/secrets/examples-username\",\r\n \"passwordUri\": \"https://examples-azureKeyVault.vault.azure.net/secrets/examples-password\"\r\n },\r\n \"host\": \"10.0.0.1\",\r\n \"shareName\": \"shareNamehc715gxy\"\r\n }\r\n}", + "isContentBase64": false, + "Headers": { + }, + "ContentHeaders": { + "Content-Type": [ "application/json" ], + "Content-Length": [ "424" ] + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "ETag": [ "\"2d012048-0000-3400-0000-64ba09ab0000\"" ], + "x-ms-ratelimit-remaining-subscription-writes": [ "1186" ], + "x-ms-providerhub-traffic": [ "True" ], + "mise-correlation-id": [ "d3e6e6e3-8ecf-41c2-99e2-956ecf0b9c12" ], + "x-ms-request-id": [ "610219d0-e7dc-429d-8bb5-5b66b1f28b9b" ], + "x-ms-correlation-request-id": [ "865b7953-7561-49bf-b2f6-1c9d436b3de1" ], + "x-ms-routing-request-id": [ "EASTUS2EUAP:20230721T042931Z:865b7953-7561-49bf-b2f6-1c9d436b3de1" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Fri, 21 Jul 2023 04:29:30 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "940" ], + "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/testsmbendpoint1hc715gxy\",\"name\":\"testsmbendpoint1hc715gxy\",\"type\":\"microsoft.storagemover/storagemovers/endpoints\",\"systemData\":{\"createdBy\":\"a000255f-5f09-45e0-a970-9d9ed9cc6453\",\"createdByType\":\"Application\",\"createdAt\":\"2023-07-21T04:29:31.1797491Z\",\"lastModifiedBy\":\"a000255f-5f09-45e0-a970-9d9ed9cc6453\",\"lastModifiedByType\":\"Application\",\"lastModifiedAt\":\"2023-07-21T04:29:31.1797491Z\"},\"properties\":{\"host\":\"10.0.0.1\",\"shareName\":\"shareNamehc715gxy\",\"credentials\":{\"usernameUri\":\"https://examples-azureKeyVault.vault.azure.net/secrets/examples-username\",\"passwordUri\":\"https://examples-azureKeyVault.vault.azure.net/secrets/examples-password\",\"type\":\"AzureKeyVaultSmb\"},\"endpointType\":\"SmbMount\",\"description\":\"new smb endpoint\",\"provisioningState\":\"Succeeded\"}}", + "isContentBase64": false + } + }, + "New/Update-AzStorageMoverSmbEndpoint+[NoContext]+Create and update+$GET+https://management.azure.com/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/teststoragemover/providers/Microsoft.StorageMover/storageMovers/testStoMover1hc715gxy/endpoints/testsmbendpoint1hc715gxy?api-version=2023-10-01+2": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/teststoragemover/providers/Microsoft.StorageMover/storageMovers/testStoMover1hc715gxy/endpoints/testsmbendpoint1hc715gxy?api-version=2023-10-01", + "Content": null, + "isContentBase64": false, + "Headers": { + "x-ms-unique-id": [ "38" ], + "x-ms-client-request-id": [ "95c7ea35-0f0f-4d8f-8843-f81ad8f33777" ], + "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": [ "\"2d012048-0000-3400-0000-64ba09ab0000\"" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11978" ], + "x-ms-providerhub-traffic": [ "True" ], + "x-ms-request-id": [ "50357129-d489-4638-b16d-808c439f7514" ], + "x-ms-correlation-request-id": [ "11dc97dd-060e-449d-9115-70055dfa5b4f" ], + "x-ms-routing-request-id": [ "EASTUS2EUAP:20230721T042932Z:11dc97dd-060e-449d-9115-70055dfa5b4f" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Fri, 21 Jul 2023 04:29:32 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "940" ], + "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/testsmbendpoint1hc715gxy\",\"name\":\"testsmbendpoint1hc715gxy\",\"type\":\"microsoft.storagemover/storagemovers/endpoints\",\"systemData\":{\"createdBy\":\"a000255f-5f09-45e0-a970-9d9ed9cc6453\",\"createdByType\":\"Application\",\"createdAt\":\"2023-07-21T04:29:31.1797491Z\",\"lastModifiedBy\":\"a000255f-5f09-45e0-a970-9d9ed9cc6453\",\"lastModifiedByType\":\"Application\",\"lastModifiedAt\":\"2023-07-21T04:29:31.1797491Z\"},\"properties\":{\"host\":\"10.0.0.1\",\"shareName\":\"shareNamehc715gxy\",\"credentials\":{\"usernameUri\":\"https://examples-azureKeyVault.vault.azure.net/secrets/examples-username\",\"passwordUri\":\"https://examples-azureKeyVault.vault.azure.net/secrets/examples-password\",\"type\":\"AzureKeyVaultSmb\"},\"endpointType\":\"SmbMount\",\"description\":\"new smb endpoint\",\"provisioningState\":\"Succeeded\"}}", + "isContentBase64": false + } + }, + "New/Update-AzStorageMoverSmbEndpoint+[NoContext]+Create and update+$PATCH+https://management.azure.com/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/teststoragemover/providers/Microsoft.StorageMover/storageMovers/testStoMover1hc715gxy/endpoints/testsmbendpoint1hc715gxy?api-version=2023-10-01+3": { + "Request": { + "Method": "PATCH", + "RequestUri": "https://management.azure.com/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/teststoragemover/providers/Microsoft.StorageMover/storageMovers/testStoMover1hc715gxy/endpoints/testsmbendpoint1hc715gxy?api-version=2023-10-01", + "Content": "{\r\n \"properties\": {\r\n \"endpointType\": \"SmbMount\",\r\n \"description\": \"update smb endpoint\",\r\n \"credentials\": {\r\n \"type\": \"AzureKeyVaultSmb\",\r\n \"usernameUri\": \"https://examples-azureKeyVault.vault.azure.net/secrets/examples-username1\",\r\n \"passwordUri\": \"https://examples-azureKeyVault.vault.azure.net/secrets/examples-password1\"\r\n }\r\n }\r\n}", + "isContentBase64": false, + "Headers": { + }, + "ContentHeaders": { + "Content-Type": [ "application/json" ], + "Content-Length": [ "365" ] + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "ETag": [ "\"2d012148-0000-3400-0000-64ba09ad0000\"" ], + "x-ms-ratelimit-remaining-subscription-writes": [ "1185" ], + "x-ms-providerhub-traffic": [ "True" ], + "mise-correlation-id": [ "0e3f3cd2-ccd7-4252-8012-b74b9b452cc3" ], + "x-ms-request-id": [ "51a42ae1-6720-407f-a13f-917e06f9a8c7" ], + "x-ms-correlation-request-id": [ "8bee3280-2f6f-4480-a221-5fdd9d668737" ], + "x-ms-routing-request-id": [ "EASTUS2EUAP:20230721T042933Z:8bee3280-2f6f-4480-a221-5fdd9d668737" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Fri, 21 Jul 2023 04:29:32 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "945" ], + "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/testsmbendpoint1hc715gxy\",\"name\":\"testsmbendpoint1hc715gxy\",\"type\":\"microsoft.storagemover/storagemovers/endpoints\",\"systemData\":{\"createdBy\":\"a000255f-5f09-45e0-a970-9d9ed9cc6453\",\"createdByType\":\"Application\",\"createdAt\":\"2023-07-21T04:29:31.1797491Z\",\"lastModifiedBy\":\"a000255f-5f09-45e0-a970-9d9ed9cc6453\",\"lastModifiedByType\":\"Application\",\"lastModifiedAt\":\"2023-07-21T04:29:32.9140685Z\"},\"properties\":{\"host\":\"10.0.0.1\",\"shareName\":\"shareNamehc715gxy\",\"credentials\":{\"usernameUri\":\"https://examples-azureKeyVault.vault.azure.net/secrets/examples-username1\",\"passwordUri\":\"https://examples-azureKeyVault.vault.azure.net/secrets/examples-password1\",\"type\":\"AzureKeyVaultSmb\"},\"endpointType\":\"SmbMount\",\"description\":\"update smb endpoint\",\"provisioningState\":\"Succeeded\"}}", + "isContentBase64": false + } + }, + "New/Update-AzStorageMoverSmbEndpoint+[NoContext]+Create and update+$GET+https://management.azure.com/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/teststoragemover/providers/Microsoft.StorageMover/storageMovers/testStoMover1hc715gxy/endpoints/testsmbendpoint1hc715gxy?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/testsmbendpoint1hc715gxy?api-version=2023-10-01", + "Content": null, + "isContentBase64": false, + "Headers": { + "x-ms-unique-id": [ "40" ], + "x-ms-client-request-id": [ "20e47148-d99b-4f0f-abfd-644d394088a0" ], + "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": [ "\"2d012148-0000-3400-0000-64ba09ad0000\"" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11977" ], + "x-ms-providerhub-traffic": [ "True" ], + "x-ms-request-id": [ "c3950bc9-82cf-4253-a5a8-ace8a780e419" ], + "x-ms-correlation-request-id": [ "94c28a2a-31d3-4bc4-9905-0da9a8d80df1" ], + "x-ms-routing-request-id": [ "EASTUS2EUAP:20230721T042933Z:94c28a2a-31d3-4bc4-9905-0da9a8d80df1" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Fri, 21 Jul 2023 04:29:33 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "945" ], + "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/testsmbendpoint1hc715gxy\",\"name\":\"testsmbendpoint1hc715gxy\",\"type\":\"microsoft.storagemover/storagemovers/endpoints\",\"systemData\":{\"createdBy\":\"a000255f-5f09-45e0-a970-9d9ed9cc6453\",\"createdByType\":\"Application\",\"createdAt\":\"2023-07-21T04:29:31.1797491Z\",\"lastModifiedBy\":\"a000255f-5f09-45e0-a970-9d9ed9cc6453\",\"lastModifiedByType\":\"Application\",\"lastModifiedAt\":\"2023-07-21T04:29:32.9140685Z\"},\"properties\":{\"host\":\"10.0.0.1\",\"shareName\":\"shareNamehc715gxy\",\"credentials\":{\"usernameUri\":\"https://examples-azureKeyVault.vault.azure.net/secrets/examples-username1\",\"passwordUri\":\"https://examples-azureKeyVault.vault.azure.net/secrets/examples-password1\",\"type\":\"AzureKeyVaultSmb\"},\"endpointType\":\"SmbMount\",\"description\":\"update smb endpoint\",\"provisioningState\":\"Succeeded\"}}", + "isContentBase64": false + } + }, + "New/Update-AzStorageMoverSmbEndpoint+[NoContext]+Create and update+$PATCH+https://management.azure.com/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/teststoragemover/providers/Microsoft.StorageMover/storageMovers/testStoMover1hc715gxy/endpoints/testsmbendpoint1hc715gxy?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/testsmbendpoint1hc715gxy?api-version=2023-10-01", + "Content": "{\r\n \"properties\": {\r\n \"endpointType\": \"SmbMount\",\r\n \"credentials\": {\r\n \"type\": \"AzureKeyVaultSmb\",\r\n \"usernameUri\": \"\",\r\n \"passwordUri\": \"\"\r\n }\r\n }\r\n}", + "isContentBase64": false, + "Headers": { + }, + "ContentHeaders": { + "Content-Type": [ "application/json" ], + "Content-Length": [ "176" ] + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "ETag": [ "\"2d012448-0000-3400-0000-64ba09ae0000\"" ], + "x-ms-ratelimit-remaining-subscription-writes": [ "1184" ], + "x-ms-providerhub-traffic": [ "True" ], + "mise-correlation-id": [ "12bcb706-634e-4b11-9a64-7563030e7ff3" ], + "x-ms-request-id": [ "0b2c5878-d220-470c-9df7-60d56ff2be7f" ], + "x-ms-correlation-request-id": [ "faa0d55a-30a5-4460-83fa-c801afaf8205" ], + "x-ms-routing-request-id": [ "EASTUS2EUAP:20230721T042934Z:faa0d55a-30a5-4460-83fa-c801afaf8205" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Fri, 21 Jul 2023 04:29:33 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "799" ], + "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/testsmbendpoint1hc715gxy\",\"name\":\"testsmbendpoint1hc715gxy\",\"type\":\"microsoft.storagemover/storagemovers/endpoints\",\"systemData\":{\"createdBy\":\"a000255f-5f09-45e0-a970-9d9ed9cc6453\",\"createdByType\":\"Application\",\"createdAt\":\"2023-07-21T04:29:31.1797491Z\",\"lastModifiedBy\":\"a000255f-5f09-45e0-a970-9d9ed9cc6453\",\"lastModifiedByType\":\"Application\",\"lastModifiedAt\":\"2023-07-21T04:29:34.7594547Z\"},\"properties\":{\"host\":\"10.0.0.1\",\"shareName\":\"shareNamehc715gxy\",\"credentials\":{\"usernameUri\":\"\",\"passwordUri\":\"\",\"type\":\"AzureKeyVaultSmb\"},\"endpointType\":\"SmbMount\",\"description\":\"update smb endpoint\",\"provisioningState\":\"Succeeded\"}}", + "isContentBase64": false + } + } +} \ No newline at end of file diff --git a/src/StorageMover/test/New-AzStorageMoverSmbEndpoint.Tests.ps1 b/src/StorageMover/test/New-AzStorageMoverSmbEndpoint.Tests.ps1 new file mode 100644 index 000000000000..53f2477fb21c --- /dev/null +++ b/src/StorageMover/test/New-AzStorageMoverSmbEndpoint.Tests.ps1 @@ -0,0 +1,66 @@ +if(($null -eq $TestName) -or ($TestName -contains 'New-AzStorageMoverSmbEndpoint')) +{ + $loadEnvPath = Join-Path $PSScriptRoot 'loadEnv.ps1' + if (-Not (Test-Path -Path $loadEnvPath)) { + $loadEnvPath = Join-Path $PSScriptRoot '..\loadEnv.ps1' + } + . ($loadEnvPath) + $TestRecordingFile = Join-Path $PSScriptRoot 'New-AzStorageMoverSmbEndpoint.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 'New/Update-AzStorageMoverSmbEndpoint' { + It 'Create and update' { + $endpointName = "testsmbendpoint1" + $env.RandomString + $shareName = "shareName" + $env.RandomString + $smbendpoint = New-AzStorageMoverSmbEndpoint -Name $endpointName -ResourceGroupName $env.ResourceGroupName -StorageMoverName $env.InitialStoMoverName -Host "10.0.0.1" -ShareName $shareName -CredentialsUsernameUri "https://examples-azureKeyVault.vault.azure.net/secrets/examples-username" -CredentialsPasswordUri "https://examples-azureKeyVault.vault.azure.net/secrets/examples-password" -Description "new smb endpoint" + $smbendpoint.Name | Should -Be $endpointName + $smbendpoint.Property.CredentialsType | Should -Be "AzureKeyVaultSmb" + $smbendpoint.Property.CredentialsPasswordUri | Should -Be "https://examples-azureKeyVault.vault.azure.net/secrets/examples-password" + $smbendpoint.Property.CredentialsUsernameUri | Should -Be "https://examples-azureKeyVault.vault.azure.net/secrets/examples-username" + $smbendpoint.Property.EndpointType | Should -Be "SmbMount" + $smbendpoint.Property.ShareName | Should -Be $shareName + $smbendpoint.Property.Description | Should -Be "new smb endpoint" + + $smbendpoint = Get-AzStorageMoverEndpoint -Name $endpointName -ResourceGroupName $env.ResourceGroupName -StorageMoverName $env.InitialStoMoverName + $smbendpoint.Name | Should -Be $endpointName + $smbendpoint.Property.CredentialsType | Should -Be "AzureKeyVaultSmb" + $smbendpoint.Property.CredentialsPasswordUri | Should -Be "https://examples-azureKeyVault.vault.azure.net/secrets/examples-password" + $smbendpoint.Property.CredentialsUsernameUri | Should -Be "https://examples-azureKeyVault.vault.azure.net/secrets/examples-username" + $smbendpoint.Property.EndpointType | Should -Be "SmbMount" + $smbendpoint.Property.ShareName | Should -Be $shareName + $smbendpoint.Property.Description | Should -Be "new smb endpoint" + + $smbendpoint = Update-AzStorageMoverSmbEndpoint -Name $endpointName -ResourceGroupName $env.ResourceGroupName -StorageMoverName $env.InitialStoMoverName -CredentialsUsernameUri "https://examples-azureKeyVault.vault.azure.net/secrets/examples-username1" -CredentialsPasswordUri "https://examples-azureKeyVault.vault.azure.net/secrets/examples-password1" -Description "update smb endpoint" + $smbendpoint.Name | Should -Be $endpointName + $smbendpoint.Property.CredentialsType | Should -Be "AzureKeyVaultSmb" + $smbendpoint.Property.CredentialsPasswordUri | Should -Be "https://examples-azureKeyVault.vault.azure.net/secrets/examples-password1" + $smbendpoint.Property.CredentialsUsernameUri | Should -Be "https://examples-azureKeyVault.vault.azure.net/secrets/examples-username1" + $smbendpoint.Property.EndpointType | Should -Be "SmbMount" + $smbendpoint.Property.ShareName | Should -Be $shareName + $smbendpoint.Property.Description | Should -Be "update smb endpoint" + + $smbendpoint = Get-AzStorageMoverEndpoint -Name $endpointName -ResourceGroupName $env.ResourceGroupName -StorageMoverName $env.InitialStoMoverName + $smbendpoint.Name | Should -Be $endpointName + $smbendpoint.Property.CredentialsType | Should -Be "AzureKeyVaultSmb" + $smbendpoint.Property.CredentialsPasswordUri | Should -Be "https://examples-azureKeyVault.vault.azure.net/secrets/examples-password1" + $smbendpoint.Property.CredentialsUsernameUri | Should -Be "https://examples-azureKeyVault.vault.azure.net/secrets/examples-username1" + $smbendpoint.Property.EndpointType | Should -Be "SmbMount" + $smbendpoint.Property.ShareName | Should -Be $shareName + $smbendpoint.Property.Description | Should -Be "update smb endpoint" + + $smbendpoint = Update-AzStorageMoverSmbEndpoint -Name $endpointName -ResourceGroupName $env.ResourceGroupName -StorageMoverName $env.InitialStoMoverName -CredentialsUsernameUri "" -CredentialsPasswordUri "" + $smbendpoint.Name | Should -Be $endpointName + $smbendpoint.Property.CredentialsType | Should -Be "AzureKeyVaultSmb" + $smbendpoint.Property.CredentialsPasswordUri | Should -Be "" + $smbendpoint.Property.CredentialsUsernameUri | Should -Be "" + $smbendpoint.Property.EndpointType | Should -Be "SmbMount" + $smbendpoint.Property.ShareName | Should -Be $shareName + $smbendpoint.Property.Description | Should -Be "update smb endpoint" + } +} diff --git a/src/StorageMover/test/New-AzStorageMoverSmbFileShareEndpoint.Recording.json b/src/StorageMover/test/New-AzStorageMoverSmbFileShareEndpoint.Recording.json new file mode 100644 index 000000000000..6d6c5b892907 --- /dev/null +++ b/src/StorageMover/test/New-AzStorageMoverSmbFileShareEndpoint.Recording.json @@ -0,0 +1,162 @@ +{ + "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": { + "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", + "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/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: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-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": { + "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", + "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/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: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-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": { + "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", + "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/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-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": { + "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", + "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/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 + } + } +} \ No newline at end of file diff --git a/src/StorageMover/test/New-AzStorageMoverSmbFileShareEndpoint.Tests.ps1 b/src/StorageMover/test/New-AzStorageMoverSmbFileShareEndpoint.Tests.ps1 new file mode 100644 index 000000000000..3fb64c540695 --- /dev/null +++ b/src/StorageMover/test/New-AzStorageMoverSmbFileShareEndpoint.Tests.ps1 @@ -0,0 +1,48 @@ +if(($null -eq $TestName) -or ($TestName -contains 'New-AzStorageMoverSmbFileShareEndpoint')) +{ + $loadEnvPath = Join-Path $PSScriptRoot 'loadEnv.ps1' + if (-Not (Test-Path -Path $loadEnvPath)) { + $loadEnvPath = Join-Path $PSScriptRoot '..\loadEnv.ps1' + } + . ($loadEnvPath) + $TestRecordingFile = Join-Path $PSScriptRoot 'New-AzStorageMoverSmbFileShareEndpoint.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 '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.Name | Should -Be $endpointName + $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 + $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-AzStorageMoverSmbFileShareEndpoint -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" + $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 + } +} diff --git a/src/StorageMover/test/Remove-AzStorageMover.Recording.json b/src/StorageMover/test/Remove-AzStorageMover.Recording.json index c6ff55199818..f16d66a93d90 100644 --- a/src/StorageMover/test/Remove-AzStorageMover.Recording.json +++ b/src/StorageMover/test/Remove-AzStorageMover.Recording.json @@ -1,8 +1,8 @@ { - "Remove-AzStorageMover+[NoContext]+Delete+$PUT+https://management.azure.com/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/testStorageMover/providers/Microsoft.StorageMover/storageMovers/testStoMover34068b735?api-version=2023-03-01+1": { + "Remove-AzStorageMover+[NoContext]+Delete+$PUT+https://management.azure.com/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/teststoragemover/providers/Microsoft.StorageMover/storageMovers/testStoMover3hc715gxy?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/testStoMover34068b735?api-version=2023-03-01", + "RequestUri": "https://management.azure.com/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/teststoragemover/providers/Microsoft.StorageMover/storageMovers/testStoMover3hc715gxy?api-version=2023-10-01", "Content": "{\r\n \"location\": \"eastus2euap\",\r\n \"properties\": {\r\n \"description\": \"\"\r\n }\r\n}", "isContentBase64": false, "Headers": { @@ -17,79 +17,165 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "ETag": [ "\"0000c1e6-0000-3400-0000-62e8b7de0000\"" ], - "x-ms-ratelimit-remaining-subscription-writes": [ "1182" ], + "ETag": [ "\"05009b13-0000-3400-0000-64ba09b00000\"" ], + "x-ms-ratelimit-remaining-subscription-writes": [ "1183" ], "x-ms-providerhub-traffic": [ "True" ], - "mise-correlation-id": [ "6e8a4ef2-d015-4991-a8ab-39c60ca27b4a" ], - "x-ms-request-id": [ "34391852-0704-4e94-878c-486a6241d2d1" ], - "x-ms-correlation-request-id": [ "c0c19dcb-49bd-4a1e-bb1d-b99d92cb70f2" ], - "x-ms-routing-request-id": [ "SOUTHEASTASIA:20220802T053632Z:c0c19dcb-49bd-4a1e-bb1d-b99d92cb70f2" ], + "mise-correlation-id": [ "0ad6c4c2-64bc-427f-9446-258ed400358e" ], + "x-ms-request-id": [ "6f18ca3b-eedd-43d3-826d-acc16e175ac8" ], + "x-ms-correlation-request-id": [ "20f63e13-085b-49cf-84da-161fb1b5d7de" ], + "x-ms-routing-request-id": [ "EASTUS2EUAP:20230721T042936Z:20f63e13-085b-49cf-84da-161fb1b5d7de" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "X-Content-Type-Options": [ "nosniff" ], - "Date": [ "Tue, 02 Aug 2022 05:36:31 GMT" ] + "Date": [ "Fri, 21 Jul 2023 04:29:36 GMT" ] }, "ContentHeaders": { "Content-Length": [ "605" ], "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"id\":\"/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/testStorageMover/providers/Microsoft.StorageMover/storageMovers/testStoMover34068b735\",\"name\":\"testStoMover34068b735\",\"type\":\"microsoft.storagemover/storagemovers\",\"location\":\"eastus2euap\",\"systemData\":{\"createdBy\":\"a000255f-5f09-45e0-a970-9d9ed9cc6453\",\"createdByType\":\"Application\",\"createdAt\":\"2022-08-02T05:36:30.4986129Z\",\"lastModifiedBy\":\"a000255f-5f09-45e0-a970-9d9ed9cc6453\",\"lastModifiedByType\":\"Application\",\"lastModifiedAt\":\"2022-08-02T05:36:30.4986129Z\"},\"properties\":{\"description\":\"\",\"provisioningState\":\"Succeeded\"}}", + "Content": "{\"id\":\"/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/teststoragemover/providers/Microsoft.StorageMover/storageMovers/testStoMover3hc715gxy\",\"name\":\"testStoMover3hc715gxy\",\"type\":\"microsoft.storagemover/storagemovers\",\"location\":\"eastus2euap\",\"systemData\":{\"createdBy\":\"a000255f-5f09-45e0-a970-9d9ed9cc6453\",\"createdByType\":\"Application\",\"createdAt\":\"2023-07-21T04:29:36.1334774Z\",\"lastModifiedBy\":\"a000255f-5f09-45e0-a970-9d9ed9cc6453\",\"lastModifiedByType\":\"Application\",\"lastModifiedAt\":\"2023-07-21T04:29:36.1334774Z\"},\"properties\":{\"description\":\"\",\"provisioningState\":\"Succeeded\"}}", "isContentBase64": false } }, - "Remove-AzStorageMover+[NoContext]+Delete+$DELETE+https://management.azure.com/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/testStorageMover/providers/Microsoft.StorageMover/storageMovers/testStoMover34068b735?api-version=2023-03-01+2": { + "Remove-AzStorageMover+[NoContext]+Delete+$DELETE+https://management.azure.com/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/teststoragemover/providers/Microsoft.StorageMover/storageMovers/testStoMover3hc715gxy?api-version=2023-10-01+2": { "Request": { "Method": "DELETE", - "RequestUri": "https://management.azure.com/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/testStorageMover/providers/Microsoft.StorageMover/storageMovers/testStoMover34068b735?api-version=2023-03-01", + "RequestUri": "https://management.azure.com/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/teststoragemover/providers/Microsoft.StorageMover/storageMovers/testStoMover3hc715gxy?api-version=2023-10-01", "Content": null, "isContentBase64": false, "Headers": { - "x-ms-unique-id": [ "33" ], - "x-ms-client-request-id": [ "14f6f29d-dc88-4c7c-925f-b26442a1a850" ], + "x-ms-unique-id": [ "43" ], + "x-ms-client-request-id": [ "5efe1e46-ed29-418a-83fc-e58316f2561e" ], "CommandName": [ "Az.StorageMover.internal\\Remove-AzStorageMover" ], "FullCommandName": [ "Remove-AzStorageMover_Delete" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v8.0.0", "PSVersion/v7.2.5", "Az.StorageMover/0.1.0" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.2.12", "Az.StorageMover/1.0.1" ], "Authorization": [ "[Filtered]" ] }, "ContentHeaders": { } }, "Response": { - "StatusCode": 200, + "StatusCode": 202, "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "x-ms-providerhub-traffic": [ "True" ], - "x-ms-request-id": [ "00000000-0000-0000-0000-000000000000" ], + "ETag": [ "\"05009e13-0000-3400-0000-64ba09b10000\"" ], + "Location": [ "https://management.azure.com/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/providers/Microsoft.StorageMover/locations/EASTUS2EUAP/operationStatuses/28a87381-fb78-4fb1-9b73-5a03efe80d3b*96E2584FBFBFC710B06187EC433B53F835B69A579EDB3B5B8C964DFDB611DAF1?api-version=2023-10-01" ], "x-ms-ratelimit-remaining-subscription-deletes": [ "14999" ], - "x-ms-correlation-request-id": [ "4d7301b1-983f-444a-8177-45b46ff9a43e" ], - "x-ms-routing-request-id": [ "SOUTHEASTASIA:20220802T053635Z:4d7301b1-983f-444a-8177-45b46ff9a43e" ], + "x-ms-providerhub-traffic": [ "True" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/providers/Microsoft.StorageMover/locations/EASTUS2EUAP/operationStatuses/28a87381-fb78-4fb1-9b73-5a03efe80d3b*96E2584FBFBFC710B06187EC433B53F835B69A579EDB3B5B8C964DFDB611DAF1?api-version=2023-10-01" ], + "x-ms-request-id": [ "28a87381-fb78-4fb1-9b73-5a03efe80d3b" ], + "x-ms-correlation-request-id": [ "e99e42c0-f73f-41cf-aca5-3f3f40605206" ], + "x-ms-routing-request-id": [ "EASTUS2EUAP:20230721T042937Z:e99e42c0-f73f-41cf-aca5-3f3f40605206" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "X-Content-Type-Options": [ "nosniff" ], - "Date": [ "Tue, 02 Aug 2022 05:36:34 GMT" ] + "Date": [ "Fri, 21 Jul 2023 04:29:36 GMT" ] }, "ContentHeaders": { - "Expires": [ "-1" ], - "Content-Length": [ "0" ] + "Content-Length": [ "4" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] }, + "Content": "bnVsbA==", + "isContentBase64": false + } + }, + "Remove-AzStorageMover+[NoContext]+Delete+$GET+https://management.azure.com/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/providers/Microsoft.StorageMover/locations/EASTUS2EUAP/operationStatuses/28a87381-fb78-4fb1-9b73-5a03efe80d3b*96E2584FBFBFC710B06187EC433B53F835B69A579EDB3B5B8C964DFDB611DAF1?api-version=2023-10-01+3": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/providers/Microsoft.StorageMover/locations/EASTUS2EUAP/operationStatuses/28a87381-fb78-4fb1-9b73-5a03efe80d3b*96E2584FBFBFC710B06187EC433B53F835B69A579EDB3B5B8C964DFDB611DAF1?api-version=2023-10-01", "Content": null, + "isContentBase64": false, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "44" ], + "x-ms-client-request-id": [ "5efe1e46-ed29-418a-83fc-e58316f2561e" ], + "CommandName": [ "Az.StorageMover.internal\\Remove-AzStorageMover" ], + "FullCommandName": [ "Remove-AzStorageMover_Delete" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.2.12", "Az.StorageMover/1.0.1" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "ETag": [ "\"0c00f25d-0000-3400-0000-64ba09c50000\"" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11976" ], + "x-ms-routing-request-id": [ "EASTUS2EUAP:20230721T043007Z:a225c9dd-890b-4430-aaf3-688b89ade954" ], + "x-ms-request-id": [ "57a47ccd-f279-4107-a4ad-50c234bbca3d" ], + "x-ms-correlation-request-id": [ "a225c9dd-890b-4430-aaf3-688b89ade954" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Fri, 21 Jul 2023 04:30:07 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "595" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"id\":\"/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/providers/Microsoft.StorageMover/locations/EASTUS2EUAP/operationStatuses/28a87381-fb78-4fb1-9b73-5a03efe80d3b*96E2584FBFBFC710B06187EC433B53F835B69A579EDB3B5B8C964DFDB611DAF1\",\"name\":\"28a87381-fb78-4fb1-9b73-5a03efe80d3b*96E2584FBFBFC710B06187EC433B53F835B69A579EDB3B5B8C964DFDB611DAF1\",\"resourceId\":\"/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/teststoragemover/providers/Microsoft.StorageMover/storageMovers/testStoMover3hc715gxy\",\"status\":\"Succeeded\",\"startTime\":\"2023-07-21T04:29:37.192872Z\",\"properties\":null}", + "isContentBase64": false + } + }, + "Remove-AzStorageMover+[NoContext]+Delete+$GET+https://management.azure.com/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/providers/Microsoft.StorageMover/locations/EASTUS2EUAP/operationStatuses/28a87381-fb78-4fb1-9b73-5a03efe80d3b*96E2584FBFBFC710B06187EC433B53F835B69A579EDB3B5B8C964DFDB611DAF1?api-version=2023-10-01+4": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/providers/Microsoft.StorageMover/locations/EASTUS2EUAP/operationStatuses/28a87381-fb78-4fb1-9b73-5a03efe80d3b*96E2584FBFBFC710B06187EC433B53F835B69A579EDB3B5B8C964DFDB611DAF1?api-version=2023-10-01", + "Content": null, + "isContentBase64": false, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "45" ], + "x-ms-client-request-id": [ "5efe1e46-ed29-418a-83fc-e58316f2561e" ], + "CommandName": [ "Az.StorageMover.internal\\Remove-AzStorageMover" ], + "FullCommandName": [ "Remove-AzStorageMover_Delete" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.2.12", "Az.StorageMover/1.0.1" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "ETag": [ "\"0c00f25d-0000-3400-0000-64ba09c50000\"" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11975" ], + "x-ms-request-id": [ "cdbf84ed-a7c2-4bdf-9580-eb44d8299e73" ], + "x-ms-correlation-request-id": [ "0c474013-91dc-4233-a446-cb791f1173a6" ], + "x-ms-routing-request-id": [ "EASTUS2EUAP:20230721T043008Z:0c474013-91dc-4233-a446-cb791f1173a6" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Fri, 21 Jul 2023 04:30:08 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "595" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"id\":\"/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/providers/Microsoft.StorageMover/locations/EASTUS2EUAP/operationStatuses/28a87381-fb78-4fb1-9b73-5a03efe80d3b*96E2584FBFBFC710B06187EC433B53F835B69A579EDB3B5B8C964DFDB611DAF1\",\"name\":\"28a87381-fb78-4fb1-9b73-5a03efe80d3b*96E2584FBFBFC710B06187EC433B53F835B69A579EDB3B5B8C964DFDB611DAF1\",\"resourceId\":\"/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/teststoragemover/providers/Microsoft.StorageMover/storageMovers/testStoMover3hc715gxy\",\"status\":\"Succeeded\",\"startTime\":\"2023-07-21T04:29:37.192872Z\",\"properties\":null}", "isContentBase64": false } }, - "Remove-AzStorageMover+[NoContext]+Delete+$GET+https://management.azure.com/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/providers/Microsoft.StorageMover/storageMovers?api-version=2023-03-01+3": { + "Remove-AzStorageMover+[NoContext]+Delete+$GET+https://management.azure.com/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/providers/Microsoft.StorageMover/storageMovers?api-version=2023-10-01+5": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/providers/Microsoft.StorageMover/storageMovers?api-version=2023-03-01", + "RequestUri": "https://management.azure.com/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/providers/Microsoft.StorageMover/storageMovers?api-version=2023-10-01", "Content": null, "isContentBase64": false, "Headers": { - "x-ms-unique-id": [ "34" ], - "x-ms-client-request-id": [ "984f3548-b6cc-421c-a7cf-39abad2cd4da" ], + "x-ms-unique-id": [ "46" ], + "x-ms-client-request-id": [ "0e505cc8-b1d8-457a-8700-ffd016218640" ], "CommandName": [ "Get-AzStorageMover" ], "FullCommandName": [ "Get-AzStorageMover_List" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v8.0.0", "PSVersion/v7.2.5", "Az.StorageMover/0.1.0" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.2.12", "Az.StorageMover/1.0.1" ], "Authorization": [ "[Filtered]" ] }, "ContentHeaders": { @@ -100,21 +186,21 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "x-ms-original-request-ids": [ "3aee8ca9-695b-4136-91a6-2617ef6b8cb5", "df7b4d12-f042-43db-a389-3adcf40896e2" ], - "x-ms-ratelimit-remaining-subscription-reads": [ "11972" ], - "x-ms-request-id": [ "a90174d0-b4d5-4f33-b65b-f0344f01297c" ], - "x-ms-correlation-request-id": [ "a90174d0-b4d5-4f33-b65b-f0344f01297c" ], - "x-ms-routing-request-id": [ "SOUTHEASTASIA:20220802T053636Z:a90174d0-b4d5-4f33-b65b-f0344f01297c" ], + "x-ms-original-request-ids": [ "47e9caca-60af-4706-b35a-7a11f9371623", "ee185b5f-6554-4461-9a00-f5422afbef2c", "fbee4cde-2248-4208-beb5-fb66e5ff1b3a", "e9af32e4-7a1b-4318-9ac1-05e26babb0af", "6a38de08-8c80-4e07-a4ee-df6eab9e9aaa", "121507d3-fcf7-40e4-bb56-74b832447e18" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11974" ], + "x-ms-request-id": [ "6fcee69e-03b1-45af-9949-d483f941c75f" ], + "x-ms-correlation-request-id": [ "6fcee69e-03b1-45af-9949-d483f941c75f" ], + "x-ms-routing-request-id": [ "EASTUS2EUAP:20230721T043009Z:6fcee69e-03b1-45af-9949-d483f941c75f" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "X-Content-Type-Options": [ "nosniff" ], - "Date": [ "Tue, 02 Aug 2022 05:36:35 GMT" ] + "Date": [ "Fri, 21 Jul 2023 04:30:09 GMT" ] }, "ContentHeaders": { "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ], - "Content-Length": [ "13244" ] + "Content-Length": [ "16749" ] }, - "Content": "{\"value\":[{\"id\":\"/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/yifanstoragemover/providers/microsoft.storagemover/storagemovers/yifanTestStorageMover\",\"name\":\"yifanTestStorageMover\",\"type\":\"microsoft.storagemover/storagemovers\",\"location\":\"eastus2euap\",\"systemData\":{\"createdBy\":\"yifanzhang@microsoft.com\",\"createdByType\":\"User\",\"createdAt\":\"2022-07-14T03:19:21.8846673Z\",\"lastModifiedBy\":\"yifanzhang@microsoft.com\",\"lastModifiedByType\":\"User\",\"lastModifiedAt\":\"2022-07-21T01:50:16.3872981Z\"},\"properties\":{\"description\":\"my storage mover\",\"provisioningState\":\"Succeeded\"}},{\"id\":\"/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/yifanStorageMover/providers/Microsoft.StorageMover/storageMovers/testStorageMover1\",\"name\":\"testStorageMover1\",\"type\":\"microsoft.storagemover/storagemovers\",\"location\":\"eastus2euap\",\"tags\":{\"tag\":\"value1\"},\"systemData\":{\"createdBy\":\"yifanzhang@microsoft.com\",\"createdByType\":\"User\",\"createdAt\":\"2022-07-14T03:23:59.7326804Z\",\"lastModifiedBy\":\"yifanzhang@microsoft.com\",\"lastModifiedByType\":\"User\",\"lastModifiedAt\":\"2022-07-14T04:09:42.3942461Z\"},\"properties\":{\"provisioningState\":\"Succeeded\",\"description\":\"updated description for storage mover\"}},{\"id\":\"/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/weitry/providers/microsoft.storagemover/storagemovers/weitest\",\"name\":\"weitest\",\"type\":\"microsoft.storagemover/storagemovers\",\"location\":\"eastus2euap\",\"tags\":{\"tag2\":\"value2\",\"tag1\":\"value1\"},\"systemData\":{\"createdBy\":\"weiwei@microsoft.com\",\"createdByType\":\"User\",\"createdAt\":\"2022-07-15T09:25:59.6874394Z\",\"lastModifiedBy\":\"a000255f-5f09-45e0-a970-9d9ed9cc6453\",\"lastModifiedByType\":\"Application\",\"lastModifiedAt\":\"2022-07-15T09:42:28.57775Z\"},\"properties\":{\"description\":\"StorageMover description1\",\"provisioningState\":\"Succeeded\"}},{\"id\":\"/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/yifanstoragemover/providers/Microsoft.StorageMover/storageMovers/testsm2\",\"name\":\"testsm2\",\"type\":\"microsoft.storagemover/storagemovers\",\"location\":\"eastus2euap\",\"systemData\":{\"createdBy\":\"yifanzhang@microsoft.com\",\"createdByType\":\"User\",\"createdAt\":\"2022-07-18T07:21:10.3975176Z\",\"lastModifiedBy\":\"yifanzhang@microsoft.com\",\"lastModifiedByType\":\"User\",\"lastModifiedAt\":\"2022-07-18T07:21:10.3975176Z\"},\"properties\":{\"description\":\"initial\",\"provisioningState\":\"Succeeded\"}},{\"id\":\"/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/yifanstoragemover/providers/Microsoft.StorageMover/storageMovers/newsasdada\",\"name\":\"newsasdada\",\"type\":\"microsoft.storagemover/storagemovers\",\"location\":\"eastus2euap\",\"systemData\":{\"createdBy\":\"yifanzhang@microsoft.com\",\"createdByType\":\"User\",\"createdAt\":\"2022-07-18T07:43:48.7118033Z\",\"lastModifiedBy\":\"yifanzhang@microsoft.com\",\"lastModifiedByType\":\"User\",\"lastModifiedAt\":\"2022-07-18T07:43:48.7118033Z\"},\"properties\":{\"description\":\"asdadasd\",\"provisioningState\":\"Succeeded\"}},{\"id\":\"/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/yifanStoragemover/providers/Microsoft.StorageMover/storageMovers/yifanteststoragemover2\",\"name\":\"yifanteststoragemover2\",\"type\":\"microsoft.storagemover/storagemovers\",\"location\":\"eastus2euap\",\"systemData\":{\"createdBy\":\"yifanzhang@microsoft.com\",\"createdByType\":\"User\",\"createdAt\":\"2022-07-26T05:49:02.2044827Z\",\"lastModifiedBy\":\"yifanzhang@microsoft.com\",\"lastModifiedByType\":\"User\",\"lastModifiedAt\":\"2022-07-26T05:49:02.2044827Z\"},\"properties\":{\"provisioningState\":\"Succeeded\"}},{\"id\":\"/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/yifanStoragemover/providers/Microsoft.StorageMover/storageMovers/yifanteststoragemover3\",\"name\":\"yifanteststoragemover3\",\"type\":\"microsoft.storagemover/storagemovers\",\"location\":\"eastus2euap\",\"systemData\":{\"createdBy\":\"yifanzhang@microsoft.com\",\"createdByType\":\"User\",\"createdAt\":\"2022-07-26T07:10:48.0758138Z\",\"lastModifiedBy\":\"yifanzhang@microsoft.com\",\"lastModifiedByType\":\"User\",\"lastModifiedAt\":\"2022-07-26T07:10:48.0758138Z\"},\"properties\":{\"provisioningState\":\"Succeeded\"}},{\"id\":\"/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/testStorageMover/providers/Microsoft.StorageMover/storageMovers/testStorageMover2\",\"name\":\"testStorageMover2\",\"type\":\"microsoft.storagemover/storagemovers\",\"location\":\"eastus2euap\",\"systemData\":{\"createdBy\":\"a000255f-5f09-45e0-a970-9d9ed9cc6453\",\"createdByType\":\"Application\",\"createdAt\":\"2022-08-02T03:32:45.1059642Z\",\"lastModifiedBy\":\"yifanzhang@microsoft.com\",\"lastModifiedByType\":\"User\",\"lastModifiedAt\":\"2022-08-02T05:32:24.1521278Z\"},\"properties\":{\"description\":\"my storage mover\",\"provisioningState\":\"Succeeded\"}},{\"id\":\"/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/testStorageMover/providers/Microsoft.StorageMover/storageMovers/testStoMover16flk3awb\",\"name\":\"testStoMover16flk3awb\",\"type\":\"microsoft.storagemover/storagemovers\",\"location\":\"eastus2euap\",\"tags\":{\"tag2\":\"value2\",\"tag1\":\"value1\"},\"systemData\":{\"createdBy\":\"a000255f-5f09-45e0-a970-9d9ed9cc6453\",\"createdByType\":\"Application\",\"createdAt\":\"2022-08-02T03:47:39.995801Z\",\"lastModifiedBy\":\"a000255f-5f09-45e0-a970-9d9ed9cc6453\",\"lastModifiedByType\":\"Application\",\"lastModifiedAt\":\"2022-08-02T03:47:39.995801Z\"},\"properties\":{\"description\":\"initial test SM description\",\"provisioningState\":\"Succeeded\"}},{\"id\":\"/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/testStorageMover/providers/Microsoft.StorageMover/storageMovers/testStoMover1w3s1oi5y\",\"name\":\"testStoMover1w3s1oi5y\",\"type\":\"microsoft.storagemover/storagemovers\",\"location\":\"eastus2euap\",\"tags\":{\"tag1\":\"value1\",\"tag2\":\"value2\"},\"systemData\":{\"createdBy\":\"a000255f-5f09-45e0-a970-9d9ed9cc6453\",\"createdByType\":\"Application\",\"createdAt\":\"2022-08-02T03:50:29.6732748Z\",\"lastModifiedBy\":\"a000255f-5f09-45e0-a970-9d9ed9cc6453\",\"lastModifiedByType\":\"Application\",\"lastModifiedAt\":\"2022-08-02T03:50:29.6732748Z\"},\"properties\":{\"description\":\"initial test SM description\",\"provisioningState\":\"Succeeded\"}},{\"id\":\"/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/testStorageMover/providers/Microsoft.StorageMover/storageMovers/testStoMover14mkhzf8x\",\"name\":\"testStoMover14mkhzf8x\",\"type\":\"microsoft.storagemover/storagemovers\",\"location\":\"eastus2euap\",\"tags\":{\"tag1\":\"value1\",\"tag2\":\"value2\"},\"systemData\":{\"createdBy\":\"a000255f-5f09-45e0-a970-9d9ed9cc6453\",\"createdByType\":\"Application\",\"createdAt\":\"2022-08-02T03:51:41.6781714Z\",\"lastModifiedBy\":\"a000255f-5f09-45e0-a970-9d9ed9cc6453\",\"lastModifiedByType\":\"Application\",\"lastModifiedAt\":\"2022-08-02T03:51:41.6781714Z\"},\"properties\":{\"description\":\"initial test SM description\",\"provisioningState\":\"Succeeded\"}},{\"id\":\"/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/testStorageMover/providers/Microsoft.StorageMover/storageMovers/testStoMover24mkhzf8x\",\"name\":\"testStoMover24mkhzf8x\",\"type\":\"microsoft.storagemover/storagemovers\",\"location\":\"eastus2euap\",\"systemData\":{\"createdBy\":\"a000255f-5f09-45e0-a970-9d9ed9cc6453\",\"createdByType\":\"Application\",\"createdAt\":\"2022-08-02T03:53:17.1076925Z\",\"lastModifiedBy\":\"a000255f-5f09-45e0-a970-9d9ed9cc6453\",\"lastModifiedByType\":\"Application\",\"lastModifiedAt\":\"2022-08-02T03:53:17.1076925Z\"},\"properties\":{\"description\":\"test Storage mover description\",\"provisioningState\":\"Succeeded\"}},{\"id\":\"/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/testStorageMover/providers/Microsoft.StorageMover/storageMovers/testStorageMoverk3pmhtl9\",\"name\":\"testStorageMoverk3pmhtl9\",\"type\":\"microsoft.storagemover/storagemovers\",\"location\":\"eastus2euap\",\"systemData\":{\"createdBy\":\"a000255f-5f09-45e0-a970-9d9ed9cc6453\",\"createdByType\":\"Application\",\"createdAt\":\"2022-08-02T03:54:10.890512Z\",\"lastModifiedBy\":\"a000255f-5f09-45e0-a970-9d9ed9cc6453\",\"lastModifiedByType\":\"Application\",\"lastModifiedAt\":\"2022-08-02T05:20:35.0358092Z\"},\"properties\":{\"description\":\"update storage mover description\",\"provisioningState\":\"Succeeded\"}},{\"id\":\"/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/testStorageMover/providers/Microsoft.StorageMover/storageMovers/testStoMover17ubswd3o\",\"name\":\"testStoMover17ubswd3o\",\"type\":\"microsoft.storagemover/storagemovers\",\"location\":\"eastus2euap\",\"tags\":{\"tag1\":\"value1\",\"tag2\":\"value2\"},\"systemData\":{\"createdBy\":\"a000255f-5f09-45e0-a970-9d9ed9cc6453\",\"createdByType\":\"Application\",\"createdAt\":\"2022-08-02T03:59:47.4339851Z\",\"lastModifiedBy\":\"a000255f-5f09-45e0-a970-9d9ed9cc6453\",\"lastModifiedByType\":\"Application\",\"lastModifiedAt\":\"2022-08-02T03:59:47.4339851Z\"},\"properties\":{\"description\":\"initial test SM description\",\"provisioningState\":\"Succeeded\"}},{\"id\":\"/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/testStorageMover/providers/Microsoft.StorageMover/storageMovers/testStoMover27ubswd3o\",\"name\":\"testStoMover27ubswd3o\",\"type\":\"microsoft.storagemover/storagemovers\",\"location\":\"eastus2euap\",\"systemData\":{\"createdBy\":\"a000255f-5f09-45e0-a970-9d9ed9cc6453\",\"createdByType\":\"Application\",\"createdAt\":\"2022-08-02T04:00:52.450009Z\",\"lastModifiedBy\":\"a000255f-5f09-45e0-a970-9d9ed9cc6453\",\"lastModifiedByType\":\"Application\",\"lastModifiedAt\":\"2022-08-02T04:00:52.450009Z\"},\"properties\":{\"description\":\"test Storage mover description\",\"provisioningState\":\"Succeeded\"}},{\"id\":\"/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/testStorageMover/providers/Microsoft.StorageMover/storageMovers/testStoMover1kdmxy397\",\"name\":\"testStoMover1kdmxy397\",\"type\":\"microsoft.storagemover/storagemovers\",\"location\":\"eastus2euap\",\"tags\":{\"tag2\":\"value2\",\"tag1\":\"value1\"},\"systemData\":{\"createdBy\":\"a000255f-5f09-45e0-a970-9d9ed9cc6453\",\"createdByType\":\"Application\",\"createdAt\":\"2022-08-02T05:04:47.1466802Z\",\"lastModifiedBy\":\"a000255f-5f09-45e0-a970-9d9ed9cc6453\",\"lastModifiedByType\":\"Application\",\"lastModifiedAt\":\"2022-08-02T05:04:47.1466802Z\"},\"properties\":{\"description\":\"initial test SM description\",\"provisioningState\":\"Succeeded\"}},{\"id\":\"/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/testStorageMover/providers/Microsoft.StorageMover/storageMovers/testStoMover1ed31jkfu\",\"name\":\"testStoMover1ed31jkfu\",\"type\":\"microsoft.storagemover/storagemovers\",\"location\":\"eastus2euap\",\"tags\":{\"tag2\":\"value2\",\"tag1\":\"value1\"},\"systemData\":{\"createdBy\":\"a000255f-5f09-45e0-a970-9d9ed9cc6453\",\"createdByType\":\"Application\",\"createdAt\":\"2022-08-02T05:13:10.5459273Z\",\"lastModifiedBy\":\"a000255f-5f09-45e0-a970-9d9ed9cc6453\",\"lastModifiedByType\":\"Application\",\"lastModifiedAt\":\"2022-08-02T05:13:10.5459273Z\"},\"properties\":{\"description\":\"initial test SM description\",\"provisioningState\":\"Succeeded\"}},{\"id\":\"/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/testStorageMover/providers/Microsoft.StorageMover/storageMovers/testStoMover1gmrj5zbv\",\"name\":\"testStoMover1gmrj5zbv\",\"type\":\"microsoft.storagemover/storagemovers\",\"location\":\"eastus2euap\",\"tags\":{\"tag2\":\"value2\",\"tag1\":\"value1\"},\"systemData\":{\"createdBy\":\"a000255f-5f09-45e0-a970-9d9ed9cc6453\",\"createdByType\":\"Application\",\"createdAt\":\"2022-08-02T05:18:39.0410044Z\",\"lastModifiedBy\":\"a000255f-5f09-45e0-a970-9d9ed9cc6453\",\"lastModifiedByType\":\"Application\",\"lastModifiedAt\":\"2022-08-02T05:18:39.0410044Z\"},\"properties\":{\"description\":\"initial test SM description\",\"provisioningState\":\"Succeeded\"}},{\"id\":\"/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/testStorageMover/providers/Microsoft.StorageMover/storageMovers/testStoMover1e2q3kd7l\",\"name\":\"testStoMover1e2q3kd7l\",\"type\":\"microsoft.storagemover/storagemovers\",\"location\":\"eastus2euap\",\"tags\":{\"tag1\":\"value1\",\"tag2\":\"value2\"},\"systemData\":{\"createdBy\":\"a000255f-5f09-45e0-a970-9d9ed9cc6453\",\"createdByType\":\"Application\",\"createdAt\":\"2022-08-02T05:23:05.6611261Z\",\"lastModifiedBy\":\"a000255f-5f09-45e0-a970-9d9ed9cc6453\",\"lastModifiedByType\":\"Application\",\"lastModifiedAt\":\"2022-08-02T05:23:05.6611261Z\"},\"properties\":{\"description\":\"initial test SM description\",\"provisioningState\":\"Succeeded\"}},{\"id\":\"/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/testStorageMover/providers/Microsoft.StorageMover/storageMovers/testStoMover14068b735\",\"name\":\"testStoMover14068b735\",\"type\":\"microsoft.storagemover/storagemovers\",\"location\":\"eastus2euap\",\"tags\":{\"tag2\":\"value2\",\"tag1\":\"value1\"},\"systemData\":{\"createdBy\":\"a000255f-5f09-45e0-a970-9d9ed9cc6453\",\"createdByType\":\"Application\",\"createdAt\":\"2022-08-02T05:35:00.045492Z\",\"lastModifiedBy\":\"a000255f-5f09-45e0-a970-9d9ed9cc6453\",\"lastModifiedByType\":\"Application\",\"lastModifiedAt\":\"2022-08-02T05:35:00.045492Z\"},\"properties\":{\"description\":\"initial test SM description\",\"provisioningState\":\"Succeeded\"}},{\"id\":\"/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/testStorageMover/providers/Microsoft.StorageMover/storageMovers/testStoMover24068b735\",\"name\":\"testStoMover24068b735\",\"type\":\"microsoft.storagemover/storagemovers\",\"location\":\"eastus2euap\",\"systemData\":{\"createdBy\":\"a000255f-5f09-45e0-a970-9d9ed9cc6453\",\"createdByType\":\"Application\",\"createdAt\":\"2022-08-02T05:36:13.4517203Z\",\"lastModifiedBy\":\"a000255f-5f09-45e0-a970-9d9ed9cc6453\",\"lastModifiedByType\":\"Application\",\"lastModifiedAt\":\"2022-08-02T05:36:13.4517203Z\"},\"properties\":{\"description\":\"test Storage mover description\",\"provisioningState\":\"Succeeded\"}}]}", + "Content": "{\"value\":[{\"id\":\"/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/weitry/providers/microsoft.storagemover/storagemovers/weitest\",\"name\":\"weitest\",\"type\":\"microsoft.storagemover/storagemovers\",\"location\":\"eastus2euap\",\"tags\":{\"tag2\":\"value2\",\"tag1\":\"value1\"},\"systemData\":{\"createdBy\":\"weiwei@microsoft.com\",\"createdByType\":\"User\",\"createdAt\":\"2022-07-15T09:25:59.6874394Z\",\"lastModifiedBy\":\"a000255f-5f09-45e0-a970-9d9ed9cc6453\",\"lastModifiedByType\":\"Application\",\"lastModifiedAt\":\"2022-07-15T09:42:28.57775Z\"},\"properties\":{\"description\":\"StorageMover description1\",\"provisioningState\":\"Succeeded\"}},{\"id\":\"/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/yifanz1/providers/Microsoft.StorageMover/storageMovers/testsm1\",\"name\":\"testsm1\",\"type\":\"microsoft.storagemover/storagemovers\",\"location\":\"eastus2euap\",\"systemData\":{\"createdBy\":\"a000255f-5f09-45e0-a970-9d9ed9cc6453\",\"createdByType\":\"Application\",\"createdAt\":\"2023-02-13T03:02:51.5234202Z\",\"lastModifiedBy\":\"a000255f-5f09-45e0-a970-9d9ed9cc6453\",\"lastModifiedByType\":\"Application\",\"lastModifiedAt\":\"2023-03-01T03:13:51.9404795Z\"},\"properties\":{\"provisioningState\":\"Succeeded\",\"description\":\"update\"}},{\"id\":\"/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/teststomover/providers/Microsoft.StorageMover/storageMovers/tsm11\",\"name\":\"tsm11\",\"type\":\"microsoft.storagemover/storagemovers\",\"location\":\"eastus2euap\",\"systemData\":{\"createdBy\":\"a000255f-5f09-45e0-a970-9d9ed9cc6453\",\"createdByType\":\"Application\",\"createdAt\":\"2023-02-13T05:17:35.9408954Z\",\"lastModifiedBy\":\"a000255f-5f09-45e0-a970-9d9ed9cc6453\",\"lastModifiedByType\":\"Application\",\"lastModifiedAt\":\"2023-02-13T05:17:35.9408954Z\"},\"properties\":{\"provisioningState\":\"Succeeded\"}},{\"id\":\"/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/teststomover/providers/Microsoft.StorageMover/storageMovers/tsm12\",\"name\":\"tsm12\",\"type\":\"microsoft.storagemover/storagemovers\",\"location\":\"eastus2euap\",\"systemData\":{\"createdBy\":\"a000255f-5f09-45e0-a970-9d9ed9cc6453\",\"createdByType\":\"Application\",\"createdAt\":\"2023-02-13T05:17:54.018922Z\",\"lastModifiedBy\":\"a000255f-5f09-45e0-a970-9d9ed9cc6453\",\"lastModifiedByType\":\"Application\",\"lastModifiedAt\":\"2023-02-13T05:17:54.018922Z\"},\"properties\":{\"provisioningState\":\"Succeeded\"}},{\"id\":\"/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/teststomover/providers/Microsoft.StorageMover/storageMovers/testsm1\",\"name\":\"testsm1\",\"type\":\"microsoft.storagemover/storagemovers\",\"location\":\"eastus2euap\",\"systemData\":{\"createdBy\":\"a000255f-5f09-45e0-a970-9d9ed9cc6453\",\"createdByType\":\"Application\",\"createdAt\":\"2023-03-01T08:19:03.3105576Z\",\"lastModifiedBy\":\"a000255f-5f09-45e0-a970-9d9ed9cc6453\",\"lastModifiedByType\":\"Application\",\"lastModifiedAt\":\"2023-03-01T08:19:03.3105576Z\"},\"properties\":{\"provisioningState\":\"Succeeded\"}},{\"id\":\"/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/teststomover/providers/Microsoft.StorageMover/storageMovers/testsm-2151\",\"name\":\"testsm-2151\",\"type\":\"microsoft.storagemover/storagemovers\",\"location\":\"eastus2euap\",\"tags\":{\"tag3\":\"val3\"},\"systemData\":{\"createdBy\":\"a000255f-5f09-45e0-a970-9d9ed9cc6453\",\"createdByType\":\"Application\",\"createdAt\":\"2023-03-02T00:58:01.3731929Z\",\"lastModifiedBy\":\"a000255f-5f09-45e0-a970-9d9ed9cc6453\",\"lastModifiedByType\":\"Application\",\"lastModifiedAt\":\"2023-03-02T00:58:17.9674027Z\"},\"properties\":{\"provisioningState\":\"Failed\",\"description\":\"This is an updated storage mover\"}},{\"id\":\"/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/teststomover/providers/Microsoft.StorageMover/storageMovers/testsm-6277\",\"name\":\"testsm-6277\",\"type\":\"microsoft.storagemover/storagemovers\",\"location\":\"eastus2euap\",\"tags\":{\"tag3\":\"val3\"},\"systemData\":{\"createdBy\":\"a000255f-5f09-45e0-a970-9d9ed9cc6453\",\"createdByType\":\"Application\",\"createdAt\":\"2023-03-02T04:16:50.6533232Z\",\"lastModifiedBy\":\"a000255f-5f09-45e0-a970-9d9ed9cc6453\",\"lastModifiedByType\":\"Application\",\"lastModifiedAt\":\"2023-03-02T04:17:22.0916922Z\"},\"properties\":{\"provisioningState\":\"Failed\",\"description\":\"This is an updated storage mover\"}},{\"id\":\"/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/teststomover/providers/Microsoft.StorageMover/storageMovers/testsm-9230\",\"name\":\"testsm-9230\",\"type\":\"microsoft.storagemover/storagemovers\",\"location\":\"eastus2euap\",\"tags\":{\"tag3\":\"val3\"},\"systemData\":{\"createdBy\":\"a000255f-5f09-45e0-a970-9d9ed9cc6453\",\"createdByType\":\"Application\",\"createdAt\":\"2023-03-02T04:18:24.7102272Z\",\"lastModifiedBy\":\"a000255f-5f09-45e0-a970-9d9ed9cc6453\",\"lastModifiedByType\":\"Application\",\"lastModifiedAt\":\"2023-03-02T04:18:51.7880384Z\"},\"properties\":{\"provisioningState\":\"Failed\",\"description\":\"This is an updated storage mover\"}},{\"id\":\"/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/teststomover/providers/Microsoft.StorageMover/storageMovers/testsm-8912\",\"name\":\"testsm-8912\",\"type\":\"microsoft.storagemover/storagemovers\",\"location\":\"eastus2euap\",\"tags\":{\"tag3\":\"val3\"},\"systemData\":{\"createdBy\":\"a000255f-5f09-45e0-a970-9d9ed9cc6453\",\"createdByType\":\"Application\",\"createdAt\":\"2023-03-02T04:21:52.668034Z\",\"lastModifiedBy\":\"a000255f-5f09-45e0-a970-9d9ed9cc6453\",\"lastModifiedByType\":\"Application\",\"lastModifiedAt\":\"2023-03-02T04:22:20.7306177Z\"},\"properties\":{\"provisioningState\":\"Failed\",\"description\":\"This is an updated storage mover\"}},{\"id\":\"/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/teststomover/providers/Microsoft.StorageMover/storageMovers/testsm-9106\",\"name\":\"testsm-9106\",\"type\":\"microsoft.storagemover/storagemovers\",\"location\":\"eastus2euap\",\"tags\":{\"tag3\":\"val3\"},\"systemData\":{\"createdBy\":\"a000255f-5f09-45e0-a970-9d9ed9cc6453\",\"createdByType\":\"Application\",\"createdAt\":\"2023-03-02T04:25:17.1630512Z\",\"lastModifiedBy\":\"a000255f-5f09-45e0-a970-9d9ed9cc6453\",\"lastModifiedByType\":\"Application\",\"lastModifiedAt\":\"2023-03-02T04:25:33.1169852Z\"},\"properties\":{\"provisioningState\":\"Failed\",\"description\":\"This is an updated storage mover\"}},{\"id\":\"/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/teststomover/providers/Microsoft.StorageMover/storageMovers/testsm-2126\",\"name\":\"testsm-2126\",\"type\":\"microsoft.storagemover/storagemovers\",\"location\":\"eastus2euap\",\"tags\":{},\"systemData\":{\"createdBy\":\"a000255f-5f09-45e0-a970-9d9ed9cc6453\",\"createdByType\":\"Application\",\"createdAt\":\"2023-03-02T05:08:11.6441609Z\",\"lastModifiedBy\":\"a000255f-5f09-45e0-a970-9d9ed9cc6453\",\"lastModifiedByType\":\"Application\",\"lastModifiedAt\":\"2023-03-02T05:08:11.6441609Z\"},\"properties\":{\"provisioningState\":\"Succeeded\"}},{\"id\":\"/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/teststomover/providers/Microsoft.StorageMover/storageMovers/testsm-5024\",\"name\":\"testsm-5024\",\"type\":\"microsoft.storagemover/storagemovers\",\"location\":\"eastus2euap\",\"tags\":{},\"systemData\":{\"createdBy\":\"a000255f-5f09-45e0-a970-9d9ed9cc6453\",\"createdByType\":\"Application\",\"createdAt\":\"2023-03-02T05:09:24.5052364Z\",\"lastModifiedBy\":\"a000255f-5f09-45e0-a970-9d9ed9cc6453\",\"lastModifiedByType\":\"Application\",\"lastModifiedAt\":\"2023-03-02T05:09:32.3021265Z\"},\"properties\":{\"provisioningState\":\"Failed\",\"description\":\"This is an updated storage mover\"}},{\"id\":\"/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/teststomover/providers/Microsoft.StorageMover/storageMovers/testsm-1689\",\"name\":\"testsm-1689\",\"type\":\"microsoft.storagemover/storagemovers\",\"location\":\"eastus2euap\",\"tags\":{\"tag3\":\"val3\"},\"systemData\":{\"createdBy\":\"a000255f-5f09-45e0-a970-9d9ed9cc6453\",\"createdByType\":\"Application\",\"createdAt\":\"2023-03-02T05:09:58.2510585Z\",\"lastModifiedBy\":\"a000255f-5f09-45e0-a970-9d9ed9cc6453\",\"lastModifiedByType\":\"Application\",\"lastModifiedAt\":\"2023-03-02T05:10:14.1277098Z\"},\"properties\":{\"provisioningState\":\"Failed\",\"description\":\"This is an updated storage mover\"}},{\"id\":\"/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/yifanz1/providers/Microsoft.StorageMover/storageMovers/testsm111\",\"name\":\"testsm111\",\"type\":\"microsoft.storagemover/storagemovers\",\"location\":\"eastus2euap\",\"systemData\":{\"createdBy\":\"a000255f-5f09-45e0-a970-9d9ed9cc6453\",\"createdByType\":\"Application\",\"createdAt\":\"2023-07-20T08:40:08.494388Z\",\"lastModifiedBy\":\"a000255f-5f09-45e0-a970-9d9ed9cc6453\",\"lastModifiedByType\":\"Application\",\"lastModifiedAt\":\"2023-07-20T08:40:08.494388Z\"},\"properties\":{\"provisioningState\":\"Succeeded\"}},{\"id\":\"/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/teststoragemover/providers/Microsoft.StorageMover/storageMovers/testmoverpreview1\",\"name\":\"testmoverpreview1\",\"type\":\"microsoft.storagemover/storagemovers\",\"location\":\"eastus2euap\",\"systemData\":{\"createdBy\":\"a000255f-5f09-45e0-a970-9d9ed9cc6453\",\"createdByType\":\"Application\",\"createdAt\":\"2023-07-20T08:55:45.2922024Z\",\"lastModifiedBy\":\"a000255f-5f09-45e0-a970-9d9ed9cc6453\",\"lastModifiedByType\":\"Application\",\"lastModifiedAt\":\"2023-07-20T08:55:45.2922024Z\"},\"properties\":{\"provisioningState\":\"Succeeded\"}},{\"id\":\"/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/teststoragemover/providers/Microsoft.StorageMover/storageMovers/testStoMover1ua3b5imx\",\"name\":\"testStoMover1ua3b5imx\",\"type\":\"microsoft.storagemover/storagemovers\",\"location\":\"eastus2euap\",\"tags\":{\"tag1\":\"value1\",\"tag2\":\"value2\"},\"systemData\":{\"createdBy\":\"a000255f-5f09-45e0-a970-9d9ed9cc6453\",\"createdByType\":\"Application\",\"createdAt\":\"2023-07-21T02:24:17.5717036Z\",\"lastModifiedBy\":\"a000255f-5f09-45e0-a970-9d9ed9cc6453\",\"lastModifiedByType\":\"Application\",\"lastModifiedAt\":\"2023-07-21T02:24:17.5717036Z\"},\"properties\":{\"description\":\"initial test SM description\",\"provisioningState\":\"Succeeded\"}},{\"id\":\"/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/teststoragemover/providers/Microsoft.StorageMover/storageMovers/testStoMover2ua3b5imx\",\"name\":\"testStoMover2ua3b5imx\",\"type\":\"microsoft.storagemover/storagemovers\",\"location\":\"eastus2euap\",\"systemData\":{\"createdBy\":\"a000255f-5f09-45e0-a970-9d9ed9cc6453\",\"createdByType\":\"Application\",\"createdAt\":\"2023-07-21T02:25:10.1355738Z\",\"lastModifiedBy\":\"a000255f-5f09-45e0-a970-9d9ed9cc6453\",\"lastModifiedByType\":\"Application\",\"lastModifiedAt\":\"2023-07-21T02:25:10.1355738Z\"},\"properties\":{\"description\":\"test Storage mover description\",\"provisioningState\":\"Succeeded\"}},{\"id\":\"/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/teststoragemover/providers/Microsoft.StorageMover/storageMovers/testStorageMoverk3pmhtl9\",\"name\":\"testStorageMoverk3pmhtl9\",\"type\":\"microsoft.storagemover/storagemovers\",\"location\":\"eastus2euap\",\"systemData\":{\"createdBy\":\"a000255f-5f09-45e0-a970-9d9ed9cc6453\",\"createdByType\":\"Application\",\"createdAt\":\"2023-07-21T02:26:40.450455Z\",\"lastModifiedBy\":\"a000255f-5f09-45e0-a970-9d9ed9cc6453\",\"lastModifiedByType\":\"Application\",\"lastModifiedAt\":\"2023-07-21T04:08:31.7726536Z\"},\"properties\":{\"description\":\"update storage mover description\",\"provisioningState\":\"Succeeded\"}},{\"id\":\"/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/teststoragemover/providers/Microsoft.StorageMover/storageMovers/testStoMover131q7xr6m\",\"name\":\"testStoMover131q7xr6m\",\"type\":\"microsoft.storagemover/storagemovers\",\"location\":\"eastus2euap\",\"tags\":{\"tag1\":\"value1\",\"tag2\":\"value2\"},\"systemData\":{\"createdBy\":\"a000255f-5f09-45e0-a970-9d9ed9cc6453\",\"createdByType\":\"Application\",\"createdAt\":\"2023-07-21T03:08:35.8449113Z\",\"lastModifiedBy\":\"a000255f-5f09-45e0-a970-9d9ed9cc6453\",\"lastModifiedByType\":\"Application\",\"lastModifiedAt\":\"2023-07-21T03:08:35.8449113Z\"},\"properties\":{\"description\":\"initial test SM description\",\"provisioningState\":\"Succeeded\"}},{\"id\":\"/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/teststoragemover/providers/Microsoft.StorageMover/storageMovers/testStoMover231q7xr6m\",\"name\":\"testStoMover231q7xr6m\",\"type\":\"microsoft.storagemover/storagemovers\",\"location\":\"eastus2euap\",\"systemData\":{\"createdBy\":\"a000255f-5f09-45e0-a970-9d9ed9cc6453\",\"createdByType\":\"Application\",\"createdAt\":\"2023-07-21T03:11:44.8485215Z\",\"lastModifiedBy\":\"a000255f-5f09-45e0-a970-9d9ed9cc6453\",\"lastModifiedByType\":\"Application\",\"lastModifiedAt\":\"2023-07-21T03:11:44.8485215Z\"},\"properties\":{\"description\":\"test Storage mover description\",\"provisioningState\":\"Succeeded\"}},{\"id\":\"/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/teststoragemover/providers/Microsoft.StorageMover/storageMovers/testStoMover1dy0z54nl\",\"name\":\"testStoMover1dy0z54nl\",\"type\":\"microsoft.storagemover/storagemovers\",\"location\":\"eastus2euap\",\"tags\":{\"tag2\":\"value2\",\"tag1\":\"value1\"},\"systemData\":{\"createdBy\":\"a000255f-5f09-45e0-a970-9d9ed9cc6453\",\"createdByType\":\"Application\",\"createdAt\":\"2023-07-21T04:02:11.7243529Z\",\"lastModifiedBy\":\"a000255f-5f09-45e0-a970-9d9ed9cc6453\",\"lastModifiedByType\":\"Application\",\"lastModifiedAt\":\"2023-07-21T04:02:11.7243529Z\"},\"properties\":{\"description\":\"initial test SM description\",\"provisioningState\":\"Succeeded\"}},{\"id\":\"/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/teststoragemover/providers/Microsoft.StorageMover/storageMovers/testStoMover2dy0z54nl\",\"name\":\"testStoMover2dy0z54nl\",\"type\":\"microsoft.storagemover/storagemovers\",\"location\":\"eastus2euap\",\"systemData\":{\"createdBy\":\"a000255f-5f09-45e0-a970-9d9ed9cc6453\",\"createdByType\":\"Application\",\"createdAt\":\"2023-07-21T04:03:01.7246815Z\",\"lastModifiedBy\":\"a000255f-5f09-45e0-a970-9d9ed9cc6453\",\"lastModifiedByType\":\"Application\",\"lastModifiedAt\":\"2023-07-21T04:03:01.7246815Z\"},\"properties\":{\"description\":\"test Storage mover description\",\"provisioningState\":\"Succeeded\"}},{\"id\":\"/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/teststoragemover/providers/Microsoft.StorageMover/storageMovers/testStoMover18p9yh1t3\",\"name\":\"testStoMover18p9yh1t3\",\"type\":\"microsoft.storagemover/storagemovers\",\"location\":\"eastus2euap\",\"tags\":{\"tag1\":\"value1\",\"tag2\":\"value2\"},\"systemData\":{\"createdBy\":\"a000255f-5f09-45e0-a970-9d9ed9cc6453\",\"createdByType\":\"Application\",\"createdAt\":\"2023-07-21T04:06:02.5185405Z\",\"lastModifiedBy\":\"a000255f-5f09-45e0-a970-9d9ed9cc6453\",\"lastModifiedByType\":\"Application\",\"lastModifiedAt\":\"2023-07-21T04:06:02.5185405Z\"},\"properties\":{\"description\":\"initial test SM description\",\"provisioningState\":\"Succeeded\"}},{\"id\":\"/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/teststoragemover/providers/Microsoft.StorageMover/storageMovers/testStoMover28p9yh1t3\",\"name\":\"testStoMover28p9yh1t3\",\"type\":\"microsoft.storagemover/storagemovers\",\"location\":\"eastus2euap\",\"systemData\":{\"createdBy\":\"a000255f-5f09-45e0-a970-9d9ed9cc6453\",\"createdByType\":\"Application\",\"createdAt\":\"2023-07-21T04:06:53.6537273Z\",\"lastModifiedBy\":\"a000255f-5f09-45e0-a970-9d9ed9cc6453\",\"lastModifiedByType\":\"Application\",\"lastModifiedAt\":\"2023-07-21T04:06:53.6537273Z\"},\"properties\":{\"description\":\"test Storage mover description\",\"provisioningState\":\"Succeeded\"}},{\"id\":\"/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/teststoragemover/providers/Microsoft.StorageMover/storageMovers/testStoMover1hc715gxy\",\"name\":\"testStoMover1hc715gxy\",\"type\":\"microsoft.storagemover/storagemovers\",\"location\":\"eastus2euap\",\"tags\":{\"tag1\":\"value1\",\"tag2\":\"value2\"},\"systemData\":{\"createdBy\":\"a000255f-5f09-45e0-a970-9d9ed9cc6453\",\"createdByType\":\"Application\",\"createdAt\":\"2023-07-21T04:28:26.1244125Z\",\"lastModifiedBy\":\"a000255f-5f09-45e0-a970-9d9ed9cc6453\",\"lastModifiedByType\":\"Application\",\"lastModifiedAt\":\"2023-07-21T04:28:26.1244125Z\"},\"properties\":{\"description\":\"initial test SM description\",\"provisioningState\":\"Succeeded\"}},{\"id\":\"/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/teststoragemover/providers/Microsoft.StorageMover/storageMovers/testStoMover2hc715gxy\",\"name\":\"testStoMover2hc715gxy\",\"type\":\"microsoft.storagemover/storagemovers\",\"location\":\"eastus2euap\",\"systemData\":{\"createdBy\":\"a000255f-5f09-45e0-a970-9d9ed9cc6453\",\"createdByType\":\"Application\",\"createdAt\":\"2023-07-21T04:29:17.1789008Z\",\"lastModifiedBy\":\"a000255f-5f09-45e0-a970-9d9ed9cc6453\",\"lastModifiedByType\":\"Application\",\"lastModifiedAt\":\"2023-07-21T04:29:17.1789008Z\"},\"properties\":{\"description\":\"test Storage mover description\",\"provisioningState\":\"Succeeded\"}},{\"id\":\"/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/yifanz1/providers/Microsoft.StorageMover/storageMovers/testpreviewsm1\",\"name\":\"testpreviewsm1\",\"type\":\"microsoft.storagemover/storagemovers\",\"location\":\"eastus2euap\",\"systemData\":{\"createdBy\":\"a000255f-5f09-45e0-a970-9d9ed9cc6453\",\"createdByType\":\"Application\",\"createdAt\":\"2023-06-02T03:09:13.6262983Z\",\"lastModifiedBy\":\"a000255f-5f09-45e0-a970-9d9ed9cc6453\",\"lastModifiedByType\":\"Application\",\"lastModifiedAt\":\"2023-06-02T03:09:13.6262983Z\"},\"properties\":{\"provisioningState\":\"Succeeded\"}}]}", "isContentBase64": false } } diff --git a/src/StorageMover/test/Remove-AzStorageMoverEndpoint.Recording.json b/src/StorageMover/test/Remove-AzStorageMoverEndpoint.Recording.json index 7f983f3ba454..8b143a50cee9 100644 --- a/src/StorageMover/test/Remove-AzStorageMoverEndpoint.Recording.json +++ b/src/StorageMover/test/Remove-AzStorageMoverEndpoint.Recording.json @@ -1,9 +1,9 @@ { - "Remove-AzStorageMoverEndpoint+[NoContext]+Delete+$PUT+https://management.azure.com/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/testStorageMover/providers/Microsoft.StorageMover/storageMovers/testStoMover14068b735/endpoints/containerEndpoint24068b735?api-version=2023-03-01+1": { + "Remove-AzStorageMoverEndpoint+[NoContext]+Delete+$PUT+https://management.azure.com/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/teststoragemover/providers/Microsoft.StorageMover/storageMovers/testStoMover1hc715gxy/endpoints/containerEndpoint2hc715gxy?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/testStoMover14068b735/endpoints/containerEndpoint24068b735?api-version=2023-03-01", - "Content": "{\r\n \"properties\": {\r\n \"endpointType\": \"AzureStorageBlobContainer\",\r\n \"storageAccountResourceId\": \"/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/testStorageMover/providers/Microsoft.Storage/storageAccounts/storacc4068b735\",\r\n \"blobContainerName\": \"container4068b735\"\r\n }\r\n}", + "RequestUri": "https://management.azure.com/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/teststoragemover/providers/Microsoft.StorageMover/storageMovers/testStoMover1hc715gxy/endpoints/containerEndpoint2hc715gxy?api-version=2023-10-01", + "Content": "{\r\n \"properties\": {\r\n \"endpointType\": \"AzureStorageBlobContainer\",\r\n \"storageAccountResourceId\": \"/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/teststoragemover/providers/Microsoft.Storage/storageAccounts/storacchc715gxy\",\r\n \"blobContainerName\": \"containerhc715gxy\"\r\n }\r\n}", "isContentBase64": false, "Headers": { }, @@ -17,39 +17,39 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "ETag": [ "\"000068e5-0000-3400-0000-62e8b7e50000\"" ], - "x-ms-ratelimit-remaining-subscription-writes": [ "1181" ], + "ETag": [ "\"2d012d48-0000-3400-0000-64ba09d20000\"" ], + "x-ms-ratelimit-remaining-subscription-writes": [ "1182" ], "x-ms-providerhub-traffic": [ "True" ], - "mise-correlation-id": [ "362f312c-11b3-4a1e-9306-9d06a88e5f26" ], - "x-ms-request-id": [ "d46dd8b2-b1fc-4b9c-9306-69ce257a958d" ], - "x-ms-correlation-request-id": [ "7c10b363-fbe0-45bf-a3da-6444703a709b" ], - "x-ms-routing-request-id": [ "SOUTHEASTASIA:20220802T053637Z:7c10b363-fbe0-45bf-a3da-6444703a709b" ], + "mise-correlation-id": [ "5386957f-91af-4ac7-ae30-2e04b2db04e4" ], + "x-ms-request-id": [ "6951ba00-cc9f-4c8d-9275-2fcba5bce362" ], + "x-ms-correlation-request-id": [ "2a8402a5-f402-47e7-92df-528acdd253d0" ], + "x-ms-routing-request-id": [ "EASTUS2EUAP:20230721T043010Z:2a8402a5-f402-47e7-92df-528acdd253d0" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "X-Content-Type-Options": [ "nosniff" ], - "Date": [ "Tue, 02 Aug 2022 05:36:36 GMT" ] + "Date": [ "Fri, 21 Jul 2023 04:30:10 GMT" ] }, "ContentHeaders": { "Content-Length": [ "871" ], "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"id\":\"/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/testStorageMover/providers/Microsoft.StorageMover/storageMovers/testStoMover14068b735/endpoints/containerEndpoint24068b735\",\"name\":\"containerEndpoint24068b735\",\"type\":\"microsoft.storagemover/storagemovers/endpoints\",\"systemData\":{\"createdBy\":\"a000255f-5f09-45e0-a970-9d9ed9cc6453\",\"createdByType\":\"Application\",\"createdAt\":\"2022-08-02T05:36:37.2173623Z\",\"lastModifiedBy\":\"a000255f-5f09-45e0-a970-9d9ed9cc6453\",\"lastModifiedByType\":\"Application\",\"lastModifiedAt\":\"2022-08-02T05:36:37.2173623Z\"},\"properties\":{\"endpointType\":\"AzureStorageBlobContainer\",\"storageAccountResourceId\":\"/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/testStorageMover/providers/Microsoft.Storage/storageAccounts/storacc4068b735\",\"blobContainerName\":\"container4068b735\",\"provisioningState\":\"Succeeded\"}}", + "Content": "{\"id\":\"/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/teststoragemover/providers/Microsoft.StorageMover/storageMovers/testStoMover1hc715gxy/endpoints/containerEndpoint2hc715gxy\",\"name\":\"containerEndpoint2hc715gxy\",\"type\":\"microsoft.storagemover/storagemovers/endpoints\",\"systemData\":{\"createdBy\":\"a000255f-5f09-45e0-a970-9d9ed9cc6453\",\"createdByType\":\"Application\",\"createdAt\":\"2023-07-21T04:30:10.5484513Z\",\"lastModifiedBy\":\"a000255f-5f09-45e0-a970-9d9ed9cc6453\",\"lastModifiedByType\":\"Application\",\"lastModifiedAt\":\"2023-07-21T04:30:10.5484513Z\"},\"properties\":{\"storageAccountResourceId\":\"/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/teststoragemover/providers/Microsoft.Storage/storageAccounts/storacchc715gxy\",\"blobContainerName\":\"containerhc715gxy\",\"endpointType\":\"AzureStorageBlobContainer\",\"provisioningState\":\"Succeeded\"}}", "isContentBase64": false } }, - "Remove-AzStorageMoverEndpoint+[NoContext]+Delete+$DELETE+https://management.azure.com/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/testStorageMover/providers/Microsoft.StorageMover/storageMovers/testStorageMover2/endpoints/containerEndpoint24068b735?api-version=2023-03-01+2": { + "Remove-AzStorageMoverEndpoint+[NoContext]+Delete+$DELETE+https://management.azure.com/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/teststoragemover/providers/Microsoft.StorageMover/storageMovers/testmoverpreview1/endpoints/containerEndpoint2hc715gxy?api-version=2023-10-01+2": { "Request": { "Method": "DELETE", - "RequestUri": "https://management.azure.com/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/testStorageMover/providers/Microsoft.StorageMover/storageMovers/testStorageMover2/endpoints/containerEndpoint24068b735?api-version=2023-03-01", + "RequestUri": "https://management.azure.com/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/teststoragemover/providers/Microsoft.StorageMover/storageMovers/testmoverpreview1/endpoints/containerEndpoint2hc715gxy?api-version=2023-10-01", "Content": null, "isContentBase64": false, "Headers": { - "x-ms-unique-id": [ "36" ], - "x-ms-client-request-id": [ "5f0719a1-b3a7-4ae6-80f1-4aa0eed9bb28" ], + "x-ms-unique-id": [ "48" ], + "x-ms-client-request-id": [ "a68f05a8-8d52-4f15-91bd-3887633c8048" ], "CommandName": [ "Remove-AzStorageMoverEndpoint" ], "FullCommandName": [ "Remove-AzStorageMoverEndpoint_Delete" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v8.0.0", "PSVersion/v7.2.5", "Az.StorageMover/0.1.0" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.2.12", "Az.StorageMover/1.0.1" ], "Authorization": [ "[Filtered]" ] }, "ContentHeaders": { @@ -63,11 +63,11 @@ "x-ms-providerhub-traffic": [ "True" ], "x-ms-request-id": [ "00000000-0000-0000-0000-000000000000" ], "x-ms-ratelimit-remaining-subscription-deletes": [ "14998" ], - "x-ms-correlation-request-id": [ "1a2fafb7-0823-4460-8327-e5ca1a716054" ], - "x-ms-routing-request-id": [ "SOUTHEASTASIA:20220802T053639Z:1a2fafb7-0823-4460-8327-e5ca1a716054" ], + "x-ms-correlation-request-id": [ "9e14afe8-907d-4202-b27f-ab531847b68f" ], + "x-ms-routing-request-id": [ "EASTUS2EUAP:20230721T043011Z:9e14afe8-907d-4202-b27f-ab531847b68f" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "X-Content-Type-Options": [ "nosniff" ], - "Date": [ "Tue, 02 Aug 2022 05:36:38 GMT" ] + "Date": [ "Fri, 21 Jul 2023 04:30:10 GMT" ] }, "ContentHeaders": { "Expires": [ "-1" ] @@ -76,19 +76,19 @@ "isContentBase64": false } }, - "Remove-AzStorageMoverEndpoint+[NoContext]+Delete+$GET+https://management.azure.com/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/testStorageMover/providers/Microsoft.StorageMover/storageMovers/testStorageMover2/endpoints?api-version=2023-03-01+3": { + "Remove-AzStorageMoverEndpoint+[NoContext]+Delete+$GET+https://management.azure.com/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/teststoragemover/providers/Microsoft.StorageMover/storageMovers/testmoverpreview1/endpoints?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/testStorageMover2/endpoints?api-version=2023-03-01", + "RequestUri": "https://management.azure.com/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/teststoragemover/providers/Microsoft.StorageMover/storageMovers/testmoverpreview1/endpoints?api-version=2023-10-01", "Content": null, "isContentBase64": false, "Headers": { - "x-ms-unique-id": [ "37" ], - "x-ms-client-request-id": [ "f5322e68-2325-4db0-979c-746c1337d4d4" ], + "x-ms-unique-id": [ "49" ], + "x-ms-client-request-id": [ "e7b302e0-cfaf-4011-8e90-a35d569da65f" ], "CommandName": [ "Get-AzStorageMoverEndpoint" ], "FullCommandName": [ "Get-AzStorageMoverEndpoint_List" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v8.0.0", "PSVersion/v7.2.5", "Az.StorageMover/0.1.0" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.2.12", "Az.StorageMover/1.0.1" ], "Authorization": [ "[Filtered]" ] }, "ContentHeaders": { @@ -99,21 +99,21 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "x-ms-ratelimit-remaining-subscription-reads": [ "11971" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11973" ], "x-ms-providerhub-traffic": [ "True" ], - "x-ms-request-id": [ "d34d431e-5b99-49ab-b110-359e50e93042" ], - "x-ms-correlation-request-id": [ "28464d9c-d97a-4a92-9062-50dd5f4f2922" ], - "x-ms-routing-request-id": [ "SOUTHEASTASIA:20220802T053640Z:28464d9c-d97a-4a92-9062-50dd5f4f2922" ], + "x-ms-request-id": [ "6444a317-f13f-4e74-80eb-d80e309812ef" ], + "x-ms-correlation-request-id": [ "d535a02a-baf4-486a-a359-aa635a048938" ], + "x-ms-routing-request-id": [ "EASTUS2EUAP:20230721T043012Z:d535a02a-baf4-486a-a359-aa635a048938" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "X-Content-Type-Options": [ "nosniff" ], - "Date": [ "Tue, 02 Aug 2022 05:36:39 GMT" ] + "Date": [ "Fri, 21 Jul 2023 04:30:11 GMT" ] }, "ContentHeaders": { - "Content-Length": [ "26236" ], + "Content-Length": [ "7723" ], "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"value\":[{\"id\":\"/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/testStorageMover/providers/Microsoft.StorageMover/storageMovers/testStorageMover2/endpoints/containerEndpoint16xhw43q\",\"name\":\"containerEndpoint16xhw43q\",\"type\":\"microsoft.storagemover/storagemovers/endpoints\",\"systemData\":{\"createdBy\":\"yifanzhang@microsoft.com\",\"createdByType\":\"User\",\"createdAt\":\"2022-07-21T04:15:33.1208441Z\",\"lastModifiedBy\":\"yifanzhang@microsoft.com\",\"lastModifiedByType\":\"User\",\"lastModifiedAt\":\"2022-07-21T04:15:33.1208441Z\"},\"properties\":{\"endpointType\":\"AzureStorageBlobContainer\",\"storageAccountResourceId\":\"/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/testStorageMover/providers/Microsoft.Storage/storageAccounts/storacc16xhw43q\",\"blobContainerName\":\"container16xhw43q\",\"provisioningState\":\"Succeeded\"}},{\"id\":\"/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/testStorageMover/providers/Microsoft.StorageMover/storageMovers/testStorageMover2/endpoints/nfsEndpoint16xhw43q\",\"name\":\"nfsEndpoint16xhw43q\",\"type\":\"microsoft.storagemover/storagemovers/endpoints\",\"systemData\":{\"createdBy\":\"yifanzhang@microsoft.com\",\"createdByType\":\"User\",\"createdAt\":\"2022-07-21T04:15:34.2770927Z\",\"lastModifiedBy\":\"yifanzhang@microsoft.com\",\"lastModifiedByType\":\"User\",\"lastModifiedAt\":\"2022-07-21T04:15:34.2770927Z\"},\"properties\":{\"endpointType\":\"NfsMount\",\"host\":\"10.0.0.1\",\"export\":\"/\",\"provisioningState\":\"Succeeded\"}},{\"id\":\"/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/testStorageMover/providers/Microsoft.StorageMover/storageMovers/testStorageMover2/endpoints/containerEndpointd4ckuns0\",\"name\":\"containerEndpointd4ckuns0\",\"type\":\"microsoft.storagemover/storagemovers/endpoints\",\"systemData\":{\"createdBy\":\"yifanzhang@microsoft.com\",\"createdByType\":\"User\",\"createdAt\":\"2022-07-21T06:04:37.0397408Z\",\"lastModifiedBy\":\"yifanzhang@microsoft.com\",\"lastModifiedByType\":\"User\",\"lastModifiedAt\":\"2022-07-21T06:04:37.0397408Z\"},\"properties\":{\"endpointType\":\"AzureStorageBlobContainer\",\"storageAccountResourceId\":\"/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/testStorageMover/providers/Microsoft.Storage/storageAccounts/storaccd4ckuns0\",\"blobContainerName\":\"containerd4ckuns0\",\"provisioningState\":\"Succeeded\"}},{\"id\":\"/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/testStorageMover/providers/Microsoft.StorageMover/storageMovers/testStorageMover2/endpoints/nfsEndpointd4ckuns0\",\"name\":\"nfsEndpointd4ckuns0\",\"type\":\"microsoft.storagemover/storagemovers/endpoints\",\"systemData\":{\"createdBy\":\"yifanzhang@microsoft.com\",\"createdByType\":\"User\",\"createdAt\":\"2022-07-21T06:04:37.9303822Z\",\"lastModifiedBy\":\"yifanzhang@microsoft.com\",\"lastModifiedByType\":\"User\",\"lastModifiedAt\":\"2022-07-21T06:04:37.9303822Z\"},\"properties\":{\"endpointType\":\"NfsMount\",\"host\":\"10.0.0.1\",\"export\":\"/\",\"provisioningState\":\"Succeeded\"}},{\"id\":\"/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/testStorageMover/providers/Microsoft.StorageMover/storageMovers/testStorageMover2/endpoints/containerEndpointekahpyf0\",\"name\":\"containerEndpointekahpyf0\",\"type\":\"microsoft.storagemover/storagemovers/endpoints\",\"systemData\":{\"createdBy\":\"yifanzhang@microsoft.com\",\"createdByType\":\"User\",\"createdAt\":\"2022-07-21T08:38:35.9591801Z\",\"lastModifiedBy\":\"yifanzhang@microsoft.com\",\"lastModifiedByType\":\"User\",\"lastModifiedAt\":\"2022-07-21T08:38:35.9591801Z\"},\"properties\":{\"endpointType\":\"AzureStorageBlobContainer\",\"storageAccountResourceId\":\"/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/testStorageMover/providers/Microsoft.Storage/storageAccounts/storaccekahpyf0\",\"blobContainerName\":\"containerekahpyf0\",\"provisioningState\":\"Succeeded\"}},{\"id\":\"/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/testStorageMover/providers/Microsoft.StorageMover/storageMovers/testStorageMover2/endpoints/containerEndpointe7649hsm\",\"name\":\"containerEndpointe7649hsm\",\"type\":\"microsoft.storagemover/storagemovers/endpoints\",\"systemData\":{\"createdBy\":\"yifanzhang@microsoft.com\",\"createdByType\":\"User\",\"createdAt\":\"2022-07-22T04:42:48.5543251Z\",\"lastModifiedBy\":\"yifanzhang@microsoft.com\",\"lastModifiedByType\":\"User\",\"lastModifiedAt\":\"2022-07-22T04:42:48.5543251Z\"},\"properties\":{\"endpointType\":\"AzureStorageBlobContainer\",\"storageAccountResourceId\":\"/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/testStorageMover/providers/Microsoft.Storage/storageAccounts/storacce7649hsm\",\"blobContainerName\":\"containere7649hsm\",\"provisioningState\":\"Succeeded\"}},{\"id\":\"/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/testStorageMover/providers/Microsoft.StorageMover/storageMovers/testStorageMover2/endpoints/nfsEndpointe7649hsm\",\"name\":\"nfsEndpointe7649hsm\",\"type\":\"microsoft.storagemover/storagemovers/endpoints\",\"systemData\":{\"createdBy\":\"yifanzhang@microsoft.com\",\"createdByType\":\"User\",\"createdAt\":\"2022-07-22T04:42:49.2574679Z\",\"lastModifiedBy\":\"yifanzhang@microsoft.com\",\"lastModifiedByType\":\"User\",\"lastModifiedAt\":\"2022-07-22T04:42:49.2574679Z\"},\"properties\":{\"endpointType\":\"NfsMount\",\"host\":\"10.0.0.1\",\"export\":\"/\",\"provisioningState\":\"Succeeded\"}},{\"id\":\"/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/testStorageMover/providers/Microsoft.StorageMover/storageMovers/testStorageMover2/endpoints/containerEndpoint0qnj1h4d\",\"name\":\"containerEndpoint0qnj1h4d\",\"type\":\"microsoft.storagemover/storagemovers/endpoints\",\"systemData\":{\"createdBy\":\"yifanzhang@microsoft.com\",\"createdByType\":\"User\",\"createdAt\":\"2022-07-22T04:50:02.3844728Z\",\"lastModifiedBy\":\"yifanzhang@microsoft.com\",\"lastModifiedByType\":\"User\",\"lastModifiedAt\":\"2022-07-22T04:50:02.3844728Z\"},\"properties\":{\"endpointType\":\"AzureStorageBlobContainer\",\"storageAccountResourceId\":\"/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/testStorageMover/providers/Microsoft.Storage/storageAccounts/storacc0qnj1h4d\",\"blobContainerName\":\"container0qnj1h4d\",\"provisioningState\":\"Succeeded\"}},{\"id\":\"/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/testStorageMover/providers/Microsoft.StorageMover/storageMovers/testStorageMover2/endpoints/nfsEndpoint0qnj1h4d\",\"name\":\"nfsEndpoint0qnj1h4d\",\"type\":\"microsoft.storagemover/storagemovers/endpoints\",\"systemData\":{\"createdBy\":\"yifanzhang@microsoft.com\",\"createdByType\":\"User\",\"createdAt\":\"2022-07-22T04:50:02.9157549Z\",\"lastModifiedBy\":\"yifanzhang@microsoft.com\",\"lastModifiedByType\":\"User\",\"lastModifiedAt\":\"2022-07-22T04:50:02.9157549Z\"},\"properties\":{\"endpointType\":\"NfsMount\",\"host\":\"10.0.0.1\",\"export\":\"/\",\"provisioningState\":\"Succeeded\"}},{\"id\":\"/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/testStorageMover/providers/Microsoft.StorageMover/storageMovers/testStorageMover2/endpoints/containerEndpointe4oarfyp\",\"name\":\"containerEndpointe4oarfyp\",\"type\":\"microsoft.storagemover/storagemovers/endpoints\",\"systemData\":{\"createdBy\":\"yifanzhang@microsoft.com\",\"createdByType\":\"User\",\"createdAt\":\"2022-07-22T05:28:13.1208995Z\",\"lastModifiedBy\":\"yifanzhang@microsoft.com\",\"lastModifiedByType\":\"User\",\"lastModifiedAt\":\"2022-07-22T05:28:13.1208995Z\"},\"properties\":{\"endpointType\":\"AzureStorageBlobContainer\",\"storageAccountResourceId\":\"/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/testStorageMover/providers/Microsoft.Storage/storageAccounts/storacce4oarfyp\",\"blobContainerName\":\"containere4oarfyp\",\"provisioningState\":\"Succeeded\"}},{\"id\":\"/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/testStorageMover/providers/Microsoft.StorageMover/storageMovers/testStorageMover2/endpoints/nfsEndpointe4oarfyp\",\"name\":\"nfsEndpointe4oarfyp\",\"type\":\"microsoft.storagemover/storagemovers/endpoints\",\"systemData\":{\"createdBy\":\"yifanzhang@microsoft.com\",\"createdByType\":\"User\",\"createdAt\":\"2022-07-22T05:28:13.7615224Z\",\"lastModifiedBy\":\"yifanzhang@microsoft.com\",\"lastModifiedByType\":\"User\",\"lastModifiedAt\":\"2022-07-22T05:28:13.7615224Z\"},\"properties\":{\"endpointType\":\"NfsMount\",\"host\":\"10.0.0.1\",\"export\":\"/\",\"provisioningState\":\"Succeeded\"}},{\"id\":\"/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/testStorageMover/providers/Microsoft.StorageMover/storageMovers/testStorageMover2/endpoints/containerEndpoint0426e89i\",\"name\":\"containerEndpoint0426e89i\",\"type\":\"microsoft.storagemover/storagemovers/endpoints\",\"systemData\":{\"createdBy\":\"yifanzhang@microsoft.com\",\"createdByType\":\"User\",\"createdAt\":\"2022-07-22T05:31:23.4645384Z\",\"lastModifiedBy\":\"yifanzhang@microsoft.com\",\"lastModifiedByType\":\"User\",\"lastModifiedAt\":\"2022-07-22T05:31:23.4645384Z\"},\"properties\":{\"endpointType\":\"AzureStorageBlobContainer\",\"storageAccountResourceId\":\"/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/testStorageMover/providers/Microsoft.Storage/storageAccounts/storacc0426e89i\",\"blobContainerName\":\"container0426e89i\",\"provisioningState\":\"Succeeded\"}},{\"id\":\"/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/testStorageMover/providers/Microsoft.StorageMover/storageMovers/testStorageMover2/endpoints/nfsEndpoint0426e89i\",\"name\":\"nfsEndpoint0426e89i\",\"type\":\"microsoft.storagemover/storagemovers/endpoints\",\"systemData\":{\"createdBy\":\"yifanzhang@microsoft.com\",\"createdByType\":\"User\",\"createdAt\":\"2022-07-22T05:31:24.0114172Z\",\"lastModifiedBy\":\"yifanzhang@microsoft.com\",\"lastModifiedByType\":\"User\",\"lastModifiedAt\":\"2022-07-22T05:31:24.0114172Z\"},\"properties\":{\"endpointType\":\"NfsMount\",\"host\":\"10.0.0.1\",\"export\":\"/\",\"provisioningState\":\"Succeeded\"}},{\"id\":\"/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/testStorageMover/providers/Microsoft.StorageMover/storageMovers/testStorageMover2/endpoints/containerEndpointx08itkwr\",\"name\":\"containerEndpointx08itkwr\",\"type\":\"microsoft.storagemover/storagemovers/endpoints\",\"systemData\":{\"createdBy\":\"a000255f-5f09-45e0-a970-9d9ed9cc6453\",\"createdByType\":\"Application\",\"createdAt\":\"2022-07-29T09:10:01.0053212Z\",\"lastModifiedBy\":\"a000255f-5f09-45e0-a970-9d9ed9cc6453\",\"lastModifiedByType\":\"Application\",\"lastModifiedAt\":\"2022-07-29T09:10:01.0053212Z\"},\"properties\":{\"endpointType\":\"AzureStorageBlobContainer\",\"storageAccountResourceId\":\"/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/testStorageMover/providers/Microsoft.Storage/storageAccounts/storaccx08itkwr\",\"blobContainerName\":\"containerx08itkwr\",\"provisioningState\":\"Succeeded\"}},{\"id\":\"/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/testStorageMover/providers/Microsoft.StorageMover/storageMovers/testStorageMover2/endpoints/nfsEndpointx08itkwr\",\"name\":\"nfsEndpointx08itkwr\",\"type\":\"microsoft.storagemover/storagemovers/endpoints\",\"systemData\":{\"createdBy\":\"a000255f-5f09-45e0-a970-9d9ed9cc6453\",\"createdByType\":\"Application\",\"createdAt\":\"2022-07-29T09:10:02.4116078Z\",\"lastModifiedBy\":\"a000255f-5f09-45e0-a970-9d9ed9cc6453\",\"lastModifiedByType\":\"Application\",\"lastModifiedAt\":\"2022-07-29T09:10:02.4116078Z\"},\"properties\":{\"endpointType\":\"NfsMount\",\"host\":\"10.0.0.1\",\"export\":\"/\",\"provisioningState\":\"Succeeded\"}},{\"id\":\"/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/testStorageMover/providers/Microsoft.StorageMover/storageMovers/testStorageMover2/endpoints/containerEndpointovndwe1k\",\"name\":\"containerEndpointovndwe1k\",\"type\":\"microsoft.storagemover/storagemovers/endpoints\",\"systemData\":{\"createdBy\":\"a000255f-5f09-45e0-a970-9d9ed9cc6453\",\"createdByType\":\"Application\",\"createdAt\":\"2022-08-02T03:13:41.3463791Z\",\"lastModifiedBy\":\"a000255f-5f09-45e0-a970-9d9ed9cc6453\",\"lastModifiedByType\":\"Application\",\"lastModifiedAt\":\"2022-08-02T03:13:41.3463791Z\"},\"properties\":{\"endpointType\":\"AzureStorageBlobContainer\",\"storageAccountResourceId\":\"/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/testStorageMover/providers/Microsoft.Storage/storageAccounts/storaccovndwe1k\",\"blobContainerName\":\"containerovndwe1k\",\"provisioningState\":\"Succeeded\"}},{\"id\":\"/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/testStorageMover/providers/Microsoft.StorageMover/storageMovers/testStorageMover2/endpoints/nfsEndpointovndwe1k\",\"name\":\"nfsEndpointovndwe1k\",\"type\":\"microsoft.storagemover/storagemovers/endpoints\",\"systemData\":{\"createdBy\":\"a000255f-5f09-45e0-a970-9d9ed9cc6453\",\"createdByType\":\"Application\",\"createdAt\":\"2022-08-02T03:13:42.690141Z\",\"lastModifiedBy\":\"a000255f-5f09-45e0-a970-9d9ed9cc6453\",\"lastModifiedByType\":\"Application\",\"lastModifiedAt\":\"2022-08-02T03:13:42.690141Z\"},\"properties\":{\"endpointType\":\"NfsMount\",\"host\":\"10.0.0.1\",\"export\":\"/\",\"provisioningState\":\"Succeeded\"}},{\"id\":\"/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/testStorageMover/providers/Microsoft.StorageMover/storageMovers/testStorageMover2/endpoints/containerEndpoint24cd0vxj\",\"name\":\"containerEndpoint24cd0vxj\",\"type\":\"microsoft.storagemover/storagemovers/endpoints\",\"systemData\":{\"createdBy\":\"a000255f-5f09-45e0-a970-9d9ed9cc6453\",\"createdByType\":\"Application\",\"createdAt\":\"2022-08-02T03:25:56.4232481Z\",\"lastModifiedBy\":\"a000255f-5f09-45e0-a970-9d9ed9cc6453\",\"lastModifiedByType\":\"Application\",\"lastModifiedAt\":\"2022-08-02T03:25:56.4232481Z\"},\"properties\":{\"endpointType\":\"AzureStorageBlobContainer\",\"storageAccountResourceId\":\"/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/testStorageMover/providers/Microsoft.Storage/storageAccounts/storacc24cd0vxj\",\"blobContainerName\":\"container24cd0vxj\",\"provisioningState\":\"Succeeded\"}},{\"id\":\"/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/testStorageMover/providers/Microsoft.StorageMover/storageMovers/testStorageMover2/endpoints/nfsEndpoint24cd0vxj\",\"name\":\"nfsEndpoint24cd0vxj\",\"type\":\"microsoft.storagemover/storagemovers/endpoints\",\"systemData\":{\"createdBy\":\"a000255f-5f09-45e0-a970-9d9ed9cc6453\",\"createdByType\":\"Application\",\"createdAt\":\"2022-08-02T03:25:58.1576375Z\",\"lastModifiedBy\":\"a000255f-5f09-45e0-a970-9d9ed9cc6453\",\"lastModifiedByType\":\"Application\",\"lastModifiedAt\":\"2022-08-02T03:25:58.1576375Z\"},\"properties\":{\"endpointType\":\"NfsMount\",\"host\":\"10.0.0.1\",\"export\":\"/\",\"provisioningState\":\"Succeeded\"}},{\"id\":\"/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/testStorageMover/providers/Microsoft.StorageMover/storageMovers/testStorageMover2/endpoints/containerEndpoint6flk3awb\",\"name\":\"containerEndpoint6flk3awb\",\"type\":\"microsoft.storagemover/storagemovers/endpoints\",\"systemData\":{\"createdBy\":\"a000255f-5f09-45e0-a970-9d9ed9cc6453\",\"createdByType\":\"Application\",\"createdAt\":\"2022-08-02T03:48:23.9807477Z\",\"lastModifiedBy\":\"a000255f-5f09-45e0-a970-9d9ed9cc6453\",\"lastModifiedByType\":\"Application\",\"lastModifiedAt\":\"2022-08-02T03:48:23.9807477Z\"},\"properties\":{\"endpointType\":\"AzureStorageBlobContainer\",\"storageAccountResourceId\":\"/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/testStorageMover/providers/Microsoft.Storage/storageAccounts/storacc6flk3awb\",\"blobContainerName\":\"container6flk3awb\",\"provisioningState\":\"Succeeded\"}},{\"id\":\"/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/testStorageMover/providers/Microsoft.StorageMover/storageMovers/testStorageMover2/endpoints/nfsEndpoint6flk3awb\",\"name\":\"nfsEndpoint6flk3awb\",\"type\":\"microsoft.storagemover/storagemovers/endpoints\",\"systemData\":{\"createdBy\":\"a000255f-5f09-45e0-a970-9d9ed9cc6453\",\"createdByType\":\"Application\",\"createdAt\":\"2022-08-02T03:48:25.5589776Z\",\"lastModifiedBy\":\"a000255f-5f09-45e0-a970-9d9ed9cc6453\",\"lastModifiedByType\":\"Application\",\"lastModifiedAt\":\"2022-08-02T03:48:25.5589776Z\"},\"properties\":{\"endpointType\":\"NfsMount\",\"host\":\"10.0.0.1\",\"export\":\"/\",\"provisioningState\":\"Succeeded\"}},{\"id\":\"/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/testStorageMover/providers/Microsoft.StorageMover/storageMovers/testStorageMover2/endpoints/containerEndpoint4mkhzf8x\",\"name\":\"containerEndpoint4mkhzf8x\",\"type\":\"microsoft.storagemover/storagemovers/endpoints\",\"systemData\":{\"createdBy\":\"a000255f-5f09-45e0-a970-9d9ed9cc6453\",\"createdByType\":\"Application\",\"createdAt\":\"2022-08-02T03:52:20.6782549Z\",\"lastModifiedBy\":\"a000255f-5f09-45e0-a970-9d9ed9cc6453\",\"lastModifiedByType\":\"Application\",\"lastModifiedAt\":\"2022-08-02T03:52:20.6782549Z\"},\"properties\":{\"endpointType\":\"AzureStorageBlobContainer\",\"storageAccountResourceId\":\"/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/testStorageMover/providers/Microsoft.Storage/storageAccounts/storacc4mkhzf8x\",\"blobContainerName\":\"container4mkhzf8x\",\"provisioningState\":\"Succeeded\"}},{\"id\":\"/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/testStorageMover/providers/Microsoft.StorageMover/storageMovers/testStorageMover2/endpoints/nfsEndpoint4mkhzf8x\",\"name\":\"nfsEndpoint4mkhzf8x\",\"type\":\"microsoft.storagemover/storagemovers/endpoints\",\"systemData\":{\"createdBy\":\"a000255f-5f09-45e0-a970-9d9ed9cc6453\",\"createdByType\":\"Application\",\"createdAt\":\"2022-08-02T03:52:22.2095136Z\",\"lastModifiedBy\":\"a000255f-5f09-45e0-a970-9d9ed9cc6453\",\"lastModifiedByType\":\"Application\",\"lastModifiedAt\":\"2022-08-02T03:52:22.2095136Z\"},\"properties\":{\"endpointType\":\"NfsMount\",\"host\":\"10.0.0.1\",\"export\":\"/\",\"provisioningState\":\"Succeeded\"}},{\"id\":\"/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/testStorageMover/providers/Microsoft.StorageMover/storageMovers/testStorageMover2/endpoints/containerEndpoint7ubswd3o\",\"name\":\"containerEndpoint7ubswd3o\",\"type\":\"microsoft.storagemover/storagemovers/endpoints\",\"systemData\":{\"createdBy\":\"a000255f-5f09-45e0-a970-9d9ed9cc6453\",\"createdByType\":\"Application\",\"createdAt\":\"2022-08-02T04:00:26.1686023Z\",\"lastModifiedBy\":\"a000255f-5f09-45e0-a970-9d9ed9cc6453\",\"lastModifiedByType\":\"Application\",\"lastModifiedAt\":\"2022-08-02T04:00:26.1686023Z\"},\"properties\":{\"endpointType\":\"AzureStorageBlobContainer\",\"storageAccountResourceId\":\"/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/testStorageMover/providers/Microsoft.Storage/storageAccounts/storacc7ubswd3o\",\"blobContainerName\":\"container7ubswd3o\",\"provisioningState\":\"Succeeded\"}},{\"id\":\"/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/testStorageMover/providers/Microsoft.StorageMover/storageMovers/testStorageMover2/endpoints/nfsEndpoint7ubswd3o\",\"name\":\"nfsEndpoint7ubswd3o\",\"type\":\"microsoft.storagemover/storagemovers/endpoints\",\"systemData\":{\"createdBy\":\"a000255f-5f09-45e0-a970-9d9ed9cc6453\",\"createdByType\":\"Application\",\"createdAt\":\"2022-08-02T04:00:27.7311133Z\",\"lastModifiedBy\":\"a000255f-5f09-45e0-a970-9d9ed9cc6453\",\"lastModifiedByType\":\"Application\",\"lastModifiedAt\":\"2022-08-02T04:00:27.7311133Z\"},\"properties\":{\"endpointType\":\"NfsMount\",\"host\":\"10.0.0.1\",\"export\":\"/\",\"provisioningState\":\"Succeeded\"}},{\"id\":\"/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/testStorageMover/providers/Microsoft.StorageMover/storageMovers/testStorageMover2/endpoints/containerEndpointkdmxy397\",\"name\":\"containerEndpointkdmxy397\",\"type\":\"microsoft.storagemover/storagemovers/endpoints\",\"systemData\":{\"createdBy\":\"a000255f-5f09-45e0-a970-9d9ed9cc6453\",\"createdByType\":\"Application\",\"createdAt\":\"2022-08-02T05:05:29.8969253Z\",\"lastModifiedBy\":\"a000255f-5f09-45e0-a970-9d9ed9cc6453\",\"lastModifiedByType\":\"Application\",\"lastModifiedAt\":\"2022-08-02T05:05:29.8969253Z\"},\"properties\":{\"endpointType\":\"AzureStorageBlobContainer\",\"storageAccountResourceId\":\"/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/testStorageMover/providers/Microsoft.Storage/storageAccounts/storacckdmxy397\",\"blobContainerName\":\"containerkdmxy397\",\"provisioningState\":\"Succeeded\"}},{\"id\":\"/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/testStorageMover/providers/Microsoft.StorageMover/storageMovers/testStorageMover2/endpoints/nfsEndpointkdmxy397\",\"name\":\"nfsEndpointkdmxy397\",\"type\":\"microsoft.storagemover/storagemovers/endpoints\",\"systemData\":{\"createdBy\":\"a000255f-5f09-45e0-a970-9d9ed9cc6453\",\"createdByType\":\"Application\",\"createdAt\":\"2022-08-02T05:05:31.4906861Z\",\"lastModifiedBy\":\"a000255f-5f09-45e0-a970-9d9ed9cc6453\",\"lastModifiedByType\":\"Application\",\"lastModifiedAt\":\"2022-08-02T05:05:31.4906861Z\"},\"properties\":{\"endpointType\":\"NfsMount\",\"host\":\"10.0.0.1\",\"export\":\"/\",\"provisioningState\":\"Succeeded\"}},{\"id\":\"/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/testStorageMover/providers/Microsoft.StorageMover/storageMovers/testStorageMover2/endpoints/containerEndpointed31jkfu\",\"name\":\"containerEndpointed31jkfu\",\"type\":\"microsoft.storagemover/storagemovers/endpoints\",\"systemData\":{\"createdBy\":\"a000255f-5f09-45e0-a970-9d9ed9cc6453\",\"createdByType\":\"Application\",\"createdAt\":\"2022-08-02T05:13:48.7490416Z\",\"lastModifiedBy\":\"a000255f-5f09-45e0-a970-9d9ed9cc6453\",\"lastModifiedByType\":\"Application\",\"lastModifiedAt\":\"2022-08-02T05:13:48.7490416Z\"},\"properties\":{\"endpointType\":\"AzureStorageBlobContainer\",\"storageAccountResourceId\":\"/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/testStorageMover/providers/Microsoft.Storage/storageAccounts/storacced31jkfu\",\"blobContainerName\":\"containered31jkfu\",\"provisioningState\":\"Succeeded\"}},{\"id\":\"/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/testStorageMover/providers/Microsoft.StorageMover/storageMovers/testStorageMover2/endpoints/nfsEndpointed31jkfu\",\"name\":\"nfsEndpointed31jkfu\",\"type\":\"microsoft.storagemover/storagemovers/endpoints\",\"systemData\":{\"createdBy\":\"a000255f-5f09-45e0-a970-9d9ed9cc6453\",\"createdByType\":\"Application\",\"createdAt\":\"2022-08-02T05:13:50.5303188Z\",\"lastModifiedBy\":\"a000255f-5f09-45e0-a970-9d9ed9cc6453\",\"lastModifiedByType\":\"Application\",\"lastModifiedAt\":\"2022-08-02T05:13:50.5303188Z\"},\"properties\":{\"endpointType\":\"NfsMount\",\"host\":\"10.0.0.1\",\"export\":\"/\",\"provisioningState\":\"Succeeded\"}},{\"id\":\"/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/testStorageMover/providers/Microsoft.StorageMover/storageMovers/testStorageMover2/endpoints/containerEndpointgmrj5zbv\",\"name\":\"containerEndpointgmrj5zbv\",\"type\":\"microsoft.storagemover/storagemovers/endpoints\",\"systemData\":{\"createdBy\":\"a000255f-5f09-45e0-a970-9d9ed9cc6453\",\"createdByType\":\"Application\",\"createdAt\":\"2022-08-02T05:19:21.8537954Z\",\"lastModifiedBy\":\"a000255f-5f09-45e0-a970-9d9ed9cc6453\",\"lastModifiedByType\":\"Application\",\"lastModifiedAt\":\"2022-08-02T05:19:21.8537954Z\"},\"properties\":{\"endpointType\":\"AzureStorageBlobContainer\",\"storageAccountResourceId\":\"/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/testStorageMover/providers/Microsoft.Storage/storageAccounts/storaccgmrj5zbv\",\"blobContainerName\":\"containergmrj5zbv\",\"provisioningState\":\"Succeeded\"}},{\"id\":\"/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/testStorageMover/providers/Microsoft.StorageMover/storageMovers/testStorageMover2/endpoints/nfsEndpointgmrj5zbv\",\"name\":\"nfsEndpointgmrj5zbv\",\"type\":\"microsoft.storagemover/storagemovers/endpoints\",\"systemData\":{\"createdBy\":\"a000255f-5f09-45e0-a970-9d9ed9cc6453\",\"createdByType\":\"Application\",\"createdAt\":\"2022-08-02T05:19:23.338158Z\",\"lastModifiedBy\":\"a000255f-5f09-45e0-a970-9d9ed9cc6453\",\"lastModifiedByType\":\"Application\",\"lastModifiedAt\":\"2022-08-02T05:19:23.338158Z\"},\"properties\":{\"endpointType\":\"NfsMount\",\"host\":\"10.0.0.1\",\"export\":\"/\",\"provisioningState\":\"Succeeded\"}},{\"id\":\"/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/testStorageMover/providers/Microsoft.StorageMover/storageMovers/testStorageMover2/endpoints/containerEndpointe2q3kd7l\",\"name\":\"containerEndpointe2q3kd7l\",\"type\":\"microsoft.storagemover/storagemovers/endpoints\",\"systemData\":{\"createdBy\":\"a000255f-5f09-45e0-a970-9d9ed9cc6453\",\"createdByType\":\"Application\",\"createdAt\":\"2022-08-02T05:23:43.9738784Z\",\"lastModifiedBy\":\"a000255f-5f09-45e0-a970-9d9ed9cc6453\",\"lastModifiedByType\":\"Application\",\"lastModifiedAt\":\"2022-08-02T05:23:43.9738784Z\"},\"properties\":{\"endpointType\":\"AzureStorageBlobContainer\",\"storageAccountResourceId\":\"/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/testStorageMover/providers/Microsoft.Storage/storageAccounts/storacce2q3kd7l\",\"blobContainerName\":\"containere2q3kd7l\",\"provisioningState\":\"Succeeded\"}},{\"id\":\"/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/testStorageMover/providers/Microsoft.StorageMover/storageMovers/testStorageMover2/endpoints/nfsEndpointe2q3kd7l\",\"name\":\"nfsEndpointe2q3kd7l\",\"type\":\"microsoft.storagemover/storagemovers/endpoints\",\"systemData\":{\"createdBy\":\"a000255f-5f09-45e0-a970-9d9ed9cc6453\",\"createdByType\":\"Application\",\"createdAt\":\"2022-08-02T05:23:45.8644898Z\",\"lastModifiedBy\":\"a000255f-5f09-45e0-a970-9d9ed9cc6453\",\"lastModifiedByType\":\"Application\",\"lastModifiedAt\":\"2022-08-02T05:23:45.8644898Z\"},\"properties\":{\"endpointType\":\"NfsMount\",\"host\":\"10.0.0.1\",\"export\":\"/\",\"provisioningState\":\"Succeeded\"}},{\"id\":\"/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/testStorageMover/providers/Microsoft.StorageMover/storageMovers/testStorageMover2/endpoints/containerEndpoint4068b735\",\"name\":\"containerEndpoint4068b735\",\"type\":\"microsoft.storagemover/storagemovers/endpoints\",\"systemData\":{\"createdBy\":\"a000255f-5f09-45e0-a970-9d9ed9cc6453\",\"createdByType\":\"Application\",\"createdAt\":\"2022-08-02T05:35:43.5299027Z\",\"lastModifiedBy\":\"a000255f-5f09-45e0-a970-9d9ed9cc6453\",\"lastModifiedByType\":\"Application\",\"lastModifiedAt\":\"2022-08-02T05:35:43.5299027Z\"},\"properties\":{\"endpointType\":\"AzureStorageBlobContainer\",\"storageAccountResourceId\":\"/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/testStorageMover/providers/Microsoft.Storage/storageAccounts/storacc4068b735\",\"blobContainerName\":\"container4068b735\",\"provisioningState\":\"Succeeded\"}},{\"id\":\"/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/testStorageMover/providers/Microsoft.StorageMover/storageMovers/testStorageMover2/endpoints/nfsEndpoint4068b735\",\"name\":\"nfsEndpoint4068b735\",\"type\":\"microsoft.storagemover/storagemovers/endpoints\",\"systemData\":{\"createdBy\":\"a000255f-5f09-45e0-a970-9d9ed9cc6453\",\"createdByType\":\"Application\",\"createdAt\":\"2022-08-02T05:35:45.1079755Z\",\"lastModifiedBy\":\"a000255f-5f09-45e0-a970-9d9ed9cc6453\",\"lastModifiedByType\":\"Application\",\"lastModifiedAt\":\"2022-08-02T05:35:45.1079755Z\"},\"properties\":{\"endpointType\":\"NfsMount\",\"host\":\"10.0.0.1\",\"export\":\"/\",\"provisioningState\":\"Succeeded\"}}]}", + "Content": "{\"value\":[{\"id\":\"/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/teststoragemover/providers/Microsoft.StorageMover/storageMovers/testmoverpreview1/endpoints/containerEndpointua3b5imx\",\"name\":\"containerEndpointua3b5imx\",\"type\":\"microsoft.storagemover/storagemovers/endpoints\",\"systemData\":{\"createdBy\":\"a000255f-5f09-45e0-a970-9d9ed9cc6453\",\"createdByType\":\"Application\",\"createdAt\":\"2023-07-21T02:24:47.8776138Z\",\"lastModifiedBy\":\"a000255f-5f09-45e0-a970-9d9ed9cc6453\",\"lastModifiedByType\":\"Application\",\"lastModifiedAt\":\"2023-07-21T02:24:47.8776138Z\"},\"properties\":{\"storageAccountResourceId\":\"/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/teststoragemover/providers/Microsoft.Storage/storageAccounts/storaccua3b5imx\",\"blobContainerName\":\"containerua3b5imx\",\"endpointType\":\"AzureStorageBlobContainer\",\"provisioningState\":\"Succeeded\"}},{\"id\":\"/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/teststoragemover/providers/Microsoft.StorageMover/storageMovers/testmoverpreview1/endpoints/nfsEndpointua3b5imx\",\"name\":\"nfsEndpointua3b5imx\",\"type\":\"microsoft.storagemover/storagemovers/endpoints\",\"systemData\":{\"createdBy\":\"a000255f-5f09-45e0-a970-9d9ed9cc6453\",\"createdByType\":\"Application\",\"createdAt\":\"2023-07-21T02:24:49.2526299Z\",\"lastModifiedBy\":\"a000255f-5f09-45e0-a970-9d9ed9cc6453\",\"lastModifiedByType\":\"Application\",\"lastModifiedAt\":\"2023-07-21T02:24:49.2526299Z\"},\"properties\":{\"host\":\"10.0.0.1\",\"nfsVersion\":\"NFSauto\",\"export\":\"/\",\"endpointType\":\"NfsMount\",\"provisioningState\":\"Succeeded\"}},{\"id\":\"/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/teststoragemover/providers/Microsoft.StorageMover/storageMovers/testmoverpreview1/endpoints/containerEndpoint31q7xr6m\",\"name\":\"containerEndpoint31q7xr6m\",\"type\":\"microsoft.storagemover/storagemovers/endpoints\",\"systemData\":{\"createdBy\":\"a000255f-5f09-45e0-a970-9d9ed9cc6453\",\"createdByType\":\"Application\",\"createdAt\":\"2023-07-21T03:09:06.7521896Z\",\"lastModifiedBy\":\"a000255f-5f09-45e0-a970-9d9ed9cc6453\",\"lastModifiedByType\":\"Application\",\"lastModifiedAt\":\"2023-07-21T03:09:06.7521896Z\"},\"properties\":{\"storageAccountResourceId\":\"/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/teststoragemover/providers/Microsoft.Storage/storageAccounts/storacc31q7xr6m\",\"blobContainerName\":\"container31q7xr6m\",\"endpointType\":\"AzureStorageBlobContainer\",\"provisioningState\":\"Succeeded\"}},{\"id\":\"/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/teststoragemover/providers/Microsoft.StorageMover/storageMovers/testmoverpreview1/endpoints/nfsEndpoint31q7xr6m\",\"name\":\"nfsEndpoint31q7xr6m\",\"type\":\"microsoft.storagemover/storagemovers/endpoints\",\"systemData\":{\"createdBy\":\"a000255f-5f09-45e0-a970-9d9ed9cc6453\",\"createdByType\":\"Application\",\"createdAt\":\"2023-07-21T03:09:07.908458Z\",\"lastModifiedBy\":\"a000255f-5f09-45e0-a970-9d9ed9cc6453\",\"lastModifiedByType\":\"Application\",\"lastModifiedAt\":\"2023-07-21T03:09:07.908458Z\"},\"properties\":{\"host\":\"10.0.0.1\",\"nfsVersion\":\"NFSauto\",\"export\":\"/\",\"endpointType\":\"NfsMount\",\"provisioningState\":\"Succeeded\"}},{\"id\":\"/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/teststoragemover/providers/Microsoft.StorageMover/storageMovers/testmoverpreview1/endpoints/containerEndpointdy0z54nl\",\"name\":\"containerEndpointdy0z54nl\",\"type\":\"microsoft.storagemover/storagemovers/endpoints\",\"systemData\":{\"createdBy\":\"a000255f-5f09-45e0-a970-9d9ed9cc6453\",\"createdByType\":\"Application\",\"createdAt\":\"2023-07-21T04:02:41.5998671Z\",\"lastModifiedBy\":\"a000255f-5f09-45e0-a970-9d9ed9cc6453\",\"lastModifiedByType\":\"Application\",\"lastModifiedAt\":\"2023-07-21T04:02:41.5998671Z\"},\"properties\":{\"storageAccountResourceId\":\"/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/teststoragemover/providers/Microsoft.Storage/storageAccounts/storaccdy0z54nl\",\"blobContainerName\":\"containerdy0z54nl\",\"endpointType\":\"AzureStorageBlobContainer\",\"provisioningState\":\"Succeeded\"}},{\"id\":\"/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/teststoragemover/providers/Microsoft.StorageMover/storageMovers/testmoverpreview1/endpoints/nfsEndpointdy0z54nl\",\"name\":\"nfsEndpointdy0z54nl\",\"type\":\"microsoft.storagemover/storagemovers/endpoints\",\"systemData\":{\"createdBy\":\"a000255f-5f09-45e0-a970-9d9ed9cc6453\",\"createdByType\":\"Application\",\"createdAt\":\"2023-07-21T04:02:42.6154831Z\",\"lastModifiedBy\":\"a000255f-5f09-45e0-a970-9d9ed9cc6453\",\"lastModifiedByType\":\"Application\",\"lastModifiedAt\":\"2023-07-21T04:02:42.6154831Z\"},\"properties\":{\"host\":\"10.0.0.1\",\"nfsVersion\":\"NFSauto\",\"export\":\"/\",\"endpointType\":\"NfsMount\",\"provisioningState\":\"Succeeded\"}},{\"id\":\"/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/teststoragemover/providers/Microsoft.StorageMover/storageMovers/testmoverpreview1/endpoints/containerEndpoint8p9yh1t3\",\"name\":\"containerEndpoint8p9yh1t3\",\"type\":\"microsoft.storagemover/storagemovers/endpoints\",\"systemData\":{\"createdBy\":\"a000255f-5f09-45e0-a970-9d9ed9cc6453\",\"createdByType\":\"Application\",\"createdAt\":\"2023-07-21T04:06:35.06982Z\",\"lastModifiedBy\":\"a000255f-5f09-45e0-a970-9d9ed9cc6453\",\"lastModifiedByType\":\"Application\",\"lastModifiedAt\":\"2023-07-21T04:06:35.06982Z\"},\"properties\":{\"storageAccountResourceId\":\"/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/teststoragemover/providers/Microsoft.Storage/storageAccounts/storacc8p9yh1t3\",\"blobContainerName\":\"container8p9yh1t3\",\"endpointType\":\"AzureStorageBlobContainer\",\"provisioningState\":\"Succeeded\"}},{\"id\":\"/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/teststoragemover/providers/Microsoft.StorageMover/storageMovers/testmoverpreview1/endpoints/nfsEndpoint8p9yh1t3\",\"name\":\"nfsEndpoint8p9yh1t3\",\"type\":\"microsoft.storagemover/storagemovers/endpoints\",\"systemData\":{\"createdBy\":\"a000255f-5f09-45e0-a970-9d9ed9cc6453\",\"createdByType\":\"Application\",\"createdAt\":\"2023-07-21T04:06:36.0072585Z\",\"lastModifiedBy\":\"a000255f-5f09-45e0-a970-9d9ed9cc6453\",\"lastModifiedByType\":\"Application\",\"lastModifiedAt\":\"2023-07-21T04:06:36.0072585Z\"},\"properties\":{\"host\":\"10.0.0.1\",\"nfsVersion\":\"NFSauto\",\"export\":\"/\",\"endpointType\":\"NfsMount\",\"provisioningState\":\"Succeeded\"}},{\"id\":\"/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/teststoragemover/providers/Microsoft.StorageMover/storageMovers/testmoverpreview1/endpoints/containerEndpointhc715gxy\",\"name\":\"containerEndpointhc715gxy\",\"type\":\"microsoft.storagemover/storagemovers/endpoints\",\"systemData\":{\"createdBy\":\"a000255f-5f09-45e0-a970-9d9ed9cc6453\",\"createdByType\":\"Application\",\"createdAt\":\"2023-07-21T04:28:55.890165Z\",\"lastModifiedBy\":\"a000255f-5f09-45e0-a970-9d9ed9cc6453\",\"lastModifiedByType\":\"Application\",\"lastModifiedAt\":\"2023-07-21T04:28:55.890165Z\"},\"properties\":{\"storageAccountResourceId\":\"/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/teststoragemover/providers/Microsoft.Storage/storageAccounts/storacchc715gxy\",\"blobContainerName\":\"containerhc715gxy\",\"endpointType\":\"AzureStorageBlobContainer\",\"provisioningState\":\"Succeeded\"}},{\"id\":\"/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/teststoragemover/providers/Microsoft.StorageMover/storageMovers/testmoverpreview1/endpoints/nfsEndpointhc715gxy\",\"name\":\"nfsEndpointhc715gxy\",\"type\":\"microsoft.storagemover/storagemovers/endpoints\",\"systemData\":{\"createdBy\":\"a000255f-5f09-45e0-a970-9d9ed9cc6453\",\"createdByType\":\"Application\",\"createdAt\":\"2023-07-21T04:28:56.9288302Z\",\"lastModifiedBy\":\"a000255f-5f09-45e0-a970-9d9ed9cc6453\",\"lastModifiedByType\":\"Application\",\"lastModifiedAt\":\"2023-07-21T04:28:56.9288302Z\"},\"properties\":{\"host\":\"10.0.0.1\",\"nfsVersion\":\"NFSauto\",\"export\":\"/\",\"endpointType\":\"NfsMount\",\"provisioningState\":\"Succeeded\"}}]}", "isContentBase64": false } } diff --git a/src/StorageMover/test/Remove-AzStorageMoverJobDefinition.Recording.json b/src/StorageMover/test/Remove-AzStorageMoverJobDefinition.Recording.json index b357c96f24f3..258a53ba5729 100644 --- a/src/StorageMover/test/Remove-AzStorageMoverJobDefinition.Recording.json +++ b/src/StorageMover/test/Remove-AzStorageMoverJobDefinition.Recording.json @@ -1,9 +1,9 @@ { - "Remove-AzStorageMoverJobDefinition+[NoContext]+Delete+$PUT+https://management.azure.com/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/testStorageMover/providers/Microsoft.StorageMover/storageMovers/testStorageMover2/projects/testProject4068b735/jobDefinitions/testJob34068b735?api-version=2023-03-01+1": { + "Remove-AzStorageMoverJobDefinition+[NoContext]+Delete+$PUT+https://management.azure.com/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/teststoragemover/providers/Microsoft.StorageMover/storageMovers/testmoverpreview1/projects/testProjecthc715gxy/jobDefinitions/testJob3hc715gxy?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/testStorageMover2/projects/testProject4068b735/jobDefinitions/testJob34068b735?api-version=2023-03-01", - "Content": "{\r\n \"properties\": {\r\n \"copyMode\": \"Additive\",\r\n \"sourceName\": \"nfsEndpoint4068b735\",\r\n \"targetName\": \"containerEndpoint4068b735\",\r\n \"agentName\": \"testagent7\"\r\n }\r\n}", + "RequestUri": "https://management.azure.com/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/teststoragemover/providers/Microsoft.StorageMover/storageMovers/testmoverpreview1/projects/testProjecthc715gxy/jobDefinitions/testJob3hc715gxy?api-version=2023-10-01", + "Content": "{\r\n \"properties\": {\r\n \"copyMode\": \"Additive\",\r\n \"sourceName\": \"nfsEndpointhc715gxy\",\r\n \"targetName\": \"containerEndpointhc715gxy\",\r\n \"agentName\": \"testagent1\"\r\n }\r\n}", "isContentBase64": false, "Headers": { }, @@ -17,39 +17,39 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "ETag": [ "\"0000569e-0000-3400-0000-62e8b7ea0000\"" ], - "x-ms-ratelimit-remaining-subscription-writes": [ "1180" ], + "ETag": [ "\"01006f2c-0000-3400-0000-64ba09d50000\"" ], + "x-ms-ratelimit-remaining-subscription-writes": [ "1181" ], "x-ms-providerhub-traffic": [ "True" ], - "mise-correlation-id": [ "093a715b-75a4-4648-9aa9-49449f5eae1f" ], - "x-ms-request-id": [ "58eb07e3-fddb-4c6d-a527-d88a30026bd2" ], - "x-ms-correlation-request-id": [ "d1df232a-20c7-49e3-9fc8-6eff749d6653" ], - "x-ms-routing-request-id": [ "SOUTHEASTASIA:20220802T053642Z:d1df232a-20c7-49e3-9fc8-6eff749d6653" ], + "mise-correlation-id": [ "6c3989b2-86e1-40b4-aad2-fd3d58265a49" ], + "x-ms-request-id": [ "7816b970-5a0a-483a-9b5e-f1f4558c8cb5" ], + "x-ms-correlation-request-id": [ "994409ab-14bb-460d-9ce4-df52db5375eb" ], + "x-ms-routing-request-id": [ "EASTUS2EUAP:20230721T043013Z:994409ab-14bb-460d-9ce4-df52db5375eb" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "X-Content-Type-Options": [ "nosniff" ], - "Date": [ "Tue, 02 Aug 2022 05:36:41 GMT" ] + "Date": [ "Fri, 21 Jul 2023 04:30:12 GMT" ] }, "ContentHeaders": { - "Content-Length": [ "760" ], + "Content-Length": [ "1353" ], "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"id\":\"/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/testStorageMover/providers/Microsoft.StorageMover/storageMovers/testStorageMover2/projects/testProject4068b735/jobDefinitions/testJob34068b735\",\"name\":\"testJob34068b735\",\"type\":\"microsoft.storagemover/storagemovers/projects/jobdefinitions\",\"systemData\":{\"createdBy\":\"a000255f-5f09-45e0-a970-9d9ed9cc6453\",\"createdByType\":\"Application\",\"createdAt\":\"2022-08-02T05:36:41.576733Z\",\"lastModifiedBy\":\"a000255f-5f09-45e0-a970-9d9ed9cc6453\",\"lastModifiedByType\":\"Application\",\"lastModifiedAt\":\"2022-08-02T05:36:41.576733Z\"},\"properties\":{\"copyMode\":\"Additive\",\"sourceName\":\"nfsEndpoint4068b735\",\"targetName\":\"containerEndpoint4068b735\",\"agentName\":\"testagent7\",\"provisioningState\":\"Succeeded\"}}", + "Content": "{\"id\":\"/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/teststoragemover/providers/Microsoft.StorageMover/storageMovers/testmoverpreview1/projects/testProjecthc715gxy/jobDefinitions/testJob3hc715gxy\",\"name\":\"testJob3hc715gxy\",\"type\":\"microsoft.storagemover/storagemovers/projects/jobdefinitions\",\"systemData\":{\"createdBy\":\"a000255f-5f09-45e0-a970-9d9ed9cc6453\",\"createdByType\":\"Application\",\"createdAt\":\"2023-07-21T04:30:13.334904Z\",\"lastModifiedBy\":\"a000255f-5f09-45e0-a970-9d9ed9cc6453\",\"lastModifiedByType\":\"Application\",\"lastModifiedAt\":\"2023-07-21T04:30:13.334904Z\"},\"properties\":{\"copyMode\":\"Additive\",\"sourceName\":\"nfsEndpointhc715gxy\",\"sourceResourceId\":\"/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/teststoragemover/providers/Microsoft.StorageMover/storageMovers/testmoverpreview1/endpoints/nfsEndpointhc715gxy\",\"targetName\":\"containerEndpointhc715gxy\",\"targetResourceId\":\"/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/teststoragemover/providers/Microsoft.StorageMover/storageMovers/testmoverpreview1/endpoints/containerEndpointhc715gxy\",\"agentName\":\"testagent1\",\"agentResourceId\":\"/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/teststoragemover/providers/Microsoft.StorageMover/storageMovers/testmoverpreview1/agents/testagent1\",\"provisioningState\":\"Succeeded\"}}", "isContentBase64": false } }, - "Remove-AzStorageMoverJobDefinition+[NoContext]+Delete+$DELETE+https://management.azure.com/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/testStorageMover/providers/Microsoft.StorageMover/storageMovers/testStorageMover2/projects/testProject4068b735/jobDefinitions/testJob34068b735?api-version=2023-03-01+2": { + "Remove-AzStorageMoverJobDefinition+[NoContext]+Delete+$DELETE+https://management.azure.com/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/teststoragemover/providers/Microsoft.StorageMover/storageMovers/testmoverpreview1/projects/testProjecthc715gxy/jobDefinitions/testJob3hc715gxy?api-version=2023-10-01+2": { "Request": { "Method": "DELETE", - "RequestUri": "https://management.azure.com/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/testStorageMover/providers/Microsoft.StorageMover/storageMovers/testStorageMover2/projects/testProject4068b735/jobDefinitions/testJob34068b735?api-version=2023-03-01", + "RequestUri": "https://management.azure.com/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/teststoragemover/providers/Microsoft.StorageMover/storageMovers/testmoverpreview1/projects/testProjecthc715gxy/jobDefinitions/testJob3hc715gxy?api-version=2023-10-01", "Content": null, "isContentBase64": false, "Headers": { - "x-ms-unique-id": [ "39" ], - "x-ms-client-request-id": [ "3da259d9-ab35-4aed-bfc2-810030516443" ], + "x-ms-unique-id": [ "51" ], + "x-ms-client-request-id": [ "47707464-3c27-45d5-aed3-e7ca1f18b41f" ], "CommandName": [ "Remove-AzStorageMoverJobDefinition" ], "FullCommandName": [ "Remove-AzStorageMoverJobDefinition_Delete" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v8.0.0", "PSVersion/v7.2.5", "Az.StorageMover/0.1.0" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.2.12", "Az.StorageMover/1.0.1" ], "Authorization": [ "[Filtered]" ] }, "ContentHeaders": { @@ -61,13 +61,14 @@ "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], "x-ms-providerhub-traffic": [ "True" ], + "mise-correlation-id": [ "804c8a89-6308-43ba-b8ab-e9d4da2456e0" ], "x-ms-request-id": [ "00000000-0000-0000-0000-000000000000" ], "x-ms-ratelimit-remaining-subscription-deletes": [ "14997" ], - "x-ms-correlation-request-id": [ "ee7796d7-a24b-4da3-9483-d2e765eaef38" ], - "x-ms-routing-request-id": [ "SOUTHEASTASIA:20220802T053644Z:ee7796d7-a24b-4da3-9483-d2e765eaef38" ], + "x-ms-correlation-request-id": [ "46b0df26-1b3a-4a57-b65b-e382d742968f" ], + "x-ms-routing-request-id": [ "EASTUS2EUAP:20230721T043014Z:46b0df26-1b3a-4a57-b65b-e382d742968f" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "X-Content-Type-Options": [ "nosniff" ], - "Date": [ "Tue, 02 Aug 2022 05:36:44 GMT" ] + "Date": [ "Fri, 21 Jul 2023 04:30:13 GMT" ] }, "ContentHeaders": { "Expires": [ "-1" ], @@ -77,19 +78,19 @@ "isContentBase64": false } }, - "Remove-AzStorageMoverJobDefinition+[NoContext]+Delete+$GET+https://management.azure.com/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/testStorageMover/providers/Microsoft.StorageMover/storageMovers/testStorageMover2/projects/testProject4068b735/jobDefinitions?api-version=2023-03-01+3": { + "Remove-AzStorageMoverJobDefinition+[NoContext]+Delete+$GET+https://management.azure.com/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/teststoragemover/providers/Microsoft.StorageMover/storageMovers/testmoverpreview1/projects/testProjecthc715gxy/jobDefinitions?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/testStorageMover2/projects/testProject4068b735/jobDefinitions?api-version=2023-03-01", + "RequestUri": "https://management.azure.com/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/teststoragemover/providers/Microsoft.StorageMover/storageMovers/testmoverpreview1/projects/testProjecthc715gxy/jobDefinitions?api-version=2023-10-01", "Content": null, "isContentBase64": false, "Headers": { - "x-ms-unique-id": [ "40" ], - "x-ms-client-request-id": [ "690ec246-47de-46c3-9f15-c68829128584" ], + "x-ms-unique-id": [ "52" ], + "x-ms-client-request-id": [ "06a7f833-7d42-4516-94b0-b23519ea94f5" ], "CommandName": [ "Get-AzStorageMoverJobDefinition" ], "FullCommandName": [ "Get-AzStorageMoverJobDefinition_List" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v8.0.0", "PSVersion/v7.2.5", "Az.StorageMover/0.1.0" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.2.12", "Az.StorageMover/1.0.1" ], "Authorization": [ "[Filtered]" ] }, "ContentHeaders": { @@ -100,21 +101,21 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "x-ms-ratelimit-remaining-subscription-reads": [ "11970" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11972" ], "x-ms-providerhub-traffic": [ "True" ], - "x-ms-request-id": [ "6f1b3161-5e58-4031-8888-d1188f2208d3" ], - "x-ms-correlation-request-id": [ "177d1fe1-bb0d-4edc-af05-b59904b38725" ], - "x-ms-routing-request-id": [ "SOUTHEASTASIA:20220802T053645Z:177d1fe1-bb0d-4edc-af05-b59904b38725" ], + "x-ms-request-id": [ "3bf32249-ef0d-447b-8964-a980d6b4f7dd" ], + "x-ms-correlation-request-id": [ "41939f1b-e19e-42d8-b14f-d8621a2b71f9" ], + "x-ms-routing-request-id": [ "EASTUS2EUAP:20230721T043015Z:41939f1b-e19e-42d8-b14f-d8621a2b71f9" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "X-Content-Type-Options": [ "nosniff" ], - "Date": [ "Tue, 02 Aug 2022 05:36:45 GMT" ] + "Date": [ "Fri, 21 Jul 2023 04:30:15 GMT" ] }, "ContentHeaders": { - "Content-Length": [ "1904" ], + "Content-Length": [ "3099" ], "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"value\":[{\"id\":\"/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/testStorageMover/providers/Microsoft.StorageMover/storageMovers/testStorageMover2/projects/testProject4068b735/jobDefinitions/testJob4068b735\",\"name\":\"testJob4068b735\",\"type\":\"microsoft.storagemover/storagemovers/projects/jobdefinitions\",\"systemData\":{\"createdBy\":\"a000255f-5f09-45e0-a970-9d9ed9cc6453\",\"createdByType\":\"Application\",\"createdAt\":\"2022-08-02T05:35:50.5298749Z\",\"lastModifiedBy\":\"aed824f0-6446-4ef9-9e17-98b0157c09dc\",\"lastModifiedByType\":\"Application\",\"lastModifiedAt\":\"2022-08-02T05:36:03.4779686Z\"},\"properties\":{\"copyMode\":\"Additive\",\"sourceName\":\"nfsEndpoint4068b735\",\"targetName\":\"containerEndpoint4068b735\",\"latestJobRunName\":\"f909f4b3-699c-46f2-a06c-d402080f42dc\",\"latestJobRunResourceId\":\"/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/testStorageMover/providers/Microsoft.StorageMover/storageMovers/testStorageMover2/projects/testProject4068b735/jobDefinitions/testJob4068b735/jobRuns/f909f4b3-699c-46f2-a06c-d402080f42dc\",\"latestJobRunStatus\":\"Queued\",\"agentName\":\"testagent7\",\"provisioningState\":\"Succeeded\"}},{\"id\":\"/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/testStorageMover/providers/Microsoft.StorageMover/storageMovers/testStorageMover2/projects/testProject4068b735/jobDefinitions/testJob14068b735\",\"name\":\"testJob14068b735\",\"type\":\"microsoft.storagemover/storagemovers/projects/jobdefinitions\",\"systemData\":{\"createdBy\":\"a000255f-5f09-45e0-a970-9d9ed9cc6453\",\"createdByType\":\"Application\",\"createdAt\":\"2022-08-02T05:36:20.8267391Z\",\"lastModifiedBy\":\"a000255f-5f09-45e0-a970-9d9ed9cc6453\",\"lastModifiedByType\":\"Application\",\"lastModifiedAt\":\"2022-08-02T05:36:20.8267391Z\"},\"properties\":{\"copyMode\":\"Additive\",\"sourceName\":\"nfsEndpoint4068b735\",\"targetName\":\"containerEndpoint4068b735\",\"agentName\":\"testagent7\",\"provisioningState\":\"Succeeded\"}}]}", + "Content": "{\"value\":[{\"id\":\"/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/teststoragemover/providers/Microsoft.StorageMover/storageMovers/testmoverpreview1/projects/testProjecthc715gxy/jobDefinitions/testJobhc715gxy\",\"name\":\"testJobhc715gxy\",\"type\":\"microsoft.storagemover/storagemovers/projects/jobdefinitions\",\"systemData\":{\"createdBy\":\"a000255f-5f09-45e0-a970-9d9ed9cc6453\",\"createdByType\":\"Application\",\"createdAt\":\"2023-07-21T04:28:59.9756967Z\",\"lastModifiedBy\":\"aed824f0-6446-4ef9-9e17-98b0157c09dc\",\"lastModifiedByType\":\"Application\",\"lastModifiedAt\":\"2023-07-21T04:29:14.2639988Z\"},\"properties\":{\"copyMode\":\"Additive\",\"sourceName\":\"nfsEndpointhc715gxy\",\"sourceResourceId\":\"/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/teststoragemover/providers/Microsoft.StorageMover/storageMovers/testmoverpreview1/endpoints/nfsEndpointhc715gxy\",\"targetName\":\"containerEndpointhc715gxy\",\"targetResourceId\":\"/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/teststoragemover/providers/Microsoft.StorageMover/storageMovers/testmoverpreview1/endpoints/containerEndpointhc715gxy\",\"latestJobRunName\":\"0ce4bf6c-4d67-4351-a663-b576830de65c\",\"latestJobRunResourceId\":\"/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/teststoragemover/providers/Microsoft.StorageMover/storageMovers/testmoverpreview1/projects/testProjecthc715gxy/jobDefinitions/testJobhc715gxy/jobRuns/0ce4bf6c-4d67-4351-a663-b576830de65c\",\"latestJobRunStatus\":\"CancelRequested\",\"agentName\":\"testagent1\",\"agentResourceId\":\"/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/teststoragemover/providers/Microsoft.StorageMover/storageMovers/testmoverpreview1/agents/testagent1\",\"provisioningState\":\"Succeeded\"}},{\"id\":\"/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/teststoragemover/providers/Microsoft.StorageMover/storageMovers/testmoverpreview1/projects/testProjecthc715gxy/jobDefinitions/testJob1hc715gxy\",\"name\":\"testJob1hc715gxy\",\"type\":\"microsoft.storagemover/storagemovers/projects/jobdefinitions\",\"systemData\":{\"createdBy\":\"a000255f-5f09-45e0-a970-9d9ed9cc6453\",\"createdByType\":\"Application\",\"createdAt\":\"2023-07-21T04:29:25.5078323Z\",\"lastModifiedBy\":\"a000255f-5f09-45e0-a970-9d9ed9cc6453\",\"lastModifiedByType\":\"Application\",\"lastModifiedAt\":\"2023-07-21T04:29:25.5078323Z\"},\"properties\":{\"copyMode\":\"Additive\",\"sourceName\":\"nfsEndpointhc715gxy\",\"sourceResourceId\":\"/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/teststoragemover/providers/Microsoft.StorageMover/storageMovers/testmoverpreview1/endpoints/nfsEndpointhc715gxy\",\"targetName\":\"containerEndpointhc715gxy\",\"targetResourceId\":\"/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/teststoragemover/providers/Microsoft.StorageMover/storageMovers/testmoverpreview1/endpoints/containerEndpointhc715gxy\",\"agentName\":\"testagent1\",\"agentResourceId\":\"/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/teststoragemover/providers/Microsoft.StorageMover/storageMovers/testmoverpreview1/agents/testagent1\",\"provisioningState\":\"Succeeded\"}}]}", "isContentBase64": false } } diff --git a/src/StorageMover/test/Remove-AzStorageMoverProject.Recording.json b/src/StorageMover/test/Remove-AzStorageMoverProject.Recording.json index c47baa5c8d81..497f12af1557 100644 --- a/src/StorageMover/test/Remove-AzStorageMoverProject.Recording.json +++ b/src/StorageMover/test/Remove-AzStorageMoverProject.Recording.json @@ -1,8 +1,8 @@ { - "Remove-AzStorageMoverProject+[NoContext]+Delete+$PUT+https://management.azure.com/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/testStorageMover/providers/Microsoft.StorageMover/storageMovers/testStoMover14068b735/projects/testProject4068b735?api-version=2023-03-01+1": { + "Remove-AzStorageMoverProject+[NoContext]+Delete+$PUT+https://management.azure.com/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/teststoragemover/providers/Microsoft.StorageMover/storageMovers/testStoMover1hc715gxy/projects/testProjecthc715gxy?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/testStoMover14068b735/projects/testProject4068b735?api-version=2023-03-01", + "RequestUri": "https://management.azure.com/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/teststoragemover/providers/Microsoft.StorageMover/storageMovers/testStoMover1hc715gxy/projects/testProjecthc715gxy?api-version=2023-10-01", "Content": "{\r\n \"properties\": {\r\n \"description\": \"\"\r\n }\r\n}", "isContentBase64": false, "Headers": { @@ -17,79 +17,165 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "ETag": [ "\"00003008-0000-3400-0000-62e8b7ee0000\"" ], - "x-ms-ratelimit-remaining-subscription-writes": [ "1179" ], + "ETag": [ "\"2d01f402-0000-3400-0000-64ba09d80000\"" ], + "x-ms-ratelimit-remaining-subscription-writes": [ "1180" ], "x-ms-providerhub-traffic": [ "True" ], - "mise-correlation-id": [ "72c052bb-a971-4413-a8a1-7b1449f65ca2" ], - "x-ms-request-id": [ "2fe4928a-1da5-4104-b655-befda0ce2ffe" ], - "x-ms-correlation-request-id": [ "8d53ac72-497a-4d3e-87ea-2b0c5c36ac06" ], - "x-ms-routing-request-id": [ "SOUTHEASTASIA:20220802T053646Z:8d53ac72-497a-4d3e-87ea-2b0c5c36ac06" ], + "mise-correlation-id": [ "129ba9d7-a232-4bdd-ba29-816686f78489" ], + "x-ms-request-id": [ "38b09987-8025-454d-a1f6-ddd2b6f1d2c3" ], + "x-ms-correlation-request-id": [ "b5a3100d-58d2-4ca8-81d4-3afb15bdd290" ], + "x-ms-routing-request-id": [ "EASTUS2EUAP:20230721T043016Z:b5a3100d-58d2-4ca8-81d4-3afb15bdd290" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "X-Content-Type-Options": [ "nosniff" ], - "Date": [ "Tue, 02 Aug 2022 05:36:46 GMT" ] + "Date": [ "Fri, 21 Jul 2023 04:30:16 GMT" ] }, "ContentHeaders": { "Content-Length": [ "616" ], "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"id\":\"/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/testStorageMover/providers/Microsoft.StorageMover/storageMovers/testStoMover14068b735/projects/testProject4068b735\",\"name\":\"testProject4068b735\",\"type\":\"microsoft.storagemover/storagemovers/projects\",\"systemData\":{\"createdBy\":\"a000255f-5f09-45e0-a970-9d9ed9cc6453\",\"createdByType\":\"Application\",\"createdAt\":\"2022-08-02T05:35:47.0611007Z\",\"lastModifiedBy\":\"a000255f-5f09-45e0-a970-9d9ed9cc6453\",\"lastModifiedByType\":\"Application\",\"lastModifiedAt\":\"2022-08-02T05:36:46.0454827Z\"},\"properties\":{\"provisioningState\":\"Succeeded\",\"description\":\"\"}}", + "Content": "{\"id\":\"/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/teststoragemover/providers/Microsoft.StorageMover/storageMovers/testStoMover1hc715gxy/projects/testProjecthc715gxy\",\"name\":\"testProjecthc715gxy\",\"type\":\"microsoft.storagemover/storagemovers/projects\",\"systemData\":{\"createdBy\":\"a000255f-5f09-45e0-a970-9d9ed9cc6453\",\"createdByType\":\"Application\",\"createdAt\":\"2023-07-21T04:28:58.1006856Z\",\"lastModifiedBy\":\"a000255f-5f09-45e0-a970-9d9ed9cc6453\",\"lastModifiedByType\":\"Application\",\"lastModifiedAt\":\"2023-07-21T04:30:16.2411642Z\"},\"properties\":{\"provisioningState\":\"Succeeded\",\"description\":\"\"}}", "isContentBase64": false } }, - "Remove-AzStorageMoverProject+[NoContext]+Delete+$DELETE+https://management.azure.com/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/testStorageMover/providers/Microsoft.StorageMover/storageMovers/testStoMover14068b735/projects/testProject4068b735?api-version=2023-03-01+2": { + "Remove-AzStorageMoverProject+[NoContext]+Delete+$DELETE+https://management.azure.com/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/teststoragemover/providers/Microsoft.StorageMover/storageMovers/testStoMover1hc715gxy/projects/testProjecthc715gxy?api-version=2023-10-01+2": { "Request": { "Method": "DELETE", - "RequestUri": "https://management.azure.com/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/testStorageMover/providers/Microsoft.StorageMover/storageMovers/testStoMover14068b735/projects/testProject4068b735?api-version=2023-03-01", + "RequestUri": "https://management.azure.com/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/teststoragemover/providers/Microsoft.StorageMover/storageMovers/testStoMover1hc715gxy/projects/testProjecthc715gxy?api-version=2023-10-01", "Content": null, "isContentBase64": false, "Headers": { - "x-ms-unique-id": [ "42" ], - "x-ms-client-request-id": [ "ded9842b-69c1-460c-ba34-85e5940fd088" ], + "x-ms-unique-id": [ "54" ], + "x-ms-client-request-id": [ "8f2b5894-2753-4fbe-981c-e1fc500b01ef" ], "CommandName": [ "Remove-AzStorageMoverProject" ], "FullCommandName": [ "Remove-AzStorageMoverProject_Delete" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v8.0.0", "PSVersion/v7.2.5", "Az.StorageMover/0.1.0" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.2.12", "Az.StorageMover/1.0.1" ], "Authorization": [ "[Filtered]" ] }, "ContentHeaders": { } }, "Response": { - "StatusCode": 200, + "StatusCode": 202, "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "x-ms-providerhub-traffic": [ "True" ], - "x-ms-request-id": [ "00000000-0000-0000-0000-000000000000" ], + "ETag": [ "\"2d01f502-0000-3400-0000-64ba09d90000\"" ], + "Location": [ "https://management.azure.com/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/providers/Microsoft.StorageMover/locations/EASTUS2EUAP/operationStatuses/7f710a88-1b8b-4565-9ed0-2abec3660ab1*44252F11F23E271202449AA9D9F1999458353079DCAEF2730CEF2538CB8E8BEE?api-version=2023-10-01" ], "x-ms-ratelimit-remaining-subscription-deletes": [ "14996" ], - "x-ms-correlation-request-id": [ "7fa8e557-aabf-4943-9df3-99dffe278d99" ], - "x-ms-routing-request-id": [ "SOUTHEASTASIA:20220802T053647Z:7fa8e557-aabf-4943-9df3-99dffe278d99" ], + "x-ms-providerhub-traffic": [ "True" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/providers/Microsoft.StorageMover/locations/EASTUS2EUAP/operationStatuses/7f710a88-1b8b-4565-9ed0-2abec3660ab1*44252F11F23E271202449AA9D9F1999458353079DCAEF2730CEF2538CB8E8BEE?api-version=2023-10-01" ], + "x-ms-request-id": [ "7f710a88-1b8b-4565-9ed0-2abec3660ab1" ], + "x-ms-correlation-request-id": [ "c1a76a2c-7cc5-4f88-b26f-32f5b84e223c" ], + "x-ms-routing-request-id": [ "EASTUS2EUAP:20230721T043017Z:c1a76a2c-7cc5-4f88-b26f-32f5b84e223c" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Fri, 21 Jul 2023 04:30:17 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "4" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "bnVsbA==", + "isContentBase64": false + } + }, + "Remove-AzStorageMoverProject+[NoContext]+Delete+$GET+https://management.azure.com/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/providers/Microsoft.StorageMover/locations/EASTUS2EUAP/operationStatuses/7f710a88-1b8b-4565-9ed0-2abec3660ab1*44252F11F23E271202449AA9D9F1999458353079DCAEF2730CEF2538CB8E8BEE?api-version=2023-10-01+3": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/providers/Microsoft.StorageMover/locations/EASTUS2EUAP/operationStatuses/7f710a88-1b8b-4565-9ed0-2abec3660ab1*44252F11F23E271202449AA9D9F1999458353079DCAEF2730CEF2538CB8E8BEE?api-version=2023-10-01", + "Content": null, + "isContentBase64": false, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "55" ], + "x-ms-client-request-id": [ "8f2b5894-2753-4fbe-981c-e1fc500b01ef" ], + "CommandName": [ "Remove-AzStorageMoverProject" ], + "FullCommandName": [ "Remove-AzStorageMoverProject_Delete" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.2.12", "Az.StorageMover/1.0.1" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "ETag": [ "\"0c004a5e-0000-3400-0000-64ba09ee0000\"" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11971" ], + "x-ms-request-id": [ "d8d4abe5-7b46-4e6c-be10-9507530cc149" ], + "x-ms-correlation-request-id": [ "0efd5faa-c3ad-45b9-a4f6-23c24ba686d7" ], + "x-ms-routing-request-id": [ "EASTUS2EUAP:20230721T043048Z:0efd5faa-c3ad-45b9-a4f6-23c24ba686d7" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "X-Content-Type-Options": [ "nosniff" ], - "Date": [ "Tue, 02 Aug 2022 05:36:47 GMT" ] + "Date": [ "Fri, 21 Jul 2023 04:30:48 GMT" ] }, "ContentHeaders": { - "Expires": [ "-1" ], - "Content-Length": [ "0" ] + "Content-Length": [ "625" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] }, + "Content": "{\"id\":\"/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/providers/Microsoft.StorageMover/locations/EASTUS2EUAP/operationStatuses/7f710a88-1b8b-4565-9ed0-2abec3660ab1*44252F11F23E271202449AA9D9F1999458353079DCAEF2730CEF2538CB8E8BEE\",\"name\":\"7f710a88-1b8b-4565-9ed0-2abec3660ab1*44252F11F23E271202449AA9D9F1999458353079DCAEF2730CEF2538CB8E8BEE\",\"resourceId\":\"/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/teststoragemover/providers/Microsoft.StorageMover/storageMovers/testStoMover1hc715gxy/projects/testProjecthc715gxy\",\"status\":\"Succeeded\",\"startTime\":\"2023-07-21T04:30:17.1757714Z\",\"properties\":null}", + "isContentBase64": false + } + }, + "Remove-AzStorageMoverProject+[NoContext]+Delete+$GET+https://management.azure.com/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/providers/Microsoft.StorageMover/locations/EASTUS2EUAP/operationStatuses/7f710a88-1b8b-4565-9ed0-2abec3660ab1*44252F11F23E271202449AA9D9F1999458353079DCAEF2730CEF2538CB8E8BEE?api-version=2023-10-01+4": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/providers/Microsoft.StorageMover/locations/EASTUS2EUAP/operationStatuses/7f710a88-1b8b-4565-9ed0-2abec3660ab1*44252F11F23E271202449AA9D9F1999458353079DCAEF2730CEF2538CB8E8BEE?api-version=2023-10-01", "Content": null, + "isContentBase64": false, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "56" ], + "x-ms-client-request-id": [ "8f2b5894-2753-4fbe-981c-e1fc500b01ef" ], + "CommandName": [ "Remove-AzStorageMoverProject" ], + "FullCommandName": [ "Remove-AzStorageMoverProject_Delete" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.2.12", "Az.StorageMover/1.0.1" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "ETag": [ "\"0c004a5e-0000-3400-0000-64ba09ee0000\"" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11970" ], + "x-ms-request-id": [ "77137790-0b32-4e5b-9bb4-45d9009475cf" ], + "x-ms-correlation-request-id": [ "5c42b0d6-89ab-4e38-a592-af6162b0e587" ], + "x-ms-routing-request-id": [ "EASTUS2EUAP:20230721T043048Z:5c42b0d6-89ab-4e38-a592-af6162b0e587" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Fri, 21 Jul 2023 04:30:48 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "625" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"id\":\"/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/providers/Microsoft.StorageMover/locations/EASTUS2EUAP/operationStatuses/7f710a88-1b8b-4565-9ed0-2abec3660ab1*44252F11F23E271202449AA9D9F1999458353079DCAEF2730CEF2538CB8E8BEE\",\"name\":\"7f710a88-1b8b-4565-9ed0-2abec3660ab1*44252F11F23E271202449AA9D9F1999458353079DCAEF2730CEF2538CB8E8BEE\",\"resourceId\":\"/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/teststoragemover/providers/Microsoft.StorageMover/storageMovers/testStoMover1hc715gxy/projects/testProjecthc715gxy\",\"status\":\"Succeeded\",\"startTime\":\"2023-07-21T04:30:17.1757714Z\",\"properties\":null}", "isContentBase64": false } }, - "Remove-AzStorageMoverProject+[NoContext]+Delete+$GET+https://management.azure.com/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/testStorageMover/providers/Microsoft.StorageMover/storageMovers/testStoMover14068b735/projects?api-version=2023-03-01+3": { + "Remove-AzStorageMoverProject+[NoContext]+Delete+$GET+https://management.azure.com/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/teststoragemover/providers/Microsoft.StorageMover/storageMovers/testStoMover1hc715gxy/projects?api-version=2023-10-01+5": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/testStorageMover/providers/Microsoft.StorageMover/storageMovers/testStoMover14068b735/projects?api-version=2023-03-01", + "RequestUri": "https://management.azure.com/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/teststoragemover/providers/Microsoft.StorageMover/storageMovers/testStoMover1hc715gxy/projects?api-version=2023-10-01", "Content": null, "isContentBase64": false, "Headers": { - "x-ms-unique-id": [ "43" ], - "x-ms-client-request-id": [ "dbb628d3-1d37-47e9-8a49-9731455ede4c" ], + "x-ms-unique-id": [ "57" ], + "x-ms-client-request-id": [ "2b4b8aef-003a-425b-83b7-517e3deb732c" ], "CommandName": [ "Get-AzStorageMoverProject" ], "FullCommandName": [ "Get-AzStorageMoverProject_List" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v8.0.0", "PSVersion/v7.2.5", "Az.StorageMover/0.1.0" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.2.12", "Az.StorageMover/1.0.1" ], "Authorization": [ "[Filtered]" ] }, "ContentHeaders": { @@ -102,12 +188,12 @@ "Pragma": [ "no-cache" ], "x-ms-ratelimit-remaining-subscription-reads": [ "11969" ], "x-ms-providerhub-traffic": [ "True" ], - "x-ms-request-id": [ "a22f332b-e019-427d-97b8-b6d52157a699" ], - "x-ms-correlation-request-id": [ "f3d4fae0-1604-4425-81f9-c9275846cd66" ], - "x-ms-routing-request-id": [ "SOUTHEASTASIA:20220802T053648Z:f3d4fae0-1604-4425-81f9-c9275846cd66" ], + "x-ms-request-id": [ "4bbafca7-b15f-4341-b69f-ce4056d5db7f" ], + "x-ms-correlation-request-id": [ "e9582395-619d-44cc-a4d5-d50620be294e" ], + "x-ms-routing-request-id": [ "EASTUS2EUAP:20230721T043049Z:e9582395-619d-44cc-a4d5-d50620be294e" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "X-Content-Type-Options": [ "nosniff" ], - "Date": [ "Tue, 02 Aug 2022 05:36:48 GMT" ] + "Date": [ "Fri, 21 Jul 2023 04:30:49 GMT" ] }, "ContentHeaders": { "Content-Length": [ "12" ], diff --git a/src/StorageMover/test/Start-AzStorageMoverJobDefinition.Tests.ps1 b/src/StorageMover/test/Start-AzStorageMoverJobDefinition.Tests.ps1 index 8f04b20c5a9d..8cf2f490a529 100644 --- a/src/StorageMover/test/Start-AzStorageMoverJobDefinition.Tests.ps1 +++ b/src/StorageMover/test/Start-AzStorageMoverJobDefinition.Tests.ps1 @@ -15,8 +15,6 @@ if(($null -eq $TestName) -or ($TestName -contains 'Start-AzStorageMoverJobDefini } Describe 'Start-AzStorageMoverJobDefinition' { - It 'Start' { - $job = Start-AzStorageMoverJobDefinition -JobDefinitionName $env.JobDefinitionName -ProjectName $env.ProjectName -ResourceGroupName $env.ResourceGroupName -StorageMoverName $env.StorageMoverNameWithAgent - $job | Should -Not -Be $null + It 'Start' -skip { } } diff --git a/src/StorageMover/test/Stop-AzStorageMoverJobDefinition.Tests.ps1 b/src/StorageMover/test/Stop-AzStorageMoverJobDefinition.Tests.ps1 index 69e6968eb46a..81463be6123c 100644 --- a/src/StorageMover/test/Stop-AzStorageMoverJobDefinition.Tests.ps1 +++ b/src/StorageMover/test/Stop-AzStorageMoverJobDefinition.Tests.ps1 @@ -15,10 +15,6 @@ if(($null -eq $TestName) -or ($TestName -contains 'Stop-AzStorageMoverJobDefinit } Describe 'Stop-AzStorageMoverJobDefinition' { - It 'Stop' { - $job = Start-AzStorageMoverJobDefinition -JobDefinitionName $env.JobDefinitionName -ProjectName $env.ProjectName -ResourceGroupName $env.ResourceGroupName -StorageMoverName $env.StorageMoverNameWithAgent - $job | Should -Not -Be $null - $job = Stop-AzStorageMoverJobDefinition -JobDefinitionName $env.JobDefinitionName -ProjectName $env.ProjectName -ResourceGroupName $env.ResourceGroupName -StorageMoverName $env.StorageMoverNameWithAgent - $job | Should -Not -Be $null + It 'Stop' -skip { } } diff --git a/src/StorageMover/test/Unregister-AzStorageMoverAgent.Recording.json b/src/StorageMover/test/Unregister-AzStorageMoverAgent.Recording.json index 62c614547d84..2132953091c7 100644 --- a/src/StorageMover/test/Unregister-AzStorageMoverAgent.Recording.json +++ b/src/StorageMover/test/Unregister-AzStorageMoverAgent.Recording.json @@ -1,57 +1,62 @@ { - "Unregister-AzStorageMoverAgent+[NoContext]+Delete+$DELETE+https://management.azure.com/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/testStorageMover/providers/Microsoft.StorageMover/storageMovers/testStorageMover2/agents/testagent7?api-version=2023-03-01+1": { + "Unregister-AzStorageMoverAgent+[NoContext]+Delete+$DELETE+https://management.azure.com/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/teststoragemover/providers/Microsoft.StorageMover/storageMovers/testmoverpreview1/agents/testagent1?api-version=2023-10-01+3": { "Request": { "Method": "DELETE", - "RequestUri": "https://management.azure.com/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/testStorageMover/providers/Microsoft.StorageMover/storageMovers/testStorageMover2/agents/testagent7?api-version=2023-03-01", + "RequestUri": "https://management.azure.com/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/teststoragemover/providers/Microsoft.StorageMover/storageMovers/testmoverpreview1/agents/testagent1?api-version=2023-10-01", "Content": null, "isContentBase64": false, "Headers": { - "x-ms-unique-id": [ "63" ], - "x-ms-client-request-id": [ "b08135e3-ff7a-41d3-b3c8-6f3ae8e723e2" ], + "x-ms-unique-id": [ "74" ], + "x-ms-client-request-id": [ "24b92f85-5df6-4d65-8047-cd4925f58131" ], "CommandName": [ "Az.StorageMover.internal\\Remove-AzStorageMoverAgent" ], "FullCommandName": [ "Remove-AzStorageMoverAgent_Delete" ], - "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v8.0.0", "PSVersion/v7.2.5", "Az.StorageMover/0.1.0" ], + "ParameterSetName": [ "" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.2.12", "Az.StorageMover/1.0.1" ], "Authorization": [ "[Filtered]" ] }, "ContentHeaders": { } }, "Response": { - "StatusCode": 200, + "StatusCode": 202, "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "x-ms-providerhub-traffic": [ "True" ], - "x-ms-request-id": [ "00000000-0000-0000-0000-000000000000" ], + "ETag": [ "\"1d009706-0000-3400-0000-64ba0a0b0000\"" ], + "Location": [ "https://management.azure.com/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/providers/Microsoft.StorageMover/locations/EASTUS2EUAP/operationStatuses/9263da72-c878-4586-8b69-ec27ed588d1b*CD8DD8889960C83D88C9B30058A155C5BC87E6AE5EA5560421B07D0FEA94D4EA?api-version=2023-10-01" ], "x-ms-ratelimit-remaining-subscription-deletes": [ "14995" ], - "x-ms-correlation-request-id": [ "b05dc4b8-78bc-4cfb-b343-271177ad8d32" ], - "x-ms-routing-request-id": [ "SOUTHEASTASIA:20220802T053719Z:b05dc4b8-78bc-4cfb-b343-271177ad8d32" ], + "x-ms-providerhub-traffic": [ "True" ], + "mise-correlation-id": [ "6d1e62a2-fcf1-4390-b510-24d42852ffe7" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/providers/Microsoft.StorageMover/locations/EASTUS2EUAP/operationStatuses/9263da72-c878-4586-8b69-ec27ed588d1b*CD8DD8889960C83D88C9B30058A155C5BC87E6AE5EA5560421B07D0FEA94D4EA?api-version=2023-10-01" ], + "x-ms-request-id": [ "9263da72-c878-4586-8b69-ec27ed588d1b" ], + "x-ms-correlation-request-id": [ "01f2bd3c-2ca5-4187-8f87-fd568aeaf6ee" ], + "x-ms-routing-request-id": [ "EASTUS2EUAP:20230721T043107Z:01f2bd3c-2ca5-4187-8f87-fd568aeaf6ee" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "X-Content-Type-Options": [ "nosniff" ], - "Date": [ "Tue, 02 Aug 2022 05:37:19 GMT" ] + "Date": [ "Fri, 21 Jul 2023 04:31:06 GMT" ] }, "ContentHeaders": { - "Expires": [ "-1" ], - "Content-Length": [ "0" ] + "Content-Length": [ "4" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] }, - "Content": null, + "Content": "bnVsbA==", "isContentBase64": false } }, - "Unregister-AzStorageMoverAgent+[NoContext]+Delete+$GET+https://management.azure.com/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/testStorageMover/providers/Microsoft.StorageMover/storageMovers/testStorageMover2/agents?api-version=2023-03-01+2": { + "Unregister-AzStorageMoverAgent+[NoContext]+Delete+$GET+https://management.azure.com/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/teststoragemover/providers/Microsoft.StorageMover/storageMovers/testmoverpreview1/agents/testagent1?api-version=2023-10-01+2": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/testStorageMover/providers/Microsoft.StorageMover/storageMovers/testStorageMover2/agents?api-version=2023-03-01", + "RequestUri": "https://management.azure.com/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/teststoragemover/providers/Microsoft.StorageMover/storageMovers/testmoverpreview1/agents/testagent1?api-version=2023-10-01", "Content": null, "isContentBase64": false, "Headers": { - "x-ms-unique-id": [ "64" ], - "x-ms-client-request-id": [ "14fdc1b8-d25e-4727-b527-ac366f66c517" ], + "x-ms-unique-id": [ "75" ], + "x-ms-client-request-id": [ "60b3c2df-4ea2-45be-83bc-8e31a92d1d71" ], "CommandName": [ "Get-AzStorageMoverAgent" ], - "FullCommandName": [ "Get-AzStorageMoverAgent_List" ], + "FullCommandName": [ "Get-AzStorageMoverAgent_Get" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v8.0.0", "PSVersion/v7.2.5", "Az.StorageMover/0.1.0" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.2.12", "Az.StorageMover/1.0.1" ], "Authorization": [ "[Filtered]" ] }, "ContentHeaders": { @@ -62,21 +67,23 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], + "ETag": [ "\"1d009706-0000-3400-0000-64ba0a0b0000\"" ], "x-ms-ratelimit-remaining-subscription-reads": [ "11963" ], "x-ms-providerhub-traffic": [ "True" ], - "x-ms-request-id": [ "3f1d2e5c-5068-43b7-8d38-542bdafaa222" ], - "x-ms-correlation-request-id": [ "3b302e3c-0bbe-430f-93e2-e093cc0f0a68" ], - "x-ms-routing-request-id": [ "SOUTHEASTASIA:20220802T053720Z:3b302e3c-0bbe-430f-93e2-e093cc0f0a68" ], + "mise-correlation-id": [ "175e5a28-9fcb-414c-b870-cbc9678195d3" ], + "x-ms-request-id": [ "0519da4a-225a-4d4c-908c-949080861b01" ], + "x-ms-correlation-request-id": [ "8993f179-255a-4d22-8cf1-2156a0d89899" ], + "x-ms-routing-request-id": [ "EASTUS2EUAP:20230721T043107Z:8993f179-255a-4d22-8cf1-2156a0d89899" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "X-Content-Type-Options": [ "nosniff" ], - "Date": [ "Tue, 02 Aug 2022 05:37:20 GMT" ] + "Date": [ "Fri, 21 Jul 2023 04:31:07 GMT" ] }, "ContentHeaders": { - "Content-Length": [ "12" ], + "Content-Length": [ "994" ], "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"value\":[]}", + "Content": "{\"id\":\"/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/teststoragemover/providers/Microsoft.StorageMover/storageMovers/testmoverpreview1/agents/testagent1\",\"name\":\"testagent1\",\"type\":\"microsoft.storagemover/storagemovers/agents\",\"systemData\":{\"createdBy\":\"yifanzhang@microsoft.com\",\"createdByType\":\"User\",\"createdAt\":\"2023-07-21T04:27:22.5834022Z\",\"lastModifiedBy\":\"a000255f-5f09-45e0-a970-9d9ed9cc6453\",\"lastModifiedByType\":\"Application\",\"lastModifiedAt\":\"2023-07-21T04:30:54.0851898Z\"},\"properties\":{\"agentVersion\":\"1.1.256_amd64\",\"arcResourceId\":\"/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/teststoragemover/providers/Microsoft.HybridCompute/machines/testagent1\",\"arcVmUuid\":\"c026168f-4f75-c847-aa19-2dfc4185d74e\",\"localIPAddress\":\"10.172.2.82\",\"memoryInMB\":2748,\"numberOfCores\":1,\"uptimeInSeconds\":479,\"lastStatusUpdate\":\"2023-07-21T04:30:39.3651408Z\",\"agentStatus\":\"Unregistering\",\"description\":\"update agent description\",\"provisioningState\":\"Deleting\"}}", "isContentBase64": false } } diff --git a/src/StorageMover/test/Update-AzStorageMover.Recording.json b/src/StorageMover/test/Update-AzStorageMover.Recording.json index 2a387be1ecb9..caa2cf263855 100644 --- a/src/StorageMover/test/Update-AzStorageMover.Recording.json +++ b/src/StorageMover/test/Update-AzStorageMover.Recording.json @@ -1,8 +1,8 @@ { - "Update-AzStorageMover+[NoContext]+UpdateExpanded+$PUT+https://management.azure.com/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/testStorageMover/providers/Microsoft.StorageMover/storageMovers/testStorageMoverk3pmhtl9?api-version=2023-03-01+1": { + "Update-AzStorageMover+[NoContext]+UpdateExpanded+$PUT+https://management.azure.com/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/teststoragemover/providers/Microsoft.StorageMover/storageMovers/testStorageMoverk3pmhtl9?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/testStorageMoverk3pmhtl9?api-version=2023-03-01", + "RequestUri": "https://management.azure.com/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/teststoragemover/providers/Microsoft.StorageMover/storageMovers/testStorageMoverk3pmhtl9?api-version=2023-10-01", "Content": "{\r\n \"location\": \"eastus2euap\",\r\n \"properties\": {\r\n \"description\": \"test Storage mover description\"\r\n }\r\n}", "isContentBase64": false, "Headers": { @@ -17,30 +17,30 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "ETag": [ "\"0000c2e6-0000-3400-0000-62e8b7f70000\"" ], - "x-ms-ratelimit-remaining-subscription-writes": [ "1178" ], + "ETag": [ "\"0500bc13-0000-3400-0000-64ba09fb0000\"" ], + "x-ms-ratelimit-remaining-subscription-writes": [ "1179" ], "x-ms-providerhub-traffic": [ "True" ], - "mise-correlation-id": [ "a9a3363a-0ad3-4556-813a-e9c8cb44708f" ], - "x-ms-request-id": [ "3c401235-a369-4e3e-891a-4c1ea71e85f9" ], - "x-ms-correlation-request-id": [ "f27865b7-739a-4d8b-bf9f-27f72422dd81" ], - "x-ms-routing-request-id": [ "SOUTHEASTASIA:20220802T053655Z:f27865b7-739a-4d8b-bf9f-27f72422dd81" ], + "mise-correlation-id": [ "6fae8342-1263-4068-8b9a-0ef0ddb568ca" ], + "x-ms-request-id": [ "a76011d0-8485-4407-879c-a88bfea1cf40" ], + "x-ms-correlation-request-id": [ "6d4d3db1-cfb7-4b4a-ab57-aaf202766e3d" ], + "x-ms-routing-request-id": [ "EASTUS2EUAP:20230721T043051Z:6d4d3db1-cfb7-4b4a-ab57-aaf202766e3d" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "X-Content-Type-Options": [ "nosniff" ], - "Date": [ "Tue, 02 Aug 2022 05:36:55 GMT" ] + "Date": [ "Fri, 21 Jul 2023 04:30:50 GMT" ] }, "ContentHeaders": { "Content-Length": [ "640" ], "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"id\":\"/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/testStorageMover/providers/Microsoft.StorageMover/storageMovers/testStorageMoverk3pmhtl9\",\"name\":\"testStorageMoverk3pmhtl9\",\"type\":\"microsoft.storagemover/storagemovers\",\"location\":\"eastus2euap\",\"systemData\":{\"createdBy\":\"a000255f-5f09-45e0-a970-9d9ed9cc6453\",\"createdByType\":\"Application\",\"createdAt\":\"2022-08-02T03:54:10.890512Z\",\"lastModifiedBy\":\"a000255f-5f09-45e0-a970-9d9ed9cc6453\",\"lastModifiedByType\":\"Application\",\"lastModifiedAt\":\"2022-08-02T05:36:55.0298607Z\"},\"properties\":{\"description\":\"test Storage mover description\",\"provisioningState\":\"Succeeded\"}}", + "Content": "{\"id\":\"/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/teststoragemover/providers/Microsoft.StorageMover/storageMovers/testStorageMoverk3pmhtl9\",\"name\":\"testStorageMoverk3pmhtl9\",\"type\":\"microsoft.storagemover/storagemovers\",\"location\":\"eastus2euap\",\"systemData\":{\"createdBy\":\"a000255f-5f09-45e0-a970-9d9ed9cc6453\",\"createdByType\":\"Application\",\"createdAt\":\"2023-07-21T02:26:40.450455Z\",\"lastModifiedBy\":\"a000255f-5f09-45e0-a970-9d9ed9cc6453\",\"lastModifiedByType\":\"Application\",\"lastModifiedAt\":\"2023-07-21T04:30:51.1944689Z\"},\"properties\":{\"description\":\"test Storage mover description\",\"provisioningState\":\"Succeeded\"}}", "isContentBase64": false } }, - "Update-AzStorageMover+[NoContext]+UpdateExpanded+$PATCH+https://management.azure.com/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/testStorageMover/providers/Microsoft.StorageMover/storageMovers/testStorageMoverk3pmhtl9?api-version=2023-03-01+2": { + "Update-AzStorageMover+[NoContext]+UpdateExpanded+$PATCH+https://management.azure.com/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/teststoragemover/providers/Microsoft.StorageMover/storageMovers/testStorageMoverk3pmhtl9?api-version=2023-10-01+2": { "Request": { "Method": "PATCH", - "RequestUri": "https://management.azure.com/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/testStorageMover/providers/Microsoft.StorageMover/storageMovers/testStorageMoverk3pmhtl9?api-version=2023-03-01", + "RequestUri": "https://management.azure.com/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/teststoragemover/providers/Microsoft.StorageMover/storageMovers/testStorageMoverk3pmhtl9?api-version=2023-10-01", "Content": "{\r\n \"properties\": {\r\n \"description\": \"update storage mover description\"\r\n }\r\n}", "isContentBase64": false, "Headers": { @@ -55,38 +55,39 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "ETag": [ "\"0000c3e6-0000-3400-0000-62e8b7f80000\"" ], - "x-ms-ratelimit-remaining-subscription-writes": [ "1177" ], + "ETag": [ "\"0500bd13-0000-3400-0000-64ba09fc0000\"" ], + "x-ms-ratelimit-remaining-subscription-writes": [ "1178" ], "x-ms-providerhub-traffic": [ "True" ], - "x-ms-request-id": [ "42f4bfff-214f-4f37-812a-60a9d4e5f5f9" ], - "x-ms-correlation-request-id": [ "e2f793e1-9788-46c5-8679-2241fcb5b0d4" ], - "x-ms-routing-request-id": [ "SOUTHEASTASIA:20220802T053656Z:e2f793e1-9788-46c5-8679-2241fcb5b0d4" ], + "mise-correlation-id": [ "ffae5899-bd3a-438f-89aa-cce70d003f34" ], + "x-ms-request-id": [ "b93614c3-869c-4f7b-a24e-177c09a3066b" ], + "x-ms-correlation-request-id": [ "6ebb49cf-49ff-4070-b49d-e4e21b07300e" ], + "x-ms-routing-request-id": [ "EASTUS2EUAP:20230721T043052Z:6ebb49cf-49ff-4070-b49d-e4e21b07300e" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "X-Content-Type-Options": [ "nosniff" ], - "Date": [ "Tue, 02 Aug 2022 05:36:56 GMT" ] + "Date": [ "Fri, 21 Jul 2023 04:30:51 GMT" ] }, "ContentHeaders": { "Content-Length": [ "642" ], "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"id\":\"/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/testStorageMover/providers/Microsoft.StorageMover/storageMovers/testStorageMoverk3pmhtl9\",\"name\":\"testStorageMoverk3pmhtl9\",\"type\":\"microsoft.storagemover/storagemovers\",\"location\":\"eastus2euap\",\"systemData\":{\"createdBy\":\"a000255f-5f09-45e0-a970-9d9ed9cc6453\",\"createdByType\":\"Application\",\"createdAt\":\"2022-08-02T03:54:10.890512Z\",\"lastModifiedBy\":\"a000255f-5f09-45e0-a970-9d9ed9cc6453\",\"lastModifiedByType\":\"Application\",\"lastModifiedAt\":\"2022-08-02T05:36:56.2954803Z\"},\"properties\":{\"description\":\"update storage mover description\",\"provisioningState\":\"Succeeded\"}}", + "Content": "{\"id\":\"/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/teststoragemover/providers/Microsoft.StorageMover/storageMovers/testStorageMoverk3pmhtl9\",\"name\":\"testStorageMoverk3pmhtl9\",\"type\":\"microsoft.storagemover/storagemovers\",\"location\":\"eastus2euap\",\"systemData\":{\"createdBy\":\"a000255f-5f09-45e0-a970-9d9ed9cc6453\",\"createdByType\":\"Application\",\"createdAt\":\"2023-07-21T02:26:40.450455Z\",\"lastModifiedBy\":\"a000255f-5f09-45e0-a970-9d9ed9cc6453\",\"lastModifiedByType\":\"Application\",\"lastModifiedAt\":\"2023-07-21T04:30:52.0225687Z\"},\"properties\":{\"description\":\"update storage mover description\",\"provisioningState\":\"Succeeded\"}}", "isContentBase64": false } }, - "Update-AzStorageMover+[NoContext]+UpdateExpanded+$GET+https://management.azure.com/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/testStorageMover/providers/Microsoft.StorageMover/storageMovers/testStorageMoverk3pmhtl9?api-version=2023-03-01+3": { + "Update-AzStorageMover+[NoContext]+UpdateExpanded+$GET+https://management.azure.com/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/teststoragemover/providers/Microsoft.StorageMover/storageMovers/testStorageMoverk3pmhtl9?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/testStorageMoverk3pmhtl9?api-version=2023-03-01", + "RequestUri": "https://management.azure.com/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/teststoragemover/providers/Microsoft.StorageMover/storageMovers/testStorageMoverk3pmhtl9?api-version=2023-10-01", "Content": null, "isContentBase64": false, "Headers": { - "x-ms-unique-id": [ "49" ], - "x-ms-client-request-id": [ "7de719fc-d492-4ab6-8d27-ce02be43305d" ], + "x-ms-unique-id": [ "60" ], + "x-ms-client-request-id": [ "b8ee155c-34f5-411b-9b1e-22b9fd369c2e" ], "CommandName": [ "Get-AzStorageMover" ], "FullCommandName": [ "Get-AzStorageMover_Get" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v8.0.0", "PSVersion/v7.2.5", "Az.StorageMover/0.1.0" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.2.12", "Az.StorageMover/1.0.1" ], "Authorization": [ "[Filtered]" ] }, "ContentHeaders": { @@ -97,22 +98,22 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "ETag": [ "\"0000c3e6-0000-3400-0000-62e8b7f80000\"" ], + "ETag": [ "\"0500bd13-0000-3400-0000-64ba09fc0000\"" ], "x-ms-ratelimit-remaining-subscription-reads": [ "11968" ], "x-ms-providerhub-traffic": [ "True" ], - "x-ms-request-id": [ "e3f055e1-8331-4cbd-81c8-6c37cff296e2" ], - "x-ms-correlation-request-id": [ "95523f0e-5329-4dd5-9ac3-5b5ed44a25be" ], - "x-ms-routing-request-id": [ "SOUTHEASTASIA:20220802T053657Z:95523f0e-5329-4dd5-9ac3-5b5ed44a25be" ], + "x-ms-request-id": [ "48810a3a-32f0-4083-acb3-e71dd55c8c7f" ], + "x-ms-correlation-request-id": [ "c6197e06-84be-4d07-b6f1-f24ff4b29cfe" ], + "x-ms-routing-request-id": [ "EASTUS2EUAP:20230721T043053Z:c6197e06-84be-4d07-b6f1-f24ff4b29cfe" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "X-Content-Type-Options": [ "nosniff" ], - "Date": [ "Tue, 02 Aug 2022 05:36:57 GMT" ] + "Date": [ "Fri, 21 Jul 2023 04:30:53 GMT" ] }, "ContentHeaders": { "Content-Length": [ "642" ], "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"id\":\"/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/testStorageMover/providers/Microsoft.StorageMover/storageMovers/testStorageMoverk3pmhtl9\",\"name\":\"testStorageMoverk3pmhtl9\",\"type\":\"microsoft.storagemover/storagemovers\",\"location\":\"eastus2euap\",\"systemData\":{\"createdBy\":\"a000255f-5f09-45e0-a970-9d9ed9cc6453\",\"createdByType\":\"Application\",\"createdAt\":\"2022-08-02T03:54:10.890512Z\",\"lastModifiedBy\":\"a000255f-5f09-45e0-a970-9d9ed9cc6453\",\"lastModifiedByType\":\"Application\",\"lastModifiedAt\":\"2022-08-02T05:36:56.2954803Z\"},\"properties\":{\"description\":\"update storage mover description\",\"provisioningState\":\"Succeeded\"}}", + "Content": "{\"id\":\"/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/teststoragemover/providers/Microsoft.StorageMover/storageMovers/testStorageMoverk3pmhtl9\",\"name\":\"testStorageMoverk3pmhtl9\",\"type\":\"microsoft.storagemover/storagemovers\",\"location\":\"eastus2euap\",\"systemData\":{\"createdBy\":\"a000255f-5f09-45e0-a970-9d9ed9cc6453\",\"createdByType\":\"Application\",\"createdAt\":\"2023-07-21T02:26:40.450455Z\",\"lastModifiedBy\":\"a000255f-5f09-45e0-a970-9d9ed9cc6453\",\"lastModifiedByType\":\"Application\",\"lastModifiedAt\":\"2023-07-21T04:30:52.0225687Z\"},\"properties\":{\"description\":\"update storage mover description\",\"provisioningState\":\"Succeeded\"}}", "isContentBase64": false } } diff --git a/src/StorageMover/test/Update-AzStorageMoverAgent.Recording.json b/src/StorageMover/test/Update-AzStorageMoverAgent.Recording.json index 91fa1fe7ced9..6ca98cea68d7 100644 --- a/src/StorageMover/test/Update-AzStorageMoverAgent.Recording.json +++ b/src/StorageMover/test/Update-AzStorageMoverAgent.Recording.json @@ -1,8 +1,8 @@ { - "Update-AzStorageMoverAgent+[NoContext]+UpdateExpanded+$PATCH+https://management.azure.com/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/testStorageMover/providers/Microsoft.StorageMover/storageMovers/testStorageMover2/agents/testagent7?api-version=2023-03-01+1": { + "Update-AzStorageMoverAgent+[NoContext]+UpdateExpanded+$PATCH+https://management.azure.com/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/teststoragemover/providers/Microsoft.StorageMover/storageMovers/testmoverpreview1/agents/testagent1?api-version=2023-10-01+1": { "Request": { "Method": "PATCH", - "RequestUri": "https://management.azure.com/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/testStorageMover/providers/Microsoft.StorageMover/storageMovers/testStorageMover2/agents/testagent7?api-version=2023-03-01", + "RequestUri": "https://management.azure.com/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/teststoragemover/providers/Microsoft.StorageMover/storageMovers/testmoverpreview1/agents/testagent1?api-version=2023-10-01", "Content": "{\r\n \"properties\": {\r\n \"description\": \"update agent description\"\r\n }\r\n}", "isContentBase64": false, "Headers": { @@ -17,38 +17,39 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "ETag": [ "\"01008d87-0000-3400-0000-62e8b7fa0000\"" ], - "x-ms-ratelimit-remaining-subscription-writes": [ "1176" ], + "ETag": [ "\"1d007206-0000-3400-0000-64ba09fe0000\"" ], + "x-ms-ratelimit-remaining-subscription-writes": [ "1177" ], "x-ms-providerhub-traffic": [ "True" ], - "x-ms-request-id": [ "aace3736-7c5d-4939-98f9-9241613a00b8" ], - "x-ms-correlation-request-id": [ "fa053b28-23c1-46f1-9f9d-697fcb73a1fe" ], - "x-ms-routing-request-id": [ "SOUTHEASTASIA:20220802T053659Z:fa053b28-23c1-46f1-9f9d-697fcb73a1fe" ], + "mise-correlation-id": [ "6089b363-7541-4455-b906-0b37248eaaa4" ], + "x-ms-request-id": [ "16f48e23-ac9f-43cb-a389-5bac55339b33" ], + "x-ms-correlation-request-id": [ "0300959b-0125-4811-9b18-c78025613940" ], + "x-ms-routing-request-id": [ "EASTUS2EUAP:20230721T043054Z:0300959b-0125-4811-9b18-c78025613940" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "X-Content-Type-Options": [ "nosniff" ], - "Date": [ "Tue, 02 Aug 2022 05:36:58 GMT" ] + "Date": [ "Fri, 21 Jul 2023 04:30:54 GMT" ] }, "ContentHeaders": { - "Content-Length": [ "830" ], + "Content-Length": [ "995" ], "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"id\":\"/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/testStorageMover/providers/microsoft.storagemover/storagemovers/testStorageMover2/agents/testagent7\",\"name\":\"testagent7\",\"type\":\"microsoft.storagemover/storagemovers/agents\",\"systemData\":{\"createdBy\":\"yifanzhang@microsoft.com\",\"createdByType\":\"User\",\"createdAt\":\"2022-08-02T05:33:50.3980764Z\",\"lastModifiedBy\":\"a000255f-5f09-45e0-a970-9d9ed9cc6453\",\"lastModifiedByType\":\"Application\",\"lastModifiedAt\":\"2022-08-02T05:36:58.5454793Z\"},\"properties\":{\"arcResourceId\":\"/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/testStorageMover/providers/Microsoft.HybridCompute/machines/testagent7\",\"arcVmUuid\":\"c5c14b03-1e1d-0f42-9792-2fc3aa1c9b4b\",\"agentStatus\":\"Registering\",\"provisioningState\":\"Succeeded\",\"description\":\"update agent description\"}}", + "Content": "{\"id\":\"/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/teststoragemover/providers/Microsoft.StorageMover/storageMovers/testmoverpreview1/agents/testagent1\",\"name\":\"testagent1\",\"type\":\"microsoft.storagemover/storagemovers/agents\",\"systemData\":{\"createdBy\":\"yifanzhang@microsoft.com\",\"createdByType\":\"User\",\"createdAt\":\"2023-07-21T04:27:22.5834022Z\",\"lastModifiedBy\":\"a000255f-5f09-45e0-a970-9d9ed9cc6453\",\"lastModifiedByType\":\"Application\",\"lastModifiedAt\":\"2023-07-21T04:30:54.0851898Z\"},\"properties\":{\"arcResourceId\":\"/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/teststoragemover/providers/Microsoft.HybridCompute/machines/testagent1\",\"arcVmUuid\":\"c026168f-4f75-c847-aa19-2dfc4185d74e\",\"agentStatus\":\"Online\",\"provisioningState\":\"Succeeded\",\"agentVersion\":\"1.1.256_amd64\",\"localIPAddress\":\"10.172.2.82\",\"memoryInMB\":2748,\"numberOfCores\":1,\"uptimeInSeconds\":479,\"lastStatusUpdate\":\"2023-07-21T04:30:39.3651408Z\",\"description\":\"update agent description\"}}", "isContentBase64": false } }, - "Update-AzStorageMoverAgent+[NoContext]+UpdateExpanded+$GET+https://management.azure.com/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/testStorageMover/providers/Microsoft.StorageMover/storageMovers/testStorageMover2/agents/testagent7?api-version=2023-03-01+2": { + "Update-AzStorageMoverAgent+[NoContext]+UpdateExpanded+$GET+https://management.azure.com/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/teststoragemover/providers/Microsoft.StorageMover/storageMovers/testmoverpreview1/agents/testagent1?api-version=2023-10-01+2": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/testStorageMover/providers/Microsoft.StorageMover/storageMovers/testStorageMover2/agents/testagent7?api-version=2023-03-01", + "RequestUri": "https://management.azure.com/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/teststoragemover/providers/Microsoft.StorageMover/storageMovers/testmoverpreview1/agents/testagent1?api-version=2023-10-01", "Content": null, "isContentBase64": false, "Headers": { - "x-ms-unique-id": [ "51" ], - "x-ms-client-request-id": [ "1249ad6d-240b-44c1-b655-7fbaf302a25b" ], + "x-ms-unique-id": [ "62" ], + "x-ms-client-request-id": [ "91dae14e-429e-45e2-b4f9-cadad79e00e9" ], "CommandName": [ "Get-AzStorageMoverAgent" ], "FullCommandName": [ "Get-AzStorageMoverAgent_Get" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v8.0.0", "PSVersion/v7.2.5", "Az.StorageMover/0.1.0" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.2.12", "Az.StorageMover/1.0.1" ], "Authorization": [ "[Filtered]" ] }, "ContentHeaders": { @@ -59,22 +60,23 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "ETag": [ "\"01008d87-0000-3400-0000-62e8b7fa0000\"" ], + "ETag": [ "\"1d007206-0000-3400-0000-64ba09fe0000\"" ], "x-ms-ratelimit-remaining-subscription-reads": [ "11967" ], "x-ms-providerhub-traffic": [ "True" ], - "x-ms-request-id": [ "70e0898c-8fb0-498a-8bb6-31a5eeb7300e" ], - "x-ms-correlation-request-id": [ "058cff9c-8cb0-4f1a-8d82-1a2114cdd54a" ], - "x-ms-routing-request-id": [ "SOUTHEASTASIA:20220802T053700Z:058cff9c-8cb0-4f1a-8d82-1a2114cdd54a" ], + "mise-correlation-id": [ "854d6d98-748b-44b4-8fcf-39ccbadd157d" ], + "x-ms-request-id": [ "a576a2b2-1e6a-4ef3-8630-0b59d13ba6cb" ], + "x-ms-correlation-request-id": [ "c3256448-7708-4b4a-944e-86c03d57d2b2" ], + "x-ms-routing-request-id": [ "EASTUS2EUAP:20230721T043055Z:c3256448-7708-4b4a-944e-86c03d57d2b2" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "X-Content-Type-Options": [ "nosniff" ], - "Date": [ "Tue, 02 Aug 2022 05:36:59 GMT" ] + "Date": [ "Fri, 21 Jul 2023 04:30:54 GMT" ] }, "ContentHeaders": { - "Content-Length": [ "830" ], + "Content-Length": [ "995" ], "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"id\":\"/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/testStorageMover/providers/microsoft.storagemover/storagemovers/testStorageMover2/agents/testagent7\",\"name\":\"testagent7\",\"type\":\"microsoft.storagemover/storagemovers/agents\",\"systemData\":{\"createdBy\":\"yifanzhang@microsoft.com\",\"createdByType\":\"User\",\"createdAt\":\"2022-08-02T05:33:50.3980764Z\",\"lastModifiedBy\":\"a000255f-5f09-45e0-a970-9d9ed9cc6453\",\"lastModifiedByType\":\"Application\",\"lastModifiedAt\":\"2022-08-02T05:36:58.5454793Z\"},\"properties\":{\"arcResourceId\":\"/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/testStorageMover/providers/Microsoft.HybridCompute/machines/testagent7\",\"arcVmUuid\":\"c5c14b03-1e1d-0f42-9792-2fc3aa1c9b4b\",\"agentStatus\":\"Registering\",\"provisioningState\":\"Succeeded\",\"description\":\"update agent description\"}}", + "Content": "{\"id\":\"/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/teststoragemover/providers/Microsoft.StorageMover/storageMovers/testmoverpreview1/agents/testagent1\",\"name\":\"testagent1\",\"type\":\"microsoft.storagemover/storagemovers/agents\",\"systemData\":{\"createdBy\":\"yifanzhang@microsoft.com\",\"createdByType\":\"User\",\"createdAt\":\"2023-07-21T04:27:22.5834022Z\",\"lastModifiedBy\":\"a000255f-5f09-45e0-a970-9d9ed9cc6453\",\"lastModifiedByType\":\"Application\",\"lastModifiedAt\":\"2023-07-21T04:30:54.0851898Z\"},\"properties\":{\"agentVersion\":\"1.1.256_amd64\",\"arcResourceId\":\"/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/teststoragemover/providers/Microsoft.HybridCompute/machines/testagent1\",\"arcVmUuid\":\"c026168f-4f75-c847-aa19-2dfc4185d74e\",\"localIPAddress\":\"10.172.2.82\",\"memoryInMB\":2748,\"numberOfCores\":1,\"uptimeInSeconds\":479,\"lastStatusUpdate\":\"2023-07-21T04:30:39.3651408Z\",\"agentStatus\":\"Online\",\"description\":\"update agent description\",\"provisioningState\":\"Succeeded\"}}", "isContentBase64": false } } diff --git a/src/StorageMover/test/Update-AzStorageMoverAzStorageContainerEndpoint.Recording.json b/src/StorageMover/test/Update-AzStorageMoverAzStorageContainerEndpoint.Recording.json index 39dfa73ad06e..8ca4bfcebcd3 100644 --- a/src/StorageMover/test/Update-AzStorageMoverAzStorageContainerEndpoint.Recording.json +++ b/src/StorageMover/test/Update-AzStorageMoverAzStorageContainerEndpoint.Recording.json @@ -1,9 +1,9 @@ { - "Update-AzStorageMoverAzStorageContainerEndpoint+[NoContext]+UpdateExpanded+$PUT+https://management.azure.com/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/testStorageMover/providers/Microsoft.StorageMover/storageMovers/testStoMover14068b735/endpoints/containerEndpoint24068b735?api-version=2023-03-01+1": { + "Update-AzStorageMoverAzStorageContainerEndpoint+[NoContext]+UpdateExpanded+$PUT+https://management.azure.com/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/teststoragemover/providers/Microsoft.StorageMover/storageMovers/testStoMover1hc715gxy/endpoints/containerEndpoint2hc715gxy?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/testStoMover14068b735/endpoints/containerEndpoint24068b735?api-version=2023-03-01", - "Content": "{\r\n \"properties\": {\r\n \"endpointType\": \"AzureStorageBlobContainer\",\r\n \"description\": \"\",\r\n \"storageAccountResourceId\": \"/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/testStorageMover/providers/Microsoft.Storage/storageAccounts/storacc4068b735\",\r\n \"blobContainerName\": \"container4068b735\"\r\n }\r\n}", + "RequestUri": "https://management.azure.com/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/teststoragemover/providers/Microsoft.StorageMover/storageMovers/testStoMover1hc715gxy/endpoints/containerEndpoint2hc715gxy?api-version=2023-10-01", + "Content": "{\r\n \"properties\": {\r\n \"endpointType\": \"AzureStorageBlobContainer\",\r\n \"description\": \"\",\r\n \"storageAccountResourceId\": \"/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/teststoragemover/providers/Microsoft.Storage/storageAccounts/storacchc715gxy\",\r\n \"blobContainerName\": \"containerhc715gxy\"\r\n }\r\n}", "isContentBase64": false, "Headers": { }, @@ -17,37 +17,37 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "ETag": [ "\"00006ae5-0000-3400-0000-62e8b7fd0000\"" ], - "x-ms-ratelimit-remaining-subscription-writes": [ "1175" ], + "ETag": [ "\"2d013b48-0000-3400-0000-64ba0a000000\"" ], + "x-ms-ratelimit-remaining-subscription-writes": [ "1176" ], "x-ms-providerhub-traffic": [ "True" ], - "mise-correlation-id": [ "6b4d0a41-d434-41f2-9ea4-559bb268b125" ], - "x-ms-request-id": [ "881be6c1-35b8-4ee3-b79f-617990e027e8" ], - "x-ms-correlation-request-id": [ "9d4a5b4f-92d4-4d90-a3ac-c01adc5ba9a0" ], - "x-ms-routing-request-id": [ "SOUTHEASTASIA:20220802T053701Z:9d4a5b4f-92d4-4d90-a3ac-c01adc5ba9a0" ], + "mise-correlation-id": [ "c7fce90b-17f8-4f8a-afd6-e76511b151bc" ], + "x-ms-request-id": [ "9b951115-e2bc-4e5c-8c1c-d49610b5213e" ], + "x-ms-correlation-request-id": [ "3ad25f5e-7f7b-45fb-92b6-e60643fecbf3" ], + "x-ms-routing-request-id": [ "EASTUS2EUAP:20230721T043056Z:3ad25f5e-7f7b-45fb-92b6-e60643fecbf3" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "X-Content-Type-Options": [ "nosniff" ], - "Date": [ "Tue, 02 Aug 2022 05:37:01 GMT" ] + "Date": [ "Fri, 21 Jul 2023 04:30:56 GMT" ] }, "ContentHeaders": { "Content-Length": [ "888" ], "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"id\":\"/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/testStorageMover/providers/Microsoft.StorageMover/storageMovers/testStoMover14068b735/endpoints/containerEndpoint24068b735\",\"name\":\"containerEndpoint24068b735\",\"type\":\"microsoft.storagemover/storagemovers/endpoints\",\"systemData\":{\"createdBy\":\"a000255f-5f09-45e0-a970-9d9ed9cc6453\",\"createdByType\":\"Application\",\"createdAt\":\"2022-08-02T05:36:37.2173623Z\",\"lastModifiedBy\":\"a000255f-5f09-45e0-a970-9d9ed9cc6453\",\"lastModifiedByType\":\"Application\",\"lastModifiedAt\":\"2022-08-02T05:37:01.1704819Z\"},\"properties\":{\"provisioningState\":\"Succeeded\",\"endpointType\":\"AzureStorageBlobContainer\",\"description\":\"\",\"storageAccountResourceId\":\"/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/testStorageMover/providers/Microsoft.Storage/storageAccounts/storacc4068b735\",\"blobContainerName\":\"container4068b735\"}}", + "Content": "{\"id\":\"/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/teststoragemover/providers/Microsoft.StorageMover/storageMovers/testStoMover1hc715gxy/endpoints/containerEndpoint2hc715gxy\",\"name\":\"containerEndpoint2hc715gxy\",\"type\":\"microsoft.storagemover/storagemovers/endpoints\",\"systemData\":{\"createdBy\":\"a000255f-5f09-45e0-a970-9d9ed9cc6453\",\"createdByType\":\"Application\",\"createdAt\":\"2023-07-21T04:30:10.5484513Z\",\"lastModifiedBy\":\"a000255f-5f09-45e0-a970-9d9ed9cc6453\",\"lastModifiedByType\":\"Application\",\"lastModifiedAt\":\"2023-07-21T04:30:56.3507101Z\"},\"properties\":{\"storageAccountResourceId\":\"/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/teststoragemover/providers/Microsoft.Storage/storageAccounts/storacchc715gxy\",\"blobContainerName\":\"containerhc715gxy\",\"endpointType\":\"AzureStorageBlobContainer\",\"description\":\"\",\"provisioningState\":\"Succeeded\"}}", "isContentBase64": false } }, - "Update-AzStorageMoverAzStorageContainerEndpoint+[NoContext]+UpdateExpanded+$PATCH+https://management.azure.com/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/testStorageMover/providers/Microsoft.StorageMover/storageMovers/testStoMover14068b735/endpoints/containerEndpoint24068b735?api-version=2023-03-01+2": { + "Update-AzStorageMoverAzStorageContainerEndpoint+[NoContext]+UpdateExpanded+$PATCH+https://management.azure.com/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/teststoragemover/providers/Microsoft.StorageMover/storageMovers/testStoMover1hc715gxy/endpoints/containerEndpoint2hc715gxy?api-version=2023-10-01+2": { "Request": { "Method": "PATCH", - "RequestUri": "https://management.azure.com/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/testStorageMover/providers/Microsoft.StorageMover/storageMovers/testStoMover14068b735/endpoints/containerEndpoint24068b735?api-version=2023-03-01", - "Content": "{\r\n \"properties\": {\r\n \"description\": \"update description\"\r\n }\r\n}", + "RequestUri": "https://management.azure.com/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/teststoragemover/providers/Microsoft.StorageMover/storageMovers/testStoMover1hc715gxy/endpoints/containerEndpoint2hc715gxy?api-version=2023-10-01", + "Content": "{\r\n \"properties\": {\r\n \"endpointType\": \"AzureStorageBlobContainer\",\r\n \"description\": \"update description\"\r\n }\r\n}", "isContentBase64": false, "Headers": { }, "ContentHeaders": { "Content-Type": [ "application/json" ], - "Content-Length": [ "69" ] + "Content-Length": [ "119" ] } }, "Response": { @@ -55,38 +55,39 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "ETag": [ "\"00006ce5-0000-3400-0000-62e8b7ff0000\"" ], - "x-ms-ratelimit-remaining-subscription-writes": [ "1174" ], + "ETag": [ "\"2d013c48-0000-3400-0000-64ba0a010000\"" ], + "x-ms-ratelimit-remaining-subscription-writes": [ "1175" ], "x-ms-providerhub-traffic": [ "True" ], - "x-ms-request-id": [ "d428a17a-7cc3-44a4-89fd-896f68c8c9d5" ], - "x-ms-correlation-request-id": [ "5ac4cc66-bbbe-4524-8602-aad6f087cb6d" ], - "x-ms-routing-request-id": [ "SOUTHEASTASIA:20220802T053703Z:5ac4cc66-bbbe-4524-8602-aad6f087cb6d" ], + "mise-correlation-id": [ "18499f97-c9fe-4a52-a898-491129e3b91e" ], + "x-ms-request-id": [ "1bec4aaf-1f8a-490a-9f31-6748e033e25c" ], + "x-ms-correlation-request-id": [ "6ae4fdcc-b917-4ffb-bb4d-752f197ba520" ], + "x-ms-routing-request-id": [ "EASTUS2EUAP:20230721T043057Z:6ae4fdcc-b917-4ffb-bb4d-752f197ba520" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "X-Content-Type-Options": [ "nosniff" ], - "Date": [ "Tue, 02 Aug 2022 05:37:03 GMT" ] + "Date": [ "Fri, 21 Jul 2023 04:30:57 GMT" ] }, "ContentHeaders": { "Content-Length": [ "906" ], "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"id\":\"/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/testStorageMover/providers/Microsoft.StorageMover/storageMovers/testStoMover14068b735/endpoints/containerEndpoint24068b735\",\"name\":\"containerEndpoint24068b735\",\"type\":\"microsoft.storagemover/storagemovers/endpoints\",\"systemData\":{\"createdBy\":\"a000255f-5f09-45e0-a970-9d9ed9cc6453\",\"createdByType\":\"Application\",\"createdAt\":\"2022-08-02T05:36:37.2173623Z\",\"lastModifiedBy\":\"a000255f-5f09-45e0-a970-9d9ed9cc6453\",\"lastModifiedByType\":\"Application\",\"lastModifiedAt\":\"2022-08-02T05:37:02.9829786Z\"},\"properties\":{\"provisioningState\":\"Succeeded\",\"endpointType\":\"AzureStorageBlobContainer\",\"description\":\"update description\",\"storageAccountResourceId\":\"/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/testStorageMover/providers/Microsoft.Storage/storageAccounts/storacc4068b735\",\"blobContainerName\":\"container4068b735\"}}", + "Content": "{\"id\":\"/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/teststoragemover/providers/Microsoft.StorageMover/storageMovers/testStoMover1hc715gxy/endpoints/containerEndpoint2hc715gxy\",\"name\":\"containerEndpoint2hc715gxy\",\"type\":\"microsoft.storagemover/storagemovers/endpoints\",\"systemData\":{\"createdBy\":\"a000255f-5f09-45e0-a970-9d9ed9cc6453\",\"createdByType\":\"Application\",\"createdAt\":\"2023-07-21T04:30:10.5484513Z\",\"lastModifiedBy\":\"a000255f-5f09-45e0-a970-9d9ed9cc6453\",\"lastModifiedByType\":\"Application\",\"lastModifiedAt\":\"2023-07-21T04:30:57.4757206Z\"},\"properties\":{\"storageAccountResourceId\":\"/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/teststoragemover/providers/Microsoft.Storage/storageAccounts/storacchc715gxy\",\"blobContainerName\":\"containerhc715gxy\",\"endpointType\":\"AzureStorageBlobContainer\",\"description\":\"update description\",\"provisioningState\":\"Succeeded\"}}", "isContentBase64": false } }, - "Update-AzStorageMoverAzStorageContainerEndpoint+[NoContext]+UpdateExpanded+$GET+https://management.azure.com/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/testStorageMover/providers/Microsoft.StorageMover/storageMovers/testStoMover14068b735/endpoints/containerEndpoint24068b735?api-version=2023-03-01+3": { + "Update-AzStorageMoverAzStorageContainerEndpoint+[NoContext]+UpdateExpanded+$GET+https://management.azure.com/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/teststoragemover/providers/Microsoft.StorageMover/storageMovers/testStoMover1hc715gxy/endpoints/containerEndpoint2hc715gxy?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/testStoMover14068b735/endpoints/containerEndpoint24068b735?api-version=2023-03-01", + "RequestUri": "https://management.azure.com/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/teststoragemover/providers/Microsoft.StorageMover/storageMovers/testStoMover1hc715gxy/endpoints/containerEndpoint2hc715gxy?api-version=2023-10-01", "Content": null, "isContentBase64": false, "Headers": { - "x-ms-unique-id": [ "54" ], - "x-ms-client-request-id": [ "4d1b4f29-61ad-44e3-a637-7788754c7dcc" ], + "x-ms-unique-id": [ "65" ], + "x-ms-client-request-id": [ "545fcfad-1594-4bb6-8d54-a091f39ff3cf" ], "CommandName": [ "Get-AzStorageMoverEndpoint" ], "FullCommandName": [ "Get-AzStorageMoverEndpoint_Get" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v8.0.0", "PSVersion/v7.2.5", "Az.StorageMover/0.1.0" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.2.12", "Az.StorageMover/1.0.1" ], "Authorization": [ "[Filtered]" ] }, "ContentHeaders": { @@ -97,22 +98,22 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "ETag": [ "\"00006ce5-0000-3400-0000-62e8b7ff0000\"" ], + "ETag": [ "\"2d013c48-0000-3400-0000-64ba0a010000\"" ], "x-ms-ratelimit-remaining-subscription-reads": [ "11966" ], "x-ms-providerhub-traffic": [ "True" ], - "x-ms-request-id": [ "d10d8560-ec5e-46fc-ad60-64d32cd1c712" ], - "x-ms-correlation-request-id": [ "894f1190-11ad-46c7-a435-4a5dd330f2ca" ], - "x-ms-routing-request-id": [ "SOUTHEASTASIA:20220802T053704Z:894f1190-11ad-46c7-a435-4a5dd330f2ca" ], + "x-ms-request-id": [ "6671e6a6-94a0-4baa-9a1e-93115df5e307" ], + "x-ms-correlation-request-id": [ "9c8ccf5c-56bf-488e-ab6d-35bb0f348e1f" ], + "x-ms-routing-request-id": [ "EASTUS2EUAP:20230721T043058Z:9c8ccf5c-56bf-488e-ab6d-35bb0f348e1f" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "X-Content-Type-Options": [ "nosniff" ], - "Date": [ "Tue, 02 Aug 2022 05:37:03 GMT" ] + "Date": [ "Fri, 21 Jul 2023 04:30:57 GMT" ] }, "ContentHeaders": { "Content-Length": [ "906" ], "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"id\":\"/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/testStorageMover/providers/Microsoft.StorageMover/storageMovers/testStoMover14068b735/endpoints/containerEndpoint24068b735\",\"name\":\"containerEndpoint24068b735\",\"type\":\"microsoft.storagemover/storagemovers/endpoints\",\"systemData\":{\"createdBy\":\"a000255f-5f09-45e0-a970-9d9ed9cc6453\",\"createdByType\":\"Application\",\"createdAt\":\"2022-08-02T05:36:37.2173623Z\",\"lastModifiedBy\":\"a000255f-5f09-45e0-a970-9d9ed9cc6453\",\"lastModifiedByType\":\"Application\",\"lastModifiedAt\":\"2022-08-02T05:37:02.9829786Z\"},\"properties\":{\"provisioningState\":\"Succeeded\",\"endpointType\":\"AzureStorageBlobContainer\",\"description\":\"update description\",\"storageAccountResourceId\":\"/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/testStorageMover/providers/Microsoft.Storage/storageAccounts/storacc4068b735\",\"blobContainerName\":\"container4068b735\"}}", + "Content": "{\"id\":\"/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/teststoragemover/providers/Microsoft.StorageMover/storageMovers/testStoMover1hc715gxy/endpoints/containerEndpoint2hc715gxy\",\"name\":\"containerEndpoint2hc715gxy\",\"type\":\"microsoft.storagemover/storagemovers/endpoints\",\"systemData\":{\"createdBy\":\"a000255f-5f09-45e0-a970-9d9ed9cc6453\",\"createdByType\":\"Application\",\"createdAt\":\"2023-07-21T04:30:10.5484513Z\",\"lastModifiedBy\":\"a000255f-5f09-45e0-a970-9d9ed9cc6453\",\"lastModifiedByType\":\"Application\",\"lastModifiedAt\":\"2023-07-21T04:30:57.4757206Z\"},\"properties\":{\"storageAccountResourceId\":\"/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/teststoragemover/providers/Microsoft.Storage/storageAccounts/storacchc715gxy\",\"blobContainerName\":\"containerhc715gxy\",\"endpointType\":\"AzureStorageBlobContainer\",\"description\":\"update description\",\"provisioningState\":\"Succeeded\"}}", "isContentBase64": false } } diff --git a/src/StorageMover/test/Update-AzStorageMoverJobDefinition.Recording.json b/src/StorageMover/test/Update-AzStorageMoverJobDefinition.Recording.json index 815edf2654e9..47db8944a8ed 100644 --- a/src/StorageMover/test/Update-AzStorageMoverJobDefinition.Recording.json +++ b/src/StorageMover/test/Update-AzStorageMoverJobDefinition.Recording.json @@ -1,9 +1,9 @@ { - "Update-AzStorageMoverJobDefinition+[NoContext]+UpdateExpanded+$PUT+https://management.azure.com/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/testStorageMover/providers/Microsoft.StorageMover/storageMovers/testStorageMover2/projects/testProject4068b735/jobDefinitions/testUpdateJob54068b735?api-version=2023-03-01+1": { + "Update-AzStorageMoverJobDefinition+[NoContext]+UpdateExpanded+$PUT+https://management.azure.com/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/teststoragemover/providers/Microsoft.StorageMover/storageMovers/testmoverpreview1/projects/testProjecthc715gxy/jobDefinitions/testUpdateJob5hc715gxy?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/testStorageMover2/projects/testProject4068b735/jobDefinitions/testUpdateJob54068b735?api-version=2023-03-01", - "Content": "{\r\n \"properties\": {\r\n \"copyMode\": \"Additive\",\r\n \"sourceName\": \"nfsEndpoint4068b735\",\r\n \"targetName\": \"containerEndpoint4068b735\",\r\n \"agentName\": \"testagent7\"\r\n }\r\n}", + "RequestUri": "https://management.azure.com/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/teststoragemover/providers/Microsoft.StorageMover/storageMovers/testmoverpreview1/projects/testProjecthc715gxy/jobDefinitions/testUpdateJob5hc715gxy?api-version=2023-10-01", + "Content": "{\r\n \"properties\": {\r\n \"copyMode\": \"Additive\",\r\n \"sourceName\": \"nfsEndpointhc715gxy\",\r\n \"targetName\": \"containerEndpointhc715gxy\",\r\n \"agentName\": \"testagent1\"\r\n }\r\n}", "isContentBase64": false, "Headers": { }, @@ -17,30 +17,30 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "ETag": [ "\"00005e9e-0000-3400-0000-62e8b8020000\"" ], - "x-ms-ratelimit-remaining-subscription-writes": [ "1173" ], + "ETag": [ "\"0100792c-0000-3400-0000-64ba0a030000\"" ], + "x-ms-ratelimit-remaining-subscription-writes": [ "1174" ], "x-ms-providerhub-traffic": [ "True" ], - "mise-correlation-id": [ "d20a1a37-970c-4dbf-a5b3-707ae2683d1a" ], - "x-ms-request-id": [ "dedd4958-0205-4fae-a21e-378e335a1d04" ], - "x-ms-correlation-request-id": [ "e292e1a0-7e7c-4768-bd1e-b0e1783c1059" ], - "x-ms-routing-request-id": [ "SOUTHEASTASIA:20220802T053706Z:e292e1a0-7e7c-4768-bd1e-b0e1783c1059" ], + "mise-correlation-id": [ "4ade74ce-8ed0-42e6-b1a4-1b95dbdec126" ], + "x-ms-request-id": [ "b0aca939-1f58-478f-b6f0-1a521b67bb40" ], + "x-ms-correlation-request-id": [ "4eda798e-25e5-4dd3-93ff-d37b69fc56b8" ], + "x-ms-routing-request-id": [ "EASTUS2EUAP:20230721T043059Z:4eda798e-25e5-4dd3-93ff-d37b69fc56b8" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "X-Content-Type-Options": [ "nosniff" ], - "Date": [ "Tue, 02 Aug 2022 05:37:06 GMT" ] + "Date": [ "Fri, 21 Jul 2023 04:30:59 GMT" ] }, "ContentHeaders": { - "Content-Length": [ "774" ], + "Content-Length": [ "1367" ], "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"id\":\"/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/testStorageMover/providers/Microsoft.StorageMover/storageMovers/testStorageMover2/projects/testProject4068b735/jobDefinitions/testUpdateJob54068b735\",\"name\":\"testUpdateJob54068b735\",\"type\":\"microsoft.storagemover/storagemovers/projects/jobdefinitions\",\"systemData\":{\"createdBy\":\"a000255f-5f09-45e0-a970-9d9ed9cc6453\",\"createdByType\":\"Application\",\"createdAt\":\"2022-08-02T05:37:06.1704749Z\",\"lastModifiedBy\":\"a000255f-5f09-45e0-a970-9d9ed9cc6453\",\"lastModifiedByType\":\"Application\",\"lastModifiedAt\":\"2022-08-02T05:37:06.1704749Z\"},\"properties\":{\"copyMode\":\"Additive\",\"sourceName\":\"nfsEndpoint4068b735\",\"targetName\":\"containerEndpoint4068b735\",\"agentName\":\"testagent7\",\"provisioningState\":\"Succeeded\"}}", + "Content": "{\"id\":\"/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/teststoragemover/providers/Microsoft.StorageMover/storageMovers/testmoverpreview1/projects/testProjecthc715gxy/jobDefinitions/testUpdateJob5hc715gxy\",\"name\":\"testUpdateJob5hc715gxy\",\"type\":\"microsoft.storagemover/storagemovers/projects/jobdefinitions\",\"systemData\":{\"createdBy\":\"a000255f-5f09-45e0-a970-9d9ed9cc6453\",\"createdByType\":\"Application\",\"createdAt\":\"2023-07-21T04:30:59.4288604Z\",\"lastModifiedBy\":\"a000255f-5f09-45e0-a970-9d9ed9cc6453\",\"lastModifiedByType\":\"Application\",\"lastModifiedAt\":\"2023-07-21T04:30:59.4288604Z\"},\"properties\":{\"copyMode\":\"Additive\",\"sourceName\":\"nfsEndpointhc715gxy\",\"sourceResourceId\":\"/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/teststoragemover/providers/Microsoft.StorageMover/storageMovers/testmoverpreview1/endpoints/nfsEndpointhc715gxy\",\"targetName\":\"containerEndpointhc715gxy\",\"targetResourceId\":\"/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/teststoragemover/providers/Microsoft.StorageMover/storageMovers/testmoverpreview1/endpoints/containerEndpointhc715gxy\",\"agentName\":\"testagent1\",\"agentResourceId\":\"/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/teststoragemover/providers/Microsoft.StorageMover/storageMovers/testmoverpreview1/agents/testagent1\",\"provisioningState\":\"Succeeded\"}}", "isContentBase64": false } }, - "Update-AzStorageMoverJobDefinition+[NoContext]+UpdateExpanded+$PATCH+https://management.azure.com/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/testStorageMover/providers/Microsoft.StorageMover/storageMovers/testStorageMover2/projects/testProject4068b735/jobDefinitions/testUpdateJob54068b735?api-version=2023-03-01+2": { + "Update-AzStorageMoverJobDefinition+[NoContext]+UpdateExpanded+$PATCH+https://management.azure.com/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/teststoragemover/providers/Microsoft.StorageMover/storageMovers/testmoverpreview1/projects/testProjecthc715gxy/jobDefinitions/testUpdateJob5hc715gxy?api-version=2023-10-01+2": { "Request": { "Method": "PATCH", - "RequestUri": "https://management.azure.com/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/testStorageMover/providers/Microsoft.StorageMover/storageMovers/testStorageMover2/projects/testProject4068b735/jobDefinitions/testUpdateJob54068b735?api-version=2023-03-01", + "RequestUri": "https://management.azure.com/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/teststoragemover/providers/Microsoft.StorageMover/storageMovers/testmoverpreview1/projects/testProjecthc715gxy/jobDefinitions/testUpdateJob5hc715gxy?api-version=2023-10-01", "Content": "{\r\n \"properties\": {\r\n \"description\": \"update description\"\r\n }\r\n}", "isContentBase64": false, "Headers": { @@ -55,22 +55,23 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "ETag": [ "\"00005f9e-0000-3400-0000-62e8b8040000\"" ], - "x-ms-ratelimit-remaining-subscription-writes": [ "1172" ], + "ETag": [ "\"01007a2c-0000-3400-0000-64ba0a040000\"" ], + "x-ms-ratelimit-remaining-subscription-writes": [ "1173" ], "x-ms-providerhub-traffic": [ "True" ], - "x-ms-request-id": [ "c0e0e11e-32f1-47a2-8618-49672a4cd64e" ], - "x-ms-correlation-request-id": [ "bb62c854-8fe2-49cc-8579-a54652c4a285" ], - "x-ms-routing-request-id": [ "SOUTHEASTASIA:20220802T053708Z:bb62c854-8fe2-49cc-8579-a54652c4a285" ], + "mise-correlation-id": [ "a23ec2cf-4503-4e25-b825-c2f42352749a" ], + "x-ms-request-id": [ "ea76acea-0719-4026-82f6-26bc58eca1e3" ], + "x-ms-correlation-request-id": [ "5cfb79c7-4eed-44cc-81a9-a9d5bb1b4f12" ], + "x-ms-routing-request-id": [ "EASTUS2EUAP:20230721T043100Z:5cfb79c7-4eed-44cc-81a9-a9d5bb1b4f12" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "X-Content-Type-Options": [ "nosniff" ], - "Date": [ "Tue, 02 Aug 2022 05:37:08 GMT" ] + "Date": [ "Fri, 21 Jul 2023 04:31:00 GMT" ] }, "ContentHeaders": { - "Content-Length": [ "809" ], + "Content-Length": [ "1401" ], "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"id\":\"/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/testStorageMover/providers/Microsoft.StorageMover/storageMovers/testStorageMover2/projects/testProject4068b735/jobDefinitions/testUpdateJob54068b735\",\"name\":\"testUpdateJob54068b735\",\"type\":\"microsoft.storagemover/storagemovers/projects/jobdefinitions\",\"systemData\":{\"createdBy\":\"a000255f-5f09-45e0-a970-9d9ed9cc6453\",\"createdByType\":\"Application\",\"createdAt\":\"2022-08-02T05:37:06.1704749Z\",\"lastModifiedBy\":\"a000255f-5f09-45e0-a970-9d9ed9cc6453\",\"lastModifiedByType\":\"Application\",\"lastModifiedAt\":\"2022-08-02T05:37:07.9673514Z\"},\"properties\":{\"copyMode\":\"Additive\",\"sourceName\":\"nfsEndpoint4068b735\",\"targetName\":\"containerEndpoint4068b735\",\"agentName\":\"testagent7\",\"provisioningState\":\"Succeeded\",\"description\":\"update description\"}}", + "Content": "{\"id\":\"/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/teststoragemover/providers/Microsoft.StorageMover/storageMovers/testmoverpreview1/projects/testProjecthc715gxy/jobDefinitions/testUpdateJob5hc715gxy\",\"name\":\"testUpdateJob5hc715gxy\",\"type\":\"microsoft.storagemover/storagemovers/projects/jobdefinitions\",\"systemData\":{\"createdBy\":\"a000255f-5f09-45e0-a970-9d9ed9cc6453\",\"createdByType\":\"Application\",\"createdAt\":\"2023-07-21T04:30:59.4288604Z\",\"lastModifiedBy\":\"a000255f-5f09-45e0-a970-9d9ed9cc6453\",\"lastModifiedByType\":\"Application\",\"lastModifiedAt\":\"2023-07-21T04:31:00.460084Z\"},\"properties\":{\"copyMode\":\"Additive\",\"sourceName\":\"nfsEndpointhc715gxy\",\"sourceResourceId\":\"/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/teststoragemover/providers/Microsoft.StorageMover/storageMovers/testmoverpreview1/endpoints/nfsEndpointhc715gxy\",\"targetName\":\"containerEndpointhc715gxy\",\"targetResourceId\":\"/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/teststoragemover/providers/Microsoft.StorageMover/storageMovers/testmoverpreview1/endpoints/containerEndpointhc715gxy\",\"agentName\":\"testagent1\",\"agentResourceId\":\"/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/teststoragemover/providers/Microsoft.StorageMover/storageMovers/testmoverpreview1/agents/testagent1\",\"provisioningState\":\"Succeeded\",\"description\":\"update description\"}}", "isContentBase64": false } } diff --git a/src/StorageMover/test/Update-AzStorageMoverNfsEndpoint.Recording.json b/src/StorageMover/test/Update-AzStorageMoverNfsEndpoint.Recording.json index 7bf471538362..22f822ab3f47 100644 --- a/src/StorageMover/test/Update-AzStorageMoverNfsEndpoint.Recording.json +++ b/src/StorageMover/test/Update-AzStorageMoverNfsEndpoint.Recording.json @@ -1,8 +1,8 @@ { - "Update-AzStorageMoverNfsEndpoint+[NoContext]+UpdateExpanded+$PUT+https://management.azure.com/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/testStorageMover/providers/Microsoft.StorageMover/storageMovers/testStoMover14068b735/endpoints/testNfsEndpoint24068b735?api-version=2023-03-01+1": { + "Update-AzStorageMoverNfsEndpoint+[NoContext]+UpdateExpanded+$PUT+https://management.azure.com/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/teststoragemover/providers/Microsoft.StorageMover/storageMovers/testStoMover1hc715gxy/endpoints/testNfsEndpoint2hc715gxy?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/testStoMover14068b735/endpoints/testNfsEndpoint24068b735?api-version=2023-03-01", + "RequestUri": "https://management.azure.com/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/teststoragemover/providers/Microsoft.StorageMover/storageMovers/testStoMover1hc715gxy/endpoints/testNfsEndpoint2hc715gxy?api-version=2023-10-01", "Content": "{\r\n \"properties\": {\r\n \"endpointType\": \"NfsMount\",\r\n \"description\": \"Nfs endpoint description\",\r\n \"host\": \"10.0.0.1\",\r\n \"nfsVersion\": \"NFSv3\",\r\n \"export\": \"/\"\r\n }\r\n}", "isContentBase64": false, "Headers": { @@ -17,37 +17,37 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "ETag": [ "\"00006de5-0000-3400-0000-62e8b8060000\"" ], - "x-ms-ratelimit-remaining-subscription-writes": [ "1171" ], + "ETag": [ "\"2d013f48-0000-3400-0000-64ba0a050000\"" ], + "x-ms-ratelimit-remaining-subscription-writes": [ "1172" ], "x-ms-providerhub-traffic": [ "True" ], - "mise-correlation-id": [ "e07cae58-926f-48ce-bba3-d859e2ef1ef2" ], - "x-ms-request-id": [ "187b96b9-c13c-4e81-9ec4-dc63c6f79269" ], - "x-ms-correlation-request-id": [ "d8e25b6d-e813-4366-924a-e1310ee9bbb2" ], - "x-ms-routing-request-id": [ "SOUTHEASTASIA:20220802T053710Z:d8e25b6d-e813-4366-924a-e1310ee9bbb2" ], + "mise-correlation-id": [ "6f4bcfa6-0d06-4481-95bb-37ccf2209480" ], + "x-ms-request-id": [ "914714f6-011f-4a54-bb50-7f318f03f59f" ], + "x-ms-correlation-request-id": [ "12df1431-eb32-42f3-8c5e-65441bd62f8b" ], + "x-ms-routing-request-id": [ "EASTUS2EUAP:20230721T043101Z:12df1431-eb32-42f3-8c5e-65441bd62f8b" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "X-Content-Type-Options": [ "nosniff" ], - "Date": [ "Tue, 02 Aug 2022 05:37:10 GMT" ] + "Date": [ "Fri, 21 Jul 2023 04:31:01 GMT" ] }, "ContentHeaders": { "Content-Length": [ "730" ], "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"id\":\"/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/testStorageMover/providers/Microsoft.StorageMover/storageMovers/testStoMover14068b735/endpoints/testNfsEndpoint24068b735\",\"name\":\"testNfsEndpoint24068b735\",\"type\":\"microsoft.storagemover/storagemovers/endpoints\",\"systemData\":{\"createdBy\":\"a000255f-5f09-45e0-a970-9d9ed9cc6453\",\"createdByType\":\"Application\",\"createdAt\":\"2022-08-02T05:37:09.8737306Z\",\"lastModifiedBy\":\"a000255f-5f09-45e0-a970-9d9ed9cc6453\",\"lastModifiedByType\":\"Application\",\"lastModifiedAt\":\"2022-08-02T05:37:09.8737306Z\"},\"properties\":{\"endpointType\":\"NfsMount\",\"description\":\"Nfs endpoint description\",\"host\":\"10.0.0.1\",\"nfsVersion\":\"NFSv3\",\"export\":\"/\",\"provisioningState\":\"Succeeded\"}}", + "Content": "{\"id\":\"/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/teststoragemover/providers/Microsoft.StorageMover/storageMovers/testStoMover1hc715gxy/endpoints/testNfsEndpoint2hc715gxy\",\"name\":\"testNfsEndpoint2hc715gxy\",\"type\":\"microsoft.storagemover/storagemovers/endpoints\",\"systemData\":{\"createdBy\":\"a000255f-5f09-45e0-a970-9d9ed9cc6453\",\"createdByType\":\"Application\",\"createdAt\":\"2023-07-21T04:31:01.6632142Z\",\"lastModifiedBy\":\"a000255f-5f09-45e0-a970-9d9ed9cc6453\",\"lastModifiedByType\":\"Application\",\"lastModifiedAt\":\"2023-07-21T04:31:01.6632142Z\"},\"properties\":{\"host\":\"10.0.0.1\",\"nfsVersion\":\"NFSv3\",\"export\":\"/\",\"endpointType\":\"NfsMount\",\"description\":\"Nfs endpoint description\",\"provisioningState\":\"Succeeded\"}}", "isContentBase64": false } }, - "Update-AzStorageMoverNfsEndpoint+[NoContext]+UpdateExpanded+$PATCH+https://management.azure.com/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/testStorageMover/providers/Microsoft.StorageMover/storageMovers/testStoMover14068b735/endpoints/testNfsEndpoint24068b735?api-version=2023-03-01+2": { + "Update-AzStorageMoverNfsEndpoint+[NoContext]+UpdateExpanded+$PATCH+https://management.azure.com/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/teststoragemover/providers/Microsoft.StorageMover/storageMovers/testStoMover1hc715gxy/endpoints/testNfsEndpoint2hc715gxy?api-version=2023-10-01+2": { "Request": { "Method": "PATCH", - "RequestUri": "https://management.azure.com/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/testStorageMover/providers/Microsoft.StorageMover/storageMovers/testStoMover14068b735/endpoints/testNfsEndpoint24068b735?api-version=2023-03-01", - "Content": "{\r\n \"properties\": {\r\n \"description\": \"update Nfs endpoint Description\"\r\n }\r\n}", + "RequestUri": "https://management.azure.com/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/teststoragemover/providers/Microsoft.StorageMover/storageMovers/testStoMover1hc715gxy/endpoints/testNfsEndpoint2hc715gxy?api-version=2023-10-01", + "Content": "{\r\n \"properties\": {\r\n \"endpointType\": \"NfsMount\",\r\n \"description\": \"update Nfs endpoint Description\"\r\n }\r\n}", "isContentBase64": false, "Headers": { }, "ContentHeaders": { "Content-Type": [ "application/json" ], - "Content-Length": [ "82" ] + "Content-Length": [ "115" ] } }, "Response": { @@ -55,38 +55,39 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "ETag": [ "\"00006ee5-0000-3400-0000-62e8b8080000\"" ], - "x-ms-ratelimit-remaining-subscription-writes": [ "1170" ], + "ETag": [ "\"2d014048-0000-3400-0000-64ba0a060000\"" ], + "x-ms-ratelimit-remaining-subscription-writes": [ "1171" ], "x-ms-providerhub-traffic": [ "True" ], - "x-ms-request-id": [ "861e785b-eac7-49ae-afe6-973e70fe6014" ], - "x-ms-correlation-request-id": [ "8d9098b6-a3e7-415b-9cb5-9240ffac18c6" ], - "x-ms-routing-request-id": [ "SOUTHEASTASIA:20220802T053712Z:8d9098b6-a3e7-415b-9cb5-9240ffac18c6" ], + "mise-correlation-id": [ "96c73f93-692c-4ef3-8a47-5e29f7cc6095" ], + "x-ms-request-id": [ "fb228d44-f6f8-4562-bd49-9cdc07c29bb2" ], + "x-ms-correlation-request-id": [ "fbd307d6-5245-443b-bc5f-ae1979fe8431" ], + "x-ms-routing-request-id": [ "EASTUS2EUAP:20230721T043102Z:fbd307d6-5245-443b-bc5f-ae1979fe8431" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "X-Content-Type-Options": [ "nosniff" ], - "Date": [ "Tue, 02 Aug 2022 05:37:12 GMT" ] + "Date": [ "Fri, 21 Jul 2023 04:31:02 GMT" ] }, "ContentHeaders": { "Content-Length": [ "737" ], "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"id\":\"/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/testStorageMover/providers/Microsoft.StorageMover/storageMovers/testStoMover14068b735/endpoints/testNfsEndpoint24068b735\",\"name\":\"testNfsEndpoint24068b735\",\"type\":\"microsoft.storagemover/storagemovers/endpoints\",\"systemData\":{\"createdBy\":\"a000255f-5f09-45e0-a970-9d9ed9cc6453\",\"createdByType\":\"Application\",\"createdAt\":\"2022-08-02T05:37:09.8737306Z\",\"lastModifiedBy\":\"a000255f-5f09-45e0-a970-9d9ed9cc6453\",\"lastModifiedByType\":\"Application\",\"lastModifiedAt\":\"2022-08-02T05:37:11.9517243Z\"},\"properties\":{\"endpointType\":\"NfsMount\",\"description\":\"update Nfs endpoint Description\",\"host\":\"10.0.0.1\",\"nfsVersion\":\"NFSv3\",\"export\":\"/\",\"provisioningState\":\"Succeeded\"}}", + "Content": "{\"id\":\"/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/teststoragemover/providers/Microsoft.StorageMover/storageMovers/testStoMover1hc715gxy/endpoints/testNfsEndpoint2hc715gxy\",\"name\":\"testNfsEndpoint2hc715gxy\",\"type\":\"microsoft.storagemover/storagemovers/endpoints\",\"systemData\":{\"createdBy\":\"a000255f-5f09-45e0-a970-9d9ed9cc6453\",\"createdByType\":\"Application\",\"createdAt\":\"2023-07-21T04:31:01.6632142Z\",\"lastModifiedBy\":\"a000255f-5f09-45e0-a970-9d9ed9cc6453\",\"lastModifiedByType\":\"Application\",\"lastModifiedAt\":\"2023-07-21T04:31:02.6788476Z\"},\"properties\":{\"host\":\"10.0.0.1\",\"nfsVersion\":\"NFSv3\",\"export\":\"/\",\"endpointType\":\"NfsMount\",\"description\":\"update Nfs endpoint Description\",\"provisioningState\":\"Succeeded\"}}", "isContentBase64": false } }, - "Update-AzStorageMoverNfsEndpoint+[NoContext]+UpdateExpanded+$GET+https://management.azure.com/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/testStorageMover/providers/Microsoft.StorageMover/storageMovers/testStoMover14068b735/endpoints/testNfsEndpoint24068b735?api-version=2023-03-01+3": { + "Update-AzStorageMoverNfsEndpoint+[NoContext]+UpdateExpanded+$GET+https://management.azure.com/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/teststoragemover/providers/Microsoft.StorageMover/storageMovers/testStoMover1hc715gxy/endpoints/testNfsEndpoint2hc715gxy?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/testStoMover14068b735/endpoints/testNfsEndpoint24068b735?api-version=2023-03-01", + "RequestUri": "https://management.azure.com/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/teststoragemover/providers/Microsoft.StorageMover/storageMovers/testStoMover1hc715gxy/endpoints/testNfsEndpoint2hc715gxy?api-version=2023-10-01", "Content": null, "isContentBase64": false, "Headers": { - "x-ms-unique-id": [ "59" ], - "x-ms-client-request-id": [ "a1e530cf-e83c-4dd9-8c4b-14444017e0d5" ], + "x-ms-unique-id": [ "70" ], + "x-ms-client-request-id": [ "de8e0f7b-17bb-4ba9-9de6-f3e8071f5c77" ], "CommandName": [ "Get-AzStorageMoverEndpoint" ], "FullCommandName": [ "Get-AzStorageMoverEndpoint_Get" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v8.0.0", "PSVersion/v7.2.5", "Az.StorageMover/0.1.0" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.2.12", "Az.StorageMover/1.0.1" ], "Authorization": [ "[Filtered]" ] }, "ContentHeaders": { @@ -97,22 +98,22 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "ETag": [ "\"00006ee5-0000-3400-0000-62e8b8080000\"" ], + "ETag": [ "\"2d014048-0000-3400-0000-64ba0a060000\"" ], "x-ms-ratelimit-remaining-subscription-reads": [ "11965" ], "x-ms-providerhub-traffic": [ "True" ], - "x-ms-request-id": [ "e6230fd4-9a07-4a90-989e-411b57326467" ], - "x-ms-correlation-request-id": [ "02b6747c-1c35-44c2-8cd8-bb2c22f08236" ], - "x-ms-routing-request-id": [ "SOUTHEASTASIA:20220802T053713Z:02b6747c-1c35-44c2-8cd8-bb2c22f08236" ], + "x-ms-request-id": [ "31f2f729-c959-4b97-bc83-f02c91009bf9" ], + "x-ms-correlation-request-id": [ "54a8f8d4-49c2-40d4-b87c-3956cd8f5225" ], + "x-ms-routing-request-id": [ "EASTUS2EUAP:20230721T043103Z:54a8f8d4-49c2-40d4-b87c-3956cd8f5225" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "X-Content-Type-Options": [ "nosniff" ], - "Date": [ "Tue, 02 Aug 2022 05:37:12 GMT" ] + "Date": [ "Fri, 21 Jul 2023 04:31:02 GMT" ] }, "ContentHeaders": { "Content-Length": [ "737" ], "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"id\":\"/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/testStorageMover/providers/Microsoft.StorageMover/storageMovers/testStoMover14068b735/endpoints/testNfsEndpoint24068b735\",\"name\":\"testNfsEndpoint24068b735\",\"type\":\"microsoft.storagemover/storagemovers/endpoints\",\"systemData\":{\"createdBy\":\"a000255f-5f09-45e0-a970-9d9ed9cc6453\",\"createdByType\":\"Application\",\"createdAt\":\"2022-08-02T05:37:09.8737306Z\",\"lastModifiedBy\":\"a000255f-5f09-45e0-a970-9d9ed9cc6453\",\"lastModifiedByType\":\"Application\",\"lastModifiedAt\":\"2022-08-02T05:37:11.9517243Z\"},\"properties\":{\"endpointType\":\"NfsMount\",\"description\":\"update Nfs endpoint Description\",\"host\":\"10.0.0.1\",\"nfsVersion\":\"NFSv3\",\"export\":\"/\",\"provisioningState\":\"Succeeded\"}}", + "Content": "{\"id\":\"/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/teststoragemover/providers/Microsoft.StorageMover/storageMovers/testStoMover1hc715gxy/endpoints/testNfsEndpoint2hc715gxy\",\"name\":\"testNfsEndpoint2hc715gxy\",\"type\":\"microsoft.storagemover/storagemovers/endpoints\",\"systemData\":{\"createdBy\":\"a000255f-5f09-45e0-a970-9d9ed9cc6453\",\"createdByType\":\"Application\",\"createdAt\":\"2023-07-21T04:31:01.6632142Z\",\"lastModifiedBy\":\"a000255f-5f09-45e0-a970-9d9ed9cc6453\",\"lastModifiedByType\":\"Application\",\"lastModifiedAt\":\"2023-07-21T04:31:02.6788476Z\"},\"properties\":{\"host\":\"10.0.0.1\",\"nfsVersion\":\"NFSv3\",\"export\":\"/\",\"endpointType\":\"NfsMount\",\"description\":\"update Nfs endpoint Description\",\"provisioningState\":\"Succeeded\"}}", "isContentBase64": false } } diff --git a/src/StorageMover/test/Update-AzStorageMoverProject.Recording.json b/src/StorageMover/test/Update-AzStorageMoverProject.Recording.json index cd7825bb2419..549eab9355e2 100644 --- a/src/StorageMover/test/Update-AzStorageMoverProject.Recording.json +++ b/src/StorageMover/test/Update-AzStorageMoverProject.Recording.json @@ -1,8 +1,8 @@ { - "Update-AzStorageMoverProject+[NoContext]+UpdateExpanded+$PUT+https://management.azure.com/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/testStorageMover/providers/Microsoft.StorageMover/storageMovers/testStoMover14068b735/projects/testProject24068b735?api-version=2023-03-01+1": { + "Update-AzStorageMoverProject+[NoContext]+UpdateExpanded+$PUT+https://management.azure.com/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/teststoragemover/providers/Microsoft.StorageMover/storageMovers/testStoMover1hc715gxy/projects/testProject2hc715gxy?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/testStoMover14068b735/projects/testProject24068b735?api-version=2023-03-01", + "RequestUri": "https://management.azure.com/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/teststoragemover/providers/Microsoft.StorageMover/storageMovers/testStoMover1hc715gxy/projects/testProject2hc715gxy?api-version=2023-10-01", "Content": "{\r\n \"properties\": {\r\n \"description\": \"test Project description\"\r\n }\r\n}", "isContentBase64": false, "Headers": { @@ -17,30 +17,30 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "ETag": [ "\"00003108-0000-3400-0000-62e8b80b0000\"" ], - "x-ms-ratelimit-remaining-subscription-writes": [ "1169" ], + "ETag": [ "\"2d010103-0000-3400-0000-64ba0a080000\"" ], + "x-ms-ratelimit-remaining-subscription-writes": [ "1170" ], "x-ms-providerhub-traffic": [ "True" ], - "mise-correlation-id": [ "0f511f71-1c38-47b0-82d2-665e0a9ba136" ], - "x-ms-request-id": [ "b5f6ea37-222c-4d77-a03e-c85653c41d16" ], - "x-ms-correlation-request-id": [ "fe88308f-8138-4ff6-90d4-ec3001b607d8" ], - "x-ms-routing-request-id": [ "SOUTHEASTASIA:20220802T053715Z:fe88308f-8138-4ff6-90d4-ec3001b607d8" ], + "mise-correlation-id": [ "11b873d7-a2cd-46b1-82c1-f6830bd4b789" ], + "x-ms-request-id": [ "ae011eaf-6458-4dc0-b587-9066bc373126" ], + "x-ms-correlation-request-id": [ "8bc12d5a-a440-424d-b172-d5e33c495992" ], + "x-ms-routing-request-id": [ "EASTUS2EUAP:20230721T043104Z:8bc12d5a-a440-424d-b172-d5e33c495992" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "X-Content-Type-Options": [ "nosniff" ], - "Date": [ "Tue, 02 Aug 2022 05:37:14 GMT" ] + "Date": [ "Fri, 21 Jul 2023 04:31:04 GMT" ] }, "ContentHeaders": { "Content-Length": [ "642" ], "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"id\":\"/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/testStorageMover/providers/Microsoft.StorageMover/storageMovers/testStoMover14068b735/projects/testProject24068b735\",\"name\":\"testProject24068b735\",\"type\":\"microsoft.storagemover/storagemovers/projects\",\"systemData\":{\"createdBy\":\"a000255f-5f09-45e0-a970-9d9ed9cc6453\",\"createdByType\":\"Application\",\"createdAt\":\"2022-08-02T05:37:14.7017283Z\",\"lastModifiedBy\":\"a000255f-5f09-45e0-a970-9d9ed9cc6453\",\"lastModifiedByType\":\"Application\",\"lastModifiedAt\":\"2022-08-02T05:37:14.7017283Z\"},\"properties\":{\"description\":\"test Project description\",\"provisioningState\":\"Succeeded\"}}", + "Content": "{\"id\":\"/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/teststoragemover/providers/Microsoft.StorageMover/storageMovers/testStoMover1hc715gxy/projects/testProject2hc715gxy\",\"name\":\"testProject2hc715gxy\",\"type\":\"microsoft.storagemover/storagemovers/projects\",\"systemData\":{\"createdBy\":\"a000255f-5f09-45e0-a970-9d9ed9cc6453\",\"createdByType\":\"Application\",\"createdAt\":\"2023-07-21T04:31:04.5069445Z\",\"lastModifiedBy\":\"a000255f-5f09-45e0-a970-9d9ed9cc6453\",\"lastModifiedByType\":\"Application\",\"lastModifiedAt\":\"2023-07-21T04:31:04.5069445Z\"},\"properties\":{\"description\":\"test Project description\",\"provisioningState\":\"Succeeded\"}}", "isContentBase64": false } }, - "Update-AzStorageMoverProject+[NoContext]+UpdateExpanded+$PATCH+https://management.azure.com/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/testStorageMover/providers/Microsoft.StorageMover/storageMovers/testStoMover14068b735/projects/testProject24068b735?api-version=2023-03-01+2": { + "Update-AzStorageMoverProject+[NoContext]+UpdateExpanded+$PATCH+https://management.azure.com/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/teststoragemover/providers/Microsoft.StorageMover/storageMovers/testStoMover1hc715gxy/projects/testProject2hc715gxy?api-version=2023-10-01+2": { "Request": { "Method": "PATCH", - "RequestUri": "https://management.azure.com/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/testStorageMover/providers/Microsoft.StorageMover/storageMovers/testStoMover14068b735/projects/testProject24068b735?api-version=2023-03-01", + "RequestUri": "https://management.azure.com/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/teststoragemover/providers/Microsoft.StorageMover/storageMovers/testStoMover1hc715gxy/projects/testProject2hc715gxy?api-version=2023-10-01", "Content": "{\r\n \"properties\": {\r\n \"description\": \"update Project description\"\r\n }\r\n}", "isContentBase64": false, "Headers": { @@ -55,38 +55,39 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "ETag": [ "\"00003208-0000-3400-0000-62e8b80c0000\"" ], - "x-ms-ratelimit-remaining-subscription-writes": [ "1168" ], + "ETag": [ "\"2d010203-0000-3400-0000-64ba0a090000\"" ], + "x-ms-ratelimit-remaining-subscription-writes": [ "1169" ], "x-ms-providerhub-traffic": [ "True" ], - "x-ms-request-id": [ "f4ebc83b-acef-439c-9936-f9a33febc63c" ], - "x-ms-correlation-request-id": [ "c0f28a3b-7e72-4bfa-a227-9a49419f64f0" ], - "x-ms-routing-request-id": [ "SOUTHEASTASIA:20220802T053716Z:c0f28a3b-7e72-4bfa-a227-9a49419f64f0" ], + "mise-correlation-id": [ "74baf9d1-7053-4acb-9cdd-3394bc554ba1" ], + "x-ms-request-id": [ "4b9b2194-14ca-4a93-b612-956a38a8aa00" ], + "x-ms-correlation-request-id": [ "3f1f4fc0-f885-4c73-a620-e1828a7e5efb" ], + "x-ms-routing-request-id": [ "EASTUS2EUAP:20230721T043105Z:3f1f4fc0-f885-4c73-a620-e1828a7e5efb" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "X-Content-Type-Options": [ "nosniff" ], - "Date": [ "Tue, 02 Aug 2022 05:37:16 GMT" ] + "Date": [ "Fri, 21 Jul 2023 04:31:05 GMT" ] }, "ContentHeaders": { - "Content-Length": [ "644" ], + "Content-Length": [ "643" ], "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"id\":\"/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/testStorageMover/providers/Microsoft.StorageMover/storageMovers/testStoMover14068b735/projects/testProject24068b735\",\"name\":\"testProject24068b735\",\"type\":\"microsoft.storagemover/storagemovers/projects\",\"systemData\":{\"createdBy\":\"a000255f-5f09-45e0-a970-9d9ed9cc6453\",\"createdByType\":\"Application\",\"createdAt\":\"2022-08-02T05:37:14.7017283Z\",\"lastModifiedBy\":\"a000255f-5f09-45e0-a970-9d9ed9cc6453\",\"lastModifiedByType\":\"Application\",\"lastModifiedAt\":\"2022-08-02T05:37:16.1235993Z\"},\"properties\":{\"description\":\"update Project description\",\"provisioningState\":\"Succeeded\"}}", + "Content": "{\"id\":\"/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/teststoragemover/providers/Microsoft.StorageMover/storageMovers/testStoMover1hc715gxy/projects/testProject2hc715gxy\",\"name\":\"testProject2hc715gxy\",\"type\":\"microsoft.storagemover/storagemovers/projects\",\"systemData\":{\"createdBy\":\"a000255f-5f09-45e0-a970-9d9ed9cc6453\",\"createdByType\":\"Application\",\"createdAt\":\"2023-07-21T04:31:04.5069445Z\",\"lastModifiedBy\":\"a000255f-5f09-45e0-a970-9d9ed9cc6453\",\"lastModifiedByType\":\"Application\",\"lastModifiedAt\":\"2023-07-21T04:31:05.491379Z\"},\"properties\":{\"description\":\"update Project description\",\"provisioningState\":\"Succeeded\"}}", "isContentBase64": false } }, - "Update-AzStorageMoverProject+[NoContext]+UpdateExpanded+$GET+https://management.azure.com/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/testStorageMover/providers/Microsoft.StorageMover/storageMovers/testStoMover14068b735/projects/testProject24068b735?api-version=2023-03-01+3": { + "Update-AzStorageMoverProject+[NoContext]+UpdateExpanded+$GET+https://management.azure.com/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/teststoragemover/providers/Microsoft.StorageMover/storageMovers/testStoMover1hc715gxy/projects/testProject2hc715gxy?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/testStoMover14068b735/projects/testProject24068b735?api-version=2023-03-01", + "RequestUri": "https://management.azure.com/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/teststoragemover/providers/Microsoft.StorageMover/storageMovers/testStoMover1hc715gxy/projects/testProject2hc715gxy?api-version=2023-10-01", "Content": null, "isContentBase64": false, "Headers": { - "x-ms-unique-id": [ "62" ], - "x-ms-client-request-id": [ "7848cc96-d821-4b93-8354-596f61eb5a05" ], + "x-ms-unique-id": [ "73" ], + "x-ms-client-request-id": [ "0290f495-41cb-4715-b55d-d5d8a641c2ee" ], "CommandName": [ "Get-AzStorageMoverProject" ], "FullCommandName": [ "Get-AzStorageMoverProject_Get" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v8.0.0", "PSVersion/v7.2.5", "Az.StorageMover/0.1.0" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.2.12", "Az.StorageMover/1.0.1" ], "Authorization": [ "[Filtered]" ] }, "ContentHeaders": { @@ -97,22 +98,22 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "ETag": [ "\"00003208-0000-3400-0000-62e8b80c0000\"" ], + "ETag": [ "\"2d010203-0000-3400-0000-64ba0a090000\"" ], "x-ms-ratelimit-remaining-subscription-reads": [ "11964" ], "x-ms-providerhub-traffic": [ "True" ], - "x-ms-request-id": [ "044970ec-9103-4d6e-ab01-6dc9d9e16e91" ], - "x-ms-correlation-request-id": [ "5d857b16-4ebf-45d1-8bec-b8cd895245db" ], - "x-ms-routing-request-id": [ "SOUTHEASTASIA:20220802T053718Z:5d857b16-4ebf-45d1-8bec-b8cd895245db" ], + "x-ms-request-id": [ "5665be05-0962-4c3c-94e3-52f1bc0e2cf5" ], + "x-ms-correlation-request-id": [ "ded4c966-831e-443c-8211-d4e431fc6e89" ], + "x-ms-routing-request-id": [ "EASTUS2EUAP:20230721T043106Z:ded4c966-831e-443c-8211-d4e431fc6e89" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "X-Content-Type-Options": [ "nosniff" ], - "Date": [ "Tue, 02 Aug 2022 05:37:17 GMT" ] + "Date": [ "Fri, 21 Jul 2023 04:31:05 GMT" ] }, "ContentHeaders": { - "Content-Length": [ "644" ], + "Content-Length": [ "643" ], "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"id\":\"/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/testStorageMover/providers/Microsoft.StorageMover/storageMovers/testStoMover14068b735/projects/testProject24068b735\",\"name\":\"testProject24068b735\",\"type\":\"microsoft.storagemover/storagemovers/projects\",\"systemData\":{\"createdBy\":\"a000255f-5f09-45e0-a970-9d9ed9cc6453\",\"createdByType\":\"Application\",\"createdAt\":\"2022-08-02T05:37:14.7017283Z\",\"lastModifiedBy\":\"a000255f-5f09-45e0-a970-9d9ed9cc6453\",\"lastModifiedByType\":\"Application\",\"lastModifiedAt\":\"2022-08-02T05:37:16.1235993Z\"},\"properties\":{\"description\":\"update Project description\",\"provisioningState\":\"Succeeded\"}}", + "Content": "{\"id\":\"/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/teststoragemover/providers/Microsoft.StorageMover/storageMovers/testStoMover1hc715gxy/projects/testProject2hc715gxy\",\"name\":\"testProject2hc715gxy\",\"type\":\"microsoft.storagemover/storagemovers/projects\",\"systemData\":{\"createdBy\":\"a000255f-5f09-45e0-a970-9d9ed9cc6453\",\"createdByType\":\"Application\",\"createdAt\":\"2023-07-21T04:31:04.5069445Z\",\"lastModifiedBy\":\"a000255f-5f09-45e0-a970-9d9ed9cc6453\",\"lastModifiedByType\":\"Application\",\"lastModifiedAt\":\"2023-07-21T04:31:05.491379Z\"},\"properties\":{\"description\":\"update Project description\",\"provisioningState\":\"Succeeded\"}}", "isContentBase64": false } } diff --git a/src/StorageMover/test/Update-AzStorageMoverSmbEndpoint.Tests.ps1 b/src/StorageMover/test/Update-AzStorageMoverSmbEndpoint.Tests.ps1 new file mode 100644 index 000000000000..a4826e2e4e11 --- /dev/null +++ b/src/StorageMover/test/Update-AzStorageMoverSmbEndpoint.Tests.ps1 @@ -0,0 +1,25 @@ +if(($null -eq $TestName) -or ($TestName -contains 'Update-AzStorageMoverSmbEndpoint')) +{ + $loadEnvPath = Join-Path $PSScriptRoot 'loadEnv.ps1' + if (-Not (Test-Path -Path $loadEnvPath)) { + $loadEnvPath = Join-Path $PSScriptRoot '..\loadEnv.ps1' + } + . ($loadEnvPath) + $TestRecordingFile = Join-Path $PSScriptRoot 'Update-AzStorageMoverSmbEndpoint.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-AzStorageMoverSmbEndpoint' { + It 'UpdateExpanded' -skip { + { throw [System.NotImplementedException] } | Should -Not -Throw + } + + It 'UpdateViaIdentityExpanded' -skip { + { throw [System.NotImplementedException] } | Should -Not -Throw + } +} diff --git a/src/StorageMover/test/Update-AzStorageMoverSmbFileShareEndpoint.Tests.ps1 b/src/StorageMover/test/Update-AzStorageMoverSmbFileShareEndpoint.Tests.ps1 new file mode 100644 index 000000000000..284a450b908b --- /dev/null +++ b/src/StorageMover/test/Update-AzStorageMoverSmbFileShareEndpoint.Tests.ps1 @@ -0,0 +1,25 @@ +if(($null -eq $TestName) -or ($TestName -contains 'Update-AzStorageMoverSmbFileShareEndpoint')) +{ + $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' + $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-AzStorageMoverSmbFileShareEndpoint' { + It 'UpdateExpanded' -skip { + { throw [System.NotImplementedException] } | Should -Not -Throw + } + + It 'UpdateViaIdentityExpanded' -skip { + { throw [System.NotImplementedException] } | Should -Not -Throw + } +} diff --git a/src/StorageMover/test/ZUnregister-AzStorageMoverAgent.Tests.ps1 b/src/StorageMover/test/ZUnregister-AzStorageMoverAgent.Tests.ps1 index e370835d7542..27d934ec5060 100644 --- a/src/StorageMover/test/ZUnregister-AzStorageMoverAgent.Tests.ps1 +++ b/src/StorageMover/test/ZUnregister-AzStorageMoverAgent.Tests.ps1 @@ -16,8 +16,10 @@ if(($null -eq $TestName) -or ($TestName -contains 'Unregister-AzStorageMoverAgen Describe 'Unregister-AzStorageMoverAgent' { It 'Delete' { - Unregister-AzStorageMoverAgent -Name $env.AgentName -ResourceGroupName $env.ResourceGroupName -StorageMoverName $env.StorageMoverNameWithAgent -Force - $agents = Get-AzStorageMoverAgent -ResourceGroupName $env.ResourceGroupName -StorageMoverName $env.StorageMoverNameWithAgent - $agents.Name | Should -Not -Contain $env.AgentName + Unregister-AzStorageMoverAgent -Name $env.AgentName -ResourceGroupName $env.ResourceGroupName -StorageMoverName $env.StorageMoverNameWithAgent -Force -AsJob + $agents = Get-AzStorageMoverAgent -ResourceGroupName $env.ResourceGroupName -StorageMoverName $env.StorageMoverNameWithAgent -Name $env.AgentName + $agents.Name | Should -Be $env.AgentName + $agents.AgentStatus | Should -Be "Unregistering" + $agents.ProvisioningState | Should -Be "Deleting" } } diff --git a/src/StorageMover/test/env.json b/src/StorageMover/test/env.json index 945f8b4c7e5f..87e97e154747 100644 --- a/src/StorageMover/test/env.json +++ b/src/StorageMover/test/env.json @@ -1,23 +1,23 @@ { + "ContainerName": "containerhc715gxy", + "ResourceGroupName": "teststoragemover", + "RandomString": "hc715gxy", + "ProjectName2": "testProject2hc715gxy", "Location": "eastus2euap", + "StorageAccountName": "storacchc715gxy", "Tenant": "72f988bf-86f1-41af-91ab-2d7cd011db47", - "InitialStoMoverName": "testStoMover14068b735", + "ContainerEndpointName": "containerEndpointhc715gxy", + "ProjectName": "testProjecthc715gxy", + "InitialSMDescription": "initial test SM description", "SubscriptionId": "45b60d85-fd72-427a-a708-f994d26e593e", - "ProjectName2": "testProject24068b735", - "RandomString": "4068b735", - "StorageAccountName": "storacc4068b735", - "ResourceGroupName": "testStorageMover", - "StoraccId": "/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/testStorageMover/providers/Microsoft.Storage/storageAccounts/storacc4068b735", "InitialStoMoverTag": { - "tag2": "value2", - "tag1": "value1" + "tag1": "value1", + "tag2": "value2" }, - "ContainerName": "container4068b735", - "JobDefinitionName": "testJob4068b735", - "StorageMoverNameWithAgent": "testStorageMover2", - "NfsEndpointName": "nfsEndpoint4068b735", - "ProjectName": "testProject4068b735", - "InitialSMDescription": "initial test SM description", - "AgentName": "testagent7", - "ContainerEndpointName": "containerEndpoint4068b735" + "JobDefinitionName": "testJobhc715gxy", + "StoraccId": "/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/teststoragemover/providers/Microsoft.Storage/storageAccounts/storacchc715gxy", + "AgentName": "testagent1", + "StorageMoverNameWithAgent": "testmoverpreview1", + "NfsEndpointName": "nfsEndpointhc715gxy", + "InitialStoMoverName": "testStoMover1hc715gxy" } diff --git a/src/StorageMover/test/utils.ps1 b/src/StorageMover/test/utils.ps1 index 9422f2e5014f..72a166f5014a 100644 --- a/src/StorageMover/test/utils.ps1 +++ b/src/StorageMover/test/utils.ps1 @@ -25,9 +25,9 @@ function setupEnv() { } $env.RandomString = (RandomString $false 8) - $env.ResourceGroupName = "testStorageMover" - $env.StorageMoverNameWithAgent = "testStorageMover2" - $env.AgentName = "testagent7" + $env.ResourceGroupName = "teststoragemover" + $env.StorageMoverNameWithAgent = "testmoverpreview1" + $env.AgentName = "testagent1" $env.Location = "eastus2euap" $env.InitialStoMoverName = "testStoMover1" + $env.RandomString $env.InitialSMDescription = "initial test SM description" @@ -61,6 +61,6 @@ function setupEnv() { } function cleanupEnv() { # Clean resources you create for testing - Remove-AzResourceGroup -Name $env.ResourceGroupName + # Remove-AzResourceGroup -Name $env.ResourceGroupName } diff --git a/tools/StaticAnalysis/Exceptions/Az.StorageMover/BreakingChangeIssues.csv b/tools/StaticAnalysis/Exceptions/Az.StorageMover/BreakingChangeIssues.csv new file mode 100644 index 000000000000..f115957ebca1 --- /dev/null +++ b/tools/StaticAnalysis/Exceptions/Az.StorageMover/BreakingChangeIssues.csv @@ -0,0 +1,121 @@ +"Module","ClassName","Target","Severity","ProblemId","Description","Remediation" +"Az.StorageMover","Get-AzStorageMover","Get-AzStorageMover","0","3010","The property 'SystemDataCreatedByType' of type 'Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IStorageMover' has been removed.","Add the property 'SystemDataCreatedByType' back to type 'Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IStorageMover'." +"Az.StorageMover","Get-AzStorageMover","Get-AzStorageMover","0","3010","The property 'SystemDataLastModifiedByType' of type 'Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IStorageMover' has been removed.","Add the property 'SystemDataLastModifiedByType' back to type 'Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IStorageMover'." +"Az.StorageMover","Get-AzStorageMover","Get-AzStorageMover","0","3010","The property 'SystemDataCreatedAt' of type 'Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IStorageMover' has been removed.","Add the property 'SystemDataCreatedAt' back to type 'Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IStorageMover'." +"Az.StorageMover","Get-AzStorageMover","Get-AzStorageMover","0","3010","The property 'SystemDataLastModifiedAt' of type 'Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IStorageMover' has been removed.","Add the property 'SystemDataLastModifiedAt' back to type 'Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IStorageMover'." +"Az.StorageMover","Get-AzStorageMover","Get-AzStorageMover","0","3010","The property 'SystemDataCreatedBy' of type 'Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IStorageMover' has been removed.","Add the property 'SystemDataCreatedBy' back to type 'Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IStorageMover'." +"Az.StorageMover","Get-AzStorageMover","Get-AzStorageMover","0","3010","The property 'SystemDataLastModifiedBy' of type 'Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IStorageMover' has been removed.","Add the property 'SystemDataLastModifiedBy' back to type 'Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IStorageMover'." +"Az.StorageMover","Get-AzStorageMoverAgent","Get-AzStorageMoverAgent","0","3010","The property 'SystemDataLastModifiedByType' of type 'Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IAgent' has been removed.","Add the property 'SystemDataLastModifiedByType' back to type 'Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IAgent'." +"Az.StorageMover","Get-AzStorageMoverAgent","Get-AzStorageMoverAgent","0","3010","The property 'SystemDataCreatedByType' of type 'Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IAgent' has been removed.","Add the property 'SystemDataCreatedByType' back to type 'Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IAgent'." +"Az.StorageMover","Get-AzStorageMoverAgent","Get-AzStorageMoverAgent","0","3010","The property 'SystemDataLastModifiedAt' of type 'Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IAgent' has been removed.","Add the property 'SystemDataLastModifiedAt' back to type 'Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IAgent'." +"Az.StorageMover","Get-AzStorageMoverAgent","Get-AzStorageMoverAgent","0","3010","The property 'SystemDataCreatedAt' of type 'Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IAgent' has been removed.","Add the property 'SystemDataCreatedAt' back to type 'Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IAgent'." +"Az.StorageMover","Get-AzStorageMoverAgent","Get-AzStorageMoverAgent","0","3010","The property 'SystemDataCreatedBy' of type 'Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IAgent' has been removed.","Add the property 'SystemDataCreatedBy' back to type 'Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IAgent'." +"Az.StorageMover","Get-AzStorageMoverAgent","Get-AzStorageMoverAgent","0","3010","The property 'SystemDataLastModifiedBy' of type 'Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IAgent' has been removed.","Add the property 'SystemDataLastModifiedBy' back to type 'Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IAgent'." +"Az.StorageMover","Get-AzStorageMoverEndpoint","Get-AzStorageMoverEndpoint","0","3010","The property 'SystemDataCreatedByType' of type 'Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IEndpoint' has been removed.","Add the property 'SystemDataCreatedByType' back to type 'Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IEndpoint'." +"Az.StorageMover","Get-AzStorageMoverEndpoint","Get-AzStorageMoverEndpoint","0","3010","The property 'SystemDataLastModifiedByType' of type 'Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IEndpoint' has been removed.","Add the property 'SystemDataLastModifiedByType' back to type 'Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IEndpoint'." +"Az.StorageMover","Get-AzStorageMoverEndpoint","Get-AzStorageMoverEndpoint","0","3010","The property 'SystemDataCreatedAt' of type 'Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IEndpoint' has been removed.","Add the property 'SystemDataCreatedAt' back to type 'Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IEndpoint'." +"Az.StorageMover","Get-AzStorageMoverEndpoint","Get-AzStorageMoverEndpoint","0","3010","The property 'SystemDataLastModifiedAt' of type 'Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IEndpoint' has been removed.","Add the property 'SystemDataLastModifiedAt' back to type 'Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IEndpoint'." +"Az.StorageMover","Get-AzStorageMoverEndpoint","Get-AzStorageMoverEndpoint","0","3010","The property 'SystemDataCreatedBy' of type 'Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IEndpoint' has been removed.","Add the property 'SystemDataCreatedBy' back to type 'Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IEndpoint'." +"Az.StorageMover","Get-AzStorageMoverEndpoint","Get-AzStorageMoverEndpoint","0","3010","The property 'SystemDataLastModifiedBy' of type 'Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IEndpoint' has been removed.","Add the property 'SystemDataLastModifiedBy' back to type 'Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IEndpoint'." +"Az.StorageMover","Get-AzStorageMoverJobDefinition","Get-AzStorageMoverJobDefinition","0","3010","The property 'SystemDataLastModifiedByType' of type 'Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobDefinition' has been removed.","Add the property 'SystemDataLastModifiedByType' back to type 'Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobDefinition'." +"Az.StorageMover","Get-AzStorageMoverJobDefinition","Get-AzStorageMoverJobDefinition","0","3010","The property 'SystemDataCreatedByType' of type 'Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobDefinition' has been removed.","Add the property 'SystemDataCreatedByType' back to type 'Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobDefinition'." +"Az.StorageMover","Get-AzStorageMoverJobDefinition","Get-AzStorageMoverJobDefinition","0","3010","The property 'SystemDataLastModifiedAt' of type 'Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobDefinition' has been removed.","Add the property 'SystemDataLastModifiedAt' back to type 'Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobDefinition'." +"Az.StorageMover","Get-AzStorageMoverJobDefinition","Get-AzStorageMoverJobDefinition","0","3010","The property 'SystemDataCreatedAt' of type 'Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobDefinition' has been removed.","Add the property 'SystemDataCreatedAt' back to type 'Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobDefinition'." +"Az.StorageMover","Get-AzStorageMoverJobDefinition","Get-AzStorageMoverJobDefinition","0","3010","The property 'SystemDataLastModifiedBy' of type 'Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobDefinition' has been removed.","Add the property 'SystemDataLastModifiedBy' back to type 'Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobDefinition'." +"Az.StorageMover","Get-AzStorageMoverJobDefinition","Get-AzStorageMoverJobDefinition","0","3010","The property 'SystemDataCreatedBy' of type 'Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobDefinition' has been removed.","Add the property 'SystemDataCreatedBy' back to type 'Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobDefinition'." +"Az.StorageMover","Get-AzStorageMoverJobRun","Get-AzStorageMoverJobRun","0","3010","The property 'SystemDataCreatedByType' of type 'Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobRun' has been removed.","Add the property 'SystemDataCreatedByType' back to type 'Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobRun'." +"Az.StorageMover","Get-AzStorageMoverJobRun","Get-AzStorageMoverJobRun","0","3010","The property 'SystemDataLastModifiedByType' of type 'Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobRun' has been removed.","Add the property 'SystemDataLastModifiedByType' back to type 'Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobRun'." +"Az.StorageMover","Get-AzStorageMoverJobRun","Get-AzStorageMoverJobRun","0","3010","The property 'SystemDataLastModifiedAt' of type 'Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobRun' has been removed.","Add the property 'SystemDataLastModifiedAt' back to type 'Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobRun'." +"Az.StorageMover","Get-AzStorageMoverJobRun","Get-AzStorageMoverJobRun","0","3010","The property 'SystemDataCreatedAt' of type 'Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobRun' has been removed.","Add the property 'SystemDataCreatedAt' back to type 'Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobRun'." +"Az.StorageMover","Get-AzStorageMoverJobRun","Get-AzStorageMoverJobRun","0","3010","The property 'SystemDataLastModifiedBy' of type 'Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobRun' has been removed.","Add the property 'SystemDataLastModifiedBy' back to type 'Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobRun'." +"Az.StorageMover","Get-AzStorageMoverJobRun","Get-AzStorageMoverJobRun","0","3010","The property 'SystemDataCreatedBy' of type 'Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobRun' has been removed.","Add the property 'SystemDataCreatedBy' back to type 'Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobRun'." +"Az.StorageMover","Get-AzStorageMoverProject","Get-AzStorageMoverProject","0","3010","The property 'SystemDataCreatedByType' of type 'Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IProject' has been removed.","Add the property 'SystemDataCreatedByType' back to type 'Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IProject'." +"Az.StorageMover","Get-AzStorageMoverProject","Get-AzStorageMoverProject","0","3010","The property 'SystemDataLastModifiedByType' of type 'Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IProject' has been removed.","Add the property 'SystemDataLastModifiedByType' back to type 'Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IProject'." +"Az.StorageMover","Get-AzStorageMoverProject","Get-AzStorageMoverProject","0","3010","The property 'SystemDataCreatedAt' of type 'Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IProject' has been removed.","Add the property 'SystemDataCreatedAt' back to type 'Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IProject'." +"Az.StorageMover","Get-AzStorageMoverProject","Get-AzStorageMoverProject","0","3010","The property 'SystemDataLastModifiedAt' of type 'Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IProject' has been removed.","Add the property 'SystemDataLastModifiedAt' back to type 'Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IProject'." +"Az.StorageMover","Get-AzStorageMoverProject","Get-AzStorageMoverProject","0","3010","The property 'SystemDataCreatedBy' of type 'Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IProject' has been removed.","Add the property 'SystemDataCreatedBy' back to type 'Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IProject'." +"Az.StorageMover","Get-AzStorageMoverProject","Get-AzStorageMoverProject","0","3010","The property 'SystemDataLastModifiedBy' of type 'Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IProject' has been removed.","Add the property 'SystemDataLastModifiedBy' back to type 'Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IProject'." +"Az.StorageMover","New-AzStorageMover","New-AzStorageMover","0","3010","The property 'SystemDataCreatedByType' of type 'Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IStorageMover' has been removed.","Add the property 'SystemDataCreatedByType' back to type 'Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IStorageMover'." +"Az.StorageMover","New-AzStorageMover","New-AzStorageMover","0","3010","The property 'SystemDataLastModifiedByType' of type 'Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IStorageMover' has been removed.","Add the property 'SystemDataLastModifiedByType' back to type 'Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IStorageMover'." +"Az.StorageMover","New-AzStorageMover","New-AzStorageMover","0","3010","The property 'SystemDataCreatedAt' of type 'Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IStorageMover' has been removed.","Add the property 'SystemDataCreatedAt' back to type 'Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IStorageMover'." +"Az.StorageMover","New-AzStorageMover","New-AzStorageMover","0","3010","The property 'SystemDataLastModifiedAt' of type 'Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IStorageMover' has been removed.","Add the property 'SystemDataLastModifiedAt' back to type 'Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IStorageMover'." +"Az.StorageMover","New-AzStorageMover","New-AzStorageMover","0","3010","The property 'SystemDataCreatedBy' of type 'Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IStorageMover' has been removed.","Add the property 'SystemDataCreatedBy' back to type 'Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IStorageMover'." +"Az.StorageMover","New-AzStorageMover","New-AzStorageMover","0","3010","The property 'SystemDataLastModifiedBy' of type 'Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IStorageMover' has been removed.","Add the property 'SystemDataLastModifiedBy' back to type 'Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IStorageMover'." +"Az.StorageMover","New-AzStorageMover","New-AzStorageMover","0","3010","The property 'SystemDataCreatedByType' of type 'Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IStorageMover' has been removed.","Add the property 'SystemDataCreatedByType' back to type 'Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IStorageMover'." +"Az.StorageMover","New-AzStorageMover","New-AzStorageMover","0","3010","The property 'SystemDataLastModifiedByType' of type 'Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IStorageMover' has been removed.","Add the property 'SystemDataLastModifiedByType' back to type 'Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IStorageMover'." +"Az.StorageMover","New-AzStorageMover","New-AzStorageMover","0","3010","The property 'SystemDataCreatedAt' of type 'Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IStorageMover' has been removed.","Add the property 'SystemDataCreatedAt' back to type 'Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IStorageMover'." +"Az.StorageMover","New-AzStorageMover","New-AzStorageMover","0","3010","The property 'SystemDataLastModifiedAt' of type 'Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IStorageMover' has been removed.","Add the property 'SystemDataLastModifiedAt' back to type 'Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IStorageMover'." +"Az.StorageMover","New-AzStorageMover","New-AzStorageMover","0","3010","The property 'SystemDataCreatedBy' of type 'Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IStorageMover' has been removed.","Add the property 'SystemDataCreatedBy' back to type 'Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IStorageMover'." +"Az.StorageMover","New-AzStorageMover","New-AzStorageMover","0","3010","The property 'SystemDataLastModifiedBy' of type 'Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IStorageMover' has been removed.","Add the property 'SystemDataLastModifiedBy' back to type 'Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IStorageMover'." +"Az.StorageMover","New-AzStorageMoverAzStorageContainerEndpoint","New-AzStorageMoverAzStorageContainerEndpoint","0","3010","The property 'SystemDataCreatedByType' of type 'Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IEndpoint' has been removed.","Add the property 'SystemDataCreatedByType' back to type 'Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IEndpoint'." +"Az.StorageMover","New-AzStorageMoverAzStorageContainerEndpoint","New-AzStorageMoverAzStorageContainerEndpoint","0","3010","The property 'SystemDataLastModifiedByType' of type 'Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IEndpoint' has been removed.","Add the property 'SystemDataLastModifiedByType' back to type 'Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IEndpoint'." +"Az.StorageMover","New-AzStorageMoverAzStorageContainerEndpoint","New-AzStorageMoverAzStorageContainerEndpoint","0","3010","The property 'SystemDataCreatedAt' of type 'Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IEndpoint' has been removed.","Add the property 'SystemDataCreatedAt' back to type 'Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IEndpoint'." +"Az.StorageMover","New-AzStorageMoverAzStorageContainerEndpoint","New-AzStorageMoverAzStorageContainerEndpoint","0","3010","The property 'SystemDataLastModifiedAt' of type 'Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IEndpoint' has been removed.","Add the property 'SystemDataLastModifiedAt' back to type 'Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IEndpoint'." +"Az.StorageMover","New-AzStorageMoverAzStorageContainerEndpoint","New-AzStorageMoverAzStorageContainerEndpoint","0","3010","The property 'SystemDataCreatedBy' of type 'Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IEndpoint' has been removed.","Add the property 'SystemDataCreatedBy' back to type 'Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IEndpoint'." +"Az.StorageMover","New-AzStorageMoverAzStorageContainerEndpoint","New-AzStorageMoverAzStorageContainerEndpoint","0","3010","The property 'SystemDataLastModifiedBy' of type 'Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IEndpoint' has been removed.","Add the property 'SystemDataLastModifiedBy' back to type 'Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IEndpoint'." +"Az.StorageMover","New-AzStorageMoverJobDefinition","New-AzStorageMoverJobDefinition","0","3010","The property 'SystemDataLastModifiedByType' of type 'Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobDefinition' has been removed.","Add the property 'SystemDataLastModifiedByType' back to type 'Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobDefinition'." +"Az.StorageMover","New-AzStorageMoverJobDefinition","New-AzStorageMoverJobDefinition","0","3010","The property 'SystemDataCreatedByType' of type 'Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobDefinition' has been removed.","Add the property 'SystemDataCreatedByType' back to type 'Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobDefinition'." +"Az.StorageMover","New-AzStorageMoverJobDefinition","New-AzStorageMoverJobDefinition","0","3010","The property 'SystemDataLastModifiedAt' of type 'Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobDefinition' has been removed.","Add the property 'SystemDataLastModifiedAt' back to type 'Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobDefinition'." +"Az.StorageMover","New-AzStorageMoverJobDefinition","New-AzStorageMoverJobDefinition","0","3010","The property 'SystemDataCreatedAt' of type 'Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobDefinition' has been removed.","Add the property 'SystemDataCreatedAt' back to type 'Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobDefinition'." +"Az.StorageMover","New-AzStorageMoverJobDefinition","New-AzStorageMoverJobDefinition","0","3010","The property 'SystemDataLastModifiedBy' of type 'Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobDefinition' has been removed.","Add the property 'SystemDataLastModifiedBy' back to type 'Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobDefinition'." +"Az.StorageMover","New-AzStorageMoverJobDefinition","New-AzStorageMoverJobDefinition","0","3010","The property 'SystemDataCreatedBy' of type 'Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobDefinition' has been removed.","Add the property 'SystemDataCreatedBy' back to type 'Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobDefinition'." +"Az.StorageMover","New-AzStorageMoverJobDefinition","New-AzStorageMoverJobDefinition","0","3010","The property 'SystemDataLastModifiedByType' of type 'Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobDefinition' has been removed.","Add the property 'SystemDataLastModifiedByType' back to type 'Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobDefinition'." +"Az.StorageMover","New-AzStorageMoverJobDefinition","New-AzStorageMoverJobDefinition","0","3010","The property 'SystemDataCreatedByType' of type 'Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobDefinition' has been removed.","Add the property 'SystemDataCreatedByType' back to type 'Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobDefinition'." +"Az.StorageMover","New-AzStorageMoverJobDefinition","New-AzStorageMoverJobDefinition","0","3010","The property 'SystemDataLastModifiedAt' of type 'Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobDefinition' has been removed.","Add the property 'SystemDataLastModifiedAt' back to type 'Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobDefinition'." +"Az.StorageMover","New-AzStorageMoverJobDefinition","New-AzStorageMoverJobDefinition","0","3010","The property 'SystemDataCreatedAt' of type 'Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobDefinition' has been removed.","Add the property 'SystemDataCreatedAt' back to type 'Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobDefinition'." +"Az.StorageMover","New-AzStorageMoverJobDefinition","New-AzStorageMoverJobDefinition","0","3010","The property 'SystemDataLastModifiedBy' of type 'Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobDefinition' has been removed.","Add the property 'SystemDataLastModifiedBy' back to type 'Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobDefinition'." +"Az.StorageMover","New-AzStorageMoverJobDefinition","New-AzStorageMoverJobDefinition","0","3010","The property 'SystemDataCreatedBy' of type 'Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobDefinition' has been removed.","Add the property 'SystemDataCreatedBy' back to type 'Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobDefinition'." +"Az.StorageMover","New-AzStorageMoverNfsEndpoint","New-AzStorageMoverNfsEndpoint","0","3010","The property 'SystemDataCreatedByType' of type 'Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IEndpoint' has been removed.","Add the property 'SystemDataCreatedByType' back to type 'Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IEndpoint'." +"Az.StorageMover","New-AzStorageMoverNfsEndpoint","New-AzStorageMoverNfsEndpoint","0","3010","The property 'SystemDataLastModifiedByType' of type 'Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IEndpoint' has been removed.","Add the property 'SystemDataLastModifiedByType' back to type 'Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IEndpoint'." +"Az.StorageMover","New-AzStorageMoverNfsEndpoint","New-AzStorageMoverNfsEndpoint","0","3010","The property 'SystemDataCreatedAt' of type 'Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IEndpoint' has been removed.","Add the property 'SystemDataCreatedAt' back to type 'Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IEndpoint'." +"Az.StorageMover","New-AzStorageMoverNfsEndpoint","New-AzStorageMoverNfsEndpoint","0","3010","The property 'SystemDataLastModifiedAt' of type 'Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IEndpoint' has been removed.","Add the property 'SystemDataLastModifiedAt' back to type 'Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IEndpoint'." +"Az.StorageMover","New-AzStorageMoverNfsEndpoint","New-AzStorageMoverNfsEndpoint","0","3010","The property 'SystemDataCreatedBy' of type 'Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IEndpoint' has been removed.","Add the property 'SystemDataCreatedBy' back to type 'Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IEndpoint'." +"Az.StorageMover","New-AzStorageMoverNfsEndpoint","New-AzStorageMoverNfsEndpoint","0","3010","The property 'SystemDataLastModifiedBy' of type 'Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IEndpoint' has been removed.","Add the property 'SystemDataLastModifiedBy' back to type 'Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IEndpoint'." +"Az.StorageMover","New-AzStorageMoverProject","New-AzStorageMoverProject","0","3010","The property 'SystemDataCreatedByType' of type 'Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IProject' has been removed.","Add the property 'SystemDataCreatedByType' back to type 'Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IProject'." +"Az.StorageMover","New-AzStorageMoverProject","New-AzStorageMoverProject","0","3010","The property 'SystemDataLastModifiedByType' of type 'Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IProject' has been removed.","Add the property 'SystemDataLastModifiedByType' back to type 'Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IProject'." +"Az.StorageMover","New-AzStorageMoverProject","New-AzStorageMoverProject","0","3010","The property 'SystemDataCreatedAt' of type 'Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IProject' has been removed.","Add the property 'SystemDataCreatedAt' back to type 'Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IProject'." +"Az.StorageMover","New-AzStorageMoverProject","New-AzStorageMoverProject","0","3010","The property 'SystemDataLastModifiedAt' of type 'Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IProject' has been removed.","Add the property 'SystemDataLastModifiedAt' back to type 'Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IProject'." +"Az.StorageMover","New-AzStorageMoverProject","New-AzStorageMoverProject","0","3010","The property 'SystemDataCreatedBy' of type 'Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IProject' has been removed.","Add the property 'SystemDataCreatedBy' back to type 'Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IProject'." +"Az.StorageMover","New-AzStorageMoverProject","New-AzStorageMoverProject","0","3010","The property 'SystemDataLastModifiedBy' of type 'Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IProject' has been removed.","Add the property 'SystemDataLastModifiedBy' back to type 'Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IProject'." +"Az.StorageMover","New-AzStorageMoverProject","New-AzStorageMoverProject","0","3010","The property 'SystemDataCreatedByType' of type 'Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IProject' has been removed.","Add the property 'SystemDataCreatedByType' back to type 'Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IProject'." +"Az.StorageMover","New-AzStorageMoverProject","New-AzStorageMoverProject","0","3010","The property 'SystemDataLastModifiedByType' of type 'Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IProject' has been removed.","Add the property 'SystemDataLastModifiedByType' back to type 'Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IProject'." +"Az.StorageMover","New-AzStorageMoverProject","New-AzStorageMoverProject","0","3010","The property 'SystemDataCreatedAt' of type 'Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IProject' has been removed.","Add the property 'SystemDataCreatedAt' back to type 'Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IProject'." +"Az.StorageMover","New-AzStorageMoverProject","New-AzStorageMoverProject","0","3010","The property 'SystemDataLastModifiedAt' of type 'Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IProject' has been removed.","Add the property 'SystemDataLastModifiedAt' back to type 'Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IProject'." +"Az.StorageMover","New-AzStorageMoverProject","New-AzStorageMoverProject","0","3010","The property 'SystemDataCreatedBy' of type 'Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IProject' has been removed.","Add the property 'SystemDataCreatedBy' back to type 'Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IProject'." +"Az.StorageMover","New-AzStorageMoverProject","New-AzStorageMoverProject","0","3010","The property 'SystemDataLastModifiedBy' of type 'Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IProject' has been removed.","Add the property 'SystemDataLastModifiedBy' back to type 'Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IProject'." +"Az.StorageMover","Update-AzStorageMover","Update-AzStorageMover","0","3010","The property 'SystemDataCreatedByType' of type 'Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IStorageMover' has been removed.","Add the property 'SystemDataCreatedByType' back to type 'Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IStorageMover'." +"Az.StorageMover","Update-AzStorageMover","Update-AzStorageMover","0","3010","The property 'SystemDataLastModifiedByType' of type 'Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IStorageMover' has been removed.","Add the property 'SystemDataLastModifiedByType' back to type 'Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IStorageMover'." +"Az.StorageMover","Update-AzStorageMover","Update-AzStorageMover","0","3010","The property 'SystemDataCreatedAt' of type 'Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IStorageMover' has been removed.","Add the property 'SystemDataCreatedAt' back to type 'Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IStorageMover'." +"Az.StorageMover","Update-AzStorageMover","Update-AzStorageMover","0","3010","The property 'SystemDataLastModifiedAt' of type 'Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IStorageMover' has been removed.","Add the property 'SystemDataLastModifiedAt' back to type 'Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IStorageMover'." +"Az.StorageMover","Update-AzStorageMover","Update-AzStorageMover","0","3010","The property 'SystemDataCreatedBy' of type 'Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IStorageMover' has been removed.","Add the property 'SystemDataCreatedBy' back to type 'Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IStorageMover'." +"Az.StorageMover","Update-AzStorageMover","Update-AzStorageMover","0","3010","The property 'SystemDataLastModifiedBy' of type 'Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IStorageMover' has been removed.","Add the property 'SystemDataLastModifiedBy' back to type 'Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IStorageMover'." +"Az.StorageMover","Update-AzStorageMoverAgent","Update-AzStorageMoverAgent","0","3010","The property 'SystemDataLastModifiedByType' of type 'Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IAgent' has been removed.","Add the property 'SystemDataLastModifiedByType' back to type 'Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IAgent'." +"Az.StorageMover","Update-AzStorageMoverAgent","Update-AzStorageMoverAgent","0","3010","The property 'SystemDataCreatedByType' of type 'Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IAgent' has been removed.","Add the property 'SystemDataCreatedByType' back to type 'Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IAgent'." +"Az.StorageMover","Update-AzStorageMoverAgent","Update-AzStorageMoverAgent","0","3010","The property 'SystemDataLastModifiedAt' of type 'Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IAgent' has been removed.","Add the property 'SystemDataLastModifiedAt' back to type 'Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IAgent'." +"Az.StorageMover","Update-AzStorageMoverAgent","Update-AzStorageMoverAgent","0","3010","The property 'SystemDataCreatedAt' of type 'Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IAgent' has been removed.","Add the property 'SystemDataCreatedAt' back to type 'Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IAgent'." +"Az.StorageMover","Update-AzStorageMoverAgent","Update-AzStorageMoverAgent","0","3010","The property 'SystemDataCreatedBy' of type 'Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IAgent' has been removed.","Add the property 'SystemDataCreatedBy' back to type 'Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IAgent'." +"Az.StorageMover","Update-AzStorageMoverAgent","Update-AzStorageMoverAgent","0","3010","The property 'SystemDataLastModifiedBy' of type 'Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IAgent' has been removed.","Add the property 'SystemDataLastModifiedBy' back to type 'Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IAgent'." +"Az.StorageMover","Update-AzStorageMoverAzStorageContainerEndpoint","Update-AzStorageMoverAzStorageContainerEndpoint","0","3010","The property 'SystemDataCreatedByType' of type 'Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IEndpoint' has been removed.","Add the property 'SystemDataCreatedByType' back to type 'Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IEndpoint'." +"Az.StorageMover","Update-AzStorageMoverAzStorageContainerEndpoint","Update-AzStorageMoverAzStorageContainerEndpoint","0","3010","The property 'SystemDataLastModifiedByType' of type 'Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IEndpoint' has been removed.","Add the property 'SystemDataLastModifiedByType' back to type 'Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IEndpoint'." +"Az.StorageMover","Update-AzStorageMoverAzStorageContainerEndpoint","Update-AzStorageMoverAzStorageContainerEndpoint","0","3010","The property 'SystemDataCreatedAt' of type 'Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IEndpoint' has been removed.","Add the property 'SystemDataCreatedAt' back to type 'Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IEndpoint'." +"Az.StorageMover","Update-AzStorageMoverAzStorageContainerEndpoint","Update-AzStorageMoverAzStorageContainerEndpoint","0","3010","The property 'SystemDataLastModifiedAt' of type 'Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IEndpoint' has been removed.","Add the property 'SystemDataLastModifiedAt' back to type 'Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IEndpoint'." +"Az.StorageMover","Update-AzStorageMoverAzStorageContainerEndpoint","Update-AzStorageMoverAzStorageContainerEndpoint","0","3010","The property 'SystemDataCreatedBy' of type 'Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IEndpoint' has been removed.","Add the property 'SystemDataCreatedBy' back to type 'Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IEndpoint'." +"Az.StorageMover","Update-AzStorageMoverAzStorageContainerEndpoint","Update-AzStorageMoverAzStorageContainerEndpoint","0","3010","The property 'SystemDataLastModifiedBy' of type 'Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IEndpoint' has been removed.","Add the property 'SystemDataLastModifiedBy' back to type 'Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IEndpoint'." +"Az.StorageMover","Update-AzStorageMoverJobDefinition","Update-AzStorageMoverJobDefinition","0","3010","The property 'SystemDataLastModifiedByType' of type 'Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobDefinition' has been removed.","Add the property 'SystemDataLastModifiedByType' back to type 'Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobDefinition'." +"Az.StorageMover","Update-AzStorageMoverJobDefinition","Update-AzStorageMoverJobDefinition","0","3010","The property 'SystemDataCreatedByType' of type 'Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobDefinition' has been removed.","Add the property 'SystemDataCreatedByType' back to type 'Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobDefinition'." +"Az.StorageMover","Update-AzStorageMoverJobDefinition","Update-AzStorageMoverJobDefinition","0","3010","The property 'SystemDataLastModifiedAt' of type 'Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobDefinition' has been removed.","Add the property 'SystemDataLastModifiedAt' back to type 'Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobDefinition'." +"Az.StorageMover","Update-AzStorageMoverJobDefinition","Update-AzStorageMoverJobDefinition","0","3010","The property 'SystemDataCreatedAt' of type 'Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobDefinition' has been removed.","Add the property 'SystemDataCreatedAt' back to type 'Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobDefinition'." +"Az.StorageMover","Update-AzStorageMoverJobDefinition","Update-AzStorageMoverJobDefinition","0","3010","The property 'SystemDataLastModifiedBy' of type 'Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobDefinition' has been removed.","Add the property 'SystemDataLastModifiedBy' back to type 'Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobDefinition'." +"Az.StorageMover","Update-AzStorageMoverJobDefinition","Update-AzStorageMoverJobDefinition","0","3010","The property 'SystemDataCreatedBy' of type 'Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobDefinition' has been removed.","Add the property 'SystemDataCreatedBy' back to type 'Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IJobDefinition'." +"Az.StorageMover","Update-AzStorageMoverNfsEndpoint","Update-AzStorageMoverNfsEndpoint","0","3010","The property 'SystemDataCreatedByType' of type 'Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IEndpoint' has been removed.","Add the property 'SystemDataCreatedByType' back to type 'Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IEndpoint'." +"Az.StorageMover","Update-AzStorageMoverNfsEndpoint","Update-AzStorageMoverNfsEndpoint","0","3010","The property 'SystemDataLastModifiedByType' of type 'Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IEndpoint' has been removed.","Add the property 'SystemDataLastModifiedByType' back to type 'Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IEndpoint'." +"Az.StorageMover","Update-AzStorageMoverNfsEndpoint","Update-AzStorageMoverNfsEndpoint","0","3010","The property 'SystemDataCreatedAt' of type 'Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IEndpoint' has been removed.","Add the property 'SystemDataCreatedAt' back to type 'Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IEndpoint'." +"Az.StorageMover","Update-AzStorageMoverNfsEndpoint","Update-AzStorageMoverNfsEndpoint","0","3010","The property 'SystemDataLastModifiedAt' of type 'Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IEndpoint' has been removed.","Add the property 'SystemDataLastModifiedAt' back to type 'Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IEndpoint'." +"Az.StorageMover","Update-AzStorageMoverNfsEndpoint","Update-AzStorageMoverNfsEndpoint","0","3010","The property 'SystemDataCreatedBy' of type 'Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IEndpoint' has been removed.","Add the property 'SystemDataCreatedBy' back to type 'Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IEndpoint'." +"Az.StorageMover","Update-AzStorageMoverNfsEndpoint","Update-AzStorageMoverNfsEndpoint","0","3010","The property 'SystemDataLastModifiedBy' of type 'Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IEndpoint' has been removed.","Add the property 'SystemDataLastModifiedBy' back to type 'Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IEndpoint'." +"Az.StorageMover","Update-AzStorageMoverProject","Update-AzStorageMoverProject","0","3010","The property 'SystemDataCreatedByType' of type 'Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IProject' has been removed.","Add the property 'SystemDataCreatedByType' back to type 'Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IProject'." +"Az.StorageMover","Update-AzStorageMoverProject","Update-AzStorageMoverProject","0","3010","The property 'SystemDataLastModifiedByType' of type 'Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IProject' has been removed.","Add the property 'SystemDataLastModifiedByType' back to type 'Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IProject'." +"Az.StorageMover","Update-AzStorageMoverProject","Update-AzStorageMoverProject","0","3010","The property 'SystemDataCreatedAt' of type 'Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IProject' has been removed.","Add the property 'SystemDataCreatedAt' back to type 'Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IProject'." +"Az.StorageMover","Update-AzStorageMoverProject","Update-AzStorageMoverProject","0","3010","The property 'SystemDataLastModifiedAt' of type 'Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IProject' has been removed.","Add the property 'SystemDataLastModifiedAt' back to type 'Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IProject'." +"Az.StorageMover","Update-AzStorageMoverProject","Update-AzStorageMoverProject","0","3010","The property 'SystemDataCreatedBy' of type 'Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IProject' has been removed.","Add the property 'SystemDataCreatedBy' back to type 'Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IProject'." +"Az.StorageMover","Update-AzStorageMoverProject","Update-AzStorageMoverProject","0","3010","The property 'SystemDataLastModifiedBy' of type 'Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IProject' has been removed.","Add the property 'SystemDataLastModifiedBy' back to type 'Microsoft.Azure.PowerShell.Cmdlets.StorageMover.Models.Api20230301.IProject'."